diff --git a/openapi/api.yaml b/openapi/api.yaml index 4b7fc13e..d4df83eb 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -17229,7 +17229,8 @@ components: type: number format: float title: Subtotal - description: The summation of charges, discounts, and credits, before tax. + description: The summation of charges and credits, before discounts and + taxes. tax: type: number format: float @@ -19596,6 +19597,18 @@ components: format: date-time title: Deleted at readOnly: true + billing_info: + "$ref": "#/components/schemas/SubscriptionChangeBillingInfo" + SubscriptionChangeBillingInfo: + type: object + description: Accept nested attributes for three_d_secure_action_result_token_id + properties: + three_d_secure_action_result_token_id: + type: string + title: 3-D Secure action result token ID + description: A token generated by Recurly.js after completing a 3-D Secure + device fingerprinting or authentication challenge. + maxLength: 22 SubscriptionChangeCreate: type: object properties: diff --git a/recurly/resources.py b/recurly/resources.py index a4112c1b..f4ef5a62 100644 --- a/recurly/resources.py +++ b/recurly/resources.py @@ -1109,7 +1109,7 @@ class Invoice(Resource): subscription_ids : :obj:`list` of :obj:`str` If the invoice is charging or refunding for one or more subscriptions, these are their IDs. subtotal : float - The summation of charges, discounts, and credits, before tax. + The summation of charges and credits, before discounts and taxes. tax : float The total tax on this invoice. tax_info : TaxInfo @@ -1716,6 +1716,8 @@ class SubscriptionChange(Resource): Returns `true` if the subscription change is activated. add_ons : :obj:`list` of :obj:`SubscriptionAddOn` These add-ons will be used when the subscription renews. + billing_info : SubscriptionChangeBillingInfo + Accept nested attributes for three_d_secure_action_result_token_id created_at : datetime Created at custom_fields : :obj:`list` of :obj:`CustomField` @@ -1748,6 +1750,7 @@ class SubscriptionChange(Resource): "activate_at": datetime, "activated": bool, "add_ons": ["SubscriptionAddOn"], + "billing_info": "SubscriptionChangeBillingInfo", "created_at": datetime, "custom_fields": ["CustomField"], "deleted_at": datetime, @@ -1893,6 +1896,17 @@ class SubscriptionAddOnTier(Resource): } +class SubscriptionChangeBillingInfo(Resource): + """ + Attributes + ---------- + three_d_secure_action_result_token_id : str + A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge. + """ + + schema = {"three_d_secure_action_result_token_id": str} + + class UniqueCouponCodeParams(Resource): """ Attributes