Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23765,6 +23765,12 @@ components:
description: An indication of whether or not the external subscription will
auto-renew at the expiration date.
default: false
in_grace_period:
type: boolean
title: In grace period
description: An indication of whether or not the external subscription is
in a grace period.
default: false
app_identifier:
type: string
title: App identifier
Expand All @@ -23778,18 +23784,37 @@ components:
state:
type: string
description: External subscriptions can be active, canceled, expired, or
future.
past_due.
default: active
activated_at:
type: string
format: date-time
title: Activated at
description: When the external subscription was activated in the external
platform.
canceled_at:
type: string
format: date-time
title: Canceled at
description: When the external subscription was canceled in the external
platform.
expires_at:
type: string
format: date-time
title: Expires at
description: When the external subscription expires in the external platform.
trial_started_at:
type: string
format: date-time
title: Trial started at
description: When the external subscription trial period started in the
external platform.
trial_ends_at:
type: string
format: date-time
title: Trial ends at
description: When the external subscription trial period ends in the external
platform.
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -25039,6 +25064,7 @@ components:
- venmo
- wire_transfer
- braintree_v_zero
- boleto
CardTypeEnum:
type: string
enum:
Expand Down
14 changes: 13 additions & 1 deletion recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,8 @@ class ExternalSubscription(Resource):
Identifier of the app that generated the external subscription.
auto_renew : bool
An indication of whether or not the external subscription will auto-renew at the expiration date.
canceled_at : datetime
When the external subscription was canceled in the external platform.
created_at : datetime
When the external subscription was created in Recurly.
expires_at : datetime
Expand All @@ -1238,14 +1240,20 @@ class ExternalSubscription(Resource):
External Product Reference details
id : str
System-generated unique identifier for an external subscription ID, e.g. `e28zov4fw0v2`.
in_grace_period : bool
An indication of whether or not the external subscription is in a grace period.
last_purchased : datetime
When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.
object : str
Object type
quantity : int
An indication of the quantity of a subscribed item's quantity.
state : str
External subscriptions can be active, canceled, expired, or future.
External subscriptions can be active, canceled, expired, or past_due.
trial_ends_at : datetime
When the external subscription trial period ends in the external platform.
trial_started_at : datetime
When the external subscription trial period started in the external platform.
updated_at : datetime
When the external subscription was updated in Recurly.
"""
Expand All @@ -1255,15 +1263,19 @@ class ExternalSubscription(Resource):
"activated_at": datetime,
"app_identifier": str,
"auto_renew": bool,
"canceled_at": datetime,
"created_at": datetime,
"expires_at": datetime,
"external_id": str,
"external_product_reference": "ExternalProductReferenceMini",
"id": str,
"in_grace_period": bool,
"last_purchased": datetime,
"object": str,
"quantity": int,
"state": str,
"trial_ends_at": datetime,
"trial_started_at": datetime,
"updated_at": datetime,
}

Expand Down