From 77fd04b2200c67f84e3f74ebfe919d62ff0eac4b Mon Sep 17 00:00:00 2001 From: DX Codefresh Date: Thu, 9 Dec 2021 20:21:32 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- openapi/api.yaml | 82 ++++++++++++++++++++++++++++++++++++++++---- recurly/client.py | 6 ++-- recurly/resources.py | 27 ++++++++++++--- 3 files changed, 102 insertions(+), 13 deletions(-) diff --git a/openapi/api.yaml b/openapi/api.yaml index 9803070b..13a506e7 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -14579,7 +14579,8 @@ components: billing_info_id: name: billing_info_id in: path - description: Billing Info ID. + description: Billing Info ID. Can ONLY be used for sites utilizing the Wallet + feature. required: true schema: type: string @@ -17377,7 +17378,8 @@ components: description: The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription - will bill to the specified billing info. + will bill to the specified billing info. `billing_info_id` can ONLY be + used for sites utilizing the Wallet feature. subscription_ids: type: array title: Subscription IDs @@ -17634,7 +17636,8 @@ components: description: The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription - will bill to the specified billing info. + will bill to the specified billing info. `billing_info_id` can ONLY be + used for sites utilizing the Wallet feature. InvoiceCollection: type: object title: Invoice collection @@ -18178,6 +18181,13 @@ components: A positive or negative amount with `type=credit` will result in a negative `unit_amount`. If `item_code`/`item_id` is present, `unit_amount` can be passed in, to override the `Item`'s `unit_amount`. If `item_code`/`item_id` is not present then `unit_amount` is required. + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. quantity: type: integer title: Quantity @@ -18691,6 +18701,13 @@ components: title: Unit price minimum: 0 maximum: 1000000 + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. PlanUpdate: type: object properties: @@ -18849,6 +18866,13 @@ components: description: | Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided. + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. required: - currency TierPricing: @@ -18891,6 +18915,13 @@ components: title: Unit price minimum: 0 maximum: 1000000 + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. required: - currency - unit_amount @@ -19828,6 +19859,13 @@ components: type: number format: float title: Unit amount + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. quantity: type: integer title: Subscription quantity @@ -19915,6 +19953,13 @@ components: be used. minimum: 0 maximum: 1000000 + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. quantity: type: integer title: Quantity @@ -20043,7 +20088,8 @@ components: description: The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription - will bill to the specified billing info. + will bill to the specified billing info. `billing_info_id` can ONLY be + used for sites utilizing the Wallet feature. shipping: title: Shipping address description: Create a shipping address on the account and assign it to the @@ -20067,6 +20113,13 @@ components: the subscription plan for the provided currency. minimum: 0 maximum: 1000000 + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. quantity: type: integer title: Quantity @@ -20198,6 +20251,13 @@ components: the subscription plan for the provided currency. minimum: 0 maximum: 1000000 + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. quantity: type: integer title: Quantity @@ -20334,6 +20394,13 @@ components: description: If present, this subscription's transactions will use the payment gateway with this code. maxLength: 13 + tax_inclusive: + type: boolean + title: Tax Inclusive? + default: false + description: Determines whether or not tax is included in the unit amount. + The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing + feature) must be enabled to use this flag. shipping: "$ref": "#/components/schemas/SubscriptionShippingUpdate" billing_info_id: @@ -20342,7 +20409,8 @@ components: description: The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription - will bill to the specified billing info. + will bill to the specified billing info. `billing_info_id` can ONLY be + used for sites utilizing the Wallet feature. SubscriptionPause: type: object properties: @@ -20940,7 +21008,8 @@ components: description: The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription - will bill to the specified billing info. + will bill to the specified billing info. `billing_info_id` can ONLY be + used for sites utilizing the Wallet feature. collection_method: title: Collection method description: Must be set to manual in order to preview a purchase for an @@ -22017,6 +22086,7 @@ components: - three_d_secure_action_result_token_mismatch - three_d_secure_authentication - three_d_secure_connection_error + - three_d_secure_credential_error - three_d_secure_not_supported - too_many_attempts - total_credit_exceeds_capture diff --git a/recurly/client.py b/recurly/client.py index 0ecaa784..5683a2f3 100644 --- a/recurly/client.py +++ b/recurly/client.py @@ -536,7 +536,7 @@ def get_a_billing_info(self, account_id, billing_info_id, **options): account_id : str Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`. billing_info_id : str - Billing Info ID. + Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature. Keyword Arguments ----------------- @@ -564,7 +564,7 @@ def update_a_billing_info(self, account_id, billing_info_id, body, **options): account_id : str Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`. billing_info_id : str - Billing Info ID. + Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature. body : dict The request body. It should follow the schema of BillingInfoCreate. @@ -594,7 +594,7 @@ def remove_a_billing_info(self, account_id, billing_info_id, **options): account_id : str Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`. billing_info_id : str - Billing Info ID. + Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature. Keyword Arguments ----------------- diff --git a/recurly/resources.py b/recurly/resources.py index c4234147..574a8c14 100644 --- a/recurly/resources.py +++ b/recurly/resources.py @@ -1073,7 +1073,7 @@ class Invoice(Resource): balance : float The outstanding balance remaining on this invoice. billing_info_id : str - The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. + The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature. closed_at : datetime Date invoice was marked paid or failed. collection_method : str @@ -1768,6 +1768,8 @@ class SubscriptionChange(Resource): Subscription shipping details subscription_id : str The ID of the subscription that is going to be changed. + tax_inclusive : bool + Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag. unit_amount : float Unit amount updated_at : datetime @@ -1790,6 +1792,7 @@ class SubscriptionChange(Resource): "revenue_schedule_type": str, "shipping": "SubscriptionShipping", "subscription_id": str, + "tax_inclusive": bool, "unit_amount": float, "updated_at": datetime, } @@ -2106,11 +2109,13 @@ class Pricing(Resource): ---------- currency : str 3-letter ISO 4217 currency code. + tax_inclusive : bool + Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag. unit_amount : float Unit price """ - schema = {"currency": str, "unit_amount": float} + schema = {"currency": str, "tax_inclusive": bool, "unit_amount": float} class MeasuredUnit(Resource): @@ -2264,11 +2269,18 @@ class PlanPricing(Resource): 3-letter ISO 4217 currency code. setup_fee : float Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan. + tax_inclusive : bool + Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag. unit_amount : float Unit price """ - schema = {"currency": str, "setup_fee": float, "unit_amount": float} + schema = { + "currency": str, + "setup_fee": float, + "tax_inclusive": bool, + "unit_amount": float, + } class PlanHostedPages(Resource): @@ -2390,6 +2402,8 @@ class AddOnPricing(Resource): ---------- currency : str 3-letter ISO 4217 currency code. + tax_inclusive : bool + Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag. unit_amount : float Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided. unit_amount_decimal : str @@ -2397,7 +2411,12 @@ class AddOnPricing(Resource): If `unit_amount_decimal` is provided, `unit_amount` cannot be provided. """ - schema = {"currency": str, "unit_amount": float, "unit_amount_decimal": str} + schema = { + "currency": str, + "tax_inclusive": bool, + "unit_amount": float, + "unit_amount_decimal": str, + } class Tier(Resource):