Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Latest Changes for v2021-02-25 (Tax Inclusive Pricing) #527

Merged
merged 1 commit into from
Dec 9, 2021
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
82 changes: 76 additions & 6 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions recurly/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------
Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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
-----------------
Expand Down
27 changes: 23 additions & 4 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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,
}
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -2390,14 +2402,21 @@ 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
Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`.
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):
Expand Down