From b9816d01a87b3b7819be698693fa5cb16fe63143 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 23:53:53 +0000 Subject: [PATCH 1/4] Update generated code for v1399 --- OPENAPI_VERSION | 2 +- stripe/_account.py | 4 +- stripe/_account_service.py | 4 +- stripe/_account_session.py | 20 +- stripe/_account_session_service.py | 10 +- stripe/_api_version.py | 2 +- stripe/_balance_transaction.py | 6 +- stripe/_balance_transaction_service.py | 2 +- stripe/_capability.py | 2 +- stripe/_card.py | 4 + stripe/_charge.py | 86 +++++- stripe/_confirmation_token.py | 4 + stripe/_customer.py | 42 ++- stripe/_customer_service.py | 22 +- stripe/_customer_tax_id_service.py | 20 +- stripe/_dispute.py | 30 ++ stripe/_dispute_service.py | 12 + stripe/_funding_instructions.py | 236 ++++++++++++++ stripe/_invoice.py | 111 ++++++- stripe/_invoice_service.py | 50 ++- stripe/_invoice_upcoming_lines_service.py | 24 +- stripe/_payment_intent.py | 292 +++++++++++++++++- stripe/_payment_intent_service.py | 36 ++- stripe/_payment_link.py | 12 +- stripe/_payment_link_service.py | 12 +- stripe/_payment_method.py | 4 + stripe/_setup_attempt.py | 8 + stripe/_setup_intent.py | 48 ++- stripe/_setup_intent_service.py | 30 +- stripe/_subscription.py | 10 +- stripe/_subscription_schedule.py | 8 + stripe/_subscription_service.py | 6 +- stripe/_tax_id.py | 40 ++- stripe/_tax_id_service.py | 20 +- stripe/_webhook_endpoint.py | 1 + stripe/_webhook_endpoint_service.py | 1 + stripe/billing/_credit_balance_summary.py | 6 +- .../_credit_balance_summary_service.py | 6 +- stripe/billing/_credit_balance_transaction.py | 31 +- .../_credit_balance_transaction_service.py | 8 +- stripe/billing/_credit_grant.py | 26 +- stripe/billing/_credit_grant_service.py | 22 +- stripe/billing/_meter.py | 52 ++-- stripe/billing/_meter_event.py | 9 +- stripe/billing/_meter_event_adjustment.py | 4 +- .../_meter_event_adjustment_service.py | 4 +- stripe/billing/_meter_event_service.py | 6 +- stripe/billing/_meter_service.py | 26 +- stripe/billing_portal/_configuration.py | 2 +- stripe/checkout/_session.py | 44 ++- stripe/checkout/_session_service.py | 14 +- stripe/forwarding/_request.py | 14 +- stripe/forwarding/_request_service.py | 6 +- stripe/issuing/_authorization.py | 4 + stripe/issuing/_transaction.py | 4 + stripe/tax/_calculation.py | 40 ++- stripe/tax/_calculation_service.py | 20 +- stripe/tax/_transaction.py | 20 +- stripe/terminal/_location.py | 2 +- stripe/terminal/_location_service.py | 2 +- .../treasury/_financial_account_features.py | 6 +- 61 files changed, 1384 insertions(+), 215 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7ab08411d..9fc97dcb2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1347 \ No newline at end of file +v1399 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 8fa660038..7ecb932a8 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -792,7 +792,7 @@ class Error(StripeObject): """ current_deadline: Optional[int] """ - Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning. + Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning. """ currently_due: Optional[List[str]] """ @@ -1362,7 +1362,7 @@ class CreateParams(RequestOptions): """ groups: NotRequired["Account.CreateParamsGroups"] """ - A hash of account group type to tokens. These are account groups this account should be added to + A hash of account group type to tokens. These are account groups this account should be added to. """ individual: NotRequired["Account.CreateParamsIndividual"] """ diff --git a/stripe/_account_service.py b/stripe/_account_service.py index 9d973845c..7a8580967 100644 --- a/stripe/_account_service.py +++ b/stripe/_account_service.py @@ -89,7 +89,7 @@ class CreateParams(TypedDict): """ groups: NotRequired["AccountService.CreateParamsGroups"] """ - A hash of account group type to tokens. These are account groups this account should be added to + A hash of account group type to tokens. These are account groups this account should be added to. """ individual: NotRequired["AccountService.CreateParamsIndividual"] """ @@ -1861,7 +1861,7 @@ class UpdateParams(TypedDict): """ groups: NotRequired["AccountService.UpdateParamsGroups"] """ - A hash of account group type to tokens. These are account groups this account should be added to + A hash of account group type to tokens. These are account groups this account should be added to. """ individual: NotRequired["AccountService.UpdateParamsIndividual"] """ diff --git a/stripe/_account_session.py b/stripe/_account_session.py index 74229cb25..abf90e204 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -25,7 +25,7 @@ class AccountManagement(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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 """ @@ -43,7 +43,7 @@ class AccountOnboarding(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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 """ @@ -61,7 +61,7 @@ class Balances(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: bool """ @@ -102,7 +102,7 @@ class NotificationBanner(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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 """ @@ -172,7 +172,7 @@ class Payouts(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: bool """ @@ -347,7 +347,7 @@ class CreateParamsComponentsAccountManagement(TypedDict): class CreateParamsComponentsAccountManagementFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -369,7 +369,7 @@ class CreateParamsComponentsAccountOnboarding(TypedDict): class CreateParamsComponentsAccountOnboardingFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -391,7 +391,7 @@ class CreateParamsComponentsBalances(TypedDict): class CreateParamsComponentsBalancesFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: NotRequired[bool] """ @@ -440,7 +440,7 @@ class CreateParamsComponentsNotificationBanner(TypedDict): class CreateParamsComponentsNotificationBannerFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -522,7 +522,7 @@ class CreateParamsComponentsPayouts(TypedDict): class CreateParamsComponentsPayoutsFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: NotRequired[bool] """ diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index fbdf22315..6304ddad2 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -105,7 +105,7 @@ class CreateParamsComponentsAccountManagement(TypedDict): class CreateParamsComponentsAccountManagementFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -127,7 +127,7 @@ class CreateParamsComponentsAccountOnboarding(TypedDict): class CreateParamsComponentsAccountOnboardingFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -149,7 +149,7 @@ class CreateParamsComponentsBalances(TypedDict): class CreateParamsComponentsBalancesFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: NotRequired[bool] """ @@ -198,7 +198,7 @@ class CreateParamsComponentsNotificationBanner(TypedDict): class CreateParamsComponentsNotificationBannerFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -280,7 +280,7 @@ class CreateParamsComponentsPayouts(TypedDict): class CreateParamsComponentsPayoutsFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: NotRequired[bool] """ diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 4f7ee9878..7d2801e63 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2024-11-20.acacia" + CURRENT = "2024-12-18.acacia" diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py index efc7ab96e..35712d5ab 100644 --- a/stripe/_balance_transaction.py +++ b/stripe/_balance_transaction.py @@ -104,7 +104,7 @@ class ListParams(RequestOptions): """ type: NotRequired[str] """ - Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. + Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. """ class ListParamsCreated(TypedDict): @@ -236,6 +236,8 @@ class RetrieveParams(RequestOptions): "payout", "payout_cancel", "payout_failure", + "payout_minimum_balance_hold", + "payout_minimum_balance_release", "refund", "refund_failure", "reserve_transaction", @@ -251,7 +253,7 @@ class RetrieveParams(RequestOptions): "transfer_refund", ] """ - Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. + Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. """ @classmethod diff --git a/stripe/_balance_transaction_service.py b/stripe/_balance_transaction_service.py index 06ec1abce..4f75e6359 100644 --- a/stripe/_balance_transaction_service.py +++ b/stripe/_balance_transaction_service.py @@ -45,7 +45,7 @@ class ListParams(TypedDict): """ type: NotRequired[str] """ - Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. + Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. """ class ListParamsCreated(TypedDict): diff --git a/stripe/_capability.py b/stripe/_capability.py index d83ba3b62..c4a565d9c 100644 --- a/stripe/_capability.py +++ b/stripe/_capability.py @@ -140,7 +140,7 @@ class Error(StripeObject): """ current_deadline: Optional[int] """ - Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning. + Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning. """ currently_due: List[str] """ diff --git a/stripe/_card.py b/stripe/_card.py index 631da0c36..d0c82957e 100644 --- a/stripe/_card.py +++ b/stripe/_card.py @@ -155,6 +155,10 @@ class DeleteParams(RequestOptions): """ String representing the object's type. Objects of the same type share the same value. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ status: Optional[str] """ For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated. diff --git a/stripe/_charge.py b/stripe/_charge.py index 971bcad33..d78d21c0f 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -151,6 +151,14 @@ class Rule(StripeObject): The predicate to evaluate the payment against. """ + network_advice_code: Optional[str] + """ + For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error. + """ + network_decline_code: Optional[str] + """ + For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + """ network_status: Optional[str] """ Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://stripe.com/docs/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder's statement. @@ -286,7 +294,42 @@ class Alma(StripeObject): pass class AmazonPay(StripeObject): - pass + 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`. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + exp_month: Optional[int] + """ + Two-digit number representing the card's expiration month. + """ + exp_year: Optional[int] + """ + Four-digit number representing the card's expiration year. + """ + funding: Optional[str] + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + last4: Optional[str] + """ + The last four digits of the card. + """ + + card: Optional[Card] + type: Optional[Literal["card"]] + """ + funding type of the underlying payment method. + """ + _inner_class_types = {"card": Card} + + funding: Optional[Funding] + _inner_class_types = {"funding": Funding} class AuBecsDebit(StripeObject): bsb_number: Optional[str] @@ -786,6 +829,10 @@ class ShippingAddress(StripeObject): If this card has network token credentials, this contains the details of the network token credentials. """ overcapture: Optional[Overcapture] + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. @@ -1545,7 +1592,42 @@ class Promptpay(StripeObject): """ class RevolutPay(StripeObject): - pass + 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`. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + exp_month: Optional[int] + """ + Two-digit number representing the card's expiration month. + """ + exp_year: Optional[int] + """ + Four-digit number representing the card's expiration year. + """ + funding: Optional[str] + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + last4: Optional[str] + """ + The last four digits of the card. + """ + + card: Optional[Card] + type: Optional[Literal["card"]] + """ + funding type of the underlying payment method. + """ + _inner_class_types = {"card": Card} + + funding: Optional[Funding] + _inner_class_types = {"funding": Funding} class SamsungPay(StripeObject): buyer_id: Optional[str] diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index b3cdc1aca..5f5269085 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -686,6 +686,10 @@ class ShippingAddress(StripeObject): """ Contains information about card networks that can be used to process the payment. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure_usage: Optional[ThreeDSecureUsage] """ Contains details on how this Card may be used for 3D Secure authentication. diff --git a/stripe/_customer.py b/stripe/_customer.py index 7381efdc7..a6ca7f639 100644 --- a/stripe/_customer.py +++ b/stripe/_customer.py @@ -514,14 +514,19 @@ class CreateParamsTaxIdDatum(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -529,6 +534,7 @@ class CreateParamsTaxIdDatum(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -544,6 +550,7 @@ class CreateParamsTaxIdDatum(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -555,12 +562,16 @@ class CreateParamsTaxIdDatum(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -568,6 +579,7 @@ class CreateParamsTaxIdDatum(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -580,12 +592,16 @@ class CreateParamsTaxIdDatum(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -593,9 +609,11 @@ class CreateParamsTaxIdDatum(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -625,14 +643,19 @@ class CreateTaxIdParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -640,6 +663,7 @@ class CreateTaxIdParams(RequestOptions): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -655,6 +679,7 @@ class CreateTaxIdParams(RequestOptions): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -666,12 +691,16 @@ class CreateTaxIdParams(RequestOptions): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -679,6 +708,7 @@ class CreateTaxIdParams(RequestOptions): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -691,12 +721,16 @@ class CreateTaxIdParams(RequestOptions): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -704,9 +738,11 @@ class CreateTaxIdParams(RequestOptions): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -1193,7 +1229,7 @@ class ModifyParamsTax(TypedDict): Literal["auto", "deferred", "immediately"] ] """ - A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`. + A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`. """ class ModifySourceParams(RequestOptions): diff --git a/stripe/_customer_service.py b/stripe/_customer_service.py index 472422454..f22d1ca92 100644 --- a/stripe/_customer_service.py +++ b/stripe/_customer_service.py @@ -276,14 +276,19 @@ class CreateParamsTaxIdDatum(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -291,6 +296,7 @@ class CreateParamsTaxIdDatum(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -306,6 +312,7 @@ class CreateParamsTaxIdDatum(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -317,12 +324,16 @@ class CreateParamsTaxIdDatum(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -330,6 +341,7 @@ class CreateParamsTaxIdDatum(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -342,12 +354,16 @@ class CreateParamsTaxIdDatum(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -355,9 +371,11 @@ class CreateParamsTaxIdDatum(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -665,7 +683,7 @@ class UpdateParamsTax(TypedDict): Literal["auto", "deferred", "immediately"] ] """ - A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`. + A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`. """ def delete( diff --git a/stripe/_customer_tax_id_service.py b/stripe/_customer_tax_id_service.py index 15cd2be0b..32e47e713 100644 --- a/stripe/_customer_tax_id_service.py +++ b/stripe/_customer_tax_id_service.py @@ -18,14 +18,19 @@ class CreateParams(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -33,6 +38,7 @@ class CreateParams(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -48,6 +54,7 @@ class CreateParams(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -59,12 +66,16 @@ class CreateParams(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -72,6 +83,7 @@ class CreateParams(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -84,12 +96,16 @@ class CreateParams(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -97,9 +113,11 @@ class CreateParams(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 8021dfb17..856194487 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -176,9 +176,17 @@ class ShippingAddress(StripeObject): "prior_undisputed_transactions": PriorUndisputedTransaction, } + class VisaCompliance(StripeObject): + fee_acknowledged: bool + """ + A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. + """ + visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] + visa_compliance: Optional[VisaCompliance] _inner_class_types = { "visa_compelling_evidence_3": VisaCompellingEvidence3, + "visa_compliance": VisaCompliance, } access_activity_log: Optional[str] @@ -314,9 +322,19 @@ class VisaCompellingEvidence3(StripeObject): Visa Compelling Evidence 3.0 eligibility status. """ + class VisaCompliance(StripeObject): + status: Literal[ + "fee_acknowledged", "requires_fee_acknowledgement" + ] + """ + Visa Compelling Evidence 3.0 eligibility status. + """ + visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] + visa_compliance: Optional[VisaCompliance] _inner_class_types = { "visa_compelling_evidence_3": VisaCompellingEvidence3, + "visa_compliance": VisaCompliance, } due_by: Optional[int] @@ -585,6 +603,12 @@ class ModifyParamsEvidenceEnhancedEvidence(TypedDict): """ Evidence provided for Visa Compelling Evidence 3.0 evidence submission. """ + visa_compliance: NotRequired[ + "Dispute.ModifyParamsEvidenceEnhancedEvidenceVisaCompliance" + ] + """ + Evidence provided for Visa Compliance evidence submission. + """ class ModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, @@ -738,6 +762,12 @@ class ModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputed State, county, province, or region. """ + class ModifyParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. + """ + class RetrieveParams(RequestOptions): expand: NotRequired[List[str]] """ diff --git a/stripe/_dispute_service.py b/stripe/_dispute_service.py index 97c4f7897..1bb1191c0 100644 --- a/stripe/_dispute_service.py +++ b/stripe/_dispute_service.py @@ -211,6 +211,12 @@ class UpdateParamsEvidenceEnhancedEvidence(TypedDict): """ Evidence provided for Visa Compelling Evidence 3.0 evidence submission. """ + visa_compliance: NotRequired[ + "DisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompliance" + ] + """ + Evidence provided for Visa Compliance evidence submission. + """ class UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, @@ -364,6 +370,12 @@ class UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputed State, county, province, or region. """ + class UpdateParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. + """ + def list( self, params: "DisputeService.ListParams" = {}, diff --git a/stripe/_funding_instructions.py b/stripe/_funding_instructions.py index d3ee23e43..adebafe34 100644 --- a/stripe/_funding_instructions.py +++ b/stripe/_funding_instructions.py @@ -101,10 +101,64 @@ class BankAddress(StripeObject): } class Iban(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account """ + bank_address: BankAddress bic: str """ The BIC/SWIFT code of the account. @@ -117,8 +171,65 @@ class Iban(StripeObject): """ The IBAN of the account. """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class SortCode(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account @@ -127,12 +238,75 @@ class SortCode(StripeObject): """ The account number """ + bank_address: BankAddress sort_code: str """ The six-digit sort code """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class Spei(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress + account_holder_name: str + """ + The account holder name + """ + bank_address: BankAddress bank_code: str """ The three-digit bank code @@ -145,6 +319,10 @@ class Spei(StripeObject): """ The CLABE number """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class Swift(StripeObject): class AccountHolderAddress(StripeObject): @@ -227,6 +405,59 @@ class BankAddress(StripeObject): } class Zengin(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: Optional[str] """ The account holder name @@ -239,6 +470,7 @@ class Zengin(StripeObject): """ The bank account type. In Japan, this can only be `futsu` or `toza`. """ + bank_address: BankAddress bank_code: Optional[str] """ The bank code of the account @@ -255,6 +487,10 @@ class Zengin(StripeObject): """ The branch name of the account """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } aba: Optional[Aba] """ diff --git a/stripe/_invoice.py b/stripe/_invoice.py index d0b52558d..e4a5cdc68 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -111,6 +111,15 @@ class Liability(StripeObject): Type of the account referenced. """ + disabled_reason: Optional[ + Literal[ + "finalization_requires_location_inputs", + "finalization_system_error", + ] + ] + """ + If Stripe disabled automatic tax, this enum describes why. + """ enabled: bool """ Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices. @@ -213,14 +222,19 @@ class CustomerTaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -228,6 +242,7 @@ class CustomerTaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -243,6 +258,7 @@ class CustomerTaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -254,12 +270,16 @@ class CustomerTaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -267,6 +287,7 @@ class CustomerTaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -279,12 +300,16 @@ class CustomerTaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -293,9 +318,11 @@ class CustomerTaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` """ value: Optional[str] """ @@ -518,6 +545,14 @@ class LastFinalizationError(StripeObject): """ A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. """ + network_advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + """ + network_decline_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + """ param: Optional[str] """ If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. @@ -1478,7 +1513,7 @@ class CreateParamsPaymentSettings(TypedDict): "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ - The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration """ class CreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): @@ -2092,14 +2127,19 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -2107,6 +2147,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -2122,6 +2163,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -2133,12 +2175,16 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -2146,6 +2192,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -2158,12 +2205,16 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -2171,9 +2222,11 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -2771,7 +2824,7 @@ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -3183,7 +3236,7 @@ class ModifyParamsPaymentSettings(TypedDict): "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ - The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration """ class ModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): @@ -3949,14 +4002,19 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -3964,6 +4022,7 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -3979,6 +4038,7 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -3990,12 +4050,16 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -4003,6 +4067,7 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -4015,12 +4080,16 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -4028,9 +4097,11 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -4628,7 +4699,7 @@ class UpcomingLinesParamsSubscriptionDetailsItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -4742,7 +4813,7 @@ class UpcomingLinesParamsSubscriptionItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -5091,14 +5162,19 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -5106,6 +5182,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -5121,6 +5198,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -5132,12 +5210,16 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -5145,6 +5227,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -5157,12 +5240,16 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -5170,9 +5257,11 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -5754,7 +5843,7 @@ class UpcomingParamsSubscriptionDetailsItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -5866,7 +5955,7 @@ class UpcomingParamsSubscriptionItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 4825ff4ba..be5014dd9 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -452,7 +452,7 @@ class CreateParamsPaymentSettings(TypedDict): "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ - The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration """ class CreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): @@ -1072,14 +1072,19 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -1087,6 +1092,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -1102,6 +1108,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -1113,12 +1120,16 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -1126,6 +1137,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -1138,12 +1150,16 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -1151,9 +1167,11 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -1755,7 +1773,7 @@ class CreatePreviewParamsSubscriptionDetailsItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -2298,14 +2316,19 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -2313,6 +2336,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -2328,6 +2352,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -2339,12 +2364,16 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -2352,6 +2381,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -2364,12 +2394,16 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -2377,9 +2411,11 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -2965,7 +3001,7 @@ class UpcomingParamsSubscriptionDetailsItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -3075,7 +3111,7 @@ class UpcomingParamsSubscriptionItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -3588,7 +3624,7 @@ class UpdateParamsPaymentSettings(TypedDict): "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ - The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration """ class UpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index a4b9338d5..d9039103d 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -279,14 +279,19 @@ class ListParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -294,6 +299,7 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -309,6 +315,7 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -320,12 +327,16 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -333,6 +344,7 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -345,12 +357,16 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -358,9 +374,11 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -952,7 +970,7 @@ class ListParamsSubscriptionDetailsItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -1062,7 +1080,7 @@ class ListParamsSubscriptionItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index c0bf5a297..209d363be 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -284,6 +284,14 @@ class LastPaymentError(StripeObject): """ A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. """ + network_advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + """ + network_decline_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + """ param: Optional[str] """ If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. @@ -511,10 +519,64 @@ class BankAddress(StripeObject): } class Iban(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account """ + bank_address: BankAddress bic: str """ The BIC/SWIFT code of the account. @@ -527,8 +589,65 @@ class Iban(StripeObject): """ The IBAN of the account. """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class SortCode(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account @@ -537,12 +656,75 @@ class SortCode(StripeObject): """ The account number """ + bank_address: BankAddress sort_code: str """ The six-digit sort code """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class Spei(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress + account_holder_name: str + """ + The account holder name + """ + bank_address: BankAddress bank_code: str """ The three-digit bank code @@ -555,6 +737,10 @@ class Spei(StripeObject): """ The CLABE number """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class Swift(StripeObject): class AccountHolderAddress(StripeObject): @@ -637,6 +823,59 @@ class BankAddress(StripeObject): } class Zengin(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: Optional[str] """ The account holder name @@ -649,6 +888,7 @@ class Zengin(StripeObject): """ The bank account type. In Japan, this can only be `futsu` or `toza`. """ + bank_address: BankAddress bank_code: Optional[str] """ The bank code of the account @@ -665,6 +905,10 @@ class Zengin(StripeObject): """ The branch name of the account """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } aba: Optional[Aba] """ @@ -1225,7 +1469,10 @@ class AuBecsDebit(StripeObject): class BacsDebit(StripeObject): class MandateOptions(StripeObject): - pass + reference_prefix: Optional[str] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ mandate_options: Optional[MandateOptions] setup_future_usage: Optional[ @@ -1883,7 +2130,10 @@ class SamsungPay(StripeObject): class SepaDebit(StripeObject): class MandateOptions(StripeObject): - pass + reference_prefix: Optional[str] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ mandate_options: Optional[MandateOptions] setup_future_usage: Optional[ @@ -1921,7 +2171,7 @@ class Sofort(StripeObject): class Swish(StripeObject): reference: Optional[str] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: Optional[Literal["none"]] """ @@ -3576,7 +3826,10 @@ class ConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class ConfirmParamsPaymentMethodOptionsBancontact(TypedDict): preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] @@ -4518,7 +4771,10 @@ class ConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class ConfirmParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ @@ -4545,7 +4801,7 @@ class ConfirmParamsPaymentMethodOptionsSofort(TypedDict): class ConfirmParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ @@ -6117,7 +6373,10 @@ class CreateParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsBancontact(TypedDict): preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] @@ -7059,7 +7318,10 @@ class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ @@ -7086,7 +7348,7 @@ class CreateParamsPaymentMethodOptionsSofort(TypedDict): class CreateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ @@ -8652,7 +8914,10 @@ class ModifyParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class ModifyParamsPaymentMethodOptionsBancontact(TypedDict): preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] @@ -9594,7 +9859,10 @@ class ModifyParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class ModifyParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ @@ -9621,7 +9889,7 @@ class ModifyParamsPaymentMethodOptionsSofort(TypedDict): class ModifyParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index b3d7a76b3..1a832f8bb 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -1391,7 +1391,10 @@ class ConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class ConfirmParamsPaymentMethodOptionsBancontact(TypedDict): preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] @@ -2333,7 +2336,10 @@ class ConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class ConfirmParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ @@ -2360,7 +2366,7 @@ class ConfirmParamsPaymentMethodOptionsSofort(TypedDict): class ConfirmParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ @@ -3962,7 +3968,10 @@ class CreateParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsBancontact(TypedDict): preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] @@ -4904,7 +4913,10 @@ class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ @@ -4931,7 +4943,7 @@ class CreateParamsPaymentMethodOptionsSofort(TypedDict): class CreateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ @@ -6555,7 +6567,10 @@ class UpdateParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class UpdateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class UpdateParamsPaymentMethodOptionsBancontact(TypedDict): preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] @@ -7497,7 +7512,10 @@ class UpdateParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class UpdateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class UpdateParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ @@ -7524,7 +7542,7 @@ class UpdateParamsPaymentMethodOptionsSofort(TypedDict): class UpdateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 69e806528..3b706d597 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -892,7 +892,9 @@ class CreateParamsAfterCompletionRedirect(TypedDict): class CreateParamsAutomaticTax(TypedDict): enabled: bool """ - If `true`, tax will be calculated automatically using the customer's location. + Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + + Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation. """ liability: NotRequired["PaymentLink.CreateParamsAutomaticTaxLiability"] """ @@ -1750,7 +1752,9 @@ class ModifyParamsAfterCompletionRedirect(TypedDict): class ModifyParamsAutomaticTax(TypedDict): enabled: bool """ - If `true`, tax will be calculated automatically using the customer's location. + Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + + Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation. """ liability: NotRequired["PaymentLink.ModifyParamsAutomaticTaxLiability"] """ @@ -2295,6 +2299,10 @@ class ModifyParamsSubscriptionData(TypedDict): """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values. """ + trial_period_days: NotRequired["Literal['']|int"] + """ + Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1. + """ trial_settings: NotRequired[ "Literal['']|PaymentLink.ModifyParamsSubscriptionDataTrialSettings" ] diff --git a/stripe/_payment_link_service.py b/stripe/_payment_link_service.py index a1d592b29..315c99835 100644 --- a/stripe/_payment_link_service.py +++ b/stripe/_payment_link_service.py @@ -237,7 +237,9 @@ class CreateParamsAfterCompletionRedirect(TypedDict): class CreateParamsAutomaticTax(TypedDict): enabled: bool """ - If `true`, tax will be calculated automatically using the customer's location. + Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + + Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation. """ liability: NotRequired[ "PaymentLinkService.CreateParamsAutomaticTaxLiability" @@ -1093,7 +1095,9 @@ class UpdateParamsAfterCompletionRedirect(TypedDict): class UpdateParamsAutomaticTax(TypedDict): enabled: bool """ - If `true`, tax will be calculated automatically using the customer's location. + Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + + Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation. """ liability: NotRequired[ "PaymentLinkService.UpdateParamsAutomaticTaxLiability" @@ -1646,6 +1650,10 @@ class UpdateParamsSubscriptionData(TypedDict): """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values. """ + trial_period_days: NotRequired["Literal['']|int"] + """ + Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1. + """ trial_settings: NotRequired[ "Literal['']|PaymentLinkService.UpdateParamsSubscriptionDataTrialSettings" ] diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 17861d3e0..f78c1fae1 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -643,6 +643,10 @@ class ShippingAddress(StripeObject): """ Contains information about card networks that can be used to process the payment. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure_usage: Optional[ThreeDSecureUsage] """ Contains details on how this Card may be used for 3D Secure authentication. diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index da290bab4..5f7a6e6d2 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -630,6 +630,14 @@ class SetupError(StripeObject): """ A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. """ + network_advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + """ + network_decline_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + """ param: Optional[str] """ If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index 11a77a371..8abbaccd7 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -269,6 +269,14 @@ class LastSetupError(StripeObject): """ A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. """ + network_advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + """ + network_decline_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + """ param: Optional[str] """ If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. @@ -464,7 +472,10 @@ class AmazonPay(StripeObject): class BacsDebit(StripeObject): class MandateOptions(StripeObject): - pass + reference_prefix: Optional[str] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ mandate_options: Optional[MandateOptions] _inner_class_types = {"mandate_options": MandateOptions} @@ -561,7 +572,10 @@ class Paypal(StripeObject): class SepaDebit(StripeObject): class MandateOptions(StripeObject): - pass + reference_prefix: Optional[str] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ mandate_options: Optional[MandateOptions] _inner_class_types = {"mandate_options": MandateOptions} @@ -1508,7 +1522,10 @@ class ConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ @@ -1699,7 +1716,10 @@ class ConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): financial_connections: NotRequired[ @@ -2702,7 +2722,10 @@ class CreateParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ @@ -2893,7 +2916,10 @@ class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): financial_connections: NotRequired[ @@ -3863,7 +3889,10 @@ class ModifyParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class ModifyParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ @@ -4054,7 +4083,10 @@ class ModifyParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class ModifyParamsPaymentMethodOptionsUsBankAccount(TypedDict): financial_connections: NotRequired[ diff --git a/stripe/_setup_intent_service.py b/stripe/_setup_intent_service.py index cffbc4818..4423e44b1 100644 --- a/stripe/_setup_intent_service.py +++ b/stripe/_setup_intent_service.py @@ -922,7 +922,10 @@ class ConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ @@ -1113,7 +1116,10 @@ class ConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class ConfirmParamsPaymentMethodOptionsUsBankAccount(TypedDict): financial_connections: NotRequired[ @@ -2154,7 +2160,10 @@ class CreateParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ @@ -2345,7 +2354,10 @@ class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): financial_connections: NotRequired[ @@ -3363,7 +3375,10 @@ class UpdateParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class UpdateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class UpdateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ @@ -3554,7 +3569,10 @@ class UpdateParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class UpdateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class UpdateParamsPaymentMethodOptionsUsBankAccount(TypedDict): financial_connections: NotRequired[ diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 9cf48a0ee..6d51e76d4 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -74,6 +74,10 @@ class Liability(StripeObject): Type of the account referenced. """ + disabled_reason: Optional[Literal["requires_location_inputs"]] + """ + If Stripe disabled automatic tax, this enum describes why. + """ enabled: bool """ Whether Stripe automatically computes tax on this subscription. @@ -931,7 +935,7 @@ class CreateParamsPaymentSettings(TypedDict): "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ - The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration """ save_default_payment_method: NotRequired[ Literal["off", "on_subscription"] @@ -1648,7 +1652,7 @@ class ModifyParamsItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -1768,7 +1772,7 @@ class ModifyParamsPaymentSettings(TypedDict): "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ - The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration """ save_default_payment_method: NotRequired[ Literal["off", "on_subscription"] diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index f241ad1b5..295fa204e 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -70,6 +70,10 @@ class Liability(StripeObject): Type of the account referenced. """ + disabled_reason: Optional[Literal["requires_location_inputs"]] + """ + If Stripe disabled automatic tax, this enum describes why. + """ enabled: bool """ Whether Stripe automatically computes tax on invoices created during this phase. @@ -210,6 +214,10 @@ class Liability(StripeObject): Type of the account referenced. """ + disabled_reason: Optional[Literal["requires_location_inputs"]] + """ + If Stripe disabled automatic tax, this enum describes why. + """ enabled: bool """ Whether Stripe automatically computes tax on invoices created during this phase. diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 9c966572a..8cf6732ce 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -490,7 +490,7 @@ class CreateParamsPaymentSettings(TypedDict): "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ - The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration """ save_default_payment_method: NotRequired[ Literal["off", "on_subscription"] @@ -1261,7 +1261,7 @@ class UpdateParamsItem(TypedDict): """ clear_usage: NotRequired[bool] """ - Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ deleted: NotRequired[bool] """ @@ -1383,7 +1383,7 @@ class UpdateParamsPaymentSettings(TypedDict): "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ - The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration """ save_default_payment_method: NotRequired[ Literal["off", "on_subscription"] diff --git a/stripe/_tax_id.py b/stripe/_tax_id.py index be1de50d7..8b1d5b5bc 100644 --- a/stripe/_tax_id.py +++ b/stripe/_tax_id.py @@ -81,14 +81,19 @@ class CreateParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -96,6 +101,7 @@ class CreateParams(RequestOptions): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -111,6 +117,7 @@ class CreateParams(RequestOptions): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -122,12 +129,16 @@ class CreateParams(RequestOptions): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -135,6 +146,7 @@ class CreateParams(RequestOptions): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -147,12 +159,16 @@ class CreateParams(RequestOptions): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -160,9 +176,11 @@ class CreateParams(RequestOptions): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -259,14 +277,19 @@ class RetrieveParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -274,6 +297,7 @@ class RetrieveParams(RequestOptions): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -289,6 +313,7 @@ class RetrieveParams(RequestOptions): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -300,12 +325,16 @@ class RetrieveParams(RequestOptions): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -313,6 +342,7 @@ class RetrieveParams(RequestOptions): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -325,12 +355,16 @@ class RetrieveParams(RequestOptions): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -339,9 +373,11 @@ class RetrieveParams(RequestOptions): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown` """ value: str """ diff --git a/stripe/_tax_id_service.py b/stripe/_tax_id_service.py index 43e88187f..1556d8b96 100644 --- a/stripe/_tax_id_service.py +++ b/stripe/_tax_id_service.py @@ -22,14 +22,19 @@ class CreateParams(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -37,6 +42,7 @@ class CreateParams(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -52,6 +58,7 @@ class CreateParams(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -63,12 +70,16 @@ class CreateParams(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -76,6 +87,7 @@ class CreateParams(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -88,12 +100,16 @@ class CreateParams(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -101,9 +117,11 @@ class CreateParams(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index 614ee7c0f..91da9ae10 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -137,6 +137,7 @@ class CreateParams(RequestOptions): "2024-09-30.acacia", "2024-10-28.acacia", "2024-11-20.acacia", + "2024-12-18.acacia", ] ] """ diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 597e5a698..5df1e51fe 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -118,6 +118,7 @@ class CreateParams(TypedDict): "2024-09-30.acacia", "2024-10-28.acacia", "2024-11-20.acacia", + "2024-12-18.acacia", ] ] """ diff --git a/stripe/billing/_credit_balance_summary.py b/stripe/billing/_credit_balance_summary.py index ade19dcef..fe701a30b 100644 --- a/stripe/billing/_credit_balance_summary.py +++ b/stripe/billing/_credit_balance_summary.py @@ -109,7 +109,7 @@ class RetrieveParamsFilter(TypedDict): class RetrieveParamsFilterApplicabilityScope(TypedDict): price_type: Literal["metered"] """ - The price type for which credit grants can apply. We currently only support the `metered` price type. + The price type that credit grants can apply to. We currently only support the `metered` price type. """ balances: List[Balance] @@ -134,7 +134,7 @@ def retrieve( cls, **params: Unpack["CreditBalanceSummary.RetrieveParams"] ) -> "CreditBalanceSummary": """ - Retrieves the credit balance summary for a customer + Retrieves the credit balance summary for a customer. """ instance = cls(None, **params) instance.refresh() @@ -145,7 +145,7 @@ async def retrieve_async( cls, **params: Unpack["CreditBalanceSummary.RetrieveParams"] ) -> "CreditBalanceSummary": """ - Retrieves the credit balance summary for a customer + Retrieves the credit balance summary for a customer. """ instance = cls(None, **params) await instance.refresh_async() diff --git a/stripe/billing/_credit_balance_summary_service.py b/stripe/billing/_credit_balance_summary_service.py index b31f13e46..68d6a09b5 100644 --- a/stripe/billing/_credit_balance_summary_service.py +++ b/stripe/billing/_credit_balance_summary_service.py @@ -41,7 +41,7 @@ class RetrieveParamsFilter(TypedDict): class RetrieveParamsFilterApplicabilityScope(TypedDict): price_type: Literal["metered"] """ - The price type for which credit grants can apply. We currently only support the `metered` price type. + The price type that credit grants can apply to. We currently only support the `metered` price type. """ def retrieve( @@ -50,7 +50,7 @@ def retrieve( options: RequestOptions = {}, ) -> CreditBalanceSummary: """ - Retrieves the credit balance summary for a customer + Retrieves the credit balance summary for a customer. """ return cast( CreditBalanceSummary, @@ -69,7 +69,7 @@ async def retrieve_async( options: RequestOptions = {}, ) -> CreditBalanceSummary: """ - Retrieves the credit balance summary for a customer + Retrieves the credit balance summary for a customer. """ return cast( CreditBalanceSummary, diff --git a/stripe/billing/_credit_balance_transaction.py b/stripe/billing/_credit_balance_transaction.py index 712bd7f14..630cb3693 100644 --- a/stripe/billing/_credit_balance_transaction.py +++ b/stripe/billing/_credit_balance_transaction.py @@ -47,12 +47,31 @@ class Monetary(StripeObject): """ _inner_class_types = {"monetary": Monetary} + class CreditsApplicationInvoiceVoided(StripeObject): + invoice: ExpandableField["Invoice"] + """ + The invoice to which the reinstated billing credits were originally applied. + """ + invoice_line_item: str + """ + The invoice line item to which the reinstated billing credits were originally applied. + """ + amount: Amount - type: Literal["credits_granted"] + credits_application_invoice_voided: Optional[ + CreditsApplicationInvoiceVoided + ] + """ + Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`. + """ + type: Literal["credits_application_invoice_voided", "credits_granted"] """ The type of credit transaction. """ - _inner_class_types = {"amount": Amount} + _inner_class_types = { + "amount": Amount, + "credits_application_invoice_voided": CreditsApplicationInvoiceVoided, + } class Debit(StripeObject): class Amount(StripeObject): @@ -178,7 +197,7 @@ def list( cls, **params: Unpack["CreditBalanceTransaction.ListParams"] ) -> ListObject["CreditBalanceTransaction"]: """ - Retrieve a list of credit balance transactions + Retrieve a list of credit balance transactions. """ result = cls._static_request( "get", @@ -198,7 +217,7 @@ async def list_async( cls, **params: Unpack["CreditBalanceTransaction.ListParams"] ) -> ListObject["CreditBalanceTransaction"]: """ - Retrieve a list of credit balance transactions + Retrieve a list of credit balance transactions. """ result = await cls._static_request_async( "get", @@ -220,7 +239,7 @@ def retrieve( **params: Unpack["CreditBalanceTransaction.RetrieveParams"], ) -> "CreditBalanceTransaction": """ - Retrieves a credit balance transaction + Retrieves a credit balance transaction. """ instance = cls(id, **params) instance.refresh() @@ -233,7 +252,7 @@ async def retrieve_async( **params: Unpack["CreditBalanceTransaction.RetrieveParams"], ) -> "CreditBalanceTransaction": """ - Retrieves a credit balance transaction + Retrieves a credit balance transaction. """ instance = cls(id, **params) await instance.refresh_async() diff --git a/stripe/billing/_credit_balance_transaction_service.py b/stripe/billing/_credit_balance_transaction_service.py index 102258473..4aa061ffb 100644 --- a/stripe/billing/_credit_balance_transaction_service.py +++ b/stripe/billing/_credit_balance_transaction_service.py @@ -48,7 +48,7 @@ def list( options: RequestOptions = {}, ) -> ListObject[CreditBalanceTransaction]: """ - Retrieve a list of credit balance transactions + Retrieve a list of credit balance transactions. """ return cast( ListObject[CreditBalanceTransaction], @@ -67,7 +67,7 @@ async def list_async( options: RequestOptions = {}, ) -> ListObject[CreditBalanceTransaction]: """ - Retrieve a list of credit balance transactions + Retrieve a list of credit balance transactions. """ return cast( ListObject[CreditBalanceTransaction], @@ -87,7 +87,7 @@ def retrieve( options: RequestOptions = {}, ) -> CreditBalanceTransaction: """ - Retrieves a credit balance transaction + Retrieves a credit balance transaction. """ return cast( CreditBalanceTransaction, @@ -109,7 +109,7 @@ async def retrieve_async( options: RequestOptions = {}, ) -> CreditBalanceTransaction: """ - Retrieves a credit balance transaction + Retrieves a credit balance transaction. """ return cast( CreditBalanceTransaction, diff --git a/stripe/billing/_credit_grant.py b/stripe/billing/_credit_grant.py index 090a172f4..577982f79 100644 --- a/stripe/billing/_credit_grant.py +++ b/stripe/billing/_credit_grant.py @@ -62,7 +62,7 @@ class ApplicabilityConfig(StripeObject): class Scope(StripeObject): price_type: Literal["metered"] """ - The price type for which credit grants can apply. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. + The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. """ scope: Scope @@ -87,7 +87,7 @@ class CreateParams(RequestOptions): """ effective_at: NotRequired[int] """ - The time when the billing credits become effective—when they're eligible for use. Defaults to the current timestamp if not specified. + The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified. """ expand: NotRequired[List[str]] """ @@ -95,11 +95,11 @@ class CreateParams(RequestOptions): """ expires_at: NotRequired[int] """ - The time when the billing credits will expire. If not specified, the billing credits don't expire. + The time when the billing credits expire. If not specified, the billing credits don't expire. """ metadata: NotRequired[Dict[str, str]] """ - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. + Set of key-value pairs that you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format. """ name: NotRequired[str] """ @@ -135,7 +135,7 @@ class CreateParamsApplicabilityConfig(TypedDict): class CreateParamsApplicabilityConfigScope(TypedDict): price_type: Literal["metered"] """ - The price type for which credit grants can apply. We currently only support the `metered` price type. + The price type that credit grants can apply to. We currently only support the `metered` price type. """ class ExpireParams(RequestOptions): @@ -177,7 +177,7 @@ class ModifyParams(RequestOptions): """ metadata: NotRequired[Dict[str, str]] """ - Set of key-value pairs you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. + Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format. """ class RetrieveParams(RequestOptions): @@ -208,7 +208,7 @@ class VoidGrantParams(RequestOptions): """ effective_at: Optional[int] """ - The time when the billing credits become effective—when they're eligible for use. + The time when the billing credits become effective-when they're eligible for use. """ expires_at: Optional[int] """ @@ -252,7 +252,7 @@ def create( cls, **params: Unpack["CreditGrant.CreateParams"] ) -> "CreditGrant": """ - Creates a credit grant + Creates a credit grant. """ return cast( "CreditGrant", @@ -268,7 +268,7 @@ async def create_async( cls, **params: Unpack["CreditGrant.CreateParams"] ) -> "CreditGrant": """ - Creates a credit grant + Creates a credit grant. """ return cast( "CreditGrant", @@ -434,7 +434,7 @@ def modify( cls, id: str, **params: Unpack["CreditGrant.ModifyParams"] ) -> "CreditGrant": """ - Updates a credit grant + Updates a credit grant. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( @@ -451,7 +451,7 @@ async def modify_async( cls, id: str, **params: Unpack["CreditGrant.ModifyParams"] ) -> "CreditGrant": """ - Updates a credit grant + Updates a credit grant. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( @@ -468,7 +468,7 @@ def retrieve( cls, id: str, **params: Unpack["CreditGrant.RetrieveParams"] ) -> "CreditGrant": """ - Retrieves a credit grant + Retrieves a credit grant. """ instance = cls(id, **params) instance.refresh() @@ -479,7 +479,7 @@ async def retrieve_async( cls, id: str, **params: Unpack["CreditGrant.RetrieveParams"] ) -> "CreditGrant": """ - Retrieves a credit grant + Retrieves a credit grant. """ instance = cls(id, **params) await instance.refresh_async() diff --git a/stripe/billing/_credit_grant_service.py b/stripe/billing/_credit_grant_service.py index 54e6f8f3f..f1a1ced5a 100644 --- a/stripe/billing/_credit_grant_service.py +++ b/stripe/billing/_credit_grant_service.py @@ -31,7 +31,7 @@ class CreateParams(TypedDict): """ effective_at: NotRequired[int] """ - The time when the billing credits become effective—when they're eligible for use. Defaults to the current timestamp if not specified. + The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified. """ expand: NotRequired[List[str]] """ @@ -39,11 +39,11 @@ class CreateParams(TypedDict): """ expires_at: NotRequired[int] """ - The time when the billing credits will expire. If not specified, the billing credits don't expire. + The time when the billing credits expire. If not specified, the billing credits don't expire. """ metadata: NotRequired[Dict[str, str]] """ - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. + Set of key-value pairs that you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format. """ name: NotRequired[str] """ @@ -79,7 +79,7 @@ class CreateParamsApplicabilityConfig(TypedDict): class CreateParamsApplicabilityConfigScope(TypedDict): price_type: Literal["metered"] """ - The price type for which credit grants can apply. We currently only support the `metered` price type. + The price type that credit grants can apply to. We currently only support the `metered` price type. """ class ExpireParams(TypedDict): @@ -127,7 +127,7 @@ class UpdateParams(TypedDict): """ metadata: NotRequired[Dict[str, str]] """ - Set of key-value pairs you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. + Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format. """ class VoidGrantParams(TypedDict): @@ -180,7 +180,7 @@ def create( options: RequestOptions = {}, ) -> CreditGrant: """ - Creates a credit grant + Creates a credit grant. """ return cast( CreditGrant, @@ -199,7 +199,7 @@ async def create_async( options: RequestOptions = {}, ) -> CreditGrant: """ - Creates a credit grant + Creates a credit grant. """ return cast( CreditGrant, @@ -219,7 +219,7 @@ def retrieve( options: RequestOptions = {}, ) -> CreditGrant: """ - Retrieves a credit grant + Retrieves a credit grant. """ return cast( CreditGrant, @@ -239,7 +239,7 @@ async def retrieve_async( options: RequestOptions = {}, ) -> CreditGrant: """ - Retrieves a credit grant + Retrieves a credit grant. """ return cast( CreditGrant, @@ -259,7 +259,7 @@ def update( options: RequestOptions = {}, ) -> CreditGrant: """ - Updates a credit grant + Updates a credit grant. """ return cast( CreditGrant, @@ -279,7 +279,7 @@ async def update_async( options: RequestOptions = {}, ) -> CreditGrant: """ - Updates a credit grant + Updates a credit grant. """ return cast( CreditGrant, diff --git a/stripe/billing/_meter.py b/stripe/billing/_meter.py index bf7e3ec16..813325857 100644 --- a/stripe/billing/_meter.py +++ b/stripe/billing/_meter.py @@ -28,7 +28,7 @@ class Meter( UpdateableAPIResource["Meter"], ): """ - A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make. + Meters specify how to aggregate meter events over a billing period. Meter events represent the actions that customers take in your system. Meters attach to prices and form the basis of the bill. Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based) """ @@ -74,7 +74,7 @@ class CreateParams(RequestOptions): """ display_name: str """ - The meter's name. + The meter's name. Not visible to the customer. """ event_name: str """ @@ -96,7 +96,7 @@ class CreateParams(RequestOptions): class CreateParamsCustomerMapping(TypedDict): event_payload_key: str """ - The key in the usage event payload to use for mapping the event to a customer. + The key in the meter event payload to use for mapping the event to a customer. """ type: Literal["by_id"] """ @@ -180,7 +180,7 @@ class ListParams(RequestOptions): class ModifyParams(RequestOptions): display_name: NotRequired[str] """ - The meter's name. + The meter's name. Not visible to the customer. """ expand: NotRequired[List[str]] """ @@ -243,7 +243,7 @@ class RetrieveParams(RequestOptions): @classmethod def create(cls, **params: Unpack["Meter.CreateParams"]) -> "Meter": """ - Creates a billing meter + Creates a billing meter. """ return cast( "Meter", @@ -259,7 +259,7 @@ async def create_async( cls, **params: Unpack["Meter.CreateParams"] ) -> "Meter": """ - Creates a billing meter + Creates a billing meter. """ return cast( "Meter", @@ -275,7 +275,7 @@ def _cls_deactivate( cls, id: str, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ return cast( "Meter", @@ -294,7 +294,7 @@ def deactivate( id: str, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ ... @@ -303,7 +303,7 @@ def deactivate( self, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ ... @@ -312,7 +312,7 @@ def deactivate( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ return cast( "Meter", @@ -330,7 +330,7 @@ async def _cls_deactivate_async( cls, id: str, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ return cast( "Meter", @@ -349,7 +349,7 @@ async def deactivate_async( id: str, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ ... @@ -358,7 +358,7 @@ async def deactivate_async( self, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ ... @@ -367,7 +367,7 @@ async def deactivate_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["Meter.DeactivateParams"] ) -> "Meter": """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ return cast( "Meter", @@ -423,7 +423,7 @@ def modify( cls, id: str, **params: Unpack["Meter.ModifyParams"] ) -> "Meter": """ - Updates a billing meter + Updates a billing meter. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( @@ -440,7 +440,7 @@ async def modify_async( cls, id: str, **params: Unpack["Meter.ModifyParams"] ) -> "Meter": """ - Updates a billing meter + Updates a billing meter. """ url = "%s/%s" % (cls.class_url(), sanitize_id(id)) return cast( @@ -457,7 +457,7 @@ def _cls_reactivate( cls, id: str, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ return cast( "Meter", @@ -476,7 +476,7 @@ def reactivate( id: str, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ ... @@ -485,7 +485,7 @@ def reactivate( self, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ ... @@ -494,7 +494,7 @@ def reactivate( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ return cast( "Meter", @@ -512,7 +512,7 @@ async def _cls_reactivate_async( cls, id: str, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ return cast( "Meter", @@ -531,7 +531,7 @@ async def reactivate_async( id: str, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ ... @@ -540,7 +540,7 @@ async def reactivate_async( self, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ ... @@ -549,7 +549,7 @@ async def reactivate_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["Meter.ReactivateParams"] ) -> "Meter": """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ return cast( "Meter", @@ -567,7 +567,7 @@ def retrieve( cls, id: str, **params: Unpack["Meter.RetrieveParams"] ) -> "Meter": """ - Retrieves a billing meter given an ID + Retrieves a billing meter given an ID. """ instance = cls(id, **params) instance.refresh() @@ -578,7 +578,7 @@ async def retrieve_async( cls, id: str, **params: Unpack["Meter.RetrieveParams"] ) -> "Meter": """ - Retrieves a billing meter given an ID + Retrieves a billing meter given an ID. """ instance = cls(id, **params) await instance.refresh_async() diff --git a/stripe/billing/_meter_event.py b/stripe/billing/_meter_event.py index 88731e50e..428d66604 100644 --- a/stripe/billing/_meter_event.py +++ b/stripe/billing/_meter_event.py @@ -8,8 +8,7 @@ class MeterEvent(CreateableAPIResource["MeterEvent"]): """ - A billing meter event represents a customer's usage of a product. Meter events are used to bill a customer based on their usage. - Meter events are associated with billing meters, which define the shape of the event's payload and how those events are aggregated for billing. + Meter events represent actions that customers take in your system. You can use meter events to bill a customer based on their usage. Meter events are associated with billing meters, which define both the contents of the event's payload and how to aggregate those events. """ OBJECT_NAME: ClassVar[Literal["billing.meter_event"]] = ( @@ -27,7 +26,7 @@ class CreateParams(RequestOptions): """ identifier: NotRequired[str] """ - A unique identifier for the event. If not provided, one will be generated. We strongly advise using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. + A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. """ payload: Dict[str, str] """ @@ -72,7 +71,7 @@ def create( cls, **params: Unpack["MeterEvent.CreateParams"] ) -> "MeterEvent": """ - Creates a billing meter event + Creates a billing meter event. """ return cast( "MeterEvent", @@ -88,7 +87,7 @@ async def create_async( cls, **params: Unpack["MeterEvent.CreateParams"] ) -> "MeterEvent": """ - Creates a billing meter event + Creates a billing meter event. """ return cast( "MeterEvent", diff --git a/stripe/billing/_meter_event_adjustment.py b/stripe/billing/_meter_event_adjustment.py index 23f7ab0ac..0304e7c7f 100644 --- a/stripe/billing/_meter_event_adjustment.py +++ b/stripe/billing/_meter_event_adjustment.py @@ -76,7 +76,7 @@ def create( cls, **params: Unpack["MeterEventAdjustment.CreateParams"] ) -> "MeterEventAdjustment": """ - Creates a billing meter event adjustment + Creates a billing meter event adjustment. """ return cast( "MeterEventAdjustment", @@ -92,7 +92,7 @@ async def create_async( cls, **params: Unpack["MeterEventAdjustment.CreateParams"] ) -> "MeterEventAdjustment": """ - Creates a billing meter event adjustment + Creates a billing meter event adjustment. """ return cast( "MeterEventAdjustment", diff --git a/stripe/billing/_meter_event_adjustment_service.py b/stripe/billing/_meter_event_adjustment_service.py index 383b4a764..ea84b93f4 100644 --- a/stripe/billing/_meter_event_adjustment_service.py +++ b/stripe/billing/_meter_event_adjustment_service.py @@ -38,7 +38,7 @@ def create( options: RequestOptions = {}, ) -> MeterEventAdjustment: """ - Creates a billing meter event adjustment + Creates a billing meter event adjustment. """ return cast( MeterEventAdjustment, @@ -57,7 +57,7 @@ async def create_async( options: RequestOptions = {}, ) -> MeterEventAdjustment: """ - Creates a billing meter event adjustment + Creates a billing meter event adjustment. """ return cast( MeterEventAdjustment, diff --git a/stripe/billing/_meter_event_service.py b/stripe/billing/_meter_event_service.py index ce29abd3b..7970e0190 100644 --- a/stripe/billing/_meter_event_service.py +++ b/stripe/billing/_meter_event_service.py @@ -19,7 +19,7 @@ class CreateParams(TypedDict): """ identifier: NotRequired[str] """ - A unique identifier for the event. If not provided, one will be generated. We strongly advise using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. + A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. """ payload: Dict[str, str] """ @@ -36,7 +36,7 @@ def create( options: RequestOptions = {}, ) -> MeterEvent: """ - Creates a billing meter event + Creates a billing meter event. """ return cast( MeterEvent, @@ -55,7 +55,7 @@ async def create_async( options: RequestOptions = {}, ) -> MeterEvent: """ - Creates a billing meter event + Creates a billing meter event. """ return cast( MeterEvent, diff --git a/stripe/billing/_meter_service.py b/stripe/billing/_meter_service.py index aed7176e0..da236bebe 100644 --- a/stripe/billing/_meter_service.py +++ b/stripe/billing/_meter_service.py @@ -30,7 +30,7 @@ class CreateParams(TypedDict): """ display_name: str """ - The meter's name. + The meter's name. Not visible to the customer. """ event_name: str """ @@ -52,7 +52,7 @@ class CreateParams(TypedDict): class CreateParamsCustomerMapping(TypedDict): event_payload_key: str """ - The key in the usage event payload to use for mapping the event to a customer. + The key in the meter event payload to use for mapping the event to a customer. """ type: Literal["by_id"] """ @@ -114,7 +114,7 @@ class RetrieveParams(TypedDict): class UpdateParams(TypedDict): display_name: NotRequired[str] """ - The meter's name. + The meter's name. Not visible to the customer. """ expand: NotRequired[List[str]] """ @@ -163,7 +163,7 @@ def create( self, params: "MeterService.CreateParams", options: RequestOptions = {} ) -> Meter: """ - Creates a billing meter + Creates a billing meter. """ return cast( Meter, @@ -180,7 +180,7 @@ async def create_async( self, params: "MeterService.CreateParams", options: RequestOptions = {} ) -> Meter: """ - Creates a billing meter + Creates a billing meter. """ return cast( Meter, @@ -200,7 +200,7 @@ def retrieve( options: RequestOptions = {}, ) -> Meter: """ - Retrieves a billing meter given an ID + Retrieves a billing meter given an ID. """ return cast( Meter, @@ -220,7 +220,7 @@ async def retrieve_async( options: RequestOptions = {}, ) -> Meter: """ - Retrieves a billing meter given an ID + Retrieves a billing meter given an ID. """ return cast( Meter, @@ -240,7 +240,7 @@ def update( options: RequestOptions = {}, ) -> Meter: """ - Updates a billing meter + Updates a billing meter. """ return cast( Meter, @@ -260,7 +260,7 @@ async def update_async( options: RequestOptions = {}, ) -> Meter: """ - Updates a billing meter + Updates a billing meter. """ return cast( Meter, @@ -280,7 +280,7 @@ def deactivate( options: RequestOptions = {}, ) -> Meter: """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ return cast( Meter, @@ -302,7 +302,7 @@ async def deactivate_async( options: RequestOptions = {}, ) -> Meter: """ - Deactivates a billing meter + When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. """ return cast( Meter, @@ -324,7 +324,7 @@ def reactivate( options: RequestOptions = {}, ) -> Meter: """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ return cast( Meter, @@ -346,7 +346,7 @@ async def reactivate_async( options: RequestOptions = {}, ) -> Meter: """ - Reactivates a billing meter + When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. """ return cast( Meter, diff --git a/stripe/billing_portal/_configuration.py b/stripe/billing_portal/_configuration.py index f42349e68..d5470243c 100644 --- a/stripe/billing_portal/_configuration.py +++ b/stripe/billing_portal/_configuration.py @@ -160,7 +160,7 @@ class Condition(StripeObject): """ Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation. """ - schedule_at_period_end: Optional[ScheduleAtPeriodEnd] + schedule_at_period_end: ScheduleAtPeriodEnd _inner_class_types = { "products": Product, "schedule_at_period_end": ScheduleAtPeriodEnd, diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 60de97cca..d92d4bf06 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -346,14 +346,19 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -361,6 +366,7 @@ class TaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -376,6 +382,7 @@ class TaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -387,12 +394,16 @@ class TaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -400,6 +411,7 @@ class TaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -412,12 +424,16 @@ class TaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -426,9 +442,11 @@ class TaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` """ value: Optional[str] """ @@ -654,7 +672,10 @@ class AuBecsDebit(StripeObject): class BacsDebit(StripeObject): class MandateOptions(StripeObject): - pass + reference_prefix: Optional[str] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ mandate_options: Optional[MandateOptions] setup_future_usage: Optional[ @@ -1085,7 +1106,10 @@ class SamsungPay(StripeObject): class SepaDebit(StripeObject): class MandateOptions(StripeObject): - pass + reference_prefix: Optional[str] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ mandate_options: Optional[MandateOptions] setup_future_usage: Optional[ @@ -2089,7 +2113,9 @@ class CreateParamsAfterExpirationRecovery(TypedDict): class CreateParamsAutomaticTax(TypedDict): enabled: bool """ - Set to true to enable automatic taxes. + Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + + Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation. """ liability: NotRequired["Session.CreateParamsAutomaticTaxLiability"] """ @@ -2950,7 +2976,10 @@ class CreateParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsBancontact(TypedDict): setup_future_usage: NotRequired[Literal["none"]] @@ -3446,7 +3475,10 @@ class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsSofort(TypedDict): setup_future_usage: NotRequired[Literal["none"]] diff --git a/stripe/checkout/_session_service.py b/stripe/checkout/_session_service.py index 1d9abf9f3..754d44fd7 100644 --- a/stripe/checkout/_session_service.py +++ b/stripe/checkout/_session_service.py @@ -394,7 +394,9 @@ class CreateParamsAfterExpirationRecovery(TypedDict): class CreateParamsAutomaticTax(TypedDict): enabled: bool """ - Set to true to enable automatic taxes. + Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + + Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation. """ liability: NotRequired[ "SessionService.CreateParamsAutomaticTaxLiability" @@ -1297,7 +1299,10 @@ class CreateParamsPaymentMethodOptionsBacsDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsBacsDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsBancontact(TypedDict): setup_future_usage: NotRequired[Literal["none"]] @@ -1793,7 +1798,10 @@ class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict): """ class CreateParamsPaymentMethodOptionsSepaDebitMandateOptions(TypedDict): - pass + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + """ class CreateParamsPaymentMethodOptionsSofort(TypedDict): setup_future_usage: NotRequired[Literal["none"]] diff --git a/stripe/forwarding/_request.py b/stripe/forwarding/_request.py index 4fa54e14f..787704049 100644 --- a/stripe/forwarding/_request.py +++ b/stripe/forwarding/_request.py @@ -108,7 +108,11 @@ class CreateParams(RequestOptions): """ replacements: List[ Literal[ - "card_cvc", "card_expiry", "card_number", "cardholder_name" + "card_cvc", + "card_expiry", + "card_number", + "cardholder_name", + "request_signature", ] ] """ @@ -214,7 +218,13 @@ class RetrieveParams(RequestOptions): The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. """ replacements: List[ - Literal["card_cvc", "card_expiry", "card_number", "cardholder_name"] + Literal[ + "card_cvc", + "card_expiry", + "card_number", + "cardholder_name", + "request_signature", + ] ] """ The field kinds to be replaced in the forwarded request. diff --git a/stripe/forwarding/_request_service.py b/stripe/forwarding/_request_service.py index 7b95f680d..5460fcfc6 100644 --- a/stripe/forwarding/_request_service.py +++ b/stripe/forwarding/_request_service.py @@ -25,7 +25,11 @@ class CreateParams(TypedDict): """ replacements: List[ Literal[ - "card_cvc", "card_expiry", "card_number", "cardholder_name" + "card_cvc", + "card_expiry", + "card_number", + "cardholder_name", + "request_signature", ] ] """ diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index 20f1cf604..cc326c614 100644 --- a/stripe/issuing/_authorization.py +++ b/stripe/issuing/_authorization.py @@ -241,6 +241,10 @@ class MerchantData(StripeObject): """ State where the seller is located """ + tax_id: Optional[str] + """ + The seller's tax identification number. Currently populated for French merchants only. + """ terminal_id: Optional[str] """ An ID assigned by the seller to the location of the sale. diff --git a/stripe/issuing/_transaction.py b/stripe/issuing/_transaction.py index dbfde9e50..f8baaa07e 100644 --- a/stripe/issuing/_transaction.py +++ b/stripe/issuing/_transaction.py @@ -86,6 +86,10 @@ class MerchantData(StripeObject): """ State where the seller is located """ + tax_id: Optional[str] + """ + The seller's tax identification number. Currently populated for French merchants only. + """ terminal_id: Optional[str] """ An ID assigned by the seller to the location of the sale. diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py index 5e2759ff7..6ba29f14a 100644 --- a/stripe/tax/_calculation.py +++ b/stripe/tax/_calculation.py @@ -58,14 +58,19 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -73,6 +78,7 @@ class TaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -88,6 +94,7 @@ class TaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -99,12 +106,16 @@ class TaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -112,6 +123,7 @@ class TaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -124,12 +136,16 @@ class TaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -138,9 +154,11 @@ class TaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` """ value: str """ @@ -504,14 +522,19 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -519,6 +542,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -534,6 +558,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -545,12 +570,16 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -558,6 +587,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -570,12 +600,16 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -583,9 +617,11 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/tax/_calculation_service.py b/stripe/tax/_calculation_service.py index 3c26c11c5..81c39a26e 100644 --- a/stripe/tax/_calculation_service.py +++ b/stripe/tax/_calculation_service.py @@ -114,14 +114,19 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -129,6 +134,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -144,6 +150,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -155,12 +162,16 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -168,6 +179,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -180,12 +192,16 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -193,9 +209,11 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py index 3c363eb13..aa1c77f0c 100644 --- a/stripe/tax/_transaction.py +++ b/stripe/tax/_transaction.py @@ -58,14 +58,19 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -73,6 +78,7 @@ class TaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -88,6 +94,7 @@ class TaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -99,12 +106,16 @@ class TaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -112,6 +123,7 @@ class TaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -124,12 +136,16 @@ class TaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -138,9 +154,11 @@ class TaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` """ value: str """ diff --git a/stripe/terminal/_location.py b/stripe/terminal/_location.py index e0a4cb4a2..91a63df2b 100644 --- a/stripe/terminal/_location.py +++ b/stripe/terminal/_location.py @@ -124,7 +124,7 @@ class ListParams(RequestOptions): class ModifyParams(RequestOptions): address: NotRequired["Location.ModifyParamsAddress"] """ - The full address of the location. If you're updating the `address` field, avoid changing the `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location. + The full address of the location. You can't change the location's `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location. """ configuration_overrides: NotRequired["Literal['']|str"] """ diff --git a/stripe/terminal/_location_service.py b/stripe/terminal/_location_service.py index bcbfed219..453f81b9e 100644 --- a/stripe/terminal/_location_service.py +++ b/stripe/terminal/_location_service.py @@ -88,7 +88,7 @@ class RetrieveParams(TypedDict): class UpdateParams(TypedDict): address: NotRequired["LocationService.UpdateParamsAddress"] """ - The full address of the location. If you're updating the `address` field, avoid changing the `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location. + The full address of the location. You can't change the location's `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location. """ configuration_overrides: NotRequired["Literal['']|str"] """ diff --git a/stripe/treasury/_financial_account_features.py b/stripe/treasury/_financial_account_features.py index 60c378efe..b787ad43c 100644 --- a/stripe/treasury/_financial_account_features.py +++ b/stripe/treasury/_financial_account_features.py @@ -209,7 +209,7 @@ class StatusDetail(StripeObject): ach: Optional[Ach] """ - Toggle settings for enabling/disabling an ACH specific feature + Toggle settings for enabling/disabling an inbound ACH specific feature """ _inner_class_types = {"ach": Ach} @@ -355,7 +355,7 @@ class StatusDetail(StripeObject): ach: Optional[Ach] """ - Toggle settings for enabling/disabling an ACH specific feature + Toggle settings for enabling/disabling an outbound ACH specific feature """ us_domestic_wire: Optional[UsDomesticWire] """ @@ -460,7 +460,7 @@ class StatusDetail(StripeObject): ach: Optional[Ach] """ - Toggle settings for enabling/disabling an ACH specific feature + Toggle settings for enabling/disabling an outbound ACH specific feature """ us_domestic_wire: Optional[UsDomesticWire] """ From 93873fd088d5692ecc286df3d06fe086c1bb8e5f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:28:10 +0000 Subject: [PATCH 2/4] Update generated code for v1402 --- OPENAPI_VERSION | 2 +- stripe/_charge.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 9fc97dcb2..98d845ab6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1399 \ No newline at end of file +v1402 \ No newline at end of file diff --git a/stripe/_charge.py b/stripe/_charge.py index d78d21c0f..1d545a563 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -828,6 +828,10 @@ class ShippingAddress(StripeObject): """ If this card has network token credentials, this contains the details of the network token credentials. """ + network_transaction_id: Optional[str] + """ + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + """ overcapture: Optional[Overcapture] regulated_status: Optional[Literal["regulated", "unregulated"]] """ From 971ac3fb576659a93e0b450277529b849da00809 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 22:27:38 +0000 Subject: [PATCH 3/4] Update generated code for v1409 --- OPENAPI_VERSION | 2 +- stripe/_account_session.py | 20 +++++++++---------- stripe/_account_session_service.py | 10 +++++----- stripe/_api_version.py | 2 +- stripe/_card.py | 4 ---- stripe/_charge.py | 8 -------- stripe/_confirmation_token.py | 4 ---- stripe/_dispute.py | 30 ----------------------------- stripe/_dispute_service.py | 12 ------------ stripe/_payment_method.py | 4 ---- stripe/_webhook_endpoint.py | 1 - stripe/_webhook_endpoint_service.py | 1 - 12 files changed, 17 insertions(+), 81 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 98d845ab6..85b34541d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1402 \ No newline at end of file +v1409 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index abf90e204..7fb253b25 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -25,7 +25,7 @@ class AccountManagement(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: bool """ @@ -43,7 +43,7 @@ class AccountOnboarding(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: bool """ @@ -61,7 +61,7 @@ class Balances(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ edit_payout_schedule: bool """ @@ -102,7 +102,7 @@ class NotificationBanner(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: bool """ @@ -172,7 +172,7 @@ class Payouts(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ edit_payout_schedule: bool """ @@ -347,7 +347,7 @@ class CreateParamsComponentsAccountManagement(TypedDict): class CreateParamsComponentsAccountManagementFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: NotRequired[bool] """ @@ -369,7 +369,7 @@ class CreateParamsComponentsAccountOnboarding(TypedDict): class CreateParamsComponentsAccountOnboardingFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: NotRequired[bool] """ @@ -391,7 +391,7 @@ class CreateParamsComponentsBalances(TypedDict): class CreateParamsComponentsBalancesFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ edit_payout_schedule: NotRequired[bool] """ @@ -440,7 +440,7 @@ class CreateParamsComponentsNotificationBanner(TypedDict): class CreateParamsComponentsNotificationBannerFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: NotRequired[bool] """ @@ -522,7 +522,7 @@ class CreateParamsComponentsPayouts(TypedDict): class CreateParamsComponentsPayoutsFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ edit_payout_schedule: NotRequired[bool] """ diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index 6304ddad2..a3ed4dd87 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -105,7 +105,7 @@ class CreateParamsComponentsAccountManagement(TypedDict): class CreateParamsComponentsAccountManagementFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: NotRequired[bool] """ @@ -127,7 +127,7 @@ class CreateParamsComponentsAccountOnboarding(TypedDict): class CreateParamsComponentsAccountOnboardingFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: NotRequired[bool] """ @@ -149,7 +149,7 @@ class CreateParamsComponentsBalances(TypedDict): class CreateParamsComponentsBalancesFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ edit_payout_schedule: NotRequired[bool] """ @@ -198,7 +198,7 @@ class CreateParamsComponentsNotificationBanner(TypedDict): class CreateParamsComponentsNotificationBannerFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ external_account_collection: NotRequired[bool] """ @@ -280,7 +280,7 @@ class CreateParamsComponentsPayouts(TypedDict): class CreateParamsComponentsPayoutsFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. + Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. """ edit_payout_schedule: NotRequired[bool] """ diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 7d2801e63..4f7ee9878 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2024-12-18.acacia" + CURRENT = "2024-11-20.acacia" diff --git a/stripe/_card.py b/stripe/_card.py index d0c82957e..631da0c36 100644 --- a/stripe/_card.py +++ b/stripe/_card.py @@ -155,10 +155,6 @@ class DeleteParams(RequestOptions): """ String representing the object's type. Objects of the same type share the same value. """ - regulated_status: Optional[Literal["regulated", "unregulated"]] - """ - Status of a card based on the card issuer. - """ status: Optional[str] """ For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated. diff --git a/stripe/_charge.py b/stripe/_charge.py index 1d545a563..4c9da90dd 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -828,15 +828,7 @@ class ShippingAddress(StripeObject): """ If this card has network token credentials, this contains the details of the network token credentials. """ - network_transaction_id: Optional[str] - """ - This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. - """ overcapture: Optional[Overcapture] - regulated_status: Optional[Literal["regulated", "unregulated"]] - """ - Status of a card based on the card issuer. - """ three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 5f5269085..b3cdc1aca 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -686,10 +686,6 @@ class ShippingAddress(StripeObject): """ Contains information about card networks that can be used to process the payment. """ - regulated_status: Optional[Literal["regulated", "unregulated"]] - """ - Status of a card based on the card issuer. - """ three_d_secure_usage: Optional[ThreeDSecureUsage] """ Contains details on how this Card may be used for 3D Secure authentication. diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 856194487..8021dfb17 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -176,17 +176,9 @@ class ShippingAddress(StripeObject): "prior_undisputed_transactions": PriorUndisputedTransaction, } - class VisaCompliance(StripeObject): - fee_acknowledged: bool - """ - A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. - """ - visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] - visa_compliance: Optional[VisaCompliance] _inner_class_types = { "visa_compelling_evidence_3": VisaCompellingEvidence3, - "visa_compliance": VisaCompliance, } access_activity_log: Optional[str] @@ -322,19 +314,9 @@ class VisaCompellingEvidence3(StripeObject): Visa Compelling Evidence 3.0 eligibility status. """ - class VisaCompliance(StripeObject): - status: Literal[ - "fee_acknowledged", "requires_fee_acknowledgement" - ] - """ - Visa Compelling Evidence 3.0 eligibility status. - """ - visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] - visa_compliance: Optional[VisaCompliance] _inner_class_types = { "visa_compelling_evidence_3": VisaCompellingEvidence3, - "visa_compliance": VisaCompliance, } due_by: Optional[int] @@ -603,12 +585,6 @@ class ModifyParamsEvidenceEnhancedEvidence(TypedDict): """ Evidence provided for Visa Compelling Evidence 3.0 evidence submission. """ - visa_compliance: NotRequired[ - "Dispute.ModifyParamsEvidenceEnhancedEvidenceVisaCompliance" - ] - """ - Evidence provided for Visa Compliance evidence submission. - """ class ModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, @@ -762,12 +738,6 @@ class ModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputed State, county, province, or region. """ - class ModifyParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict): - fee_acknowledged: NotRequired[bool] - """ - A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. - """ - class RetrieveParams(RequestOptions): expand: NotRequired[List[str]] """ diff --git a/stripe/_dispute_service.py b/stripe/_dispute_service.py index 1bb1191c0..97c4f7897 100644 --- a/stripe/_dispute_service.py +++ b/stripe/_dispute_service.py @@ -211,12 +211,6 @@ class UpdateParamsEvidenceEnhancedEvidence(TypedDict): """ Evidence provided for Visa Compelling Evidence 3.0 evidence submission. """ - visa_compliance: NotRequired[ - "DisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompliance" - ] - """ - Evidence provided for Visa Compliance evidence submission. - """ class UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, @@ -370,12 +364,6 @@ class UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputed State, county, province, or region. """ - class UpdateParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict): - fee_acknowledged: NotRequired[bool] - """ - A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. - """ - def list( self, params: "DisputeService.ListParams" = {}, diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index f78c1fae1..17861d3e0 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -643,10 +643,6 @@ class ShippingAddress(StripeObject): """ Contains information about card networks that can be used to process the payment. """ - regulated_status: Optional[Literal["regulated", "unregulated"]] - """ - Status of a card based on the card issuer. - """ three_d_secure_usage: Optional[ThreeDSecureUsage] """ Contains details on how this Card may be used for 3D Secure authentication. diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index 91da9ae10..614ee7c0f 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -137,7 +137,6 @@ class CreateParams(RequestOptions): "2024-09-30.acacia", "2024-10-28.acacia", "2024-11-20.acacia", - "2024-12-18.acacia", ] ] """ diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 5df1e51fe..597e5a698 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -118,7 +118,6 @@ class CreateParams(TypedDict): "2024-09-30.acacia", "2024-10-28.acacia", "2024-11-20.acacia", - "2024-12-18.acacia", ] ] """ From dcdc42f308d05108d05e6bf1a89f76e68f4f31f1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 14 Dec 2024 00:09:36 +0000 Subject: [PATCH 4/4] Update generated code for v1412 --- OPENAPI_VERSION | 2 +- stripe/_account.py | 4 +- stripe/_account_session.py | 20 +- stripe/_account_session_service.py | 10 +- stripe/_api_version.py | 2 +- stripe/_capability.py | 4 +- stripe/_card.py | 8 + stripe/_charge.py | 8 + stripe/_confirmation_token.py | 4 + stripe/_customer.py | 6 +- stripe/_customer_service.py | 3 +- stripe/_customer_tax_id_service.py | 3 +- stripe/_dispute.py | 30 ++ stripe/_dispute_service.py | 12 + stripe/_invoice.py | 12 +- stripe/_invoice_service.py | 6 +- stripe/_invoice_upcoming_lines_service.py | 3 +- stripe/_payment_method.py | 4 + stripe/_person.py | 4 +- stripe/_source.py | 4 + stripe/_tax_id.py | 6 +- stripe/_tax_id_service.py | 3 +- stripe/_webhook_endpoint.py | 1 + stripe/_webhook_endpoint_service.py | 1 + stripe/checkout/_session.py | 3 +- stripe/tax/_calculation.py | 6 +- stripe/tax/_calculation_service.py | 3 +- stripe/tax/_registration.py | 378 ++++++++++++++++++++++ stripe/tax/_registration_service.py | 210 ++++++++++++ stripe/tax/_transaction.py | 3 +- 30 files changed, 721 insertions(+), 42 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 85b34541d..bf0daa66a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1409 \ No newline at end of file +v1412 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 7ecb932a8..e1c613c2f 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -826,7 +826,7 @@ class Error(StripeObject): """ eventually_due: Optional[List[str]] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well. """ past_due: Optional[List[str]] """ @@ -1000,7 +1000,7 @@ class Error(StripeObject): """ eventually_due: Optional[List[str]] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. """ past_due: Optional[List[str]] """ diff --git a/stripe/_account_session.py b/stripe/_account_session.py index 7fb253b25..abf90e204 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -25,7 +25,7 @@ class AccountManagement(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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 """ @@ -43,7 +43,7 @@ class AccountOnboarding(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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 """ @@ -61,7 +61,7 @@ class Balances(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: bool """ @@ -102,7 +102,7 @@ class NotificationBanner(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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 """ @@ -172,7 +172,7 @@ class Payouts(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: bool """ @@ -347,7 +347,7 @@ class CreateParamsComponentsAccountManagement(TypedDict): class CreateParamsComponentsAccountManagementFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -369,7 +369,7 @@ class CreateParamsComponentsAccountOnboarding(TypedDict): class CreateParamsComponentsAccountOnboardingFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -391,7 +391,7 @@ class CreateParamsComponentsBalances(TypedDict): class CreateParamsComponentsBalancesFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: NotRequired[bool] """ @@ -440,7 +440,7 @@ class CreateParamsComponentsNotificationBanner(TypedDict): class CreateParamsComponentsNotificationBannerFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -522,7 +522,7 @@ class CreateParamsComponentsPayouts(TypedDict): class CreateParamsComponentsPayoutsFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: NotRequired[bool] """ diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index a3ed4dd87..6304ddad2 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -105,7 +105,7 @@ class CreateParamsComponentsAccountManagement(TypedDict): class CreateParamsComponentsAccountManagementFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -127,7 +127,7 @@ class CreateParamsComponentsAccountOnboarding(TypedDict): class CreateParamsComponentsAccountOnboardingFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -149,7 +149,7 @@ class CreateParamsComponentsBalances(TypedDict): class CreateParamsComponentsBalancesFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: NotRequired[bool] """ @@ -198,7 +198,7 @@ class CreateParamsComponentsNotificationBanner(TypedDict): class CreateParamsComponentsNotificationBannerFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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] """ @@ -280,7 +280,7 @@ class CreateParamsComponentsPayouts(TypedDict): class CreateParamsComponentsPayoutsFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` 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 `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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. """ edit_payout_schedule: NotRequired[bool] """ diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 4f7ee9878..7d2801e63 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2024-11-20.acacia" + CURRENT = "2024-12-18.acacia" diff --git a/stripe/_capability.py b/stripe/_capability.py index c4a565d9c..c9575c8ea 100644 --- a/stripe/_capability.py +++ b/stripe/_capability.py @@ -169,7 +169,7 @@ class Error(StripeObject): """ eventually_due: List[str] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well. """ past_due: List[str] """ @@ -332,7 +332,7 @@ class Error(StripeObject): """ eventually_due: List[str] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. """ past_due: List[str] """ diff --git a/stripe/_card.py b/stripe/_card.py index 631da0c36..1b1def6a1 100644 --- a/stripe/_card.py +++ b/stripe/_card.py @@ -72,6 +72,10 @@ class DeleteParams(RequestOptions): """ If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. """ + allow_redisplay: Optional[Literal["always", "limited", "unspecified"]] + """ + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. + """ available_payout_methods: Optional[List[Literal["instant", "standard"]]] """ A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout. @@ -155,6 +159,10 @@ class DeleteParams(RequestOptions): """ String representing the object's type. Objects of the same type share the same value. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ status: Optional[str] """ For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated. diff --git a/stripe/_charge.py b/stripe/_charge.py index 4c9da90dd..1d545a563 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -828,7 +828,15 @@ class ShippingAddress(StripeObject): """ If this card has network token credentials, this contains the details of the network token credentials. """ + network_transaction_id: Optional[str] + """ + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + """ overcapture: Optional[Overcapture] + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index b3cdc1aca..5f5269085 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -686,6 +686,10 @@ class ShippingAddress(StripeObject): """ Contains information about card networks that can be used to process the payment. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure_usage: Optional[ThreeDSecureUsage] """ Contains details on how this Card may be used for 3D Secure authentication. diff --git a/stripe/_customer.py b/stripe/_customer.py index a6ca7f639..311be1eef 100644 --- a/stripe/_customer.py +++ b/stripe/_customer.py @@ -514,6 +514,7 @@ class CreateParamsTaxIdDatum(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -613,7 +614,7 @@ class CreateParamsTaxIdDatum(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -643,6 +644,7 @@ class CreateTaxIdParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -742,7 +744,7 @@ class CreateTaxIdParams(RequestOptions): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_customer_service.py b/stripe/_customer_service.py index f22d1ca92..15fd4a4d2 100644 --- a/stripe/_customer_service.py +++ b/stripe/_customer_service.py @@ -276,6 +276,7 @@ class CreateParamsTaxIdDatum(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -375,7 +376,7 @@ class CreateParamsTaxIdDatum(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_customer_tax_id_service.py b/stripe/_customer_tax_id_service.py index 32e47e713..b7abe3dcc 100644 --- a/stripe/_customer_tax_id_service.py +++ b/stripe/_customer_tax_id_service.py @@ -18,6 +18,7 @@ class CreateParams(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -117,7 +118,7 @@ class CreateParams(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 8021dfb17..81d9856c7 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -176,9 +176,17 @@ class ShippingAddress(StripeObject): "prior_undisputed_transactions": PriorUndisputedTransaction, } + class VisaCompliance(StripeObject): + fee_acknowledged: bool + """ + A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. + """ + visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] + visa_compliance: Optional[VisaCompliance] _inner_class_types = { "visa_compelling_evidence_3": VisaCompellingEvidence3, + "visa_compliance": VisaCompliance, } access_activity_log: Optional[str] @@ -314,9 +322,19 @@ class VisaCompellingEvidence3(StripeObject): Visa Compelling Evidence 3.0 eligibility status. """ + class VisaCompliance(StripeObject): + status: Literal[ + "fee_acknowledged", "requires_fee_acknowledgement" + ] + """ + Visa compliance eligibility status. + """ + visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] + visa_compliance: Optional[VisaCompliance] _inner_class_types = { "visa_compelling_evidence_3": VisaCompellingEvidence3, + "visa_compliance": VisaCompliance, } due_by: Optional[int] @@ -585,6 +603,12 @@ class ModifyParamsEvidenceEnhancedEvidence(TypedDict): """ Evidence provided for Visa Compelling Evidence 3.0 evidence submission. """ + visa_compliance: NotRequired[ + "Dispute.ModifyParamsEvidenceEnhancedEvidenceVisaCompliance" + ] + """ + Evidence provided for Visa compliance evidence submission. + """ class ModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, @@ -738,6 +762,12 @@ class ModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputed State, county, province, or region. """ + class ModifyParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. + """ + class RetrieveParams(RequestOptions): expand: NotRequired[List[str]] """ diff --git a/stripe/_dispute_service.py b/stripe/_dispute_service.py index 97c4f7897..f0b3e7c8e 100644 --- a/stripe/_dispute_service.py +++ b/stripe/_dispute_service.py @@ -211,6 +211,12 @@ class UpdateParamsEvidenceEnhancedEvidence(TypedDict): """ Evidence provided for Visa Compelling Evidence 3.0 evidence submission. """ + visa_compliance: NotRequired[ + "DisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompliance" + ] + """ + Evidence provided for Visa compliance evidence submission. + """ class UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, @@ -364,6 +370,12 @@ class UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputed State, county, province, or region. """ + class UpdateParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. + """ + def list( self, params: "DisputeService.ListParams" = {}, diff --git a/stripe/_invoice.py b/stripe/_invoice.py index e4a5cdc68..a15b1a8ab 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -222,6 +222,7 @@ class CustomerTaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -322,7 +323,7 @@ class CustomerTaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` """ value: Optional[str] """ @@ -2127,6 +2128,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -2226,7 +2228,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -4002,6 +4004,7 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -4101,7 +4104,7 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -5162,6 +5165,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -5261,7 +5265,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index be5014dd9..7da0c5361 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -1072,6 +1072,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -1171,7 +1172,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -2316,6 +2317,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -2415,7 +2417,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index d9039103d..5c53320f1 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -279,6 +279,7 @@ class ListParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -378,7 +379,7 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 17861d3e0..f78c1fae1 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -643,6 +643,10 @@ class ShippingAddress(StripeObject): """ Contains information about card networks that can be used to process the payment. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure_usage: Optional[ThreeDSecureUsage] """ Contains details on how this Card may be used for 3D Secure authentication. diff --git a/stripe/_person.py b/stripe/_person.py index 2b9b5d1ac..fc0697735 100644 --- a/stripe/_person.py +++ b/stripe/_person.py @@ -274,7 +274,7 @@ class Error(StripeObject): """ eventually_due: List[str] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `future_requirements[current_deadline]` becomes set. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `future_requirements[current_deadline]` becomes set. """ past_due: List[str] """ @@ -476,7 +476,7 @@ class Error(StripeObject): """ eventually_due: List[str] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `current_deadline` becomes set. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `current_deadline` becomes set. """ past_due: List[str] """ diff --git a/stripe/_source.py b/stripe/_source.py index 3af9dbfbe..7afc95f76 100644 --- a/stripe/_source.py +++ b/stripe/_source.py @@ -1013,6 +1013,10 @@ class VerifyParams(RequestOptions): ach_debit: Optional[AchDebit] acss_debit: Optional[AcssDebit] alipay: Optional[Alipay] + allow_redisplay: Optional[Literal["always", "limited", "unspecified"]] + """ + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. + """ amount: Optional[int] """ A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources. diff --git a/stripe/_tax_id.py b/stripe/_tax_id.py index 8b1d5b5bc..377f48866 100644 --- a/stripe/_tax_id.py +++ b/stripe/_tax_id.py @@ -81,6 +81,7 @@ class CreateParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -180,7 +181,7 @@ class CreateParams(RequestOptions): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -277,6 +278,7 @@ class RetrieveParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -377,7 +379,7 @@ class RetrieveParams(RequestOptions): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown` """ value: str """ diff --git a/stripe/_tax_id_service.py b/stripe/_tax_id_service.py index 1556d8b96..79e120538 100644 --- a/stripe/_tax_id_service.py +++ b/stripe/_tax_id_service.py @@ -22,6 +22,7 @@ class CreateParams(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -121,7 +122,7 @@ class CreateParams(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index 614ee7c0f..91da9ae10 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -137,6 +137,7 @@ class CreateParams(RequestOptions): "2024-09-30.acacia", "2024-10-28.acacia", "2024-11-20.acacia", + "2024-12-18.acacia", ] ] """ diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 597e5a698..5df1e51fe 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -118,6 +118,7 @@ class CreateParams(TypedDict): "2024-09-30.acacia", "2024-10-28.acacia", "2024-11-20.acacia", + "2024-12-18.acacia", ] ] """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index d92d4bf06..fe9bb5917 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -346,6 +346,7 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -446,7 +447,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` """ value: Optional[str] """ diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py index 6ba29f14a..1d7247850 100644 --- a/stripe/tax/_calculation.py +++ b/stripe/tax/_calculation.py @@ -58,6 +58,7 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -158,7 +159,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` """ value: str """ @@ -522,6 +523,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -621,7 +623,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/tax/_calculation_service.py b/stripe/tax/_calculation_service.py index 81c39a26e..d1b80a968 100644 --- a/stripe/tax/_calculation_service.py +++ b/stripe/tax/_calculation_service.py @@ -114,6 +114,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -213,7 +214,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/tax/_registration.py b/stripe/tax/_registration.py index f779ceb69..fbcf45b8c 100644 --- a/stripe/tax/_registration.py +++ b/stripe/tax/_registration.py @@ -33,6 +33,24 @@ class Ae(StripeObject): Type of registration in `country`. """ + class Al(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + + class Am(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + + class Ao(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + class At(StripeObject): class Standard(StripeObject): place_of_supply_scheme: Literal["small_seller", "standard"] @@ -53,6 +71,18 @@ class Au(StripeObject): Type of registration in `country`. """ + class Ba(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + + class Bb(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + class Be(StripeObject): class Standard(StripeObject): place_of_supply_scheme: Literal["small_seller", "standard"] @@ -87,6 +117,12 @@ class Bh(StripeObject): Type of registration in `country`. """ + class Bs(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + class By(StripeObject): type: Literal["simplified"] """ @@ -107,6 +143,12 @@ class ProvinceStandard(StripeObject): """ _inner_class_types = {"province_standard": ProvinceStandard} + class Cd(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + class Ch(StripeObject): type: Literal["standard"] """ @@ -267,6 +309,12 @@ class Ge(StripeObject): Type of registration in `country`. """ + class Gn(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + class Gr(StripeObject): class Standard(StripeObject): place_of_supply_scheme: Literal["small_seller", "standard"] @@ -361,6 +409,12 @@ class Ke(StripeObject): Type of registration in `country`. """ + class Kh(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + class Kr(StripeObject): type: Literal["simplified"] """ @@ -427,6 +481,24 @@ class Md(StripeObject): Type of registration in `country`. """ + class Me(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + + class Mk(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + + class Mr(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + class Mt(StripeObject): class Standard(StripeObject): place_of_supply_scheme: Literal["small_seller", "standard"] @@ -479,6 +551,12 @@ class No(StripeObject): Type of registration in `country`. """ + class Np(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + class Nz(StripeObject): type: Literal["standard"] """ @@ -491,6 +569,12 @@ class Om(StripeObject): Type of registration in `country`. """ + class Pe(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + class Pl(StripeObject): class Standard(StripeObject): place_of_supply_scheme: Literal["small_seller", "standard"] @@ -599,12 +683,30 @@ class Standard(StripeObject): """ _inner_class_types = {"standard": Standard} + class Sn(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + + class Sr(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + class Th(StripeObject): type: Literal["simplified"] """ Type of registration in `country`. """ + class Tj(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + class Tr(StripeObject): type: Literal["simplified"] """ @@ -617,6 +719,12 @@ class Tz(StripeObject): Type of registration in `country`. """ + class Ug(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + class Us(StripeObject): class LocalAmusementTax(StripeObject): jurisdiction: str @@ -674,6 +782,12 @@ class Election(StripeObject): "state_sales_tax": StateSalesTax, } + class Uy(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + class Uz(StripeObject): type: Literal["simplified"] """ @@ -692,14 +806,33 @@ class Za(StripeObject): Type of registration in `country`. """ + class Zm(StripeObject): + type: Literal["simplified"] + """ + Type of registration in `country`. + """ + + class Zw(StripeObject): + type: Literal["standard"] + """ + Type of registration in `country`. + """ + ae: Optional[Ae] + al: Optional[Al] + am: Optional[Am] + ao: Optional[Ao] at: Optional[At] au: Optional[Au] + ba: Optional[Ba] + bb: Optional[Bb] be: Optional[Be] bg: Optional[Bg] bh: Optional[Bh] + bs: Optional[Bs] by: Optional[By] ca: Optional[Ca] + cd: Optional[Cd] ch: Optional[Ch] cl: Optional[Cl] co: Optional[Co] @@ -716,6 +849,7 @@ class Za(StripeObject): fr: Optional[Fr] gb: Optional[Gb] ge: Optional[Ge] + gn: Optional[Gn] gr: Optional[Gr] hr: Optional[Hr] hu: Optional[Hu] @@ -725,6 +859,7 @@ class Za(StripeObject): it: Optional[It] jp: Optional[Jp] ke: Optional[Ke] + kh: Optional[Kh] kr: Optional[Kr] kz: Optional[Kz] lt: Optional[Lt] @@ -732,14 +867,19 @@ class Za(StripeObject): lv: Optional[Lv] ma: Optional[Ma] md: Optional[Md] + me: Optional[Me] + mk: Optional[Mk] + mr: Optional[Mr] mt: Optional[Mt] mx: Optional[Mx] my: Optional[My] ng: Optional[Ng] nl: Optional[Nl] no: Optional[No] + np: Optional[Np] nz: Optional[Nz] om: Optional[Om] + pe: Optional[Pe] pl: Optional[Pl] pt: Optional[Pt] ro: Optional[Ro] @@ -750,22 +890,36 @@ class Za(StripeObject): sg: Optional[Sg] si: Optional[Si] sk: Optional[Sk] + sn: Optional[Sn] + sr: Optional[Sr] th: Optional[Th] + tj: Optional[Tj] tr: Optional[Tr] tz: Optional[Tz] + ug: Optional[Ug] us: Optional[Us] + uy: Optional[Uy] uz: Optional[Uz] vn: Optional[Vn] za: Optional[Za] + zm: Optional[Zm] + zw: Optional[Zw] _inner_class_types = { "ae": Ae, + "al": Al, + "am": Am, + "ao": Ao, "at": At, "au": Au, + "ba": Ba, + "bb": Bb, "be": Be, "bg": Bg, "bh": Bh, + "bs": Bs, "by": By, "ca": Ca, + "cd": Cd, "ch": Ch, "cl": Cl, "co": Co, @@ -782,6 +936,7 @@ class Za(StripeObject): "fr": Fr, "gb": Gb, "ge": Ge, + "gn": Gn, "gr": Gr, "hr": Hr, "hu": Hu, @@ -791,6 +946,7 @@ class Za(StripeObject): "it": It, "jp": Jp, "ke": Ke, + "kh": Kh, "kr": Kr, "kz": Kz, "lt": Lt, @@ -798,14 +954,19 @@ class Za(StripeObject): "lv": Lv, "ma": Ma, "md": Md, + "me": Me, + "mk": Mk, + "mr": Mr, "mt": Mt, "mx": Mx, "my": My, "ng": Ng, "nl": Nl, "no": No, + "np": Np, "nz": Nz, "om": Om, + "pe": Pe, "pl": Pl, "pt": Pt, "ro": Ro, @@ -816,13 +977,20 @@ class Za(StripeObject): "sg": Sg, "si": Si, "sk": Sk, + "sn": Sn, + "sr": Sr, "th": Th, + "tj": Tj, "tr": Tr, "tz": Tz, + "ug": Ug, "us": Us, + "uy": Uy, "uz": Uz, "vn": Vn, "za": Za, + "zm": Zm, + "zw": Zw, } _field_remappings = {"is_": "is"} @@ -858,6 +1026,18 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in AE. """ + al: NotRequired["Registration.CreateParamsCountryOptionsAl"] + """ + Options for the registration in AL. + """ + am: NotRequired["Registration.CreateParamsCountryOptionsAm"] + """ + Options for the registration in AM. + """ + ao: NotRequired["Registration.CreateParamsCountryOptionsAo"] + """ + Options for the registration in AO. + """ at: NotRequired["Registration.CreateParamsCountryOptionsAt"] """ Options for the registration in AT. @@ -866,6 +1046,14 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in AU. """ + ba: NotRequired["Registration.CreateParamsCountryOptionsBa"] + """ + Options for the registration in BA. + """ + bb: NotRequired["Registration.CreateParamsCountryOptionsBb"] + """ + Options for the registration in BB. + """ be: NotRequired["Registration.CreateParamsCountryOptionsBe"] """ Options for the registration in BE. @@ -878,6 +1066,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in BH. """ + bs: NotRequired["Registration.CreateParamsCountryOptionsBs"] + """ + Options for the registration in BS. + """ by: NotRequired["Registration.CreateParamsCountryOptionsBy"] """ Options for the registration in BY. @@ -886,6 +1078,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in CA. """ + cd: NotRequired["Registration.CreateParamsCountryOptionsCd"] + """ + Options for the registration in CD. + """ ch: NotRequired["Registration.CreateParamsCountryOptionsCh"] """ Options for the registration in CH. @@ -950,6 +1146,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in GE. """ + gn: NotRequired["Registration.CreateParamsCountryOptionsGn"] + """ + Options for the registration in GN. + """ gr: NotRequired["Registration.CreateParamsCountryOptionsGr"] """ Options for the registration in GR. @@ -982,6 +1182,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in KE. """ + kh: NotRequired["Registration.CreateParamsCountryOptionsKh"] + """ + Options for the registration in KH. + """ kr: NotRequired["Registration.CreateParamsCountryOptionsKr"] """ Options for the registration in KR. @@ -1010,6 +1214,18 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in MD. """ + me: NotRequired["Registration.CreateParamsCountryOptionsMe"] + """ + Options for the registration in ME. + """ + mk: NotRequired["Registration.CreateParamsCountryOptionsMk"] + """ + Options for the registration in MK. + """ + mr: NotRequired["Registration.CreateParamsCountryOptionsMr"] + """ + Options for the registration in MR. + """ mt: NotRequired["Registration.CreateParamsCountryOptionsMt"] """ Options for the registration in MT. @@ -1034,6 +1250,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in NO. """ + np: NotRequired["Registration.CreateParamsCountryOptionsNp"] + """ + Options for the registration in NP. + """ nz: NotRequired["Registration.CreateParamsCountryOptionsNz"] """ Options for the registration in NZ. @@ -1042,6 +1262,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in OM. """ + pe: NotRequired["Registration.CreateParamsCountryOptionsPe"] + """ + Options for the registration in PE. + """ pl: NotRequired["Registration.CreateParamsCountryOptionsPl"] """ Options for the registration in PL. @@ -1082,10 +1306,22 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in SK. """ + sn: NotRequired["Registration.CreateParamsCountryOptionsSn"] + """ + Options for the registration in SN. + """ + sr: NotRequired["Registration.CreateParamsCountryOptionsSr"] + """ + Options for the registration in SR. + """ th: NotRequired["Registration.CreateParamsCountryOptionsTh"] """ Options for the registration in TH. """ + tj: NotRequired["Registration.CreateParamsCountryOptionsTj"] + """ + Options for the registration in TJ. + """ tr: NotRequired["Registration.CreateParamsCountryOptionsTr"] """ Options for the registration in TR. @@ -1094,10 +1330,18 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in TZ. """ + ug: NotRequired["Registration.CreateParamsCountryOptionsUg"] + """ + Options for the registration in UG. + """ us: NotRequired["Registration.CreateParamsCountryOptionsUs"] """ Options for the registration in US. """ + uy: NotRequired["Registration.CreateParamsCountryOptionsUy"] + """ + Options for the registration in UY. + """ uz: NotRequired["Registration.CreateParamsCountryOptionsUz"] """ Options for the registration in UZ. @@ -1110,6 +1354,14 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in ZA. """ + zm: NotRequired["Registration.CreateParamsCountryOptionsZm"] + """ + Options for the registration in ZM. + """ + zw: NotRequired["Registration.CreateParamsCountryOptionsZw"] + """ + Options for the registration in ZW. + """ class CreateParamsCountryOptionsAe(TypedDict): type: Literal["standard"] @@ -1117,6 +1369,24 @@ class CreateParamsCountryOptionsAe(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAl(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsAm(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsAo(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsAt(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsAtStandard" @@ -1141,6 +1411,18 @@ class CreateParamsCountryOptionsAu(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBa(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsBb(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsBe(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsBeStandard" @@ -1183,6 +1465,12 @@ class CreateParamsCountryOptionsBh(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBs(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsBy(TypedDict): type: Literal["simplified"] """ @@ -1207,6 +1495,12 @@ class CreateParamsCountryOptionsCaProvinceStandard(TypedDict): Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). """ + class CreateParamsCountryOptionsCd(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsCh(TypedDict): type: Literal["standard"] """ @@ -1399,6 +1693,12 @@ class CreateParamsCountryOptionsGe(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsGn(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsGr(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsGrStandard" @@ -1513,6 +1813,12 @@ class CreateParamsCountryOptionsKe(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsKh(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsKr(TypedDict): type: Literal["simplified"] """ @@ -1591,6 +1897,24 @@ class CreateParamsCountryOptionsMd(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsMe(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsMk(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsMr(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsMt(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsMtStandard" @@ -1651,6 +1975,12 @@ class CreateParamsCountryOptionsNo(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsNp(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsNz(TypedDict): type: Literal["standard"] """ @@ -1663,6 +1993,12 @@ class CreateParamsCountryOptionsOm(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsPe(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsPl(TypedDict): standard: NotRequired[ "Registration.CreateParamsCountryOptionsPlStandard" @@ -1795,12 +2131,30 @@ class CreateParamsCountryOptionsSkStandard(TypedDict): Place of supply scheme used in an EU standard registration. """ + class CreateParamsCountryOptionsSn(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsSr(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsTh(TypedDict): type: Literal["simplified"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsTj(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsTr(TypedDict): type: Literal["simplified"] """ @@ -1813,6 +2167,12 @@ class CreateParamsCountryOptionsTz(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsUg(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsUs(TypedDict): local_amusement_tax: NotRequired[ "Registration.CreateParamsCountryOptionsUsLocalAmusementTax" @@ -1881,6 +2241,12 @@ class CreateParamsCountryOptionsUsStateSalesTaxElection(TypedDict): The type of the election for the state sales tax registration. """ + class CreateParamsCountryOptionsUy(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsUz(TypedDict): type: Literal["simplified"] """ @@ -1899,6 +2265,18 @@ class CreateParamsCountryOptionsZa(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsZm(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsZw(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class ListParams(RequestOptions): ending_before: NotRequired[str] """ diff --git a/stripe/tax/_registration_service.py b/stripe/tax/_registration_service.py index 86c979db5..3c9f17b3c 100644 --- a/stripe/tax/_registration_service.py +++ b/stripe/tax/_registration_service.py @@ -46,6 +46,18 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in AE. """ + al: NotRequired["RegistrationService.CreateParamsCountryOptionsAl"] + """ + Options for the registration in AL. + """ + am: NotRequired["RegistrationService.CreateParamsCountryOptionsAm"] + """ + Options for the registration in AM. + """ + ao: NotRequired["RegistrationService.CreateParamsCountryOptionsAo"] + """ + Options for the registration in AO. + """ at: NotRequired["RegistrationService.CreateParamsCountryOptionsAt"] """ Options for the registration in AT. @@ -54,6 +66,14 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in AU. """ + ba: NotRequired["RegistrationService.CreateParamsCountryOptionsBa"] + """ + Options for the registration in BA. + """ + bb: NotRequired["RegistrationService.CreateParamsCountryOptionsBb"] + """ + Options for the registration in BB. + """ be: NotRequired["RegistrationService.CreateParamsCountryOptionsBe"] """ Options for the registration in BE. @@ -66,6 +86,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in BH. """ + bs: NotRequired["RegistrationService.CreateParamsCountryOptionsBs"] + """ + Options for the registration in BS. + """ by: NotRequired["RegistrationService.CreateParamsCountryOptionsBy"] """ Options for the registration in BY. @@ -74,6 +98,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in CA. """ + cd: NotRequired["RegistrationService.CreateParamsCountryOptionsCd"] + """ + Options for the registration in CD. + """ ch: NotRequired["RegistrationService.CreateParamsCountryOptionsCh"] """ Options for the registration in CH. @@ -138,6 +166,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in GE. """ + gn: NotRequired["RegistrationService.CreateParamsCountryOptionsGn"] + """ + Options for the registration in GN. + """ gr: NotRequired["RegistrationService.CreateParamsCountryOptionsGr"] """ Options for the registration in GR. @@ -170,6 +202,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in KE. """ + kh: NotRequired["RegistrationService.CreateParamsCountryOptionsKh"] + """ + Options for the registration in KH. + """ kr: NotRequired["RegistrationService.CreateParamsCountryOptionsKr"] """ Options for the registration in KR. @@ -198,6 +234,18 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in MD. """ + me: NotRequired["RegistrationService.CreateParamsCountryOptionsMe"] + """ + Options for the registration in ME. + """ + mk: NotRequired["RegistrationService.CreateParamsCountryOptionsMk"] + """ + Options for the registration in MK. + """ + mr: NotRequired["RegistrationService.CreateParamsCountryOptionsMr"] + """ + Options for the registration in MR. + """ mt: NotRequired["RegistrationService.CreateParamsCountryOptionsMt"] """ Options for the registration in MT. @@ -222,6 +270,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in NO. """ + np: NotRequired["RegistrationService.CreateParamsCountryOptionsNp"] + """ + Options for the registration in NP. + """ nz: NotRequired["RegistrationService.CreateParamsCountryOptionsNz"] """ Options for the registration in NZ. @@ -230,6 +282,10 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in OM. """ + pe: NotRequired["RegistrationService.CreateParamsCountryOptionsPe"] + """ + Options for the registration in PE. + """ pl: NotRequired["RegistrationService.CreateParamsCountryOptionsPl"] """ Options for the registration in PL. @@ -270,10 +326,22 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in SK. """ + sn: NotRequired["RegistrationService.CreateParamsCountryOptionsSn"] + """ + Options for the registration in SN. + """ + sr: NotRequired["RegistrationService.CreateParamsCountryOptionsSr"] + """ + Options for the registration in SR. + """ th: NotRequired["RegistrationService.CreateParamsCountryOptionsTh"] """ Options for the registration in TH. """ + tj: NotRequired["RegistrationService.CreateParamsCountryOptionsTj"] + """ + Options for the registration in TJ. + """ tr: NotRequired["RegistrationService.CreateParamsCountryOptionsTr"] """ Options for the registration in TR. @@ -282,10 +350,18 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in TZ. """ + ug: NotRequired["RegistrationService.CreateParamsCountryOptionsUg"] + """ + Options for the registration in UG. + """ us: NotRequired["RegistrationService.CreateParamsCountryOptionsUs"] """ Options for the registration in US. """ + uy: NotRequired["RegistrationService.CreateParamsCountryOptionsUy"] + """ + Options for the registration in UY. + """ uz: NotRequired["RegistrationService.CreateParamsCountryOptionsUz"] """ Options for the registration in UZ. @@ -298,6 +374,14 @@ class CreateParamsCountryOptions(_CreateParamsCountryOptionsBase): """ Options for the registration in ZA. """ + zm: NotRequired["RegistrationService.CreateParamsCountryOptionsZm"] + """ + Options for the registration in ZM. + """ + zw: NotRequired["RegistrationService.CreateParamsCountryOptionsZw"] + """ + Options for the registration in ZW. + """ class CreateParamsCountryOptionsAe(TypedDict): type: Literal["standard"] @@ -305,6 +389,24 @@ class CreateParamsCountryOptionsAe(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsAl(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsAm(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsAo(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsAt(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsAtStandard" @@ -329,6 +431,18 @@ class CreateParamsCountryOptionsAu(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBa(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsBb(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsBe(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsBeStandard" @@ -371,6 +485,12 @@ class CreateParamsCountryOptionsBh(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsBs(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsBy(TypedDict): type: Literal["simplified"] """ @@ -395,6 +515,12 @@ class CreateParamsCountryOptionsCaProvinceStandard(TypedDict): Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). """ + class CreateParamsCountryOptionsCd(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsCh(TypedDict): type: Literal["standard"] """ @@ -587,6 +713,12 @@ class CreateParamsCountryOptionsGe(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsGn(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsGr(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsGrStandard" @@ -701,6 +833,12 @@ class CreateParamsCountryOptionsKe(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsKh(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsKr(TypedDict): type: Literal["simplified"] """ @@ -779,6 +917,24 @@ class CreateParamsCountryOptionsMd(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsMe(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsMk(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsMr(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsMt(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsMtStandard" @@ -839,6 +995,12 @@ class CreateParamsCountryOptionsNo(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsNp(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsNz(TypedDict): type: Literal["standard"] """ @@ -851,6 +1013,12 @@ class CreateParamsCountryOptionsOm(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsPe(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsPl(TypedDict): standard: NotRequired[ "RegistrationService.CreateParamsCountryOptionsPlStandard" @@ -983,12 +1151,30 @@ class CreateParamsCountryOptionsSkStandard(TypedDict): Place of supply scheme used in an EU standard registration. """ + class CreateParamsCountryOptionsSn(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsSr(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsTh(TypedDict): type: Literal["simplified"] """ Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsTj(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsTr(TypedDict): type: Literal["simplified"] """ @@ -1001,6 +1187,12 @@ class CreateParamsCountryOptionsTz(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsUg(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsUs(TypedDict): local_amusement_tax: NotRequired[ "RegistrationService.CreateParamsCountryOptionsUsLocalAmusementTax" @@ -1069,6 +1261,12 @@ class CreateParamsCountryOptionsUsStateSalesTaxElection(TypedDict): The type of the election for the state sales tax registration. """ + class CreateParamsCountryOptionsUy(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class CreateParamsCountryOptionsUz(TypedDict): type: Literal["simplified"] """ @@ -1087,6 +1285,18 @@ class CreateParamsCountryOptionsZa(TypedDict): Type of registration to be created in `country`. """ + class CreateParamsCountryOptionsZm(TypedDict): + type: Literal["simplified"] + """ + Type of registration to be created in `country`. + """ + + class CreateParamsCountryOptionsZw(TypedDict): + type: Literal["standard"] + """ + Type of registration to be created in `country`. + """ + class ListParams(TypedDict): ending_before: NotRequired[str] """ diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py index aa1c77f0c..bb4ee4c69 100644 --- a/stripe/tax/_transaction.py +++ b/stripe/tax/_transaction.py @@ -58,6 +58,7 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "al_tin", "am_tin", "ao_tin", "ar_cuit", @@ -158,7 +159,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` """ value: str """