From 125ea9d99cfb82b11ae158a07cf1196aac7ec8bd Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Mon, 17 Jul 2023 14:40:20 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- openapi/api.yaml | 28 +++++++++++++++++++++++++++- recurly/resources.py | 14 +++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/openapi/api.yaml b/openapi/api.yaml index 19f5ce09..674b3028 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -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 @@ -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 @@ -25039,6 +25064,7 @@ components: - venmo - wire_transfer - braintree_v_zero + - boleto CardTypeEnum: type: string enum: diff --git a/recurly/resources.py b/recurly/resources.py index 5530a1a3..1ce1fa9d 100644 --- a/recurly/resources.py +++ b/recurly/resources.py @@ -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 @@ -1238,6 +1240,8 @@ 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 @@ -1245,7 +1249,11 @@ class ExternalSubscription(Resource): 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. """ @@ -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, }