diff --git a/API_VERSION b/API_VERSION index 1116f63c2..40f35337b 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -2025-06-30.basil \ No newline at end of file +2025-07-30.basil \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d8931ef8a..7b0334ddc 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1819 \ No newline at end of file +v1868 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 0ef74b02c..3f89f06bd 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -132,7 +132,7 @@ class SupportAddress(StripeObject): ] ] """ - Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. + Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. """ monthly_estimated_revenue: Optional[MonthlyEstimatedRevenue] name: Optional[str] @@ -1561,7 +1561,7 @@ class CreateParamsBusinessProfile(TypedDict): ] ] """ - Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. + Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. """ monthly_estimated_revenue: NotRequired[ "Account.CreateParamsBusinessProfileMonthlyEstimatedRevenue" @@ -4628,7 +4628,7 @@ def _cls_delete( Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ @@ -4652,7 +4652,7 @@ def delete( Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ @@ -4665,7 +4665,7 @@ def delete(self, **params: Unpack["Account.DeleteParams"]) -> "Account": Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ @@ -4680,7 +4680,7 @@ def delete( # pyright: ignore[reportGeneralTypeIssues] Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ @@ -4699,7 +4699,7 @@ async def _cls_delete_async( Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ @@ -4723,7 +4723,7 @@ async def delete_async( Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ @@ -4738,7 +4738,7 @@ async def delete_async( Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ @@ -4753,7 +4753,7 @@ async def delete_async( # pyright: ignore[reportGeneralTypeIssues] Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ diff --git a/stripe/_account_link.py b/stripe/_account_link.py index dce24a0c6..8af6f1bb7 100644 --- a/stripe/_account_link.py +++ b/stripe/_account_link.py @@ -45,7 +45,9 @@ class CreateParams(RequestOptions): """ type: Literal["account_onboarding", "account_update"] """ - The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`. + The type of account link the user is requesting. + + You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components. """ class CreateParamsCollectionOptions(TypedDict): diff --git a/stripe/_account_link_service.py b/stripe/_account_link_service.py index 793610084..44106ab2d 100644 --- a/stripe/_account_link_service.py +++ b/stripe/_account_link_service.py @@ -37,7 +37,9 @@ class CreateParams(TypedDict): """ type: Literal["account_onboarding", "account_update"] """ - The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`. + The type of account link the user is requesting. + + You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components. """ class CreateParamsCollectionOptions(TypedDict): diff --git a/stripe/_account_service.py b/stripe/_account_service.py index 55c3b7daa..09d2c6f44 100644 --- a/stripe/_account_service.py +++ b/stripe/_account_service.py @@ -166,7 +166,7 @@ class CreateParamsBusinessProfile(TypedDict): ] ] """ - Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. + Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. """ monthly_estimated_revenue: NotRequired[ "AccountService.CreateParamsBusinessProfileMonthlyEstimatedRevenue" @@ -2122,7 +2122,7 @@ class UpdateParamsBusinessProfile(TypedDict): ] ] """ - Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. + Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. """ monthly_estimated_revenue: NotRequired[ "AccountService.UpdateParamsBusinessProfileMonthlyEstimatedRevenue" @@ -3856,7 +3856,7 @@ def delete( Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ @@ -3882,7 +3882,7 @@ async def delete_async( Test-mode accounts can be deleted at any time. - Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. + Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero. If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. """ diff --git a/stripe/_account_session.py b/stripe/_account_session.py index c542ddaa9..b4acb660f 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -164,6 +164,28 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class InstantPayoutsPromotion(StripeObject): + class Features(StripeObject): + disable_stripe_user_authentication: bool + """ + Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. + """ + external_account_collection: bool + """ + Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. + """ + instant_payouts: bool + """ + Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. + """ + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + class IssuingCard(StripeObject): class Features(StripeObject): card_management: bool @@ -382,6 +404,7 @@ class Features(StripeObject): documents: Documents financial_account: FinancialAccount financial_account_transactions: FinancialAccountTransactions + instant_payouts_promotion: InstantPayoutsPromotion issuing_card: IssuingCard issuing_cards_list: IssuingCardsList notification_banner: NotificationBanner @@ -400,6 +423,7 @@ class Features(StripeObject): "documents": Documents, "financial_account": FinancialAccount, "financial_account_transactions": FinancialAccountTransactions, + "instant_payouts_promotion": InstantPayoutsPromotion, "issuing_card": IssuingCard, "issuing_cards_list": IssuingCardsList, "notification_banner": NotificationBanner, @@ -467,6 +491,12 @@ class CreateParamsComponents(TypedDict): """ Configuration for the [financial account transactions](https://docs.stripe.com/connect/supported-embedded-components/financial-account-transactions/) embedded component. """ + instant_payouts_promotion: NotRequired[ + "AccountSession.CreateParamsComponentsInstantPayoutsPromotion" + ] + """ + Configuration for the [instant payouts promotion](https://docs.stripe.com/connect/supported-embedded-components/instant-payouts-promotion/) embedded component. + """ issuing_card: NotRequired[ "AccountSession.CreateParamsComponentsIssuingCard" ] @@ -697,6 +727,32 @@ class CreateParamsComponentsFinancialAccountTransactionsFeatures( Whether to allow card spend dispute management features. """ + class CreateParamsComponentsInstantPayoutsPromotion(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSession.CreateParamsComponentsInstantPayoutsPromotionFeatures" + ] + """ + The list of features enabled in the embedded component. + """ + + class CreateParamsComponentsInstantPayoutsPromotionFeatures(TypedDict): + disable_stripe_user_authentication: NotRequired[bool] + """ + Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. + """ + external_account_collection: NotRequired[bool] + """ + Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. + """ + instant_payouts: NotRequired[bool] + """ + Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. + """ + class CreateParamsComponentsIssuingCard(TypedDict): enabled: bool """ diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index 85d557c9b..9c519f844 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -65,6 +65,12 @@ class CreateParamsComponents(TypedDict): """ Configuration for the [financial account transactions](https://docs.stripe.com/connect/supported-embedded-components/financial-account-transactions/) embedded component. """ + instant_payouts_promotion: NotRequired[ + "AccountSessionService.CreateParamsComponentsInstantPayoutsPromotion" + ] + """ + Configuration for the [instant payouts promotion](https://docs.stripe.com/connect/supported-embedded-components/instant-payouts-promotion/) embedded component. + """ issuing_card: NotRequired[ "AccountSessionService.CreateParamsComponentsIssuingCard" ] @@ -299,6 +305,32 @@ class CreateParamsComponentsFinancialAccountTransactionsFeatures( Whether to allow card spend dispute management features. """ + class CreateParamsComponentsInstantPayoutsPromotion(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionService.CreateParamsComponentsInstantPayoutsPromotionFeatures" + ] + """ + The list of features enabled in the embedded component. + """ + + class CreateParamsComponentsInstantPayoutsPromotionFeatures(TypedDict): + disable_stripe_user_authentication: NotRequired[bool] + """ + Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. + """ + external_account_collection: NotRequired[bool] + """ + Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. + """ + instant_payouts: NotRequired[bool] + """ + Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. + """ + class CreateParamsComponentsIssuingCard(TypedDict): enabled: bool """ diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 6f3730c3b..d40c6d5e5 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2025-06-30.basil" + CURRENT = "2025-07-30.basil" CURRENT_MAJOR = "basil" diff --git a/stripe/_capability.py b/stripe/_capability.py index 77a887b45..98e0b5bc9 100644 --- a/stripe/_capability.py +++ b/stripe/_capability.py @@ -376,7 +376,7 @@ class Error(StripeObject): Time at which the capability was requested. Measured in seconds since the Unix epoch. """ requirements: Optional[Requirements] - status: Literal["active", "disabled", "inactive", "pending", "unrequested"] + status: Literal["active", "inactive", "pending", "unrequested"] """ The status of the capability. """ diff --git a/stripe/_charge.py b/stripe/_charge.py index ad26d58d9..93cd4f794 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -315,7 +315,7 @@ class Funding(StripeObject): class Card(StripeObject): brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ country: Optional[str] """ @@ -775,7 +775,7 @@ class ShippingAddress(StripeObject): """ brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ capture_before: Optional[int] """ @@ -942,7 +942,7 @@ class Wallet(StripeObject): """ brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ brand_product: Optional[str] """ @@ -1058,6 +1058,10 @@ class Cashapp(StripeObject): """ A public identifier for buyers using Cash App. """ + transaction_id: Optional[str] + """ + A unique and immutable identifier of payments assigned by Cash App + """ class Crypto(StripeObject): buyer_address: Optional[str] @@ -1673,7 +1677,7 @@ class Funding(StripeObject): class Card(StripeObject): brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ country: Optional[str] """ @@ -1997,7 +2001,7 @@ class Zip(StripeObject): class PresentmentDetails(StripeObject): presentment_amount: int """ - Amount intended to be collected by this payment, denominated in presentment_currency. + Amount intended to be collected by this payment, denominated in `presentment_currency`. """ presentment_currency: str """ diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 82f2b890c..ff2e6ccce 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -316,7 +316,7 @@ class Wallet(StripeObject): """ brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ brand_product: Optional[str] """ @@ -661,7 +661,7 @@ class ShippingAddress(StripeObject): brand: str """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ checks: Optional[Checks] """ @@ -768,7 +768,7 @@ class Wallet(StripeObject): brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ brand_product: Optional[str] """ diff --git a/stripe/_customer.py b/stripe/_customer.py index 3fc4cf423..0c59964b3 100644 --- a/stripe/_customer.py +++ b/stripe/_customer.py @@ -1414,7 +1414,7 @@ class SearchParams(RequestOptions): """ balance: Optional[int] """ - The current balance, if any, that's stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. + The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance). """ cash_balance: Optional["CashBalance"] """ diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 2584022a1..8237ab6e0 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -366,7 +366,7 @@ class AmazonPay(StripeObject): class Card(StripeObject): brand: str """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ case_type: Literal["chargeback", "compliance", "inquiry"] """ diff --git a/stripe/_event.py b/stripe/_event.py index cd4748f4e..c2b3273ae 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -10,35 +10,23 @@ class Event(ListableAPIResource["Event"]): """ - Events are our way of letting you know when something interesting happens in - your account. When an interesting event occurs, we create a new `Event` - object. For example, when a charge succeeds, we create a `charge.succeeded` - event, and when an invoice payment attempt fails, we create an - `invoice.payment_failed` event. Certain API requests might create multiple - events. For example, if you create a new subscription for a - customer, you receive both a `customer.subscription.created` event and a - `charge.succeeded` event. + Snapshot events allow you to track and react to activity in your Stripe integration. When + the state of another API resource changes, Stripe creates an `Event` object that contains + all the relevant information associated with that action, including the affected API + resource. For example, a successful payment triggers a `charge.succeeded` event, which + contains the `Charge` in the event's data property. Some actions trigger multiple events. + For example, if you create a new subscription for a customer, it triggers both a + `customer.subscription.created` event and a `charge.succeeded` event. - Events occur when the state of another API resource changes. The event's data - field embeds the resource's state at the time of the change. For - example, a `charge.succeeded` event contains a charge, and an - `invoice.payment_failed` event contains an invoice. + Configure an event destination in your account to listen for events that represent actions + your integration needs to respond to. Additionally, you can retrieve an individual event or + a list of events from the API. - As with other API resources, you can use endpoints to retrieve an - [individual event](https://stripe.com/docs/api#retrieve_event) or a [list of events](https://stripe.com/docs/api#list_events) - from the API. We also have a separate - [webhooks](http://en.wikipedia.org/wiki/Webhook) system for sending the - `Event` objects directly to an endpoint on your server. You can manage - webhooks in your - [account settings](https://dashboard.stripe.com/account/webhooks). Learn how - to [listen for events](https://docs.stripe.com/webhooks) - so that your integration can automatically trigger reactions. + [Connect](https://docs.stripe.com/connect) platforms can also receive event notifications + that occur in their connected accounts. These events include an account attribute that + identifies the relevant connected account. - When using [Connect](https://docs.stripe.com/connect), you can also receive event notifications - that occur in connected accounts. For these events, there's an - additional `account` attribute in the received `Event` object. - - We only guarantee access to events through the [Retrieve Event API](https://stripe.com/docs/api#retrieve_event) + You can access events through the [Retrieve Event API](https://docs.stripe.com/api/events#retrieve_event) for 30 days. """ diff --git a/stripe/_invoice.py b/stripe/_invoice.py index b4e9fa5e3..1e09248d3 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1418,7 +1418,7 @@ class CreateParams(RequestOptions): """ auto_advance: NotRequired[bool] """ - Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. + Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false. """ automatic_tax: NotRequired["Invoice.CreateParamsAutomaticTax"] """ @@ -1426,7 +1426,7 @@ class CreateParams(RequestOptions): """ automatically_finalizes_at: NotRequired[int] """ - The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. + The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. """ collection_method: NotRequired[ Literal["charge_automatically", "send_invoice"] @@ -1704,7 +1704,7 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): "Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this invoice (Mexico Only). + Installment configuration for payments attempted on this invoice. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ @@ -2521,6 +2521,9 @@ class CreatePreviewParamsScheduleDetails(TypedDict): class CreatePreviewParamsScheduleDetailsBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreatePreviewParamsScheduleDetailsPhase(TypedDict): add_invoice_items: NotRequired[ @@ -2579,6 +2582,12 @@ class CreatePreviewParamsScheduleDetailsPhase(TypedDict): """ The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts. """ + duration: NotRequired[ + "Invoice.CreatePreviewParamsScheduleDetailsPhaseDuration" + ] + """ + The number of intervals the phase should last. If set, `end_date` must not be set. + """ end_date: NotRequired["int|Literal['now']"] """ The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set. @@ -2595,7 +2604,7 @@ class CreatePreviewParamsScheduleDetailsPhase(TypedDict): """ iterations: NotRequired[int] """ - Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. + Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead. """ metadata: NotRequired[Dict[str, str]] """ @@ -2748,6 +2757,16 @@ class CreatePreviewParamsScheduleDetailsPhaseDiscount(TypedDict): ID of the promotion code to create a new discount for. """ + class CreatePreviewParamsScheduleDetailsPhaseDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies phase duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + class CreatePreviewParamsScheduleDetailsPhaseInvoiceSettings(TypedDict): account_tax_ids: NotRequired["Literal['']|List[str]"] """ @@ -2899,7 +2918,9 @@ class CreatePreviewParamsSubscriptionDetails(TypedDict): """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. """ - cancel_at: NotRequired["Literal['']|int"] + cancel_at: NotRequired[ + "Literal['']|int|Literal['max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -2946,6 +2967,9 @@ class CreatePreviewParamsSubscriptionDetails(TypedDict): class CreatePreviewParamsSubscriptionDetailsBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict): billing_thresholds: NotRequired[ @@ -3196,7 +3220,7 @@ class ModifyParams(RequestOptions): """ automatically_finalizes_at: NotRequired[int] """ - The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false. + The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set `auto_advance` to false. """ collection_method: NotRequired[ Literal["charge_automatically", "send_invoice"] @@ -3448,7 +3472,7 @@ class ModifyParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): "Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this invoice (Mexico Only). + Installment configuration for payments attempted on this invoice. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index 2755a1cf7..1d927d3fe 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -131,7 +131,7 @@ class CreateParams(RequestOptions): """ invoice: NotRequired[str] """ - The ID of an existing invoice to add this invoice item to. When left blank, the invoice item will be added to the next upcoming scheduled invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice. + The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice. """ metadata: NotRequired["Literal['']|Dict[str, str]"] """ diff --git a/stripe/_invoice_item_service.py b/stripe/_invoice_item_service.py index cfe596084..6469b3b8b 100644 --- a/stripe/_invoice_item_service.py +++ b/stripe/_invoice_item_service.py @@ -43,7 +43,7 @@ class CreateParams(TypedDict): """ invoice: NotRequired[str] """ - The ID of an existing invoice to add this invoice item to. When left blank, the invoice item will be added to the next upcoming scheduled invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice. + The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice. """ metadata: NotRequired["Literal['']|Dict[str, str]"] """ diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 3763484e5..9c842b140 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -284,7 +284,7 @@ class CreateParams(TypedDict): """ auto_advance: NotRequired[bool] """ - Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. + Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false. """ automatic_tax: NotRequired["InvoiceService.CreateParamsAutomaticTax"] """ @@ -292,7 +292,7 @@ class CreateParams(TypedDict): """ automatically_finalizes_at: NotRequired[int] """ - The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. + The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. """ collection_method: NotRequired[ Literal["charge_automatically", "send_invoice"] @@ -576,7 +576,7 @@ class CreateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): "InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this invoice (Mexico Only). + Installment configuration for payments attempted on this invoice. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ @@ -1401,6 +1401,9 @@ class CreatePreviewParamsScheduleDetails(TypedDict): class CreatePreviewParamsScheduleDetailsBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreatePreviewParamsScheduleDetailsPhase(TypedDict): add_invoice_items: NotRequired[ @@ -1459,6 +1462,12 @@ class CreatePreviewParamsScheduleDetailsPhase(TypedDict): """ The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts. """ + duration: NotRequired[ + "InvoiceService.CreatePreviewParamsScheduleDetailsPhaseDuration" + ] + """ + The number of intervals the phase should last. If set, `end_date` must not be set. + """ end_date: NotRequired["int|Literal['now']"] """ The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set. @@ -1477,7 +1486,7 @@ class CreatePreviewParamsScheduleDetailsPhase(TypedDict): """ iterations: NotRequired[int] """ - Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. + Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead. """ metadata: NotRequired[Dict[str, str]] """ @@ -1630,6 +1639,16 @@ class CreatePreviewParamsScheduleDetailsPhaseDiscount(TypedDict): ID of the promotion code to create a new discount for. """ + class CreatePreviewParamsScheduleDetailsPhaseDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies phase duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + class CreatePreviewParamsScheduleDetailsPhaseInvoiceSettings(TypedDict): account_tax_ids: NotRequired["Literal['']|List[str]"] """ @@ -1781,7 +1800,9 @@ class CreatePreviewParamsSubscriptionDetails(TypedDict): """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. """ - cancel_at: NotRequired["Literal['']|int"] + cancel_at: NotRequired[ + "Literal['']|int|Literal['max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -1828,6 +1849,9 @@ class CreatePreviewParamsSubscriptionDetails(TypedDict): class CreatePreviewParamsSubscriptionDetailsBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict): billing_thresholds: NotRequired[ @@ -2397,7 +2421,7 @@ class UpdateParams(TypedDict): """ automatically_finalizes_at: NotRequired[int] """ - The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false. + The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set `auto_advance` to false. """ collection_method: NotRequired[ Literal["charge_automatically", "send_invoice"] @@ -2653,7 +2677,7 @@ class UpdateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): "InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this invoice (Mexico Only). + Installment configuration for payments attempted on this invoice. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 0a55a5eda..f97be8cd2 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2491,7 +2491,7 @@ class Zip(StripeObject): class PresentmentDetails(StripeObject): presentment_amount: int """ - Amount intended to be collected by this payment, denominated in presentment_currency. + Amount intended to be collected by this payment, denominated in `presentment_currency`. """ presentment_currency: str """ @@ -4138,7 +4138,7 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): "PaymentIntent.ConfirmParamsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + Installment configuration for payments attempted on this PaymentIntent. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ @@ -6953,7 +6953,7 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict): "PaymentIntent.CreateParamsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + Installment configuration for payments attempted on this PaymentIntent. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ @@ -9760,7 +9760,7 @@ class ModifyParamsPaymentMethodOptionsCard(TypedDict): "PaymentIntent.ModifyParamsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + Installment configuration for payments attempted on this PaymentIntent. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ @@ -11659,6 +11659,7 @@ def _cls_confirm( Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -11666,18 +11667,22 @@ def _cls_confirm( canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. @@ -11702,6 +11707,7 @@ def confirm( Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -11709,18 +11715,22 @@ def confirm( canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. @@ -11735,6 +11745,7 @@ def confirm( Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -11742,18 +11753,22 @@ def confirm( canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. @@ -11768,6 +11783,7 @@ def confirm( # pyright: ignore[reportGeneralTypeIssues] Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -11775,18 +11791,22 @@ def confirm( # pyright: ignore[reportGeneralTypeIssues] canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. @@ -11810,6 +11830,7 @@ async def _cls_confirm_async( Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -11817,18 +11838,22 @@ async def _cls_confirm_async( canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. @@ -11853,6 +11878,7 @@ async def confirm_async( Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -11860,18 +11886,22 @@ async def confirm_async( canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. @@ -11886,6 +11916,7 @@ async def confirm_async( Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -11893,18 +11924,22 @@ async def confirm_async( canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. @@ -11919,6 +11954,7 @@ async def confirm_async( # pyright: ignore[reportGeneralTypeIssues] Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -11926,18 +11962,22 @@ async def confirm_async( # pyright: ignore[reportGeneralTypeIssues] canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index c6329d987..dca493f5d 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -1599,7 +1599,7 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): "PaymentIntentService.ConfirmParamsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + Installment configuration for payments attempted on this PaymentIntent. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ @@ -4444,7 +4444,7 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict): "PaymentIntentService.CreateParamsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + Installment configuration for payments attempted on this PaymentIntent. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ @@ -7309,7 +7309,7 @@ class UpdateParamsPaymentMethodOptionsCard(TypedDict): "PaymentIntentService.UpdateParamsPaymentMethodOptionsCardInstallments" ] """ - Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + Installment configuration for payments attempted on this PaymentIntent. For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). """ @@ -8980,6 +8980,7 @@ def confirm( Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -8987,18 +8988,22 @@ def confirm( canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. @@ -9026,6 +9031,7 @@ async def confirm_async( Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, the PaymentIntent will attempt to initiate a payment. + If the selected payment method requires additional authentication steps, the PaymentIntent will transition to the requires_action status and suggest additional actions via next_action. If payment fails, @@ -9033,18 +9039,22 @@ async def confirm_async( canceled status if the confirmation limit is reached. If payment succeeds, the PaymentIntent will transition to the succeeded status (or requires_capture, if capture_method is set to manual). + If the confirmation_method is automatic, payment may be attempted using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment) and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret). After next_actions are handled by the client, no additional confirmation is required to complete the payment. + If the confirmation_method is manual, all payment attempts must be initiated using a secret key. + If any actions are required for the payment, the PaymentIntent will return to the requires_confirmation state after those actions are completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the next payment attempt. + There is a variable upper limit on how many times a PaymentIntent can be confirmed. After this limit is reached, any further calls to this endpoint will transition the PaymentIntent to the canceled state. diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 53c60c42a..90f9d2871 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -268,6 +268,10 @@ class RenderingOptions(StripeObject): """ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. """ + template: Optional[str] + """ + ID of the invoice rendering template to be used for the generated invoice. + """ account_tax_ids: Optional[List[ExpandableField["TaxId"]]] """ @@ -1194,6 +1198,10 @@ class CreateParamsInvoiceCreationInvoiceDataRenderingOptions(TypedDict): """ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. """ + template: NotRequired[str] + """ + ID of the invoice rendering template to use for this invoice. + """ class CreateParamsLineItem(TypedDict): adjustable_quantity: NotRequired[ @@ -1202,10 +1210,14 @@ class CreateParamsLineItem(TypedDict): """ When set, provides configuration for this item's quantity to be adjusted by the customer during checkout. """ - price: str + price: NotRequired[str] """ The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. """ + price_data: NotRequired["PaymentLink.CreateParamsLineItemPriceData"] + """ + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. + """ quantity: int """ The quantity of the line item being purchased. @@ -1218,13 +1230,81 @@ class CreateParamsLineItemAdjustableQuantity(TypedDict): """ maximum: NotRequired[int] """ - The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999. + The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999. """ minimum: NotRequired[int] """ The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0. """ + class CreateParamsLineItemPriceData(TypedDict): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + product: NotRequired[str] + """ + The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required. + """ + product_data: NotRequired[ + "PaymentLink.CreateParamsLineItemPriceDataProductData" + ] + """ + Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required. + """ + recurring: NotRequired[ + "PaymentLink.CreateParamsLineItemPriceDataRecurring" + ] + """ + The recurring components of a price such as `interval` and `interval_count`. + """ + tax_behavior: NotRequired[ + Literal["exclusive", "inclusive", "unspecified"] + ] + """ + Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed. + """ + unit_amount: NotRequired[int] + """ + A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required. + """ + unit_amount_decimal: NotRequired[str] + """ + Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set. + """ + + class CreateParamsLineItemPriceDataProductData(TypedDict): + description: NotRequired[str] + """ + The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. + """ + images: NotRequired[List[str]] + """ + A list of up to 8 URLs of images for this product, meant to be displayable to the customer. + """ + metadata: NotRequired[Dict[str, str]] + """ + Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ + name: str + """ + The product's name, meant to be displayable to the customer. + """ + tax_code: NotRequired[str] + """ + A [tax code](https://stripe.com/docs/tax/tax-categories) ID. + """ + + class CreateParamsLineItemPriceDataRecurring(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing frequency. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). + """ + class CreateParamsOptionalItem(TypedDict): adjustable_quantity: NotRequired[ "PaymentLink.CreateParamsOptionalItemAdjustableQuantity" @@ -2079,6 +2159,10 @@ class ModifyParamsInvoiceCreationInvoiceDataRenderingOptions(TypedDict): """ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. """ + template: NotRequired[str] + """ + ID of the invoice rendering template to use for this invoice. + """ class ModifyParamsLineItem(TypedDict): adjustable_quantity: NotRequired[ @@ -2103,7 +2187,7 @@ class ModifyParamsLineItemAdjustableQuantity(TypedDict): """ maximum: NotRequired[int] """ - The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999. + The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999. """ minimum: NotRequired[int] """ diff --git a/stripe/_payment_link_service.py b/stripe/_payment_link_service.py index 628f4d055..f24885288 100644 --- a/stripe/_payment_link_service.py +++ b/stripe/_payment_link_service.py @@ -514,6 +514,10 @@ class CreateParamsInvoiceCreationInvoiceDataRenderingOptions(TypedDict): """ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. """ + template: NotRequired[str] + """ + ID of the invoice rendering template to use for this invoice. + """ class CreateParamsLineItem(TypedDict): adjustable_quantity: NotRequired[ @@ -522,10 +526,16 @@ class CreateParamsLineItem(TypedDict): """ When set, provides configuration for this item's quantity to be adjusted by the customer during checkout. """ - price: str + price: NotRequired[str] """ The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. """ + price_data: NotRequired[ + "PaymentLinkService.CreateParamsLineItemPriceData" + ] + """ + Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required. + """ quantity: int """ The quantity of the line item being purchased. @@ -538,13 +548,81 @@ class CreateParamsLineItemAdjustableQuantity(TypedDict): """ maximum: NotRequired[int] """ - The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999. + The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999. """ minimum: NotRequired[int] """ The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0. """ + class CreateParamsLineItemPriceData(TypedDict): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + product: NotRequired[str] + """ + The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required. + """ + product_data: NotRequired[ + "PaymentLinkService.CreateParamsLineItemPriceDataProductData" + ] + """ + Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required. + """ + recurring: NotRequired[ + "PaymentLinkService.CreateParamsLineItemPriceDataRecurring" + ] + """ + The recurring components of a price such as `interval` and `interval_count`. + """ + tax_behavior: NotRequired[ + Literal["exclusive", "inclusive", "unspecified"] + ] + """ + Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed. + """ + unit_amount: NotRequired[int] + """ + A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required. + """ + unit_amount_decimal: NotRequired[str] + """ + Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set. + """ + + class CreateParamsLineItemPriceDataProductData(TypedDict): + description: NotRequired[str] + """ + The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. + """ + images: NotRequired[List[str]] + """ + A list of up to 8 URLs of images for this product, meant to be displayable to the customer. + """ + metadata: NotRequired[Dict[str, str]] + """ + Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ + name: str + """ + The product's name, meant to be displayable to the customer. + """ + tax_code: NotRequired[str] + """ + A [tax code](https://stripe.com/docs/tax/tax-categories) ID. + """ + + class CreateParamsLineItemPriceDataRecurring(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing frequency. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). + """ + class CreateParamsOptionalItem(TypedDict): adjustable_quantity: NotRequired[ "PaymentLinkService.CreateParamsOptionalItemAdjustableQuantity" @@ -1397,6 +1475,10 @@ class UpdateParamsInvoiceCreationInvoiceDataRenderingOptions(TypedDict): """ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. """ + template: NotRequired[str] + """ + ID of the invoice rendering template to use for this invoice. + """ class UpdateParamsLineItem(TypedDict): adjustable_quantity: NotRequired[ @@ -1421,7 +1503,7 @@ class UpdateParamsLineItemAdjustableQuantity(TypedDict): """ maximum: NotRequired[int] """ - The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999. + The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999. """ minimum: NotRequired[int] """ diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 8064bf039..1b5b5ea6a 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -249,7 +249,7 @@ class Wallet(StripeObject): """ brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ brand_product: Optional[str] """ @@ -594,7 +594,7 @@ class ShippingAddress(StripeObject): brand: str """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ checks: Optional[Checks] """ @@ -699,7 +699,7 @@ class Wallet(StripeObject): brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ brand_product: Optional[str] """ @@ -2848,7 +2848,7 @@ def modify( cls, id: str, **params: Unpack["PaymentMethod.ModifyParams"] ) -> "PaymentMethod": """ - Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. + Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( @@ -2865,7 +2865,7 @@ async def modify_async( cls, id: str, **params: Unpack["PaymentMethod.ModifyParams"] ) -> "PaymentMethod": """ - Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. + Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( diff --git a/stripe/_payment_method_service.py b/stripe/_payment_method_service.py index 313a0d9fd..19cd571c7 100644 --- a/stripe/_payment_method_service.py +++ b/stripe/_payment_method_service.py @@ -1113,7 +1113,7 @@ def update( options: RequestOptions = {}, ) -> PaymentMethod: """ - Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. + Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. """ return cast( PaymentMethod, @@ -1135,7 +1135,7 @@ async def update_async( options: RequestOptions = {}, ) -> PaymentMethod: """ - Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. + Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. """ return cast( PaymentMethod, diff --git a/stripe/_quote.py b/stripe/_quote.py index 075384c54..cbe4dea85 100644 --- a/stripe/_quote.py +++ b/stripe/_quote.py @@ -702,6 +702,9 @@ class CreateParamsSubscriptionData(TypedDict): class CreateParamsSubscriptionDataBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreateParamsTransferData(TypedDict): amount: NotRequired[int] diff --git a/stripe/_quote_service.py b/stripe/_quote_service.py index 7b5a9dde6..6342cd6a6 100644 --- a/stripe/_quote_service.py +++ b/stripe/_quote_service.py @@ -299,6 +299,9 @@ class CreateParamsSubscriptionData(TypedDict): class CreateParamsSubscriptionDataBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreateParamsTransferData(TypedDict): amount: NotRequired[int] diff --git a/stripe/_refund.py b/stripe/_refund.py index 37044b0be..5d48f86be 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -341,7 +341,7 @@ class EmailSent(StripeObject): class PresentmentDetails(StripeObject): presentment_amount: int """ - Amount intended to be collected by this payment, denominated in presentment_currency. + Amount intended to be collected by this payment, denominated in `presentment_currency`. """ presentment_currency: str """ diff --git a/stripe/_review.py b/stripe/_review.py index d8681862d..be9436a7b 100644 --- a/stripe/_review.py +++ b/stripe/_review.py @@ -141,7 +141,7 @@ class RetrieveParams(RequestOptions): ] ] """ - The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, or `canceled`. + The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`. """ created: int """ @@ -181,7 +181,7 @@ class RetrieveParams(RequestOptions): """ reason: str """ - The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, or `canceled`. + The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`. """ session: Optional[Session] """ diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index acc072dff..5ca0a0135 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -177,7 +177,7 @@ class GooglePay(StripeObject): brand: Optional[str] """ - Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. """ checks: Optional[Checks] """ diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 44605b5ba..b8522bdee 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -552,7 +552,9 @@ class CreateParams(RequestOptions): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ - cancel_at: NotRequired[int] + cancel_at: NotRequired[ + "int|Literal['max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -796,6 +798,9 @@ class CreateParamsBillingCycleAnchorConfig(TypedDict): class CreateParamsBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreateParamsBillingThresholds(TypedDict): amount_gte: NotRequired[int] @@ -1383,7 +1388,9 @@ class ModifyParams(RequestOptions): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ - cancel_at: NotRequired["Literal['']|int"] + cancel_at: NotRequired[ + "Literal['']|int|Literal['max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -1476,7 +1483,7 @@ class ModifyParams(RequestOptions): Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes). - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. + Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. """ payment_settings: NotRequired[ "Subscription.ModifyParamsPaymentSettings" diff --git a/stripe/_subscription_item.py b/stripe/_subscription_item.py index 944ad0495..a8c821bee 100644 --- a/stripe/_subscription_item.py +++ b/stripe/_subscription_item.py @@ -80,7 +80,7 @@ class CreateParams(RequestOptions): Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes). - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. + Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. """ plan: NotRequired[str] """ @@ -253,7 +253,7 @@ class ModifyParams(RequestOptions): Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes). - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. + Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. """ plan: NotRequired[str] """ diff --git a/stripe/_subscription_item_service.py b/stripe/_subscription_item_service.py index 1823cfc68..4a79829b3 100644 --- a/stripe/_subscription_item_service.py +++ b/stripe/_subscription_item_service.py @@ -46,7 +46,7 @@ class CreateParams(TypedDict): Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes). - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. + Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. """ plan: NotRequired[str] """ @@ -227,7 +227,7 @@ class UpdateParams(TypedDict): Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes). - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. + Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. """ plan: NotRequired[str] """ diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 77f92b2e4..c121a249f 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -502,6 +502,9 @@ class CreateParams(RequestOptions): class CreateParamsBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreateParamsDefaultSettings(TypedDict): application_fee_percent: NotRequired[float] @@ -678,6 +681,10 @@ class CreateParamsPhase(TypedDict): """ The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts. """ + duration: NotRequired["SubscriptionSchedule.CreateParamsPhaseDuration"] + """ + The number of intervals the phase should last. If set, `end_date` must not be set. + """ end_date: NotRequired[int] """ The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set. @@ -694,7 +701,7 @@ class CreateParamsPhase(TypedDict): """ iterations: NotRequired[int] """ - Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. + Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead. """ metadata: NotRequired[Dict[str, str]] """ @@ -837,6 +844,16 @@ class CreateParamsPhaseDiscount(TypedDict): ID of the promotion code to create a new discount for. """ + class CreateParamsPhaseDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies phase duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + class CreateParamsPhaseInvoiceSettings(TypedDict): account_tax_ids: NotRequired["Literal['']|List[str]"] """ @@ -1300,6 +1317,10 @@ class ModifyParamsPhase(TypedDict): """ The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts. """ + duration: NotRequired["SubscriptionSchedule.ModifyParamsPhaseDuration"] + """ + The number of intervals the phase should last. If set, `end_date` must not be set. + """ end_date: NotRequired["int|Literal['now']"] """ The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set. @@ -1316,7 +1337,7 @@ class ModifyParamsPhase(TypedDict): """ iterations: NotRequired[int] """ - Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. + Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead. """ metadata: NotRequired[Dict[str, str]] """ @@ -1463,6 +1484,16 @@ class ModifyParamsPhaseDiscount(TypedDict): ID of the promotion code to create a new discount for. """ + class ModifyParamsPhaseDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies phase duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + class ModifyParamsPhaseInvoiceSettings(TypedDict): account_tax_ids: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/_subscription_schedule_service.py b/stripe/_subscription_schedule_service.py index 1e7363509..9dc620bdd 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -72,6 +72,9 @@ class CreateParams(TypedDict): class CreateParamsBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreateParamsDefaultSettings(TypedDict): application_fee_percent: NotRequired[float] @@ -248,6 +251,12 @@ class CreateParamsPhase(TypedDict): """ The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts. """ + duration: NotRequired[ + "SubscriptionScheduleService.CreateParamsPhaseDuration" + ] + """ + The number of intervals the phase should last. If set, `end_date` must not be set. + """ end_date: NotRequired[int] """ The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set. @@ -264,7 +273,7 @@ class CreateParamsPhase(TypedDict): """ iterations: NotRequired[int] """ - Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. + Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead. """ metadata: NotRequired[Dict[str, str]] """ @@ -407,6 +416,16 @@ class CreateParamsPhaseDiscount(TypedDict): ID of the promotion code to create a new discount for. """ + class CreateParamsPhaseDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies phase duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + class CreateParamsPhaseInvoiceSettings(TypedDict): account_tax_ids: NotRequired["Literal['']|List[str]"] """ @@ -888,6 +907,12 @@ class UpdateParamsPhase(TypedDict): """ The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts. """ + duration: NotRequired[ + "SubscriptionScheduleService.UpdateParamsPhaseDuration" + ] + """ + The number of intervals the phase should last. If set, `end_date` must not be set. + """ end_date: NotRequired["int|Literal['now']"] """ The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set. @@ -904,7 +929,7 @@ class UpdateParamsPhase(TypedDict): """ iterations: NotRequired[int] """ - Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. + Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead. """ metadata: NotRequired[Dict[str, str]] """ @@ -1051,6 +1076,16 @@ class UpdateParamsPhaseDiscount(TypedDict): ID of the promotion code to create a new discount for. """ + class UpdateParamsPhaseDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies phase duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + class UpdateParamsPhaseInvoiceSettings(TypedDict): account_tax_ids: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 93197671a..18d8a4fe5 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -87,7 +87,9 @@ class CreateParams(TypedDict): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ - cancel_at: NotRequired[int] + cancel_at: NotRequired[ + "int|Literal['max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -335,6 +337,9 @@ class CreateParamsBillingCycleAnchorConfig(TypedDict): class CreateParamsBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreateParamsBillingThresholds(TypedDict): amount_gte: NotRequired[int] @@ -976,7 +981,9 @@ class UpdateParams(TypedDict): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ - cancel_at: NotRequired["Literal['']|int"] + cancel_at: NotRequired[ + "Literal['']|int|Literal['max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -1069,7 +1076,7 @@ class UpdateParams(TypedDict): Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes). - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. + Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. """ payment_settings: NotRequired[ "SubscriptionService.UpdateParamsPaymentSettings" diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index 695757c4e..297457e96 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -145,6 +145,7 @@ class CreateParams(RequestOptions): "2025-04-30.basil", "2025-05-28.basil", "2025-06-30.basil", + "2025-07-30.basil", ] ] """ diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index db8117339..42b305a1c 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -126,6 +126,7 @@ class CreateParams(TypedDict): "2025-04-30.basil", "2025-05-28.basil", "2025-06-30.basil", + "2025-07-30.basil", ] ] """ diff --git a/stripe/billing/_credit_grant.py b/stripe/billing/_credit_grant.py index 2d2f52c92..c8fbabf2a 100644 --- a/stripe/billing/_credit_grant.py +++ b/stripe/billing/_credit_grant.py @@ -128,7 +128,7 @@ class CreateParamsAmount(TypedDict): """ type: Literal["monetary"] """ - Specify the type of this amount. We currently only support `monetary` billing credits. + The type of this amount. We currently only support `monetary` billing credits. """ class CreateParamsAmountMonetary(TypedDict): diff --git a/stripe/billing/_credit_grant_service.py b/stripe/billing/_credit_grant_service.py index 4ebbe19e9..af32fb54b 100644 --- a/stripe/billing/_credit_grant_service.py +++ b/stripe/billing/_credit_grant_service.py @@ -61,7 +61,7 @@ class CreateParamsAmount(TypedDict): """ type: Literal["monetary"] """ - Specify the type of this amount. We currently only support `monetary` billing credits. + The type of this amount. We currently only support `monetary` billing credits. """ class CreateParamsAmountMonetary(TypedDict): diff --git a/stripe/billing_portal/_configuration.py b/stripe/billing_portal/_configuration.py index 42beb6605..ccd8f9f87 100644 --- a/stripe/billing_portal/_configuration.py +++ b/stripe/billing_portal/_configuration.py @@ -116,6 +116,21 @@ class CancellationReason(StripeObject): class SubscriptionUpdate(StripeObject): class Product(StripeObject): + class AdjustableQuantity(StripeObject): + enabled: bool + """ + If true, the quantity can be adjusted to any non-negative integer. + """ + maximum: Optional[int] + """ + The maximum quantity that can be set for the product. + """ + minimum: int + """ + The minimum quantity that can be set for the product. + """ + + adjustable_quantity: AdjustableQuantity prices: List[str] """ The list of price IDs which, when subscribed to, a subscription can be updated. @@ -124,6 +139,9 @@ class Product(StripeObject): """ The product ID. """ + _inner_class_types = { + "adjustable_quantity": AdjustableQuantity + } class ScheduleAtPeriodEnd(StripeObject): class Condition(StripeObject): @@ -366,6 +384,12 @@ class CreateParamsFeaturesSubscriptionUpdate(TypedDict): """ class CreateParamsFeaturesSubscriptionUpdateProduct(TypedDict): + adjustable_quantity: NotRequired[ + "Configuration.CreateParamsFeaturesSubscriptionUpdateProductAdjustableQuantity" + ] + """ + Control whether the quantity of the product can be adjusted. + """ prices: List[str] """ The list of price IDs for the product that a subscription can be updated to. @@ -375,6 +399,22 @@ class CreateParamsFeaturesSubscriptionUpdateProduct(TypedDict): The product id. """ + class CreateParamsFeaturesSubscriptionUpdateProductAdjustableQuantity( + TypedDict, + ): + enabled: bool + """ + Set to true if the quantity can be adjusted to any non-negative integer. + """ + maximum: NotRequired[int] + """ + The maximum quantity that can be set for the product. + """ + minimum: NotRequired[int] + """ + The minimum quantity that can be set for the product. + """ + class CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd(TypedDict): conditions: NotRequired[ List[ @@ -592,6 +632,12 @@ class ModifyParamsFeaturesSubscriptionUpdate(TypedDict): """ class ModifyParamsFeaturesSubscriptionUpdateProduct(TypedDict): + adjustable_quantity: NotRequired[ + "Configuration.ModifyParamsFeaturesSubscriptionUpdateProductAdjustableQuantity" + ] + """ + Control whether the quantity of the product can be adjusted. + """ prices: List[str] """ The list of price IDs for the product that a subscription can be updated to. @@ -601,6 +647,22 @@ class ModifyParamsFeaturesSubscriptionUpdateProduct(TypedDict): The product id. """ + class ModifyParamsFeaturesSubscriptionUpdateProductAdjustableQuantity( + TypedDict, + ): + enabled: bool + """ + Set to true if the quantity can be adjusted to any non-negative integer. + """ + maximum: NotRequired[int] + """ + The maximum quantity that can be set for the product. + """ + minimum: NotRequired[int] + """ + The minimum quantity that can be set for the product. + """ + class ModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd(TypedDict): conditions: NotRequired[ "Literal['']|List[Configuration.ModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition]" diff --git a/stripe/billing_portal/_configuration_service.py b/stripe/billing_portal/_configuration_service.py index 2bf54fa64..c89bad718 100644 --- a/stripe/billing_portal/_configuration_service.py +++ b/stripe/billing_portal/_configuration_service.py @@ -185,6 +185,12 @@ class CreateParamsFeaturesSubscriptionUpdate(TypedDict): """ class CreateParamsFeaturesSubscriptionUpdateProduct(TypedDict): + adjustable_quantity: NotRequired[ + "ConfigurationService.CreateParamsFeaturesSubscriptionUpdateProductAdjustableQuantity" + ] + """ + Control whether the quantity of the product can be adjusted. + """ prices: List[str] """ The list of price IDs for the product that a subscription can be updated to. @@ -194,6 +200,22 @@ class CreateParamsFeaturesSubscriptionUpdateProduct(TypedDict): The product id. """ + class CreateParamsFeaturesSubscriptionUpdateProductAdjustableQuantity( + TypedDict, + ): + enabled: bool + """ + Set to true if the quantity can be adjusted to any non-negative integer. + """ + maximum: NotRequired[int] + """ + The maximum quantity that can be set for the product. + """ + minimum: NotRequired[int] + """ + The minimum quantity that can be set for the product. + """ + class CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd(TypedDict): conditions: NotRequired[ List[ @@ -417,6 +439,12 @@ class UpdateParamsFeaturesSubscriptionUpdate(TypedDict): """ class UpdateParamsFeaturesSubscriptionUpdateProduct(TypedDict): + adjustable_quantity: NotRequired[ + "ConfigurationService.UpdateParamsFeaturesSubscriptionUpdateProductAdjustableQuantity" + ] + """ + Control whether the quantity of the product can be adjusted. + """ prices: List[str] """ The list of price IDs for the product that a subscription can be updated to. @@ -426,6 +454,22 @@ class UpdateParamsFeaturesSubscriptionUpdateProduct(TypedDict): The product id. """ + class UpdateParamsFeaturesSubscriptionUpdateProductAdjustableQuantity( + TypedDict, + ): + enabled: bool + """ + Set to true if the quantity can be adjusted to any non-negative integer. + """ + maximum: NotRequired[int] + """ + The maximum quantity that can be set for the product. + """ + minimum: NotRequired[int] + """ + The minimum quantity that can be set for the product. + """ + class UpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd(TypedDict): conditions: NotRequired[ "Literal['']|List[ConfigurationService.UpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition]" diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 0d1c8d317..a95513f57 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -575,6 +575,10 @@ class RenderingOptions(StripeObject): """ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. """ + template: Optional[str] + """ + ID of the invoice rendering template to be used for the generated invoice. + """ account_tax_ids: Optional[List[ExpandableField["TaxIdResource"]]] """ @@ -1214,6 +1218,16 @@ class Pix(StripeObject): """ The number of seconds after which Pix payment will expire. """ + setup_future_usage: Optional[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class RevolutPay(StripeObject): setup_future_usage: Optional[Literal["none", "off_session"]] @@ -1436,7 +1450,7 @@ class PhoneNumberCollection(StripeObject): class PresentmentDetails(StripeObject): presentment_amount: int """ - Amount intended to be collected by this payment, denominated in presentment_currency. + Amount intended to be collected by this payment, denominated in `presentment_currency`. """ presentment_currency: str """ @@ -2053,6 +2067,10 @@ class CreateParams(RequestOptions): For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices. """ + origin_context: NotRequired[Literal["mobile_app", "web"]] + """ + Where the user is coming from. This informs the optimizations that are applied to the session. For example, a session originating from a mobile app may behave more like a native app, depending on the platform. This parameter is currently not allowed if `ui_mode` is `custom`. + """ payment_intent_data: NotRequired[ "Session.CreateParamsPaymentIntentData" ] @@ -2118,6 +2136,7 @@ class CreateParams(RequestOptions): "mobilepay", "multibanco", "naver_pay", + "nz_bank_account", "oxxo", "p24", "pay_by_bank", @@ -2544,6 +2563,10 @@ class CreateParamsInvoiceCreationInvoiceDataRenderingOptions(TypedDict): """ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. """ + template: NotRequired[str] + """ + ID of the invoice rendering template to use for this invoice. + """ class CreateParamsLineItem(TypedDict): adjustable_quantity: NotRequired[ @@ -3696,6 +3719,16 @@ class CreateParamsPaymentMethodOptionsPix(TypedDict): """ The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds. """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class CreateParamsPaymentMethodOptionsRevolutPay(TypedDict): setup_future_usage: NotRequired[Literal["none", "off_session"]] @@ -4318,6 +4351,9 @@ class CreateParamsSubscriptionData(TypedDict): class CreateParamsSubscriptionDataBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreateParamsSubscriptionDataInvoiceSettings(TypedDict): issuer: NotRequired[ @@ -4857,6 +4893,10 @@ class RetrieveParams(RequestOptions): """ The optional items presented to the customer at checkout. """ + origin_context: Optional[Literal["mobile_app", "web"]] + """ + Where the user is coming from. This informs the optimizations that are applied to the session. + """ payment_intent: Optional[ExpandableField["PaymentIntent"]] """ The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead. diff --git a/stripe/checkout/_session_service.py b/stripe/checkout/_session_service.py index 2552a1e95..2f1bdc5e4 100644 --- a/stripe/checkout/_session_service.py +++ b/stripe/checkout/_session_service.py @@ -204,6 +204,10 @@ class CreateParams(TypedDict): For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices. """ + origin_context: NotRequired[Literal["mobile_app", "web"]] + """ + Where the user is coming from. This informs the optimizations that are applied to the session. For example, a session originating from a mobile app may behave more like a native app, depending on the platform. This parameter is currently not allowed if `ui_mode` is `custom`. + """ payment_intent_data: NotRequired[ "SessionService.CreateParamsPaymentIntentData" ] @@ -269,6 +273,7 @@ class CreateParams(TypedDict): "mobilepay", "multibanco", "naver_pay", + "nz_bank_account", "oxxo", "p24", "pay_by_bank", @@ -707,6 +712,10 @@ class CreateParamsInvoiceCreationInvoiceDataRenderingOptions(TypedDict): """ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. """ + template: NotRequired[str] + """ + ID of the invoice rendering template to use for this invoice. + """ class CreateParamsLineItem(TypedDict): adjustable_quantity: NotRequired[ @@ -1897,6 +1906,16 @@ class CreateParamsPaymentMethodOptionsPix(TypedDict): """ The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds. """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class CreateParamsPaymentMethodOptionsRevolutPay(TypedDict): setup_future_usage: NotRequired[Literal["none", "off_session"]] @@ -2519,6 +2538,9 @@ class CreateParamsSubscriptionData(TypedDict): class CreateParamsSubscriptionDataBillingMode(TypedDict): type: Literal["classic", "flexible"] + """ + Controls the calculation and orchestration of prorations and invoices for subscriptions. + """ class CreateParamsSubscriptionDataInvoiceSettings(TypedDict): issuer: NotRequired[ diff --git a/stripe/identity/_verification_session.py b/stripe/identity/_verification_session.py index c473ffc47..909092f60 100644 --- a/stripe/identity/_verification_session.py +++ b/stripe/identity/_verification_session.py @@ -152,11 +152,11 @@ class Redaction(StripeObject): """ class RelatedPerson(StripeObject): - account: Optional[str] + account: str """ Token referencing the associated Account of the related Person resource. """ - person: Optional[str] + person: str """ Token referencing the related Person resource. """ diff --git a/stripe/radar/_value_list.py b/stripe/radar/_value_list.py index 5fd7a3b34..66176699b 100644 --- a/stripe/radar/_value_list.py +++ b/stripe/radar/_value_list.py @@ -58,7 +58,7 @@ class CreateParams(RequestOptions): ] ] """ - Type of the items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`. Use `string` if the item type is unknown or mixed. + Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed. """ metadata: NotRequired[Dict[str, str]] """ @@ -177,7 +177,7 @@ class RetrieveParams(RequestOptions): "us_bank_account_fingerprint", ] """ - The type of items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`. + The type of items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. """ list_items: ListObject["ValueListItem"] """ diff --git a/stripe/radar/_value_list_service.py b/stripe/radar/_value_list_service.py index ed270a34f..ca779ddeb 100644 --- a/stripe/radar/_value_list_service.py +++ b/stripe/radar/_value_list_service.py @@ -34,7 +34,7 @@ class CreateParams(TypedDict): ] ] """ - Type of the items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`. Use `string` if the item type is unknown or mixed. + Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed. """ metadata: NotRequired[Dict[str, str]] """ diff --git a/stripe/reporting/_report_run.py b/stripe/reporting/_report_run.py index 3a610d51b..49495e3c3 100644 --- a/stripe/reporting/_report_run.py +++ b/stripe/reporting/_report_run.py @@ -255,6 +255,7 @@ class CreateParamsParameters(TypedDict): "America/Coral_Harbour", "America/Cordoba", "America/Costa_Rica", + "America/Coyhaique", "America/Creston", "America/Cuiaba", "America/Curacao", diff --git a/stripe/reporting/_report_run_service.py b/stripe/reporting/_report_run_service.py index cc4505382..bd7f286c6 100644 --- a/stripe/reporting/_report_run_service.py +++ b/stripe/reporting/_report_run_service.py @@ -194,6 +194,7 @@ class CreateParamsParameters(TypedDict): "America/Coral_Harbour", "America/Cordoba", "America/Costa_Rica", + "America/Coyhaique", "America/Creston", "America/Cuiaba", "America/Curacao", diff --git a/stripe/tax/_registration.py b/stripe/tax/_registration.py index 747ca293b..5d57edf20 100644 --- a/stripe/tax/_registration.py +++ b/stripe/tax/_registration.py @@ -28,10 +28,18 @@ class Registration( class CountryOptions(StripeObject): class Ae(StripeObject): + class Standard(StripeObject): + place_of_supply_scheme: Literal["inbound_goods", "standard"] + """ + Place of supply scheme used in an Default standard registration. + """ + + standard: Optional[Standard] type: Literal["standard"] """ Type of registration in `country`. """ + _inner_class_types = {"standard": Standard} class Al(StripeObject): type: Literal["standard"] @@ -53,7 +61,9 @@ class Ao(StripeObject): class At(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -66,10 +76,18 @@ class Standard(StripeObject): _inner_class_types = {"standard": Standard} class Au(StripeObject): + class Standard(StripeObject): + place_of_supply_scheme: Literal["inbound_goods", "standard"] + """ + Place of supply scheme used in an Default standard registration. + """ + + standard: Optional[Standard] type: Literal["standard"] """ Type of registration in `country`. """ + _inner_class_types = {"standard": Standard} class Aw(StripeObject): type: Literal["standard"] @@ -103,7 +121,9 @@ class Bd(StripeObject): class Be(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -123,7 +143,9 @@ class Bf(StripeObject): class Bg(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -180,10 +202,18 @@ class Cd(StripeObject): """ class Ch(StripeObject): + class Standard(StripeObject): + place_of_supply_scheme: Literal["inbound_goods", "standard"] + """ + Place of supply scheme used in an Default standard registration. + """ + + standard: Optional[Standard] type: Literal["standard"] """ Type of registration in `country`. """ + _inner_class_types = {"standard": Standard} class Cl(StripeObject): type: Literal["simplified"] @@ -217,7 +247,9 @@ class Cv(StripeObject): class Cy(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -231,7 +263,9 @@ class Standard(StripeObject): class Cz(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -245,7 +279,9 @@ class Standard(StripeObject): class De(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -259,7 +295,9 @@ class Standard(StripeObject): class Dk(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -279,7 +317,9 @@ class Ec(StripeObject): class Ee(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -299,7 +339,9 @@ class Eg(StripeObject): class Es(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -319,7 +361,9 @@ class Et(StripeObject): class Fi(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -333,7 +377,9 @@ class Standard(StripeObject): class Fr(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -346,10 +392,18 @@ class Standard(StripeObject): _inner_class_types = {"standard": Standard} class Gb(StripeObject): + class Standard(StripeObject): + place_of_supply_scheme: Literal["inbound_goods", "standard"] + """ + Place of supply scheme used in an Default standard registration. + """ + + standard: Optional[Standard] type: Literal["standard"] """ Type of registration in `country`. """ + _inner_class_types = {"standard": Standard} class Ge(StripeObject): type: Literal["simplified"] @@ -365,7 +419,9 @@ class Gn(StripeObject): class Gr(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -379,7 +435,9 @@ class Standard(StripeObject): class Hr(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -393,7 +451,9 @@ class Standard(StripeObject): class Hu(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -413,7 +473,9 @@ class Id(StripeObject): class Ie(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -439,7 +501,9 @@ class Is(StripeObject): class It(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -452,10 +516,18 @@ class Standard(StripeObject): _inner_class_types = {"standard": Standard} class Jp(StripeObject): + class Standard(StripeObject): + place_of_supply_scheme: Literal["inbound_goods", "standard"] + """ + Place of supply scheme used in an Default standard registration. + """ + + standard: Optional[Standard] type: Literal["standard"] """ Type of registration in `country`. """ + _inner_class_types = {"standard": Standard} class Ke(StripeObject): type: Literal["simplified"] @@ -495,7 +567,9 @@ class La(StripeObject): class Lt(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -509,7 +583,9 @@ class Standard(StripeObject): class Lu(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -523,7 +599,9 @@ class Standard(StripeObject): class Lv(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -567,7 +645,9 @@ class Mr(StripeObject): class Mt(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -599,7 +679,9 @@ class Ng(StripeObject): class Nl(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -612,10 +694,18 @@ class Standard(StripeObject): _inner_class_types = {"standard": Standard} class No(StripeObject): + class Standard(StripeObject): + place_of_supply_scheme: Literal["inbound_goods", "standard"] + """ + Place of supply scheme used in an Default standard registration. + """ + + standard: Optional[Standard] type: Literal["standard"] """ Type of registration in `country`. """ + _inner_class_types = {"standard": Standard} class Np(StripeObject): type: Literal["simplified"] @@ -624,10 +714,18 @@ class Np(StripeObject): """ class Nz(StripeObject): + class Standard(StripeObject): + place_of_supply_scheme: Literal["inbound_goods", "standard"] + """ + Place of supply scheme used in an Default standard registration. + """ + + standard: Optional[Standard] type: Literal["standard"] """ Type of registration in `country`. """ + _inner_class_types = {"standard": Standard} class Om(StripeObject): type: Literal["standard"] @@ -649,7 +747,9 @@ class Ph(StripeObject): class Pl(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -663,7 +763,9 @@ class Standard(StripeObject): class Pt(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -677,7 +779,9 @@ class Standard(StripeObject): class Ro(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -709,7 +813,9 @@ class Sa(StripeObject): class Se(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -722,14 +828,24 @@ class Standard(StripeObject): _inner_class_types = {"standard": Standard} class Sg(StripeObject): + class Standard(StripeObject): + place_of_supply_scheme: Literal["inbound_goods", "standard"] + """ + Place of supply scheme used in an Default standard registration. + """ + + standard: Optional[Standard] type: Literal["standard"] """ Type of registration in `country`. """ + _inner_class_types = {"standard": Standard} class Si(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -743,7 +859,9 @@ class Standard(StripeObject): class Sk(StripeObject): class Standard(StripeObject): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1519,17 +1637,45 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ class CreateParamsCountryOptionsAe(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsAeStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAeStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAl(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsAlStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAlStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAm(TypedDict): type: Literal["simplified"] """ @@ -1537,11 +1683,25 @@ class CreateParamsCountryOptionsAm(TypedDict): """ class CreateParamsCountryOptionsAo(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsAoStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAoStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAt(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsAtStandard" @@ -1555,23 +1715,53 @@ class CreateParamsCountryOptionsAt(TypedDict): """ class CreateParamsCountryOptionsAtStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsAu(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsAuStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAuStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAw(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsAwStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAwStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAz(TypedDict): type: Literal["simplified"] """ @@ -1579,23 +1769,65 @@ class CreateParamsCountryOptionsAz(TypedDict): """ class CreateParamsCountryOptionsBa(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsBaStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBaStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBb(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsBbStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBbStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBd(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsBdStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBdStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBe(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsBeStandard" @@ -1609,17 +1841,33 @@ class CreateParamsCountryOptionsBe(TypedDict): """ class CreateParamsCountryOptionsBeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsBf(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsBfStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBfStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBg(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsBgStandard" @@ -1633,17 +1881,33 @@ class CreateParamsCountryOptionsBg(TypedDict): """ class CreateParamsCountryOptionsBgStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsBh(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsBhStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBhStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBj(TypedDict): type: Literal["simplified"] """ @@ -1651,11 +1915,25 @@ class CreateParamsCountryOptionsBj(TypedDict): """ class CreateParamsCountryOptionsBs(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsBsStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBsStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBy(TypedDict): type: Literal["simplified"] """ @@ -1681,17 +1959,45 @@ class CreateParamsCountryOptionsCaProvinceStandard(TypedDict): """ class CreateParamsCountryOptionsCd(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsCdStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsCdStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsCh(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsChStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsChStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsCl(TypedDict): type: Literal["simplified"] """ @@ -1735,7 +2041,9 @@ class CreateParamsCountryOptionsCy(TypedDict): """ class CreateParamsCountryOptionsCyStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1753,7 +2061,9 @@ class CreateParamsCountryOptionsCz(TypedDict): """ class CreateParamsCountryOptionsCzStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1771,7 +2081,9 @@ class CreateParamsCountryOptionsDe(TypedDict): """ class CreateParamsCountryOptionsDeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1789,7 +2101,9 @@ class CreateParamsCountryOptionsDk(TypedDict): """ class CreateParamsCountryOptionsDkStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1813,7 +2127,9 @@ class CreateParamsCountryOptionsEe(TypedDict): """ class CreateParamsCountryOptionsEeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1837,17 +2153,33 @@ class CreateParamsCountryOptionsEs(TypedDict): """ class CreateParamsCountryOptionsEsStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsEt(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsEtStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsEtStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsFi(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsFiStandard" @@ -1861,7 +2193,9 @@ class CreateParamsCountryOptionsFi(TypedDict): """ class CreateParamsCountryOptionsFiStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1879,17 +2213,33 @@ class CreateParamsCountryOptionsFr(TypedDict): """ class CreateParamsCountryOptionsFrStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsGb(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsGbStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsGbStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsGe(TypedDict): type: Literal["simplified"] """ @@ -1897,11 +2247,25 @@ class CreateParamsCountryOptionsGe(TypedDict): """ class CreateParamsCountryOptionsGn(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsGnStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsGnStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsGr(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsGrStandard" @@ -1915,7 +2279,9 @@ class CreateParamsCountryOptionsGr(TypedDict): """ class CreateParamsCountryOptionsGrStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1933,7 +2299,9 @@ class CreateParamsCountryOptionsHr(TypedDict): """ class CreateParamsCountryOptionsHrStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1951,7 +2319,9 @@ class CreateParamsCountryOptionsHu(TypedDict): """ class CreateParamsCountryOptionsHuStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1975,7 +2345,9 @@ class CreateParamsCountryOptionsIe(TypedDict): """ class CreateParamsCountryOptionsIeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1987,11 +2359,25 @@ class CreateParamsCountryOptionsIn(TypedDict): """ class CreateParamsCountryOptionsIs(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsIsStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsIsStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsIt(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsItStandard" @@ -2005,17 +2391,33 @@ class CreateParamsCountryOptionsIt(TypedDict): """ class CreateParamsCountryOptionsItStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsJp(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsJpStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsJpStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsKe(TypedDict): type: Literal["simplified"] """ @@ -2065,7 +2467,9 @@ class CreateParamsCountryOptionsLt(TypedDict): """ class CreateParamsCountryOptionsLtStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -2083,7 +2487,9 @@ class CreateParamsCountryOptionsLu(TypedDict): """ class CreateParamsCountryOptionsLuStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -2101,7 +2507,9 @@ class CreateParamsCountryOptionsLv(TypedDict): """ class CreateParamsCountryOptionsLvStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -2119,23 +2527,65 @@ class CreateParamsCountryOptionsMd(TypedDict): """ class CreateParamsCountryOptionsMe(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsMeStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsMeStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsMk(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsMkStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsMkStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsMr(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsMrStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsMrStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsMt(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsMtStandard" @@ -2149,7 +2599,9 @@ class CreateParamsCountryOptionsMt(TypedDict): """ class CreateParamsCountryOptionsMtStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -2185,17 +2637,33 @@ class CreateParamsCountryOptionsNl(TypedDict): """ class CreateParamsCountryOptionsNlStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsNo(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsNoStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsNoStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsNp(TypedDict): type: Literal["simplified"] """ @@ -2203,17 +2671,45 @@ class CreateParamsCountryOptionsNp(TypedDict): """ class CreateParamsCountryOptionsNz(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsNzStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsNzStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsOm(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsOmStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsOmStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsPe(TypedDict): type: Literal["simplified"] """ @@ -2239,7 +2735,9 @@ class CreateParamsCountryOptionsPl(TypedDict): """ class CreateParamsCountryOptionsPlStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -2257,7 +2755,9 @@ class CreateParamsCountryOptionsPt(TypedDict): """ class CreateParamsCountryOptionsPtStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -2275,17 +2775,33 @@ class CreateParamsCountryOptionsRo(TypedDict): """ class CreateParamsCountryOptionsRoStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsRs(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsRsStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsRsStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsRu(TypedDict): type: Literal["simplified"] """ @@ -2311,17 +2827,33 @@ class CreateParamsCountryOptionsSe(TypedDict): """ class CreateParamsCountryOptionsSeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsSg(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsSgStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsSgStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsSi(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsSiStandard" @@ -2335,7 +2867,9 @@ class CreateParamsCountryOptionsSi(TypedDict): """ class CreateParamsCountryOptionsSiStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -2353,7 +2887,9 @@ class CreateParamsCountryOptionsSk(TypedDict): """ class CreateParamsCountryOptionsSkStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -2365,11 +2901,25 @@ class CreateParamsCountryOptionsSn(TypedDict): """ class CreateParamsCountryOptionsSr(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsSrStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsSrStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsTh(TypedDict): type: Literal["simplified"] """ @@ -2475,11 +3025,25 @@ class CreateParamsCountryOptionsUsStateSalesTaxElection(TypedDict): """ class CreateParamsCountryOptionsUy(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsUyStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsUyStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsUz(TypedDict): type: Literal["simplified"] """ @@ -2493,11 +3057,25 @@ class CreateParamsCountryOptionsVn(TypedDict): """ class CreateParamsCountryOptionsZa(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsZaStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsZaStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsZm(TypedDict): type: Literal["simplified"] """ @@ -2505,11 +3083,25 @@ class CreateParamsCountryOptionsZm(TypedDict): """ class CreateParamsCountryOptionsZw(TypedDict): + standard: NotRequired[ + "Registration.CreateParamsCountryOptionsZwStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsZwStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class ListParams(RequestOptions): ending_before: NotRequired[str] """ diff --git a/stripe/tax/_registration_service.py b/stripe/tax/_registration_service.py index f8abadea1..f1e8ae849 100644 --- a/stripe/tax/_registration_service.py +++ b/stripe/tax/_registration_service.py @@ -435,17 +435,45 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ class CreateParamsCountryOptionsAe(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsAeStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAeStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAl(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsAlStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAlStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAm(TypedDict): type: Literal["simplified"] """ @@ -453,11 +481,25 @@ class CreateParamsCountryOptionsAm(TypedDict): """ class CreateParamsCountryOptionsAo(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsAoStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAoStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAt(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsAtStandard" @@ -471,23 +513,53 @@ class CreateParamsCountryOptionsAt(TypedDict): """ class CreateParamsCountryOptionsAtStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsAu(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsAuStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAuStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAw(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsAwStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAwStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsAz(TypedDict): type: Literal["simplified"] """ @@ -495,23 +567,65 @@ class CreateParamsCountryOptionsAz(TypedDict): """ class CreateParamsCountryOptionsBa(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsBaStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBaStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBb(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsBbStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBbStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBd(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsBdStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBdStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBe(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsBeStandard" @@ -525,17 +639,33 @@ class CreateParamsCountryOptionsBe(TypedDict): """ class CreateParamsCountryOptionsBeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsBf(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsBfStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBfStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBg(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsBgStandard" @@ -549,17 +679,33 @@ class CreateParamsCountryOptionsBg(TypedDict): """ class CreateParamsCountryOptionsBgStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsBh(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsBhStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBhStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBj(TypedDict): type: Literal["simplified"] """ @@ -567,11 +713,25 @@ class CreateParamsCountryOptionsBj(TypedDict): """ class CreateParamsCountryOptionsBs(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsBsStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBsStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsBy(TypedDict): type: Literal["simplified"] """ @@ -597,17 +757,45 @@ class CreateParamsCountryOptionsCaProvinceStandard(TypedDict): """ class CreateParamsCountryOptionsCd(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsCdStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsCdStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsCh(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsChStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsChStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsCl(TypedDict): type: Literal["simplified"] """ @@ -651,7 +839,9 @@ class CreateParamsCountryOptionsCy(TypedDict): """ class CreateParamsCountryOptionsCyStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -669,7 +859,9 @@ class CreateParamsCountryOptionsCz(TypedDict): """ class CreateParamsCountryOptionsCzStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -687,7 +879,9 @@ class CreateParamsCountryOptionsDe(TypedDict): """ class CreateParamsCountryOptionsDeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -705,7 +899,9 @@ class CreateParamsCountryOptionsDk(TypedDict): """ class CreateParamsCountryOptionsDkStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -729,7 +925,9 @@ class CreateParamsCountryOptionsEe(TypedDict): """ class CreateParamsCountryOptionsEeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -753,17 +951,33 @@ class CreateParamsCountryOptionsEs(TypedDict): """ class CreateParamsCountryOptionsEsStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsEt(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsEtStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsEtStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsFi(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsFiStandard" @@ -777,7 +991,9 @@ class CreateParamsCountryOptionsFi(TypedDict): """ class CreateParamsCountryOptionsFiStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -795,17 +1011,33 @@ class CreateParamsCountryOptionsFr(TypedDict): """ class CreateParamsCountryOptionsFrStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsGb(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsGbStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsGbStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsGe(TypedDict): type: Literal["simplified"] """ @@ -813,11 +1045,25 @@ class CreateParamsCountryOptionsGe(TypedDict): """ class CreateParamsCountryOptionsGn(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsGnStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsGnStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsGr(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsGrStandard" @@ -831,7 +1077,9 @@ class CreateParamsCountryOptionsGr(TypedDict): """ class CreateParamsCountryOptionsGrStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -849,7 +1097,9 @@ class CreateParamsCountryOptionsHr(TypedDict): """ class CreateParamsCountryOptionsHrStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -867,7 +1117,9 @@ class CreateParamsCountryOptionsHu(TypedDict): """ class CreateParamsCountryOptionsHuStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -891,7 +1143,9 @@ class CreateParamsCountryOptionsIe(TypedDict): """ class CreateParamsCountryOptionsIeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -903,11 +1157,25 @@ class CreateParamsCountryOptionsIn(TypedDict): """ class CreateParamsCountryOptionsIs(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsIsStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsIsStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsIt(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsItStandard" @@ -921,17 +1189,33 @@ class CreateParamsCountryOptionsIt(TypedDict): """ class CreateParamsCountryOptionsItStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsJp(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsJpStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsJpStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsKe(TypedDict): type: Literal["simplified"] """ @@ -981,7 +1265,9 @@ class CreateParamsCountryOptionsLt(TypedDict): """ class CreateParamsCountryOptionsLtStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -999,7 +1285,9 @@ class CreateParamsCountryOptionsLu(TypedDict): """ class CreateParamsCountryOptionsLuStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1017,7 +1305,9 @@ class CreateParamsCountryOptionsLv(TypedDict): """ class CreateParamsCountryOptionsLvStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1035,23 +1325,65 @@ class CreateParamsCountryOptionsMd(TypedDict): """ class CreateParamsCountryOptionsMe(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsMeStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsMeStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsMk(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsMkStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsMkStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsMr(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsMrStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsMrStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsMt(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsMtStandard" @@ -1065,7 +1397,9 @@ class CreateParamsCountryOptionsMt(TypedDict): """ class CreateParamsCountryOptionsMtStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1101,17 +1435,33 @@ class CreateParamsCountryOptionsNl(TypedDict): """ class CreateParamsCountryOptionsNlStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsNo(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsNoStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsNoStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsNp(TypedDict): type: Literal["simplified"] """ @@ -1119,17 +1469,45 @@ class CreateParamsCountryOptionsNp(TypedDict): """ class CreateParamsCountryOptionsNz(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsNzStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsNzStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsOm(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsOmStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsOmStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsPe(TypedDict): type: Literal["simplified"] """ @@ -1155,7 +1533,9 @@ class CreateParamsCountryOptionsPl(TypedDict): """ class CreateParamsCountryOptionsPlStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1173,7 +1553,9 @@ class CreateParamsCountryOptionsPt(TypedDict): """ class CreateParamsCountryOptionsPtStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1191,17 +1573,33 @@ class CreateParamsCountryOptionsRo(TypedDict): """ class CreateParamsCountryOptionsRoStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsRs(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsRsStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsRsStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsRu(TypedDict): type: Literal["simplified"] """ @@ -1227,17 +1625,33 @@ class CreateParamsCountryOptionsSe(TypedDict): """ class CreateParamsCountryOptionsSeStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ class CreateParamsCountryOptionsSg(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsSgStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsSgStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsSi(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsSiStandard" @@ -1251,7 +1665,9 @@ class CreateParamsCountryOptionsSi(TypedDict): """ class CreateParamsCountryOptionsSiStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1269,7 +1685,9 @@ class CreateParamsCountryOptionsSk(TypedDict): """ class CreateParamsCountryOptionsSkStandard(TypedDict): - place_of_supply_scheme: Literal["small_seller", "standard"] + place_of_supply_scheme: Literal[ + "inbound_goods", "small_seller", "standard" + ] """ Place of supply scheme used in an EU standard registration. """ @@ -1281,11 +1699,25 @@ class CreateParamsCountryOptionsSn(TypedDict): """ class CreateParamsCountryOptionsSr(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsSrStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsSrStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsTh(TypedDict): type: Literal["simplified"] """ @@ -1391,11 +1823,25 @@ class CreateParamsCountryOptionsUsStateSalesTaxElection(TypedDict): """ class CreateParamsCountryOptionsUy(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsUyStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsUyStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsUz(TypedDict): type: Literal["simplified"] """ @@ -1409,11 +1855,25 @@ class CreateParamsCountryOptionsVn(TypedDict): """ class CreateParamsCountryOptionsZa(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsZaStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsZaStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class CreateParamsCountryOptionsZm(TypedDict): type: Literal["simplified"] """ @@ -1421,11 +1881,25 @@ class CreateParamsCountryOptionsZm(TypedDict): """ class CreateParamsCountryOptionsZw(TypedDict): + standard: NotRequired[ + "RegistrationService.CreateParamsCountryOptionsZwStandard" + ] + """ + Options for the standard registration. + """ type: Literal["standard"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsZwStandard(TypedDict): + place_of_supply_scheme: NotRequired[ + Literal["inbound_goods", "standard"] + ] + """ + Place of supply scheme used in an standard registration. + """ + class ListParams(TypedDict): ending_before: NotRequired[str] """ diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index 058a261ce..e63dd14e1 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -66,6 +66,20 @@ class StripeS700(StripeObject): """ class Tipping(StripeObject): + class Aed(StripeObject): + fixed_amounts: Optional[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: Optional[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: Optional[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class Aud(StripeObject): fixed_amounts: Optional[List[int]] """ @@ -80,6 +94,20 @@ class Aud(StripeObject): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class Bgn(StripeObject): + fixed_amounts: Optional[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: Optional[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: Optional[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class Cad(StripeObject): fixed_amounts: Optional[List[int]] """ @@ -178,6 +206,20 @@ class Hkd(StripeObject): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class Huf(StripeObject): + fixed_amounts: Optional[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: Optional[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: Optional[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class Jpy(StripeObject): fixed_amounts: Optional[List[int]] """ @@ -248,6 +290,20 @@ class Pln(StripeObject): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class Ron(StripeObject): + fixed_amounts: Optional[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: Optional[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: Optional[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class Sek(StripeObject): fixed_amounts: Optional[List[int]] """ @@ -290,7 +346,9 @@ class Usd(StripeObject): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + aed: Optional[Aed] aud: Optional[Aud] + bgn: Optional[Bgn] cad: Optional[Cad] chf: Optional[Chf] czk: Optional[Czk] @@ -298,16 +356,20 @@ class Usd(StripeObject): eur: Optional[Eur] gbp: Optional[Gbp] hkd: Optional[Hkd] + huf: Optional[Huf] jpy: Optional[Jpy] myr: Optional[Myr] nok: Optional[Nok] nzd: Optional[Nzd] pln: Optional[Pln] + ron: Optional[Ron] sek: Optional[Sek] sgd: Optional[Sgd] usd: Optional[Usd] _inner_class_types = { + "aed": Aed, "aud": Aud, + "bgn": Bgn, "cad": Cad, "chf": Chf, "czk": Czk, @@ -315,11 +377,13 @@ class Usd(StripeObject): "eur": Eur, "gbp": Gbp, "hkd": Hkd, + "huf": Huf, "jpy": Jpy, "myr": Myr, "nok": Nok, "nzd": Nzd, "pln": Pln, + "ron": Ron, "sek": Sek, "sgd": Sgd, "usd": Usd, @@ -464,10 +528,18 @@ class CreateParamsStripeS700(TypedDict): """ class CreateParamsTipping(TypedDict): + aed: NotRequired["Configuration.CreateParamsTippingAed"] + """ + Tipping configuration for AED + """ aud: NotRequired["Configuration.CreateParamsTippingAud"] """ Tipping configuration for AUD """ + bgn: NotRequired["Configuration.CreateParamsTippingBgn"] + """ + Tipping configuration for BGN + """ cad: NotRequired["Configuration.CreateParamsTippingCad"] """ Tipping configuration for CAD @@ -496,6 +568,10 @@ class CreateParamsTipping(TypedDict): """ Tipping configuration for HKD """ + huf: NotRequired["Configuration.CreateParamsTippingHuf"] + """ + Tipping configuration for HUF + """ jpy: NotRequired["Configuration.CreateParamsTippingJpy"] """ Tipping configuration for JPY @@ -516,6 +592,10 @@ class CreateParamsTipping(TypedDict): """ Tipping configuration for PLN """ + ron: NotRequired["Configuration.CreateParamsTippingRon"] + """ + Tipping configuration for RON + """ sek: NotRequired["Configuration.CreateParamsTippingSek"] """ Tipping configuration for SEK @@ -529,6 +609,20 @@ class CreateParamsTipping(TypedDict): Tipping configuration for USD """ + class CreateParamsTippingAed(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class CreateParamsTippingAud(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -543,6 +637,20 @@ class CreateParamsTippingAud(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class CreateParamsTippingBgn(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class CreateParamsTippingCad(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -641,6 +749,20 @@ class CreateParamsTippingHkd(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class CreateParamsTippingHuf(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class CreateParamsTippingJpy(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -711,6 +833,20 @@ class CreateParamsTippingPln(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class CreateParamsTippingRon(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class CreateParamsTippingSek(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -933,10 +1069,18 @@ class ModifyParamsStripeS700(TypedDict): """ class ModifyParamsTipping(TypedDict): + aed: NotRequired["Configuration.ModifyParamsTippingAed"] + """ + Tipping configuration for AED + """ aud: NotRequired["Configuration.ModifyParamsTippingAud"] """ Tipping configuration for AUD """ + bgn: NotRequired["Configuration.ModifyParamsTippingBgn"] + """ + Tipping configuration for BGN + """ cad: NotRequired["Configuration.ModifyParamsTippingCad"] """ Tipping configuration for CAD @@ -965,6 +1109,10 @@ class ModifyParamsTipping(TypedDict): """ Tipping configuration for HKD """ + huf: NotRequired["Configuration.ModifyParamsTippingHuf"] + """ + Tipping configuration for HUF + """ jpy: NotRequired["Configuration.ModifyParamsTippingJpy"] """ Tipping configuration for JPY @@ -985,6 +1133,10 @@ class ModifyParamsTipping(TypedDict): """ Tipping configuration for PLN """ + ron: NotRequired["Configuration.ModifyParamsTippingRon"] + """ + Tipping configuration for RON + """ sek: NotRequired["Configuration.ModifyParamsTippingSek"] """ Tipping configuration for SEK @@ -998,6 +1150,20 @@ class ModifyParamsTipping(TypedDict): Tipping configuration for USD """ + class ModifyParamsTippingAed(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class ModifyParamsTippingAud(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -1012,6 +1178,20 @@ class ModifyParamsTippingAud(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class ModifyParamsTippingBgn(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class ModifyParamsTippingCad(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -1110,6 +1290,20 @@ class ModifyParamsTippingHkd(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class ModifyParamsTippingHuf(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class ModifyParamsTippingJpy(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -1180,6 +1374,20 @@ class ModifyParamsTippingPln(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class ModifyParamsTippingRon(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class ModifyParamsTippingSek(TypedDict): fixed_amounts: NotRequired[List[int]] """ diff --git a/stripe/terminal/_configuration_service.py b/stripe/terminal/_configuration_service.py index 08664f686..25f494129 100644 --- a/stripe/terminal/_configuration_service.py +++ b/stripe/terminal/_configuration_service.py @@ -87,10 +87,18 @@ class CreateParamsStripeS700(TypedDict): """ class CreateParamsTipping(TypedDict): + aed: NotRequired["ConfigurationService.CreateParamsTippingAed"] + """ + Tipping configuration for AED + """ aud: NotRequired["ConfigurationService.CreateParamsTippingAud"] """ Tipping configuration for AUD """ + bgn: NotRequired["ConfigurationService.CreateParamsTippingBgn"] + """ + Tipping configuration for BGN + """ cad: NotRequired["ConfigurationService.CreateParamsTippingCad"] """ Tipping configuration for CAD @@ -119,6 +127,10 @@ class CreateParamsTipping(TypedDict): """ Tipping configuration for HKD """ + huf: NotRequired["ConfigurationService.CreateParamsTippingHuf"] + """ + Tipping configuration for HUF + """ jpy: NotRequired["ConfigurationService.CreateParamsTippingJpy"] """ Tipping configuration for JPY @@ -139,6 +151,10 @@ class CreateParamsTipping(TypedDict): """ Tipping configuration for PLN """ + ron: NotRequired["ConfigurationService.CreateParamsTippingRon"] + """ + Tipping configuration for RON + """ sek: NotRequired["ConfigurationService.CreateParamsTippingSek"] """ Tipping configuration for SEK @@ -152,6 +168,20 @@ class CreateParamsTipping(TypedDict): Tipping configuration for USD """ + class CreateParamsTippingAed(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class CreateParamsTippingAud(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -166,6 +196,20 @@ class CreateParamsTippingAud(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class CreateParamsTippingBgn(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class CreateParamsTippingCad(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -264,6 +308,20 @@ class CreateParamsTippingHkd(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class CreateParamsTippingHuf(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class CreateParamsTippingJpy(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -334,6 +392,20 @@ class CreateParamsTippingPln(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class CreateParamsTippingRon(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class CreateParamsTippingSek(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -568,10 +640,18 @@ class UpdateParamsStripeS700(TypedDict): """ class UpdateParamsTipping(TypedDict): + aed: NotRequired["ConfigurationService.UpdateParamsTippingAed"] + """ + Tipping configuration for AED + """ aud: NotRequired["ConfigurationService.UpdateParamsTippingAud"] """ Tipping configuration for AUD """ + bgn: NotRequired["ConfigurationService.UpdateParamsTippingBgn"] + """ + Tipping configuration for BGN + """ cad: NotRequired["ConfigurationService.UpdateParamsTippingCad"] """ Tipping configuration for CAD @@ -600,6 +680,10 @@ class UpdateParamsTipping(TypedDict): """ Tipping configuration for HKD """ + huf: NotRequired["ConfigurationService.UpdateParamsTippingHuf"] + """ + Tipping configuration for HUF + """ jpy: NotRequired["ConfigurationService.UpdateParamsTippingJpy"] """ Tipping configuration for JPY @@ -620,6 +704,10 @@ class UpdateParamsTipping(TypedDict): """ Tipping configuration for PLN """ + ron: NotRequired["ConfigurationService.UpdateParamsTippingRon"] + """ + Tipping configuration for RON + """ sek: NotRequired["ConfigurationService.UpdateParamsTippingSek"] """ Tipping configuration for SEK @@ -633,6 +721,20 @@ class UpdateParamsTipping(TypedDict): Tipping configuration for USD """ + class UpdateParamsTippingAed(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class UpdateParamsTippingAud(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -647,6 +749,20 @@ class UpdateParamsTippingAud(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class UpdateParamsTippingBgn(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class UpdateParamsTippingCad(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -745,6 +861,20 @@ class UpdateParamsTippingHkd(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class UpdateParamsTippingHuf(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class UpdateParamsTippingJpy(TypedDict): fixed_amounts: NotRequired[List[int]] """ @@ -815,6 +945,20 @@ class UpdateParamsTippingPln(TypedDict): Below this amount, fixed amounts will be displayed; above it, percentages will be displayed """ + class UpdateParamsTippingRon(TypedDict): + fixed_amounts: NotRequired[List[int]] + """ + Fixed amounts displayed when collecting a tip + """ + percentages: NotRequired[List[int]] + """ + Percentages displayed when collecting a tip + """ + smart_tip_threshold: NotRequired[int] + """ + Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + """ + class UpdateParamsTippingSek(TypedDict): fixed_amounts: NotRequired[List[int]] """