Skip to content

Commit 3593746

Browse files
authored
Merge pull request #656 from recurly/v3-v2021-02-25-5577043094
Generated Latest Changes for v2021-02-25 (App Management- ExternalSubscription)
2 parents f3b9119 + 125ea9d commit 3593746

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

openapi/api.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23765,6 +23765,12 @@ components:
2376523765
description: An indication of whether or not the external subscription will
2376623766
auto-renew at the expiration date.
2376723767
default: false
23768+
in_grace_period:
23769+
type: boolean
23770+
title: In grace period
23771+
description: An indication of whether or not the external subscription is
23772+
in a grace period.
23773+
default: false
2376823774
app_identifier:
2376923775
type: string
2377023776
title: App identifier
@@ -23778,18 +23784,37 @@ components:
2377823784
state:
2377923785
type: string
2378023786
description: External subscriptions can be active, canceled, expired, or
23781-
future.
23787+
past_due.
23788+
default: active
2378223789
activated_at:
2378323790
type: string
2378423791
format: date-time
2378523792
title: Activated at
2378623793
description: When the external subscription was activated in the external
2378723794
platform.
23795+
canceled_at:
23796+
type: string
23797+
format: date-time
23798+
title: Canceled at
23799+
description: When the external subscription was canceled in the external
23800+
platform.
2378823801
expires_at:
2378923802
type: string
2379023803
format: date-time
2379123804
title: Expires at
2379223805
description: When the external subscription expires in the external platform.
23806+
trial_started_at:
23807+
type: string
23808+
format: date-time
23809+
title: Trial started at
23810+
description: When the external subscription trial period started in the
23811+
external platform.
23812+
trial_ends_at:
23813+
type: string
23814+
format: date-time
23815+
title: Trial ends at
23816+
description: When the external subscription trial period ends in the external
23817+
platform.
2379323818
created_at:
2379423819
type: string
2379523820
format: date-time
@@ -25039,6 +25064,7 @@ components:
2503925064
- venmo
2504025065
- wire_transfer
2504125066
- braintree_v_zero
25067+
- boleto
2504225068
CardTypeEnum:
2504325069
type: string
2504425070
enum:

recurly/resources.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,8 @@ class ExternalSubscription(Resource):
12281228
Identifier of the app that generated the external subscription.
12291229
auto_renew : bool
12301230
An indication of whether or not the external subscription will auto-renew at the expiration date.
1231+
canceled_at : datetime
1232+
When the external subscription was canceled in the external platform.
12311233
created_at : datetime
12321234
When the external subscription was created in Recurly.
12331235
expires_at : datetime
@@ -1238,14 +1240,20 @@ class ExternalSubscription(Resource):
12381240
External Product Reference details
12391241
id : str
12401242
System-generated unique identifier for an external subscription ID, e.g. `e28zov4fw0v2`.
1243+
in_grace_period : bool
1244+
An indication of whether or not the external subscription is in a grace period.
12411245
last_purchased : datetime
12421246
When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.
12431247
object : str
12441248
Object type
12451249
quantity : int
12461250
An indication of the quantity of a subscribed item's quantity.
12471251
state : str
1248-
External subscriptions can be active, canceled, expired, or future.
1252+
External subscriptions can be active, canceled, expired, or past_due.
1253+
trial_ends_at : datetime
1254+
When the external subscription trial period ends in the external platform.
1255+
trial_started_at : datetime
1256+
When the external subscription trial period started in the external platform.
12491257
updated_at : datetime
12501258
When the external subscription was updated in Recurly.
12511259
"""
@@ -1255,15 +1263,19 @@ class ExternalSubscription(Resource):
12551263
"activated_at": datetime,
12561264
"app_identifier": str,
12571265
"auto_renew": bool,
1266+
"canceled_at": datetime,
12581267
"created_at": datetime,
12591268
"expires_at": datetime,
12601269
"external_id": str,
12611270
"external_product_reference": "ExternalProductReferenceMini",
12621271
"id": str,
1272+
"in_grace_period": bool,
12631273
"last_purchased": datetime,
12641274
"object": str,
12651275
"quantity": int,
12661276
"state": str,
1277+
"trial_ends_at": datetime,
1278+
"trial_started_at": datetime,
12671279
"updated_at": datetime,
12681280
}
12691281

0 commit comments

Comments
 (0)