diff --git a/.hark/changes/2026-11-19_stripe-openapi_a2382e55.change.md b/.hark/changes/2026-11-19_stripe-openapi_a2382e55.change.md
new file mode 100644
index 000000000..385d1f6d9
--- /dev/null
+++ b/.hark/changes/2026-11-19_stripe-openapi_a2382e55.change.md
@@ -0,0 +1,40 @@
+---
+title: Update generated code
+pr_url: https://github.com/stripe/stripe-python/pull/1998
+semver_level: minor
+is_stripe_api_change: true
+---
+
+* Add support for new resource `v2.core.ClaimableSandbox`
+* Add support for `create`, `renew_onboarding_link`, and `retrieve` methods on resource `v2.core.ClaimableSandbox`
+* Add support for `funding_sources` on `Charge.PaymentMethodDetail.Card.Wallet.Link` and `Charge.PaymentMethodDetail.Link`
+* Add support for new value `tron` on enums `Charge.PaymentMethodDetail.Crypto.network`, `PaymentAttemptRecord.PaymentMethodDetail.Crypto.network`, and `PaymentRecord.PaymentMethodDetail.Crypto.network`
+* Add support for `fingerprint` on `Charge.PaymentMethodDetail.Paypay`, `PaymentAttemptRecord.PaymentMethodDetail.Paypay`, and `PaymentRecord.PaymentMethodDetail.Paypay`
+* Add support for `address_collection_precision` on `Checkout.Session.AutomaticTax` and `checkout.SessionCreateParamsAutomaticTax`
+* Change `Dispute.Evidence.appeal` to be required
+* Change `Issuing.Card.Shipping.delivered_at` to be required
+* Change `Issuing.Card.Shipping.shipped_at` to be required
+* Change `PaymentAttemptRecord.PaymentMethodDetail.Card.stored_credential_usage` and `PaymentRecord.PaymentMethodDetail.Card.stored_credential_usage` to be required
+* Add support for `car_rental_data` and `lodging_data` on `PaymentIntent.PaymentDetail`, `PaymentIntentCaptureParamsPaymentDetail`, `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsPaymentDetail`, and `PaymentIntentModifyParamsPaymentDetail`
+* Change type of `PaymentLinkCreateParamsPaymentIntentDatum.capture_method` from `enum('automatic'|'automatic_async'|'manual')` to `emptyable(enum('automatic'|'automatic_async'|'manual'))`
+* Add support for `capture_method` on `PaymentLinkModifyParamsPaymentIntentDatum`
+* Add support for `loss_message` on `Product.MarketingFeature`, `ProductCreateParamsMarketingFeature`, and `ProductModifyParamsMarketingFeature`
+* Add support for `application` on `Refund`
+* Add support for `bizum` and `upi` on `Refund.DestinationDetail`
+* Add support for `tax_invoice_month` on `Reporting.ReportRun.Parameter` and `reporting.ReportRunCreateParamsParameter`
+* Add support for `igic` on `Tax.Registration.CountryOption.E` and `tax.RegistrationCreateParamsCountryOptionE`
+* Add support for new value `igic` on enums `Tax.Registration.CountryOption.E.type` and `tax.RegistrationCreateParamsCountryOptionE.type`
+* Add support for new values `stripe_s700_devkit`, `stripe_s710_devkit`, `stripe_t600_devkit`, `verifone_ux700_devkit`, and `verifone_v660p_devkit` on enums `Terminal.Reader.device_type` and `terminal.ReaderListParams.device_type`
+* Add support for `network_details` on `Treasury.InboundTransfer.FailureDetail`, `Treasury.OutboundPayment.ReturnedDetail`, `Treasury.OutboundTransfer.ReturnedDetail`, and `treasury.InboundTransferFailParamsFailureDetail`
+* Add support for `failure_details` on `treasury.InboundTransferReturnInboundTransferParams`
+* Add support for new value `2026-11-18.endive` on enum `WebhookEndpointCreateParams.api_version`
+* Add support for `account_dashboard` on `V2.Core.AccountLink.UseCase` and `v2.core.AccountLinkCreateParamsUseCase`
+* Add support for new value `account_dashboard` on enums `V2.Core.AccountLink.UseCase.type` and `v2.core.AccountLinkCreateParamsUseCase.type`
+* Add support for `paypay_payments` on `V2.Core.Account.Configuration.Merchant.Capability`, `V2.Core.Account.Configuration.Merchant`, `v2.core.AccountCreateParamsConfigurationMerchantCapability`, `v2.core.AccountCreateParamsConfigurationMerchant`, `v2.core.AccountModifyParamsConfigurationMerchantCapability`, and `v2.core.AccountModifyParamsConfigurationMerchant`
+* Add support for `billie_payments`, `mb_way_payments`, `nz_bank_account_becs_debit_payments`, and `pix_payments` on `V2.Core.Account.Configuration.Merchant.Capability`, `v2.core.AccountCreateParamsConfigurationMerchantCapability`, and `v2.core.AccountModifyParamsConfigurationMerchantCapability`
+* Add support for `additional_material` on `V2.Core.Account.Configuration.Merchant.KonbiniPayment`, `v2.core.AccountCreateParamsConfigurationMerchantKonbiniPayment`, and `v2.core.AccountModifyParamsConfigurationMerchantKonbiniPayment`
+* Add support for new values `billie_payments`, `mb_way_payments`, `nz_bank_account_becs_debit_payments`, `paypay_payments`, and `pix_payments` on enums `V2.Core.Account.FutureRequirement.Entry.Impact.RestrictsCapability.capability` and `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability`
+* Add support for new values `billie_payments`, `mb_way_payments`, `nz_bank_account_becs_debit_payments`, `paypay_payments`, and `pix_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability`
+* Add support for event notifications `V2CoreClaimableSandboxClaimedEvent`, `V2CoreClaimableSandboxCreatedEvent`, `V2CoreClaimableSandboxExpiredEvent`, `V2CoreClaimableSandboxExpiringEvent`, and `V2CoreClaimableSandboxUpdatedEvent` with related object `v2.core.ClaimableSandbox`
+* Add support for error code `inactive_api_operation_confirmation_required` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, `StripeError`, and `Terminal.Reader.Action.ApiError`
+* Add support for error codes `claimable_sandbox_creation_rate_limit_exceeded` and `claimable_sandbox_testing_creation_rate_limit_exceeded` on `RateLimitError`
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index b9979ecd9..06a01d0ea 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-65c49b0893d71e8cfe272b2d38cd3307ee1833f2
\ No newline at end of file
+f3581f76eec818aa658fd9635eaf0107d13e3441
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 9a21d2dc6..d313855f3 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2596
\ No newline at end of file
+v2602
\ No newline at end of file
diff --git a/stripe/_api_version.py b/stripe/_api_version.py
index a1f3b968c..9d298036e 100644
--- a/stripe/_api_version.py
+++ b/stripe/_api_version.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
- CURRENT = "2026-10-28.endive"
+ CURRENT = "2026-11-18.endive"
CURRENT_MAJOR = "endive"
diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py
index 40be50da9..d6387e004 100644
--- a/stripe/_balance_transaction.py
+++ b/stripe/_balance_transaction.py
@@ -102,7 +102,7 @@ class FeeDetail(StripeObject):
"""
exchange_rate: Optional[float]
"""
- If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the `amount` in currency A, multiplied by the `exchange_rate`, equals the `amount` in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent's `amount` is `1000` and `currency` is `eur`. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction's `amount` is `1234`, its `currency` is `usd`, and the `exchange_rate` is `1.234`.
+ The exchange rate used for this transaction, if applicable. Multiplying the source `amount` by the `exchange_rate` gives the destination `amount`, both in their currencies' smallest units. For example, `1000` EUR cents converts to `1234` USD cents at `1.234`. For a zero-decimal currency such as JPY, `1000` JPY converts to `640` USD cents (6.40 USD) at `0.64`, equivalent to `0.0064` USD per JPY. For JPY to USD, the API multiplier is 100 times the whole-unit rate because JPY amounts use yen and USD amounts use cents.
"""
fee: int
"""
diff --git a/stripe/_charge.py b/stripe/_charge.py
index 792a1ae18..95872a2c1 100644
--- a/stripe/_charge.py
+++ b/stripe/_charge.py
@@ -491,11 +491,11 @@ class Card(StripeObject):
class Checks(StripeObject):
address_line1_check: Optional[str]
"""
- If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
address_postal_code_check: Optional[str]
"""
- If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
cvc_check: Optional[str]
"""
@@ -647,10 +647,222 @@ class GooglePay(StripeObject):
pass
class Link(StripeObject):
+ class FundingSource(StripeObject):
+ class Card(StripeObject):
+ class Checks(StripeObject):
+ address_line1_check: Optional[str]
+ """
+ If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ """
+ address_postal_code_check: Optional[str]
+ """
+ If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ """
+ cvc_check: Optional[str]
+ """
+ If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ """
+
+ class NetworkToken(StripeObject):
+ used: bool
+ """
+ Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
+ """
+
+ class ThreeDSecure(StripeObject):
+ authentication_flow: Optional[
+ Union[
+ Literal["challenge", "frictionless"],
+ str,
+ ]
+ ]
+ """
+ For authenticated transactions: how the customer was authenticated by
+ the issuing bank.
+ """
+ electronic_commerce_indicator: Optional[
+ Union[
+ Literal["01", "02", "05", "06", "07"],
+ str,
+ ]
+ ]
+ """
+ The Electronic Commerce Indicator (ECI). A protocol-level field
+ indicating what degree of authentication was performed.
+ """
+ exemption_indicator: Optional[
+ Union[Literal["low_risk", "none"], str]
+ ]
+ """
+ The exemption requested via 3DS and accepted by the issuer at authentication time.
+ """
+ exemption_indicator_applied: Optional[bool]
+ """
+ Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on
+ the outcome of Stripe's internal risk assessment.
+ """
+ result: Optional[
+ Union[
+ Literal[
+ "attempt_acknowledged",
+ "authenticated",
+ "data_share_only",
+ "exempted",
+ "failed",
+ "not_supported",
+ "processing_error",
+ ],
+ str,
+ ]
+ ]
+ """
+ Indicates the outcome of 3D Secure authentication.
+ """
+ result_reason: Optional[
+ Union[
+ Literal[
+ "abandoned",
+ "bypassed",
+ "canceled",
+ "card_not_enrolled",
+ "network_not_supported",
+ "protocol_error",
+ "rejected",
+ ],
+ str,
+ ]
+ ]
+ """
+ Additional information about why 3D Secure succeeded or failed based
+ on the `result`.
+ """
+ transaction_id: Optional[str]
+ """
+ The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
+ (dsTransId) for this payment.
+ """
+ version: Optional[
+ Union[
+ Literal[
+ "1.0.2",
+ "2.1.0",
+ "2.2.0",
+ "2.3.0",
+ "2.3.1",
+ ],
+ str,
+ ]
+ ]
+ """
+ The version of 3D Secure that was used.
+ """
+
+ amount_authorized: Optional[int]
+ """
+ The authorized amount.
+ """
+ authorization_code: Optional[str]
+ """
+ Authorization code on the charge.
+ """
+ brand: Optional[str]
+ """
+ Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
+ """
+ checks: Optional[Checks]
+ """
+ Check results by Card networks on Card address and CVC at time of payment.
+ """
+ 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.
+ """
+ description: Optional[str]
+ """
+ A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
+ """
+ electronic_commerce_indicator: Optional[str]
+ """
+ The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift.
+ """
+ exp_month: int
+ """
+ Two-digit number representing the card's expiration month.
+ """
+ exp_year: int
+ """
+ Four-digit number representing the card's expiration year.
+ """
+ fingerprint: Optional[str]
+ """
+ Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
+
+ *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
+ """
+ funding: Optional[str]
+ """
+ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
+ """
+ iin: Optional[str]
+ """
+ Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
+ """
+ issuer: Optional[str]
+ """
+ The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
+ """
+ last4: Optional[str]
+ """
+ The last four digits of the card.
+ """
+ network: Optional[str]
+ """
+ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
+ """
+ network_token: Optional[NetworkToken]
+ """
+ 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. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
+ """
+ regulated_status: Optional[
+ Union[Literal["regulated", "unregulated"], str]
+ ]
+ """
+ Status of a card based on the card issuer.
+ """
+ three_d_secure: Optional[ThreeDSecure]
+ """
+ Populated if this transaction used 3D Secure authentication.
+ """
+ transaction_link_id: Optional[str]
+ """
+ Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
+ """
+ _inner_class_types = {
+ "checks": Checks,
+ "network_token": NetworkToken,
+ "three_d_secure": ThreeDSecure,
+ }
+
+ card: Card
+ type: Union[Literal["card"], str]
+ """
+ The type of funding source used for this Link payment.
+ """
+ _inner_class_types = {"card": Card}
+
funding_source_group: Optional[str]
"""
The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time.
"""
+ funding_sources: Optional[List[FundingSource]]
+ """
+ Details about the funding sources used for this Link payment.
+ """
+ _inner_class_types = {"funding_sources": FundingSource}
class Masterpass(StripeObject):
class BillingAddress(StripeObject):
@@ -1184,7 +1396,13 @@ class Crypto(StripeObject):
network: Optional[
Union[
Literal[
- "base", "ethereum", "polygon", "solana", "sui", "tempo"
+ "base",
+ "ethereum",
+ "polygon",
+ "solana",
+ "sui",
+ "tempo",
+ "tron",
],
str,
]
@@ -1669,6 +1887,203 @@ class KrCard(StripeObject):
"""
class Link(StripeObject):
+ class FundingSource(StripeObject):
+ class Card(StripeObject):
+ class Checks(StripeObject):
+ address_line1_check: Optional[str]
+ """
+ If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ """
+ address_postal_code_check: Optional[str]
+ """
+ If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ """
+ cvc_check: Optional[str]
+ """
+ If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ """
+
+ class NetworkToken(StripeObject):
+ used: bool
+ """
+ Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
+ """
+
+ class ThreeDSecure(StripeObject):
+ authentication_flow: Optional[
+ Union[Literal["challenge", "frictionless"], str]
+ ]
+ """
+ For authenticated transactions: how the customer was authenticated by
+ the issuing bank.
+ """
+ electronic_commerce_indicator: Optional[
+ Union[Literal["01", "02", "05", "06", "07"], str]
+ ]
+ """
+ The Electronic Commerce Indicator (ECI). A protocol-level field
+ indicating what degree of authentication was performed.
+ """
+ exemption_indicator: Optional[
+ Union[Literal["low_risk", "none"], str]
+ ]
+ """
+ The exemption requested via 3DS and accepted by the issuer at authentication time.
+ """
+ exemption_indicator_applied: Optional[bool]
+ """
+ Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on
+ the outcome of Stripe's internal risk assessment.
+ """
+ result: Optional[
+ Union[
+ Literal[
+ "attempt_acknowledged",
+ "authenticated",
+ "data_share_only",
+ "exempted",
+ "failed",
+ "not_supported",
+ "processing_error",
+ ],
+ str,
+ ]
+ ]
+ """
+ Indicates the outcome of 3D Secure authentication.
+ """
+ result_reason: Optional[
+ Union[
+ Literal[
+ "abandoned",
+ "bypassed",
+ "canceled",
+ "card_not_enrolled",
+ "network_not_supported",
+ "protocol_error",
+ "rejected",
+ ],
+ str,
+ ]
+ ]
+ """
+ Additional information about why 3D Secure succeeded or failed based
+ on the `result`.
+ """
+ transaction_id: Optional[str]
+ """
+ The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
+ (dsTransId) for this payment.
+ """
+ version: Optional[
+ Union[
+ Literal[
+ "1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1"
+ ],
+ str,
+ ]
+ ]
+ """
+ The version of 3D Secure that was used.
+ """
+
+ amount_authorized: Optional[int]
+ """
+ The authorized amount.
+ """
+ authorization_code: Optional[str]
+ """
+ Authorization code on the charge.
+ """
+ brand: Optional[str]
+ """
+ Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
+ """
+ checks: Optional[Checks]
+ """
+ Check results by Card networks on Card address and CVC at time of payment.
+ """
+ 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.
+ """
+ description: Optional[str]
+ """
+ A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
+ """
+ electronic_commerce_indicator: Optional[str]
+ """
+ The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift.
+ """
+ exp_month: int
+ """
+ Two-digit number representing the card's expiration month.
+ """
+ exp_year: int
+ """
+ Four-digit number representing the card's expiration year.
+ """
+ fingerprint: Optional[str]
+ """
+ Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
+
+ *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
+ """
+ funding: Optional[str]
+ """
+ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
+ """
+ iin: Optional[str]
+ """
+ Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
+ """
+ issuer: Optional[str]
+ """
+ The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
+ """
+ last4: Optional[str]
+ """
+ The last four digits of the card.
+ """
+ network: Optional[str]
+ """
+ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
+ """
+ network_token: Optional[NetworkToken]
+ """
+ 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. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
+ """
+ regulated_status: Optional[
+ Union[Literal["regulated", "unregulated"], str]
+ ]
+ """
+ Status of a card based on the card issuer.
+ """
+ three_d_secure: Optional[ThreeDSecure]
+ """
+ Populated if this transaction used 3D Secure authentication.
+ """
+ transaction_link_id: Optional[str]
+ """
+ Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
+ """
+ _inner_class_types = {
+ "checks": Checks,
+ "network_token": NetworkToken,
+ "three_d_secure": ThreeDSecure,
+ }
+
+ card: Card
+ type: Union[Literal["card"], str]
+ """
+ The type of funding source used for this Link payment.
+ """
+ _inner_class_types = {"card": Card}
+
country: Optional[str]
"""
Two-letter ISO code representing the funding source country beneath the Link payment.
@@ -1678,6 +2093,11 @@ class Link(StripeObject):
"""
The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time.
"""
+ funding_sources: Optional[List[FundingSource]]
+ """
+ Details about the funding sources used for this Link payment.
+ """
+ _inner_class_types = {"funding_sources": FundingSource}
class MbWay(StripeObject):
pass
@@ -1891,7 +2311,10 @@ class SellerProtection(StripeObject):
_inner_class_types = {"seller_protection": SellerProtection}
class Paypay(StripeObject):
- pass
+ fingerprint: Optional[str]
+ """
+ Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
+ """
class Payto(StripeObject):
bsb_number: Optional[str]
diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py
index 41616ff39..0d71344dc 100644
--- a/stripe/_confirmation_token.py
+++ b/stripe/_confirmation_token.py
@@ -242,11 +242,11 @@ class Card(StripeObject):
class Checks(StripeObject):
address_line1_check: Optional[str]
"""
- If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
address_postal_code_check: Optional[str]
"""
- If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
cvc_check: Optional[str]
"""
diff --git a/stripe/_coupon.py b/stripe/_coupon.py
index df762d319..99aa5caed 100644
--- a/stripe/_coupon.py
+++ b/stripe/_coupon.py
@@ -25,9 +25,12 @@ class Coupon(
UpdateableAPIResource["Coupon"],
):
"""
- A coupon contains information about a percent-off or amount-off discount you
- might want to apply to a customer. Coupons may be applied to [subscriptions](https://docs.stripe.com/api#subscriptions), [invoices](https://docs.stripe.com/api#invoices),
- [checkout sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://docs.stripe.com/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents).
+ A coupon defines a fixed or custom discount. Fixed discounts take a percentage or amount off, while
+ [custom coupons](https://docs.stripe.com/billing/subscriptions/script-coupons) use scripts to calculate discounts dynamically for subscriptions and invoices.
+ You can apply coupons to customers' [subscriptions](https://docs.stripe.com/api#subscriptions), [invoices](https://docs.stripe.com/api#invoices),
+ [Checkout Sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://docs.stripe.com/api#quotes), and other supported billing objects.
+ The optional [applies_to.products](https://docs.stripe.com/api/coupons/object#coupon_object-applies_to-products) property limits which product line items are eligible for the discount, independently of where you apply the coupon.
+ Coupons don't work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents).
"""
OBJECT_NAME: ClassVar[Literal["coupon"]] = "coupon"
diff --git a/stripe/_dispute.py b/stripe/_dispute.py
index 2989110e4..e553c6af5 100644
--- a/stripe/_dispute.py
+++ b/stripe/_dispute.py
@@ -480,7 +480,7 @@ class Paypal(StripeObject):
"""
balance_transactions: List["BalanceTransaction"]
"""
- List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
+ List of balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
"""
charge: ExpandableField["Charge"]
"""
diff --git a/stripe/_event.py b/stripe/_event.py
index cd7a81189..bbffa3a23 100644
--- a/stripe/_event.py
+++ b/stripe/_event.py
@@ -86,7 +86,7 @@ class Request(StripeObject):
"""
pending_webhooks: int
"""
- Number of webhooks that haven't been successfully delivered (for example, to return a 20x response) to the URLs you specify.
+ Number of webhooks that haven't been successfully delivered (for example, to return a 20x response). This count can include deliveries to endpoints that belong to Connect platforms or apps with access to your account. These endpoints don't appear when you list your account's webhook endpoints or event destinations. To see the delivery status for each endpoint, view the event in [Workbench](https://docs.stripe.com/workbench/overview#events).
"""
request: Optional[Request]
"""
@@ -376,7 +376,7 @@ class Request(StripeObject):
@classmethod
def list(cls, **params: Unpack["EventListParams"]) -> ListObject["Event"]:
"""
- List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
+ List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object api_version attribute (not according to your current Stripe API version or Stripe-Version header). The list includes only events for the account that makes the request. A platform's list doesn't include events from its connected accounts. To list a connected account's events, make the request as the connected account](https://docs.stripe.com/api/events/object) using the Stripe-Account header.
"""
result = cls._static_request(
"get",
@@ -396,7 +396,7 @@ async def list_async(
cls, **params: Unpack["EventListParams"]
) -> ListObject["Event"]:
"""
- List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
+ List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object api_version attribute (not according to your current Stripe API version or Stripe-Version header). The list includes only events for the account that makes the request. A platform's list doesn't include events from its connected accounts. To list a connected account's events, make the request as the connected account](https://docs.stripe.com/api/events/object) using the Stripe-Account header.
"""
result = await cls._static_request_async(
"get",
diff --git a/stripe/_event_notification_handler.py b/stripe/_event_notification_handler.py
index 7866ab3db..43366dab7 100644
--- a/stripe/_event_notification_handler.py
+++ b/stripe/_event_notification_handler.py
@@ -909,6 +909,21 @@
from stripe.events._v2_core_account_updated_event import (
V2CoreAccountUpdatedEventNotification,
)
+ from stripe.events._v2_core_claimable_sandbox_claimed_event import (
+ V2CoreClaimableSandboxClaimedEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_created_event import (
+ V2CoreClaimableSandboxCreatedEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_expired_event import (
+ V2CoreClaimableSandboxExpiredEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_expiring_event import (
+ V2CoreClaimableSandboxExpiringEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_updated_event import (
+ V2CoreClaimableSandboxUpdatedEventNotification,
+ )
from stripe.events._v2_core_event_destination_ping_event import (
V2CoreEventDestinationPingEventNotification,
)
@@ -4923,6 +4938,71 @@ def on_v2_core_account_updated(
)
return func
+ def on_v2_core_claimable_sandbox_claimed(
+ self,
+ func: "Callable[[V2CoreClaimableSandboxClaimedEventNotification, StripeClient], CallbackReturn]",
+ ):
+ """
+ Registers a callback for the `V2CoreClaimableSandboxClaimedEvent` (`v2.core.claimable_sandbox.claimed`) event notification.
+ """
+ self._register(
+ "v2.core.claimable_sandbox.claimed",
+ func,
+ )
+ return func
+
+ def on_v2_core_claimable_sandbox_created(
+ self,
+ func: "Callable[[V2CoreClaimableSandboxCreatedEventNotification, StripeClient], CallbackReturn]",
+ ):
+ """
+ Registers a callback for the `V2CoreClaimableSandboxCreatedEvent` (`v2.core.claimable_sandbox.created`) event notification.
+ """
+ self._register(
+ "v2.core.claimable_sandbox.created",
+ func,
+ )
+ return func
+
+ def on_v2_core_claimable_sandbox_expired(
+ self,
+ func: "Callable[[V2CoreClaimableSandboxExpiredEventNotification, StripeClient], CallbackReturn]",
+ ):
+ """
+ Registers a callback for the `V2CoreClaimableSandboxExpiredEvent` (`v2.core.claimable_sandbox.expired`) event notification.
+ """
+ self._register(
+ "v2.core.claimable_sandbox.expired",
+ func,
+ )
+ return func
+
+ def on_v2_core_claimable_sandbox_expiring(
+ self,
+ func: "Callable[[V2CoreClaimableSandboxExpiringEventNotification, StripeClient], CallbackReturn]",
+ ):
+ """
+ Registers a callback for the `V2CoreClaimableSandboxExpiringEvent` (`v2.core.claimable_sandbox.expiring`) event notification.
+ """
+ self._register(
+ "v2.core.claimable_sandbox.expiring",
+ func,
+ )
+ return func
+
+ def on_v2_core_claimable_sandbox_updated(
+ self,
+ func: "Callable[[V2CoreClaimableSandboxUpdatedEventNotification, StripeClient], CallbackReturn]",
+ ):
+ """
+ Registers a callback for the `V2CoreClaimableSandboxUpdatedEvent` (`v2.core.claimable_sandbox.updated`) event notification.
+ """
+ self._register(
+ "v2.core.claimable_sandbox.updated",
+ func,
+ )
+ return func
+
def on_v2_core_event_destination_ping(
self,
func: "Callable[[V2CoreEventDestinationPingEventNotification, StripeClient], CallbackReturn]",
diff --git a/stripe/_event_service.py b/stripe/_event_service.py
index 2ea67cd99..d83997cc1 100644
--- a/stripe/_event_service.py
+++ b/stripe/_event_service.py
@@ -20,7 +20,7 @@ def list(
options: Optional["RequestOptions"] = None,
) -> "ListObject[Event]":
"""
- List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
+ List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object api_version attribute (not according to your current Stripe API version or Stripe-Version header). The list includes only events for the account that makes the request. A platform's list doesn't include events from its connected accounts. To list a connected account's events, make the request as the connected account](https://docs.stripe.com/api/events/object) using the Stripe-Account header.
"""
return cast(
"ListObject[Event]",
@@ -39,7 +39,7 @@ async def list_async(
options: Optional["RequestOptions"] = None,
) -> "ListObject[Event]":
"""
- List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
+ List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object api_version attribute (not according to your current Stripe API version or Stripe-Version header). The list includes only events for the account that makes the request. A platform's list doesn't include events from its connected accounts. To list a connected account's events, make the request as the connected account](https://docs.stripe.com/api/events/object) using the Stripe-Account header.
"""
return cast(
"ListObject[Event]",
diff --git a/stripe/_invoice.py b/stripe/_invoice.py
index 4f98e6ae5..91f1fa448 100644
--- a/stripe/_invoice.py
+++ b/stripe/_invoice.py
@@ -516,6 +516,7 @@ class LastFinalizationError(StripeObject):
"forwarding_api_upstream_connection_timeout",
"forwarding_api_upstream_error",
"idempotency_key_in_use",
+ "inactive_api_operation_confirmation_required",
"incorrect_address",
"incorrect_cvc",
"incorrect_number",
diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py
index 03ab5aa3f..ba992e559 100644
--- a/stripe/_object_classes.py
+++ b/stripe/_object_classes.py
@@ -374,6 +374,10 @@
"AccountPersonToken",
),
"v2.core.account_token": ("stripe.v2.core._account_token", "AccountToken"),
+ "v2.core.claimable_sandbox": (
+ "stripe.v2.core._claimable_sandbox",
+ "ClaimableSandbox",
+ ),
"v2.core.event": ("stripe.v2.core._event", "Event"),
"v2.core.event_destination": (
"stripe.v2.core._event_destination",
diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py
index 6d132e04c..114533b1e 100644
--- a/stripe/_payment_attempt_record.py
+++ b/stripe/_payment_attempt_record.py
@@ -460,7 +460,7 @@ class Checks(StripeObject):
]
]
"""
- If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If you provide an address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
cvc_check: Optional[
Union[
@@ -953,7 +953,13 @@ class Crypto(StripeObject):
network: Optional[
Union[
Literal[
- "base", "ethereum", "polygon", "solana", "sui", "tempo"
+ "base",
+ "ethereum",
+ "polygon",
+ "solana",
+ "sui",
+ "tempo",
+ "tron",
],
str,
]
@@ -1670,7 +1676,10 @@ class SellerProtection(StripeObject):
_inner_class_types = {"seller_protection": SellerProtection}
class Paypay(StripeObject):
- pass
+ fingerprint: Optional[str]
+ """
+ Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
+ """
class Payto(StripeObject):
bsb_number: Optional[str]
diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py
index 95c9c106a..7e8709f30 100644
--- a/stripe/_payment_intent.py
+++ b/stripe/_payment_intent.py
@@ -278,6 +278,7 @@ class LastPaymentError(StripeObject):
"forwarding_api_upstream_connection_timeout",
"forwarding_api_upstream_error",
"idempotency_key_in_use",
+ "inactive_api_operation_confirmation_required",
"incorrect_address",
"incorrect_cvc",
"incorrect_number",
@@ -1418,7 +1419,7 @@ class QrCode(StripeObject):
class VerifyWithMicrodeposits(StripeObject):
arrival_date: int
"""
- The timestamp when the microdeposits are expected to land.
+ The timestamp when the microdeposits are expected to land. Null for instant microdeposits.
"""
hosted_verification_url: str
"""
@@ -1551,18 +1552,688 @@ class WechatPayRedirectToIosApp(StripeObject):
}
class PaymentDetails(StripeObject):
+ class CarRentalDatum(StripeObject):
+ class Affiliate(StripeObject):
+ code: Optional[str]
+ """
+ Affiliate code.
+ """
+ name: Optional[str]
+ """
+ Affiliate name.
+ """
+
+ class Distance(StripeObject):
+ amount: Optional[int]
+ """
+ Distance amount.
+ """
+ unit: Optional[Union[Literal["kilometers", "miles"], str]]
+ """
+ Unit for the distance.
+ """
+
+ class Driver(StripeObject):
+ class DateOfBirth(StripeObject):
+ day: Optional[int]
+ """
+ Day of birth.
+ """
+ month: Optional[int]
+ """
+ Month of birth.
+ """
+ year: Optional[int]
+ """
+ Year of birth.
+ """
+
+ date_of_birth: Optional[DateOfBirth]
+ driver_identification_number: Optional[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: Optional[str]
+ """
+ Driver's tax number.
+ """
+ name: Optional[str]
+ """
+ Full name of the driver.
+ """
+ _inner_class_types = {"date_of_birth": DateOfBirth}
+
+ class DropOff(StripeObject):
+ class Address(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, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ address: Optional[Address]
+ location_name: Optional[str]
+ """
+ Name of the location.
+ """
+ time: Optional[int]
+ """
+ Time associated with the location.
+ """
+ _inner_class_types = {"address": Address}
+
+ class Insurance(StripeObject):
+ amount: Optional[int]
+ """
+ Amount of the insurance.
+ """
+ currency: Optional[str]
+ """
+ Currency for the insurance price.
+ """
+ insurance_company_name: Optional[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Optional[
+ Union[
+ Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ],
+ str,
+ ]
+ ]
+ """
+ Type of insurance.
+ """
+
+ class Pickup(StripeObject):
+ class Address(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, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ address: Optional[Address]
+ location_name: Optional[str]
+ """
+ Name of the location.
+ """
+ time: Optional[int]
+ """
+ Time associated with the location.
+ """
+ _inner_class_types = {"address": Address}
+
+ class Total(StripeObject):
+ class Discounts(StripeObject):
+ corporate_client_code: Optional[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: Optional[str]
+ """
+ Coupon code applied.
+ """
+ maximum_free_miles_or_kilometers: Optional[int]
+ """
+ Maximum free miles or kilometers included.
+ """
+
+ class ExtraCharge(StripeObject):
+ amount: Optional[int]
+ """
+ Amount of the extra charge.
+ """
+ type: Optional[
+ Union[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ],
+ str,
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+ class Tax(StripeObject):
+ class TaxItem(StripeObject):
+ amount: Optional[int]
+ """
+ Tax amount.
+ """
+ rate: Optional[int]
+ """
+ Tax rate.
+ """
+ type: Optional[str]
+ """
+ Type of tax.
+ """
+
+ tax_exempt_indicator: Optional[bool]
+ """
+ Indicates whether the rental is tax-exempt.
+ """
+ tax_items: Optional[List[TaxItem]]
+ """
+ Tax details.
+ """
+ _inner_class_types = {"tax_items": TaxItem}
+
+ amount: Optional[int]
+ """
+ Total amount.
+ """
+ currency: Optional[str]
+ """
+ Currency for the total amount.
+ """
+ discounts: Optional[Discounts]
+ extra_charges: Optional[List[ExtraCharge]]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: Optional[int]
+ """
+ Rate per unit.
+ """
+ rate_unit: Optional[Union[Literal["kilometers", "miles"], str]]
+ """
+ Unit for the rate.
+ """
+ tax: Optional[Tax]
+ _inner_class_types = {
+ "discounts": Discounts,
+ "extra_charges": ExtraCharge,
+ "tax": Tax,
+ }
+
+ class Vehicle(StripeObject):
+ make: Optional[str]
+ """
+ Make of the vehicle.
+ """
+ model: Optional[str]
+ """
+ Model of the vehicle.
+ """
+ odometer: Optional[int]
+ """
+ Odometer reading.
+ """
+ type: Optional[
+ Union[
+ Literal[
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
+ ],
+ str,
+ ]
+ ]
+ """
+ Type of the vehicle.
+ """
+ vehicle_class: Optional[
+ Union[
+ Literal[
+ "business",
+ "economy",
+ "first_class",
+ "premium_economy",
+ ],
+ str,
+ ]
+ ]
+ """
+ Class of the vehicle.
+ """
+ vehicle_identification_number: Optional[str]
+ """
+ Vehicle identification number.
+ """
+
+ affiliate: Optional[Affiliate]
+ booking_number: Optional[str]
+ """
+ The booking number associated with the car rental.
+ """
+ carrier_name: Optional[str]
+ """
+ The name of the car rental company.
+ """
+ customer_service_phone_number: Optional[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: Optional[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: Optional[Distance]
+ drivers: Optional[List[Driver]]
+ """
+ The details of the drivers associated with the rental.
+ """
+ drop_off: Optional[DropOff]
+ insurances: Optional[List[Insurance]]
+ """
+ Insurance details for the car rental.
+ """
+ no_show_indicator: Optional[bool]
+ """
+ Indicates if the customer did not keep nor cancel their booking.
+ """
+ pickup: Optional[Pickup]
+ renter_name: Optional[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: Optional[Total]
+ vehicle: Optional[Vehicle]
+ _inner_class_types = {
+ "affiliate": Affiliate,
+ "distance": Distance,
+ "drivers": Driver,
+ "drop_off": DropOff,
+ "insurances": Insurance,
+ "pickup": Pickup,
+ "total": Total,
+ "vehicle": Vehicle,
+ }
+
+ class LodgingDatum(StripeObject):
+ class Accommodation(StripeObject):
+ accommodation_type: Optional[
+ Union[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ],
+ str,
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: Optional[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: Optional[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: Optional[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: Optional[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: Optional[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: Optional[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+ class Affiliate(StripeObject):
+ code: Optional[str]
+ """
+ Affiliate partner code.
+ """
+ name: Optional[str]
+ """
+ Affiliate partner name.
+ """
+
+ class Guest(StripeObject):
+ name: Optional[str]
+ """
+ Guest's full name.
+ """
+
+ class Host(StripeObject):
+ class Address(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, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ address: Optional[Address]
+ country_of_domicile: Optional[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: Optional[str]
+ """
+ Reference number for the host.
+ """
+ host_type: Optional[
+ Union[
+ Literal["hostel", "hotel", "owner", "rental_agency"],
+ str,
+ ]
+ ]
+ """
+ Type of host.
+ """
+ name: Optional[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: Optional[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: Optional[str]
+ """
+ Property phone number.
+ """
+ registered_at: Optional[int]
+ """
+ Host's registration date.
+ """
+ _inner_class_types = {"address": Address}
+
+ class Insurance(StripeObject):
+ amount: Optional[int]
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: Optional[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: Optional[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Optional[
+ Union[
+ Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ],
+ str,
+ ]
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+ class Total(StripeObject):
+ class Discounts(StripeObject):
+ corporate_client_code: Optional[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: Optional[str]
+ """
+ Coupon code.
+ """
+
+ class ExtraCharge(StripeObject):
+ amount: Optional[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Optional[
+ Union[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "phone",
+ "restaurant",
+ ],
+ str,
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+ class Tax(StripeObject):
+ class TaxItem(StripeObject):
+ amount: Optional[int]
+ """
+ Tax amount in cents.
+ """
+ rate: Optional[int]
+ """
+ Tax rate.
+ """
+ type: Optional[str]
+ """
+ Type of tax applied.
+ """
+
+ tax_exempt_indicator: Optional[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ tax_items: Optional[List[TaxItem]]
+ """
+ Tax details.
+ """
+ _inner_class_types = {"tax_items": TaxItem}
+
+ amount: Optional[int]
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: Optional[int]
+ """
+ Cash advances in cents.
+ """
+ currency: Optional[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: Optional[Discounts]
+ extra_charges: Optional[List[ExtraCharge]]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: Optional[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: Optional[Tax]
+ _inner_class_types = {
+ "discounts": Discounts,
+ "extra_charges": ExtraCharge,
+ "tax": Tax,
+ }
+
+ accommodation: Optional[Accommodation]
+ affiliate: Optional[Affiliate]
+ booking_number: Optional[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: Optional[int]
+ """
+ Check-in date.
+ """
+ checkout_at: Optional[int]
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: Optional[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: Optional[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: Optional[List[Guest]]
+ """
+ List of guests for the lodging.
+ """
+ host: Optional[Host]
+ insurances: Optional[List[Insurance]]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: Optional[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: Optional[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: Optional[str]
+ """
+ Renter name for the lodging.
+ """
+ total: Optional[Total]
+ _inner_class_types = {
+ "accommodation": Accommodation,
+ "affiliate": Affiliate,
+ "guests": Guest,
+ "host": Host,
+ "insurances": Insurance,
+ "total": Total,
+ }
+
+ car_rental_data: Optional[List[CarRentalDatum]]
customer_reference: Optional[str]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ lodging_data: Optional[List[LodgingDatum]]
order_reference: Optional[str]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""
+ _inner_class_types = {
+ "car_rental_data": CarRentalDatum,
+ "lodging_data": LodgingDatum,
+ }
class PaymentMethodConfigurationDetails(StripeObject):
id: str
diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py
index a1e34b91b..821a48c11 100644
--- a/stripe/_payment_method.py
+++ b/stripe/_payment_method.py
@@ -191,11 +191,11 @@ class Card(StripeObject):
class Checks(StripeObject):
address_line1_check: Optional[str]
"""
- If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
address_postal_code_check: Optional[str]
"""
- If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
cvc_check: Optional[str]
"""
diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py
index f80571d42..0d03dd5c7 100644
--- a/stripe/_payment_record.py
+++ b/stripe/_payment_record.py
@@ -480,7 +480,7 @@ class Checks(StripeObject):
]
]
"""
- If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If you provide an address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
cvc_check: Optional[
Union[
@@ -973,7 +973,13 @@ class Crypto(StripeObject):
network: Optional[
Union[
Literal[
- "base", "ethereum", "polygon", "solana", "sui", "tempo"
+ "base",
+ "ethereum",
+ "polygon",
+ "solana",
+ "sui",
+ "tempo",
+ "tron",
],
str,
]
@@ -1690,7 +1696,10 @@ class SellerProtection(StripeObject):
_inner_class_types = {"seller_protection": SellerProtection}
class Paypay(StripeObject):
- pass
+ fingerprint: Optional[str]
+ """
+ Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
+ """
class Payto(StripeObject):
bsb_number: Optional[str]
diff --git a/stripe/_product.py b/stripe/_product.py
index a0c923b6e..2ffaea6b8 100644
--- a/stripe/_product.py
+++ b/stripe/_product.py
@@ -69,6 +69,10 @@ class Product(
OBJECT_NAME: ClassVar[Literal["product"]] = "product"
class MarketingFeature(StripeObject):
+ loss_message: Optional[str]
+ """
+ Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you update `marketing_features`, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it.
+ """
name: Optional[str]
"""
The marketing feature name. Up to 80 characters long.
diff --git a/stripe/_refund.py b/stripe/_refund.py
index c819c0cdd..59ead9c77 100644
--- a/stripe/_refund.py
+++ b/stripe/_refund.py
@@ -12,6 +12,7 @@
from typing_extensions import Literal, Type, Unpack, TYPE_CHECKING
if TYPE_CHECKING:
+ from stripe._application import Application
from stripe._balance_transaction import BalanceTransaction
from stripe._charge import Charge
from stripe._customer import Customer
@@ -67,6 +68,16 @@ class AmazonPay(StripeObject):
class AuBankTransfer(StripeObject):
pass
+ class Bizum(StripeObject):
+ reference: Optional[str]
+ """
+ The reference assigned to the refund.
+ """
+ reference_status: Optional[str]
+ """
+ Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
+ """
+
class Blik(StripeObject):
network_decline_code: Optional[str]
"""
@@ -269,6 +280,16 @@ class ThBankTransfer(StripeObject):
class Twint(StripeObject):
pass
+ class Upi(StripeObject):
+ reference: Optional[str]
+ """
+ The reference assigned to the refund.
+ """
+ reference_status: Optional[str]
+ """
+ Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
+ """
+
class UsBankTransfer(StripeObject):
reference: Optional[str]
"""
@@ -291,6 +312,7 @@ class Zip(StripeObject):
alma: Optional[Alma]
amazon_pay: Optional[AmazonPay]
au_bank_transfer: Optional[AuBankTransfer]
+ bizum: Optional[Bizum]
blik: Optional[Blik]
br_bank_transfer: Optional[BrBankTransfer]
card: Optional[Card]
@@ -322,6 +344,7 @@ class Zip(StripeObject):
"""
The type of transaction-specific details of the payment method used in the refund (e.g., `card`). An additional hash is included on `destination_details` with a name matching this value. It contains information specific to the refund transaction.
"""
+ upi: Optional[Upi]
us_bank_transfer: Optional[UsBankTransfer]
wechat_pay: Optional[WechatPay]
zip: Optional[Zip]
@@ -332,6 +355,7 @@ class Zip(StripeObject):
"alma": Alma,
"amazon_pay": AmazonPay,
"au_bank_transfer": AuBankTransfer,
+ "bizum": Bizum,
"blik": Blik,
"br_bank_transfer": BrBankTransfer,
"card": Card,
@@ -359,6 +383,7 @@ class Zip(StripeObject):
"swish": Swish,
"th_bank_transfer": ThBankTransfer,
"twint": Twint,
+ "upi": Upi,
"us_bank_transfer": UsBankTransfer,
"wechat_pay": WechatPay,
"zip": Zip,
@@ -404,6 +429,10 @@ class PresentmentDetails(StripeObject):
"""
Amount, in cents (or local equivalent).
"""
+ application: Optional[ExpandableField["Application"]]
+ """
+ ID of the Connect application that created the refund. This can differ from the application on the associated Charge or PaymentIntent. A null value does not necessarily mean the refund was created without a Connect application.
+ """
balance_transaction: Optional[ExpandableField["BalanceTransaction"]]
"""
Balance transaction that describes the impact on your account balance.
diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py
index d0c4d07a7..d54083cf9 100644
--- a/stripe/_setup_attempt.py
+++ b/stripe/_setup_attempt.py
@@ -95,11 +95,11 @@ class Card(StripeObject):
class Checks(StripeObject):
address_line1_check: Optional[str]
"""
- If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
address_postal_code_check: Optional[str]
"""
- If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
+ If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
cvc_check: Optional[str]
"""
@@ -596,6 +596,7 @@ class SetupError(StripeObject):
"forwarding_api_upstream_connection_timeout",
"forwarding_api_upstream_error",
"idempotency_key_in_use",
+ "inactive_api_operation_confirmation_required",
"incorrect_address",
"incorrect_cvc",
"incorrect_number",
diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py
index 6ad608b70..bf3e1f43a 100644
--- a/stripe/_setup_intent.py
+++ b/stripe/_setup_intent.py
@@ -170,6 +170,7 @@ class LastSetupError(StripeObject):
"forwarding_api_upstream_connection_timeout",
"forwarding_api_upstream_error",
"idempotency_key_in_use",
+ "inactive_api_operation_confirmation_required",
"incorrect_address",
"incorrect_cvc",
"incorrect_number",
@@ -500,7 +501,7 @@ class QrCode(StripeObject):
class VerifyWithMicrodeposits(StripeObject):
arrival_date: int
"""
- The timestamp when the microdeposits are expected to land.
+ The timestamp when the microdeposits are expected to land. Null for instant microdeposits.
"""
hosted_verification_url: str
"""
diff --git a/stripe/apps/_install.py b/stripe/apps/_install.py
index c40ac4da4..4dc31c64f 100644
--- a/stripe/apps/_install.py
+++ b/stripe/apps/_install.py
@@ -133,7 +133,7 @@ class ContentSecurityPolicyPending(StripeObject):
@classmethod
def create(cls, **params: Unpack["InstallCreateParams"]) -> "Install":
"""
- Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
+ Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
"""
return cast(
"Install",
@@ -149,7 +149,7 @@ async def create_async(
cls, **params: Unpack["InstallCreateParams"]
) -> "Install":
"""
- Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
+ Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
"""
return cast(
"Install",
@@ -165,7 +165,7 @@ def list(
cls, **params: Unpack["InstallListParams"]
) -> ListObject["Install"]:
"""
- Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox.
+ Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox, and also that app's legacy test mode installs when the developer has no legacy test mode.
"""
result = cls._static_request(
"get",
@@ -185,7 +185,7 @@ async def list_async(
cls, **params: Unpack["InstallListParams"]
) -> ListObject["Install"]:
"""
- Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox.
+ Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox, and also that app's legacy test mode installs when the developer has no legacy test mode.
"""
result = await cls._static_request_async(
"get",
diff --git a/stripe/apps/_install_service.py b/stripe/apps/_install_service.py
index 930d3be45..e4efb1694 100644
--- a/stripe/apps/_install_service.py
+++ b/stripe/apps/_install_service.py
@@ -27,7 +27,7 @@ def list(
options: Optional["RequestOptions"] = None,
) -> "ListObject[Install]":
"""
- Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox.
+ Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox, and also that app's legacy test mode installs when the developer has no legacy test mode.
"""
return cast(
"ListObject[Install]",
@@ -46,7 +46,7 @@ async def list_async(
options: Optional["RequestOptions"] = None,
) -> "ListObject[Install]":
"""
- Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox.
+ Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox, and also that app's legacy test mode installs when the developer has no legacy test mode.
"""
return cast(
"ListObject[Install]",
@@ -65,7 +65,7 @@ def create(
options: Optional["RequestOptions"] = None,
) -> "Install":
"""
- Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
+ Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
"""
return cast(
"Install",
@@ -84,7 +84,7 @@ async def create_async(
options: Optional["RequestOptions"] = None,
) -> "Install":
"""
- Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
+ Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
"""
return cast(
"Install",
diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py
index 5b0f755d2..95bbcf746 100644
--- a/stripe/checkout/_session.py
+++ b/stripe/checkout/_session.py
@@ -112,6 +112,10 @@ class Liability(StripeObject):
Type of the account referenced.
"""
+ address_collection_precision: Optional[Literal["full", "minimal"]]
+ """
+ Controls how much address information Checkout collects when automatic tax is enabled.
+ """
enabled: bool
"""
Indicates whether automatic tax is enabled for the session
@@ -2766,6 +2770,8 @@ class Link(StripeObject):
def create(cls, **params: Unpack["SessionCreateParams"]) -> "Session":
"""
Creates a Checkout Session object.
+
+ Validate requests on your server and protect your application's Session-creation endpoint with access controls and limits on repeated creation. See [Protect your Session-creation endpoint](https://docs.stripe.com/payments/accept-a-payment?payment-ui=elements&api-integration=checkout#protect-session-creation).
"""
return cast(
"Session",
@@ -2782,6 +2788,8 @@ async def create_async(
) -> "Session":
"""
Creates a Checkout Session object.
+
+ Validate requests on your server and protect your application's Session-creation endpoint with access controls and limits on repeated creation. See [Protect your Session-creation endpoint](https://docs.stripe.com/payments/accept-a-payment?payment-ui=elements&api-integration=checkout#protect-session-creation).
"""
return cast(
"Session",
diff --git a/stripe/checkout/_session_service.py b/stripe/checkout/_session_service.py
index 96664e0af..cf8ebcc3f 100644
--- a/stripe/checkout/_session_service.py
+++ b/stripe/checkout/_session_service.py
@@ -102,6 +102,8 @@ def create(
) -> "Session":
"""
Creates a Checkout Session object.
+
+ Validate requests on your server and protect your application's Session-creation endpoint with access controls and limits on repeated creation. See [Protect your Session-creation endpoint](https://docs.stripe.com/payments/accept-a-payment?payment-ui=elements&api-integration=checkout#protect-session-creation).
"""
return cast(
"Session",
@@ -121,6 +123,8 @@ async def create_async(
) -> "Session":
"""
Creates a Checkout Session object.
+
+ Validate requests on your server and protect your application's Session-creation endpoint with access controls and limits on repeated creation. See [Protect your Session-creation endpoint](https://docs.stripe.com/payments/accept-a-payment?payment-ui=elements&api-integration=checkout#protect-session-creation).
"""
return cast(
"Session",
diff --git a/stripe/events/__init__.py b/stripe/events/__init__.py
index f4b3dc127..cc8ec2511 100644
--- a/stripe/events/__init__.py
+++ b/stripe/events/__init__.py
@@ -1173,6 +1173,26 @@
V2CoreAccountUpdatedEvent as V2CoreAccountUpdatedEvent,
V2CoreAccountUpdatedEventNotification as V2CoreAccountUpdatedEventNotification,
)
+ from stripe.events._v2_core_claimable_sandbox_claimed_event import (
+ V2CoreClaimableSandboxClaimedEvent as V2CoreClaimableSandboxClaimedEvent,
+ V2CoreClaimableSandboxClaimedEventNotification as V2CoreClaimableSandboxClaimedEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_created_event import (
+ V2CoreClaimableSandboxCreatedEvent as V2CoreClaimableSandboxCreatedEvent,
+ V2CoreClaimableSandboxCreatedEventNotification as V2CoreClaimableSandboxCreatedEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_expired_event import (
+ V2CoreClaimableSandboxExpiredEvent as V2CoreClaimableSandboxExpiredEvent,
+ V2CoreClaimableSandboxExpiredEventNotification as V2CoreClaimableSandboxExpiredEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_expiring_event import (
+ V2CoreClaimableSandboxExpiringEvent as V2CoreClaimableSandboxExpiringEvent,
+ V2CoreClaimableSandboxExpiringEventNotification as V2CoreClaimableSandboxExpiringEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_updated_event import (
+ V2CoreClaimableSandboxUpdatedEvent as V2CoreClaimableSandboxUpdatedEvent,
+ V2CoreClaimableSandboxUpdatedEventNotification as V2CoreClaimableSandboxUpdatedEventNotification,
+ )
from stripe.events._v2_core_event_destination_ping_event import (
V2CoreEventDestinationPingEvent as V2CoreEventDestinationPingEvent,
V2CoreEventDestinationPingEventNotification as V2CoreEventDestinationPingEventNotification,
@@ -3530,6 +3550,46 @@
"stripe.events._v2_core_account_updated_event",
False,
),
+ "V2CoreClaimableSandboxClaimedEvent": (
+ "stripe.events._v2_core_claimable_sandbox_claimed_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxClaimedEventNotification": (
+ "stripe.events._v2_core_claimable_sandbox_claimed_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxCreatedEvent": (
+ "stripe.events._v2_core_claimable_sandbox_created_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxCreatedEventNotification": (
+ "stripe.events._v2_core_claimable_sandbox_created_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxExpiredEvent": (
+ "stripe.events._v2_core_claimable_sandbox_expired_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxExpiredEventNotification": (
+ "stripe.events._v2_core_claimable_sandbox_expired_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxExpiringEvent": (
+ "stripe.events._v2_core_claimable_sandbox_expiring_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxExpiringEventNotification": (
+ "stripe.events._v2_core_claimable_sandbox_expiring_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxUpdatedEvent": (
+ "stripe.events._v2_core_claimable_sandbox_updated_event",
+ False,
+ ),
+ "V2CoreClaimableSandboxUpdatedEventNotification": (
+ "stripe.events._v2_core_claimable_sandbox_updated_event",
+ False,
+ ),
"V2CoreEventDestinationPingEvent": (
"stripe.events._v2_core_event_destination_ping_event",
False,
diff --git a/stripe/events/_event_classes.py b/stripe/events/_event_classes.py
index bb3e32ef0..c0f187340 100644
--- a/stripe/events/_event_classes.py
+++ b/stripe/events/_event_classes.py
@@ -877,6 +877,21 @@
from stripe.events._v2_core_account_updated_event import (
V2CoreAccountUpdatedEventNotification,
)
+ from stripe.events._v2_core_claimable_sandbox_claimed_event import (
+ V2CoreClaimableSandboxClaimedEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_created_event import (
+ V2CoreClaimableSandboxCreatedEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_expired_event import (
+ V2CoreClaimableSandboxExpiredEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_expiring_event import (
+ V2CoreClaimableSandboxExpiringEventNotification,
+ )
+ from stripe.events._v2_core_claimable_sandbox_updated_event import (
+ V2CoreClaimableSandboxUpdatedEventNotification,
+ )
from stripe.events._v2_core_event_destination_ping_event import (
V2CoreEventDestinationPingEventNotification,
)
@@ -2148,6 +2163,26 @@
"stripe.events._v2_core_account_updated_event",
"V2CoreAccountUpdatedEvent",
),
+ "v2.core.claimable_sandbox.claimed": (
+ "stripe.events._v2_core_claimable_sandbox_claimed_event",
+ "V2CoreClaimableSandboxClaimedEvent",
+ ),
+ "v2.core.claimable_sandbox.created": (
+ "stripe.events._v2_core_claimable_sandbox_created_event",
+ "V2CoreClaimableSandboxCreatedEvent",
+ ),
+ "v2.core.claimable_sandbox.expired": (
+ "stripe.events._v2_core_claimable_sandbox_expired_event",
+ "V2CoreClaimableSandboxExpiredEvent",
+ ),
+ "v2.core.claimable_sandbox.expiring": (
+ "stripe.events._v2_core_claimable_sandbox_expiring_event",
+ "V2CoreClaimableSandboxExpiringEvent",
+ ),
+ "v2.core.claimable_sandbox.updated": (
+ "stripe.events._v2_core_claimable_sandbox_updated_event",
+ "V2CoreClaimableSandboxUpdatedEvent",
+ ),
"v2.core.event_destination.ping": (
"stripe.events._v2_core_event_destination_ping_event",
"V2CoreEventDestinationPingEvent",
@@ -3467,6 +3502,26 @@ def get_v2_event_class(type_: str):
"stripe.events._v2_core_account_updated_event",
"V2CoreAccountUpdatedEventNotification",
),
+ "v2.core.claimable_sandbox.claimed": (
+ "stripe.events._v2_core_claimable_sandbox_claimed_event",
+ "V2CoreClaimableSandboxClaimedEventNotification",
+ ),
+ "v2.core.claimable_sandbox.created": (
+ "stripe.events._v2_core_claimable_sandbox_created_event",
+ "V2CoreClaimableSandboxCreatedEventNotification",
+ ),
+ "v2.core.claimable_sandbox.expired": (
+ "stripe.events._v2_core_claimable_sandbox_expired_event",
+ "V2CoreClaimableSandboxExpiredEventNotification",
+ ),
+ "v2.core.claimable_sandbox.expiring": (
+ "stripe.events._v2_core_claimable_sandbox_expiring_event",
+ "V2CoreClaimableSandboxExpiringEventNotification",
+ ),
+ "v2.core.claimable_sandbox.updated": (
+ "stripe.events._v2_core_claimable_sandbox_updated_event",
+ "V2CoreClaimableSandboxUpdatedEventNotification",
+ ),
"v2.core.event_destination.ping": (
"stripe.events._v2_core_event_destination_ping_event",
"V2CoreEventDestinationPingEventNotification",
@@ -3916,6 +3971,11 @@ def get_v2_event_notification_class(type_: str):
"V2CoreAccountPersonDeletedEventNotification",
"V2CoreAccountPersonUpdatedEventNotification",
"V2CoreAccountUpdatedEventNotification",
+ "V2CoreClaimableSandboxClaimedEventNotification",
+ "V2CoreClaimableSandboxCreatedEventNotification",
+ "V2CoreClaimableSandboxExpiredEventNotification",
+ "V2CoreClaimableSandboxExpiringEventNotification",
+ "V2CoreClaimableSandboxUpdatedEventNotification",
"V2CoreEventDestinationPingEventNotification",
"V2MoneyManagementAdjustmentCreatedEventNotification",
"V2MoneyManagementFinancialAccountCreatedEventNotification",
diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
index ed11fbbd1..8e2a3d249 100644
--- a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
+++ b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
@@ -109,6 +109,7 @@ class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventDat
"au_becs_debit_payments",
"bacs_debit_payments",
"bancontact_payments",
+ "billie_payments",
"blik_payments",
"blik_recurring_payments",
"boleto_payments",
@@ -127,16 +128,20 @@ class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventDat
"konbini_payments",
"kr_card_payments",
"link_payments",
+ "mb_way_payments",
"mobilepay_payments",
"multibanco_payments",
"mx_bank_transfer_payments",
"naver_pay_payments",
+ "nz_bank_account_becs_debit_payments",
"oxxo_payments",
"p24_payments",
"payco_payments",
"paynow_payments",
"stripe_balance.payouts",
+ "paypay_payments",
"pay_by_bank_payments",
+ "pix_payments",
"promptpay_payments",
"revolut_pay_payments",
"samsung_pay_payments",
diff --git a/stripe/events/_v2_core_claimable_sandbox_claimed_event.py b/stripe/events/_v2_core_claimable_sandbox_claimed_event.py
new file mode 100644
index 000000000..f483d66b4
--- /dev/null
+++ b/stripe/events/_v2_core_claimable_sandbox_claimed_event.py
@@ -0,0 +1,113 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._claimable_sandbox import ClaimableSandbox
+
+
+class V2CoreClaimableSandboxClaimedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.claimed"
+ type: Literal["v2.core.claimable_sandbox.claimed"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreClaimableSandboxClaimedEvent":
+ return cast(
+ "V2CoreClaimableSandboxClaimedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreClaimableSandboxClaimedEvent":
+ return cast(
+ "V2CoreClaimableSandboxClaimedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ClaimableSandbox":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreClaimableSandboxClaimedEvent(Event):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.claimed"
+ type: Literal["v2.core.claimable_sandbox.claimed"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ClaimableSandbox",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
+ ),
+ )
diff --git a/stripe/events/_v2_core_claimable_sandbox_created_event.py b/stripe/events/_v2_core_claimable_sandbox_created_event.py
new file mode 100644
index 000000000..2ddb532c5
--- /dev/null
+++ b/stripe/events/_v2_core_claimable_sandbox_created_event.py
@@ -0,0 +1,113 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._claimable_sandbox import ClaimableSandbox
+
+
+class V2CoreClaimableSandboxCreatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.created"
+ type: Literal["v2.core.claimable_sandbox.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreClaimableSandboxCreatedEvent":
+ return cast(
+ "V2CoreClaimableSandboxCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreClaimableSandboxCreatedEvent":
+ return cast(
+ "V2CoreClaimableSandboxCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ClaimableSandbox":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreClaimableSandboxCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.created"
+ type: Literal["v2.core.claimable_sandbox.created"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ClaimableSandbox",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
+ ),
+ )
diff --git a/stripe/events/_v2_core_claimable_sandbox_expired_event.py b/stripe/events/_v2_core_claimable_sandbox_expired_event.py
new file mode 100644
index 000000000..0198c8c1f
--- /dev/null
+++ b/stripe/events/_v2_core_claimable_sandbox_expired_event.py
@@ -0,0 +1,113 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._claimable_sandbox import ClaimableSandbox
+
+
+class V2CoreClaimableSandboxExpiredEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.expired"
+ type: Literal["v2.core.claimable_sandbox.expired"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreClaimableSandboxExpiredEvent":
+ return cast(
+ "V2CoreClaimableSandboxExpiredEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreClaimableSandboxExpiredEvent":
+ return cast(
+ "V2CoreClaimableSandboxExpiredEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ClaimableSandbox":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreClaimableSandboxExpiredEvent(Event):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.expired"
+ type: Literal["v2.core.claimable_sandbox.expired"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ClaimableSandbox",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
+ ),
+ )
diff --git a/stripe/events/_v2_core_claimable_sandbox_expiring_event.py b/stripe/events/_v2_core_claimable_sandbox_expiring_event.py
new file mode 100644
index 000000000..9470c5a30
--- /dev/null
+++ b/stripe/events/_v2_core_claimable_sandbox_expiring_event.py
@@ -0,0 +1,113 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._claimable_sandbox import ClaimableSandbox
+
+
+class V2CoreClaimableSandboxExpiringEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.expiring"
+ type: Literal["v2.core.claimable_sandbox.expiring"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreClaimableSandboxExpiringEvent":
+ return cast(
+ "V2CoreClaimableSandboxExpiringEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreClaimableSandboxExpiringEvent":
+ return cast(
+ "V2CoreClaimableSandboxExpiringEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ClaimableSandbox":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreClaimableSandboxExpiringEvent(Event):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.expiring"
+ type: Literal["v2.core.claimable_sandbox.expiring"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ClaimableSandbox",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
+ ),
+ )
diff --git a/stripe/events/_v2_core_claimable_sandbox_updated_event.py b/stripe/events/_v2_core_claimable_sandbox_updated_event.py
new file mode 100644
index 000000000..4dfff6379
--- /dev/null
+++ b/stripe/events/_v2_core_claimable_sandbox_updated_event.py
@@ -0,0 +1,113 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._claimable_sandbox import ClaimableSandbox
+
+
+class V2CoreClaimableSandboxUpdatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.updated"
+ type: Literal["v2.core.claimable_sandbox.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreClaimableSandboxUpdatedEvent":
+ return cast(
+ "V2CoreClaimableSandboxUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreClaimableSandboxUpdatedEvent":
+ return cast(
+ "V2CoreClaimableSandboxUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ClaimableSandbox":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ headers={"Stripe-Request-Trigger": f"event={self.id}"},
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ClaimableSandbox",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreClaimableSandboxUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.claimable_sandbox.updated"
+ type: Literal["v2.core.claimable_sandbox.updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ClaimableSandbox":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ClaimableSandbox",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={
+ "stripe_context": self.context,
+ "headers": {"Stripe-Request-Trigger": f"event={self.id}"},
+ },
+ ),
+ )
diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py
index a44860927..449d02589 100644
--- a/stripe/issuing/_card.py
+++ b/stripe/issuing/_card.py
@@ -1315,7 +1315,7 @@ class GooglePay(StripeObject):
"""
latest_fraud_warning: Optional[LatestFraudWarning]
"""
- Stripe's assessment of whether this card's details have been compromised. If this property isn't null, cancel and reissue the card to prevent fraudulent activity risk.
+ Stripe's assessment of whether this card's details have been compromised. If this property isn't null, cancel and reissue the card to reduce the risk of fraudulent activity. Stripe may remove a fraud warning if the cardholder confirms that the activity on the card is legitimate.
"""
lifecycle_controls: Optional[LifecycleControls]
"""
diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py
index 68704a43d..af8120bb6 100644
--- a/stripe/params/__init__.py
+++ b/stripe/params/__init__.py
@@ -1488,6 +1488,34 @@
PaymentIntentCaptureParamsHooksInputs as PaymentIntentCaptureParamsHooksInputs,
PaymentIntentCaptureParamsHooksInputsTax as PaymentIntentCaptureParamsHooksInputsTax,
PaymentIntentCaptureParamsPaymentDetails as PaymentIntentCaptureParamsPaymentDetails,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatum as PaymentIntentCaptureParamsPaymentDetailsLodgingDatum,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTaxItem as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTaxItem,
PaymentIntentCaptureParamsTransferData as PaymentIntentCaptureParamsTransferData,
)
from stripe.params._payment_intent_confirm_params import (
@@ -1510,6 +1538,34 @@
PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOffline as PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOffline,
PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOnline as PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOnline,
PaymentIntentConfirmParamsPaymentDetails as PaymentIntentConfirmParamsPaymentDetails,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatum as PaymentIntentConfirmParamsPaymentDetailsLodgingDatum,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTaxItem as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTaxItem,
PaymentIntentConfirmParamsPaymentMethodData as PaymentIntentConfirmParamsPaymentMethodData,
PaymentIntentConfirmParamsPaymentMethodDataAcssDebit as PaymentIntentConfirmParamsPaymentMethodDataAcssDebit,
PaymentIntentConfirmParamsPaymentMethodDataAffirm as PaymentIntentConfirmParamsPaymentMethodDataAffirm,
@@ -1681,6 +1737,34 @@
PaymentIntentCreateParamsMandateDataCustomerAcceptanceOffline as PaymentIntentCreateParamsMandateDataCustomerAcceptanceOffline,
PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline as PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline,
PaymentIntentCreateParamsPaymentDetails as PaymentIntentCreateParamsPaymentDetails,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatum as PaymentIntentCreateParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatum as PaymentIntentCreateParamsPaymentDetailsLodgingDatum,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest as PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost as PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem,
PaymentIntentCreateParamsPaymentMethodData as PaymentIntentCreateParamsPaymentMethodData,
PaymentIntentCreateParamsPaymentMethodDataAcssDebit as PaymentIntentCreateParamsPaymentMethodDataAcssDebit,
PaymentIntentCreateParamsPaymentMethodDataAffirm as PaymentIntentCreateParamsPaymentMethodDataAffirm,
@@ -1874,6 +1958,34 @@
PaymentIntentModifyParamsHooksInputs as PaymentIntentModifyParamsHooksInputs,
PaymentIntentModifyParamsHooksInputsTax as PaymentIntentModifyParamsHooksInputsTax,
PaymentIntentModifyParamsPaymentDetails as PaymentIntentModifyParamsPaymentDetails,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatum as PaymentIntentModifyParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatum as PaymentIntentModifyParamsPaymentDetailsLodgingDatum,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest as PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost as PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTaxItem as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTaxItem,
PaymentIntentModifyParamsPaymentMethodData as PaymentIntentModifyParamsPaymentMethodData,
PaymentIntentModifyParamsPaymentMethodDataAcssDebit as PaymentIntentModifyParamsPaymentMethodDataAcssDebit,
PaymentIntentModifyParamsPaymentMethodDataAffirm as PaymentIntentModifyParamsPaymentMethodDataAffirm,
@@ -2047,6 +2159,34 @@
PaymentIntentUpdateParamsHooksInputs as PaymentIntentUpdateParamsHooksInputs,
PaymentIntentUpdateParamsHooksInputsTax as PaymentIntentUpdateParamsHooksInputsTax,
PaymentIntentUpdateParamsPaymentDetails as PaymentIntentUpdateParamsPaymentDetails,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatum as PaymentIntentUpdateParamsPaymentDetailsLodgingDatum,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem,
PaymentIntentUpdateParamsPaymentMethodData as PaymentIntentUpdateParamsPaymentMethodData,
PaymentIntentUpdateParamsPaymentMethodDataAcssDebit as PaymentIntentUpdateParamsPaymentMethodDataAcssDebit,
PaymentIntentUpdateParamsPaymentMethodDataAffirm as PaymentIntentUpdateParamsPaymentMethodDataAffirm,
@@ -8346,6 +8486,118 @@
"stripe.params._payment_intent_capture_params",
False,
),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_capture_params",
+ False,
+ ),
"PaymentIntentCaptureParamsTransferData": (
"stripe.params._payment_intent_capture_params",
False,
@@ -8426,6 +8678,118 @@
"stripe.params._payment_intent_confirm_params",
False,
),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_confirm_params",
+ False,
+ ),
"PaymentIntentConfirmParamsPaymentMethodData": (
"stripe.params._payment_intent_confirm_params",
False,
@@ -9102,6 +9466,118 @@
"stripe.params._payment_intent_create_params",
False,
),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
"PaymentIntentCreateParamsPaymentMethodData": (
"stripe.params._payment_intent_create_params",
False,
@@ -9842,6 +10318,118 @@
"stripe.params._payment_intent_modify_params",
False,
),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
"PaymentIntentModifyParamsPaymentMethodData": (
"stripe.params._payment_intent_modify_params",
False,
@@ -10510,6 +11098,118 @@
"stripe.params._payment_intent_update_params",
False,
),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
"PaymentIntentUpdateParamsPaymentMethodData": (
"stripe.params._payment_intent_update_params",
False,
diff --git a/stripe/params/_coupon_create_params.py b/stripe/params/_coupon_create_params.py
index ca63a1399..918129784 100644
--- a/stripe/params/_coupon_create_params.py
+++ b/stripe/params/_coupon_create_params.py
@@ -68,7 +68,7 @@ class CouponCreateParams(RequestOptions):
class CouponCreateParamsAppliesTo(TypedDict):
products: NotRequired[List[str]]
"""
- An array of Product IDs that this Coupon will apply to.
+ An array of up to 100 Product IDs that this Coupon will apply to.
"""
diff --git a/stripe/params/_invoice_item_create_params.py b/stripe/params/_invoice_item_create_params.py
index 474174536..2ac415edf 100644
--- a/stripe/params/_invoice_item_create_params.py
+++ b/stripe/params/_invoice_item_create_params.py
@@ -72,7 +72,7 @@ class InvoiceItemCreateParams(RequestOptions):
"""
subscription: NotRequired[str]
"""
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
+ The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription. You can use this parameter with either `customer` or `customer_account`. The subscription must belong to the customer you specify.
"""
tax_behavior: NotRequired[
"Literal['exclusive', 'inclusive', 'unspecified']|str"
diff --git a/stripe/params/_payment_intent_capture_params.py b/stripe/params/_payment_intent_capture_params.py
index c1b0dc318..681c8968b 100644
--- a/stripe/params/_payment_intent_capture_params.py
+++ b/stripe/params/_payment_intent_capture_params.py
@@ -276,12 +276,24 @@ class PaymentIntentCaptureParamsHooksInputsTax(TypedDict):
class PaymentIntentCaptureParamsPaymentDetails(TypedDict):
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -290,6 +302,722 @@ class PaymentIntentCaptureParamsPaymentDetails(TypedDict):
"""
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict,
+):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance(
+ TypedDict
+):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Union[Literal["kilometers", "miles"], str]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ],
+ str,
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ "Literal['days', 'kilometers', 'miles', 'months', 'weeks']|str"
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Union[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ],
+ str,
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax(
+ TypedDict
+):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ "Literal['cargo_van', 'compact', 'economy', 'exotic', 'exotic_suv', 'fifteen_passenger_van', 'four_wheel_drive', 'full_size', 'intermediate', 'large_suv', 'large_truck', 'luxury', 'medium_suv', 'midsize', 'mini', 'minivan', 'miscellaneous', 'moped', 'moving_van', 'premium', 'regular', 'small_medium_truck', 'small_suv', 'special', 'standard', 'stretch', 'subcompact', 'taxi', 'twelve_foot_truck', 'twelve_passenger_van', 'twenty_foot_truck', 'twenty_four_foot_truck', 'twenty_six_foot_truck', 'unique']|str"
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ "Literal['business', 'economy', 'first_class', 'premium_economy']|str"
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ "Literal['apartment', 'cabana', 'house', 'penthouse', 'room', 'standard', 'suite', 'villa']|str"
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ "Literal['hostel', 'hotel', 'owner', 'rental_agency']|str"
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"], str
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ "Literal['gift_shop', 'laundry', 'mini_bar', 'other', 'phone', 'restaurant']|str"
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
class PaymentIntentCaptureParamsTransferData(TypedDict):
amount: NotRequired[int]
"""
diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py
index 3a338ce7f..15cc736d5 100644
--- a/stripe/params/_payment_intent_confirm_params.py
+++ b/stripe/params/_payment_intent_confirm_params.py
@@ -497,12 +497,24 @@ class PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOnline(TypedDict):
class PaymentIntentConfirmParamsPaymentDetails(TypedDict):
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -511,6 +523,722 @@ class PaymentIntentConfirmParamsPaymentDetails(TypedDict):
"""
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict,
+):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance(
+ TypedDict
+):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Union[Literal["kilometers", "miles"], str]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ],
+ str,
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ "Literal['days', 'kilometers', 'miles', 'months', 'weeks']|str"
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Union[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ],
+ str,
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax(
+ TypedDict
+):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ "Literal['cargo_van', 'compact', 'economy', 'exotic', 'exotic_suv', 'fifteen_passenger_van', 'four_wheel_drive', 'full_size', 'intermediate', 'large_suv', 'large_truck', 'luxury', 'medium_suv', 'midsize', 'mini', 'minivan', 'miscellaneous', 'moped', 'moving_van', 'premium', 'regular', 'small_medium_truck', 'small_suv', 'special', 'standard', 'stretch', 'subcompact', 'taxi', 'twelve_foot_truck', 'twelve_passenger_van', 'twenty_foot_truck', 'twenty_four_foot_truck', 'twenty_six_foot_truck', 'unique']|str"
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ "Literal['business', 'economy', 'first_class', 'premium_economy']|str"
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ "Literal['apartment', 'cabana', 'house', 'penthouse', 'room', 'standard', 'suite', 'villa']|str"
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ "Literal['hostel', 'hotel', 'owner', 'rental_agency']|str"
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"], str
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ "Literal['gift_shop', 'laundry', 'mini_bar', 'other', 'phone', 'restaurant']|str"
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
class PaymentIntentConfirmParamsPaymentMethodData(TypedDict):
acss_debit: NotRequired[
"PaymentIntentConfirmParamsPaymentMethodDataAcssDebit"
diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py
index 00302cf9c..333b7d1c4 100644
--- a/stripe/params/_payment_intent_create_params.py
+++ b/stripe/params/_payment_intent_create_params.py
@@ -345,7 +345,7 @@ class PaymentIntentCreateParams(RequestOptions):
"""
statement_descriptor_suffix: NotRequired[str]
"""
- Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
+ Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. A suffix longer than 22 characters returns an error. If a valid suffix makes the complete statement descriptor longer than 22 characters, Stripe truncates the descriptor instead of returning an error. Learn how to [fit the suffix in the complete descriptor](https://docs.stripe.com/get-started/account/statement-descriptors#suffix-length).
"""
transfer_data: NotRequired["PaymentIntentCreateParamsTransferData"]
"""
@@ -638,12 +638,24 @@ class PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline(TypedDict):
class PaymentIntentCreateParamsPaymentDetails(TypedDict):
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -652,6 +664,718 @@ class PaymentIntentCreateParamsPaymentDetails(TypedDict):
"""
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict
+):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Union[Literal["kilometers", "miles"], str]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict
+):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ],
+ str,
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ "Literal['days', 'kilometers', 'miles', 'months', 'weeks']|str"
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Union[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ],
+ str,
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ "Literal['cargo_van', 'compact', 'economy', 'exotic', 'exotic_suv', 'fifteen_passenger_van', 'four_wheel_drive', 'full_size', 'intermediate', 'large_suv', 'large_truck', 'luxury', 'medium_suv', 'midsize', 'mini', 'minivan', 'miscellaneous', 'moped', 'moving_van', 'premium', 'regular', 'small_medium_truck', 'small_suv', 'special', 'standard', 'stretch', 'subcompact', 'taxi', 'twelve_foot_truck', 'twelve_passenger_van', 'twenty_foot_truck', 'twenty_four_foot_truck', 'twenty_six_foot_truck', 'unique']|str"
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ "Literal['business', 'economy', 'first_class', 'premium_economy']|str"
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ "Literal['apartment', 'cabana', 'house', 'penthouse', 'room', 'standard', 'suite', 'villa']|str"
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ "Literal['hostel', 'hotel', 'owner', 'rental_agency']|str"
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"], str
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ "Literal['gift_shop', 'laundry', 'mini_bar', 'other', 'phone', 'restaurant']|str"
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
class PaymentIntentCreateParamsPaymentMethodData(TypedDict):
acss_debit: NotRequired[
"PaymentIntentCreateParamsPaymentMethodDataAcssDebit"
diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py
index 22a6e52d3..8b01ce12c 100644
--- a/stripe/params/_payment_intent_modify_params.py
+++ b/stripe/params/_payment_intent_modify_params.py
@@ -240,7 +240,7 @@ class PaymentIntentModifyParams(RequestOptions):
"""
statement_descriptor_suffix: NotRequired[str]
"""
- Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
+ Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. A suffix longer than 22 characters returns an error. If a valid suffix makes the complete statement descriptor longer than 22 characters, Stripe truncates the descriptor instead of returning an error. Learn how to [fit the suffix in the complete descriptor](https://docs.stripe.com/get-started/account/statement-descriptors#suffix-length).
"""
transfer_data: NotRequired["PaymentIntentModifyParamsTransferData"]
"""
@@ -468,12 +468,24 @@ class PaymentIntentModifyParamsHooksInputsTax(TypedDict):
class PaymentIntentModifyParamsPaymentDetails(TypedDict):
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -482,6 +494,718 @@ class PaymentIntentModifyParamsPaymentDetails(TypedDict):
"""
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict
+):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Union[Literal["kilometers", "miles"], str]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict
+):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ],
+ str,
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ "Literal['days', 'kilometers', 'miles', 'months', 'weeks']|str"
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Union[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ],
+ str,
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ "Literal['cargo_van', 'compact', 'economy', 'exotic', 'exotic_suv', 'fifteen_passenger_van', 'four_wheel_drive', 'full_size', 'intermediate', 'large_suv', 'large_truck', 'luxury', 'medium_suv', 'midsize', 'mini', 'minivan', 'miscellaneous', 'moped', 'moving_van', 'premium', 'regular', 'small_medium_truck', 'small_suv', 'special', 'standard', 'stretch', 'subcompact', 'taxi', 'twelve_foot_truck', 'twelve_passenger_van', 'twenty_foot_truck', 'twenty_four_foot_truck', 'twenty_six_foot_truck', 'unique']|str"
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ "Literal['business', 'economy', 'first_class', 'premium_economy']|str"
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ "Literal['apartment', 'cabana', 'house', 'penthouse', 'room', 'standard', 'suite', 'villa']|str"
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ "Literal['hostel', 'hotel', 'owner', 'rental_agency']|str"
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"], str
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ "Literal['gift_shop', 'laundry', 'mini_bar', 'other', 'phone', 'restaurant']|str"
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
class PaymentIntentModifyParamsPaymentMethodData(TypedDict):
acss_debit: NotRequired[
"PaymentIntentModifyParamsPaymentMethodDataAcssDebit"
diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py
index d2abce9a1..1fc0c032e 100644
--- a/stripe/params/_payment_intent_update_params.py
+++ b/stripe/params/_payment_intent_update_params.py
@@ -239,7 +239,7 @@ class PaymentIntentUpdateParams(TypedDict):
"""
statement_descriptor_suffix: NotRequired[str]
"""
- Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
+ Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. A suffix longer than 22 characters returns an error. If a valid suffix makes the complete statement descriptor longer than 22 characters, Stripe truncates the descriptor instead of returning an error. Learn how to [fit the suffix in the complete descriptor](https://docs.stripe.com/get-started/account/statement-descriptors#suffix-length).
"""
transfer_data: NotRequired["PaymentIntentUpdateParamsTransferData"]
"""
@@ -467,12 +467,24 @@ class PaymentIntentUpdateParamsHooksInputsTax(TypedDict):
class PaymentIntentUpdateParamsPaymentDetails(TypedDict):
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -481,6 +493,718 @@ class PaymentIntentUpdateParamsPaymentDetails(TypedDict):
"""
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict
+):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Union[Literal["kilometers", "miles"], str]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict
+):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ],
+ str,
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ "Literal['days', 'kilometers', 'miles', 'months', 'weeks']|str"
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Union[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ],
+ str,
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ "Literal['cargo_van', 'compact', 'economy', 'exotic', 'exotic_suv', 'fifteen_passenger_van', 'four_wheel_drive', 'full_size', 'intermediate', 'large_suv', 'large_truck', 'luxury', 'medium_suv', 'midsize', 'mini', 'minivan', 'miscellaneous', 'moped', 'moving_van', 'premium', 'regular', 'small_medium_truck', 'small_suv', 'special', 'standard', 'stretch', 'subcompact', 'taxi', 'twelve_foot_truck', 'twelve_passenger_van', 'twenty_foot_truck', 'twenty_four_foot_truck', 'twenty_six_foot_truck', 'unique']|str"
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ "Literal['business', 'economy', 'first_class', 'premium_economy']|str"
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ "Literal['apartment', 'cabana', 'house', 'penthouse', 'room', 'standard', 'suite', 'villa']|str"
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ "Literal['hostel', 'hotel', 'owner', 'rental_agency']|str"
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Union[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"], str
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ "Literal['gift_shop', 'laundry', 'mini_bar', 'other', 'phone', 'restaurant']|str"
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ tax_items: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem"
+ ]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTaxItem(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
class PaymentIntentUpdateParamsPaymentMethodData(TypedDict):
acss_debit: NotRequired[
"PaymentIntentUpdateParamsPaymentMethodDataAcssDebit"
diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py
index cbc6d18dc..cbb52c104 100644
--- a/stripe/params/_payment_link_create_params.py
+++ b/stripe/params/_payment_link_create_params.py
@@ -734,7 +734,7 @@ class PaymentLinkCreateParamsOptionalItemAdjustableQuantity(TypedDict):
class PaymentLinkCreateParamsPaymentIntentData(TypedDict):
capture_method: NotRequired[
- "Literal['automatic', 'automatic_async', 'manual']|str"
+ "Literal['']|Literal['automatic', 'automatic_async', 'manual']|str"
]
"""
Controls when the funds will be captured from the customer's account.
diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py
index 06e64635c..baa46111f 100644
--- a/stripe/params/_payment_link_modify_params.py
+++ b/stripe/params/_payment_link_modify_params.py
@@ -586,6 +586,12 @@ class PaymentLinkModifyParamsOptionalItemAdjustableQuantity(TypedDict):
class PaymentLinkModifyParamsPaymentIntentData(TypedDict):
+ capture_method: NotRequired[
+ "Literal['']|Literal['automatic', 'automatic_async', 'manual']|str"
+ ]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
description: NotRequired["Literal['']|str"]
"""
An arbitrary string attached to the object. Often useful for displaying to users.
diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py
index 180eb23e0..7e9b383d5 100644
--- a/stripe/params/_payment_link_update_params.py
+++ b/stripe/params/_payment_link_update_params.py
@@ -585,6 +585,12 @@ class PaymentLinkUpdateParamsOptionalItemAdjustableQuantity(TypedDict):
class PaymentLinkUpdateParamsPaymentIntentData(TypedDict):
+ capture_method: NotRequired[
+ "Literal['']|Literal['automatic', 'automatic_async', 'manual']|str"
+ ]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
description: NotRequired["Literal['']|str"]
"""
An arbitrary string attached to the object. Often useful for displaying to users.
diff --git a/stripe/params/_product_create_params.py b/stripe/params/_product_create_params.py
index 70db0ded7..eb5185ef5 100644
--- a/stripe/params/_product_create_params.py
+++ b/stripe/params/_product_create_params.py
@@ -228,6 +228,10 @@ class ProductCreateParamsDefaultPriceDataRecurring(TypedDict):
class ProductCreateParamsMarketingFeature(TypedDict):
+ loss_message: NotRequired["Literal['']|str"]
+ """
+ Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you update `marketing_features`, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it.
+ """
name: str
"""
The marketing feature name. Up to 80 characters long.
diff --git a/stripe/params/_product_modify_params.py b/stripe/params/_product_modify_params.py
index 6aab00d0a..9e9c76a38 100644
--- a/stripe/params/_product_modify_params.py
+++ b/stripe/params/_product_modify_params.py
@@ -79,6 +79,10 @@ class ProductModifyParams(RequestOptions):
class ProductModifyParamsMarketingFeature(TypedDict):
+ loss_message: NotRequired["Literal['']|str"]
+ """
+ Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you update `marketing_features`, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it.
+ """
name: str
"""
The marketing feature name. Up to 80 characters long.
diff --git a/stripe/params/_product_update_params.py b/stripe/params/_product_update_params.py
index a3605914f..47383ab40 100644
--- a/stripe/params/_product_update_params.py
+++ b/stripe/params/_product_update_params.py
@@ -78,6 +78,10 @@ class ProductUpdateParams(TypedDict):
class ProductUpdateParamsMarketingFeature(TypedDict):
+ loss_message: NotRequired["Literal['']|str"]
+ """
+ Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you update `marketing_features`, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it.
+ """
name: str
"""
The marketing feature name. Up to 80 characters long.
diff --git a/stripe/params/_quote_create_params.py b/stripe/params/_quote_create_params.py
index 837da743a..3f6d6ed53 100644
--- a/stripe/params/_quote_create_params.py
+++ b/stripe/params/_quote_create_params.py
@@ -196,7 +196,7 @@ class QuoteCreateParamsLineItem(TypedDict):
"Literal['']|List[QuoteCreateParamsLineItemDiscount]"
]
"""
- The discounts applied to this line item.
+ The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
"""
price: NotRequired[str]
"""
diff --git a/stripe/params/_quote_modify_params.py b/stripe/params/_quote_modify_params.py
index 7864487e9..91fa0c1b5 100644
--- a/stripe/params/_quote_modify_params.py
+++ b/stripe/params/_quote_modify_params.py
@@ -177,7 +177,7 @@ class QuoteModifyParamsLineItem(TypedDict):
"Literal['']|List[QuoteModifyParamsLineItemDiscount]"
]
"""
- The discounts applied to this line item.
+ The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
"""
id: NotRequired[str]
"""
diff --git a/stripe/params/_quote_update_params.py b/stripe/params/_quote_update_params.py
index 0e18b3f0c..4d3cf7968 100644
--- a/stripe/params/_quote_update_params.py
+++ b/stripe/params/_quote_update_params.py
@@ -176,7 +176,7 @@ class QuoteUpdateParamsLineItem(TypedDict):
"Literal['']|List[QuoteUpdateParamsLineItemDiscount]"
]
"""
- The discounts applied to this line item.
+ The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
"""
id: NotRequired[str]
"""
diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py
index 8b9c00017..4c397e531 100644
--- a/stripe/params/_webhook_endpoint_create_params.py
+++ b/stripe/params/_webhook_endpoint_create_params.py
@@ -138,6 +138,7 @@ class WebhookEndpointCreateParams(RequestOptions):
"2026-08-26.dahlia",
"2026-09-30.endive",
"2026-10-28.endive",
+ "2026-11-18.endive",
]
]
"""
diff --git a/stripe/params/billing_portal/_configuration_create_params.py b/stripe/params/billing_portal/_configuration_create_params.py
index ce572f74e..d880749f5 100644
--- a/stripe/params/billing_portal/_configuration_create_params.py
+++ b/stripe/params/billing_portal/_configuration_create_params.py
@@ -243,7 +243,7 @@ class ConfigurationCreateParamsFeaturesSubscriptionUpdate(TypedDict):
"Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
- Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
+ Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to `none`.
"""
schedule_at_period_end: NotRequired[
"ConfigurationCreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd"
diff --git a/stripe/params/billing_portal/_configuration_modify_params.py b/stripe/params/billing_portal/_configuration_modify_params.py
index 9ecbaa883..527160b53 100644
--- a/stripe/params/billing_portal/_configuration_modify_params.py
+++ b/stripe/params/billing_portal/_configuration_modify_params.py
@@ -234,7 +234,7 @@ class ConfigurationModifyParamsFeaturesSubscriptionUpdate(TypedDict):
"Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
- Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
+ Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. If omitted, the proration behavior is unchanged.
"""
schedule_at_period_end: NotRequired[
"ConfigurationModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd"
diff --git a/stripe/params/billing_portal/_configuration_update_params.py b/stripe/params/billing_portal/_configuration_update_params.py
index 59675a905..907382b5e 100644
--- a/stripe/params/billing_portal/_configuration_update_params.py
+++ b/stripe/params/billing_portal/_configuration_update_params.py
@@ -233,7 +233,7 @@ class ConfigurationUpdateParamsFeaturesSubscriptionUpdate(TypedDict):
"Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
- Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
+ Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. If omitted, the proration behavior is unchanged.
"""
schedule_at_period_end: NotRequired[
"ConfigurationUpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd"
diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py
index a10812211..f1996baac 100644
--- a/stripe/params/checkout/_session_create_params.py
+++ b/stripe/params/checkout/_session_create_params.py
@@ -451,6 +451,14 @@ class SessionCreateParamsAfterExpirationRecovery(TypedDict):
class SessionCreateParamsAutomaticTax(TypedDict):
+ address_collection_precision: NotRequired[Literal["full", "minimal"]]
+ """
+ Controls how much address information Checkout collects when [automatic_tax](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-automatic_tax-enabled) is enabled.
+
+ Defaults to `full`, which collects the address fields needed for the most accurate tax calculation. Set to `minimal` to collect only the fields required for tax in the buyer's country, accepting potentially less precise tax calculation in exchange for a streamlined form.
+
+ Only honored when `automatic_tax.enabled` is `true`, `billing_address_collection` is `auto`, the resolved tax address source is the session billing address, and `ui_mode` is `form`.
+ """
enabled: bool
"""
Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
diff --git a/stripe/params/financial_connections/_session_create_params.py b/stripe/params/financial_connections/_session_create_params.py
index 24d366262..5901e3326 100644
--- a/stripe/params/financial_connections/_session_create_params.py
+++ b/stripe/params/financial_connections/_session_create_params.py
@@ -88,7 +88,7 @@ class SessionCreateParamsFilters(TypedDict):
"""
country: NotRequired[str]
"""
- Country from which to collect accounts.
+ Country from which to collect accounts. Supported values are `US` and `CA`.
"""
require_payment_method_support: NotRequired[
Literal["all", "at_least_one", "none"]
diff --git a/stripe/params/reporting/_report_run_create_params.py b/stripe/params/reporting/_report_run_create_params.py
index d18cd5cea..e93153d79 100644
--- a/stripe/params/reporting/_report_run_create_params.py
+++ b/stripe/params/reporting/_report_run_create_params.py
@@ -51,6 +51,10 @@ class ReportRunCreateParamsParameters(TypedDict):
"""
Category of balance transactions to be included in the report run.
"""
+ tax_invoice_month: NotRequired[str]
+ """
+ The tax invoice month in YYYY-MM format.
+ """
timezone: NotRequired[
"Literal['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Douala', 'Africa/El_Aaiun', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Juba', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Sao_Tome', 'Africa/Timbuktu', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek', 'America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Argentina/Buenos_Aires', 'America/Argentina/Catamarca', 'America/Argentina/ComodRivadavia', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/La_Rioja', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Salta', 'America/Argentina/San_Juan', 'America/Argentina/San_Luis', 'America/Argentina/Tucuman', 'America/Argentina/Ushuaia', 'America/Aruba', 'America/Asuncion', 'America/Atikokan', 'America/Atka', 'America/Bahia', 'America/Bahia_Banderas', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Blanc-Sablon', 'America/Boa_Vista', 'America/Bogota', 'America/Boise', 'America/Buenos_Aires', 'America/Cambridge_Bay', 'America/Campo_Grande', 'America/Cancun', 'America/Caracas', 'America/Catamarca', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Ciudad_Juarez', 'America/Coral_Harbour', 'America/Cordoba', 'America/Costa_Rica', 'America/Coyhaique', 'America/Creston', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Dawson_Creek', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/El_Salvador', 'America/Ensenada', 'America/Fort_Nelson', 'America/Fort_Wayne', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Goose_Bay', 'America/Grand_Turk', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Indianapolis', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Tell_City', 'America/Indiana/Vevay', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indianapolis', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Jujuy', 'America/Juneau', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Knox_IN', 'America/Kralendijk', 'America/La_Paz', 'America/Lima', 'America/Los_Angeles', 'America/Louisville', 'America/Lower_Princes', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Marigot', 'America/Martinique', 'America/Matamoros', 'America/Mazatlan', 'America/Mendoza', 'America/Menominee', 'America/Merida', 'America/Metlakatla', 'America/Mexico_City', 'America/Miquelon', 'America/Moncton', 'America/Monterrey', 'America/Montevideo', 'America/Montreal', 'America/Montserrat', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/North_Dakota/Beulah', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Nuuk', 'America/Ojinaga', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Port_of_Spain', 'America/Porto_Acre', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Punta_Arenas', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Recife', 'America/Regina', 'America/Resolute', 'America/Rio_Branco', 'America/Rosario', 'America/Santa_Isabel', 'America/Santarem', 'America/Santiago', 'America/Santo_Domingo', 'America/Sao_Paulo', 'America/Scoresbysund', 'America/Shiprock', 'America/Sitka', 'America/St_Barthelemy', 'America/St_Johns', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Thule', 'America/Thunder_Bay', 'America/Tijuana', 'America/Toronto', 'America/Tortola', 'America/Vancouver', 'America/Virgin', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Macquarie', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/South_Pole', 'Antarctica/Syowa', 'Antarctica/Troll', 'Antarctica/Vostok', 'Arctic/Longyearbyen', 'Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Ashkhabad', 'Asia/Atyrau', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Barnaul', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Calcutta', 'Asia/Chita', 'Asia/Choibalsan', 'Asia/Chongqing', 'Asia/Chungking', 'Asia/Colombo', 'Asia/Dacca', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Famagusta', 'Asia/Gaza', 'Asia/Harbin', 'Asia/Hebron', 'Asia/Ho_Chi_Minh', 'Asia/Hong_Kong', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Istanbul', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Kashgar', 'Asia/Kathmandu', 'Asia/Katmandu', 'Asia/Khandyga', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Macao', 'Asia/Macau', 'Asia/Magadan', 'Asia/Makassar', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novokuznetsk', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Oral', 'Asia/Phnom_Penh', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Qostanay', 'Asia/Qyzylorda', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Saigon', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tel_Aviv', 'Asia/Thimbu', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Tomsk', 'Asia/Ujung_Pandang', 'Asia/Ulaanbaatar', 'Asia/Ulan_Bator', 'Asia/Urumqi', 'Asia/Ust-Nera', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yangon', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Cape_Verde', 'Atlantic/Faeroe', 'Atlantic/Faroe', 'Atlantic/Jan_Mayen', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/South_Georgia', 'Atlantic/St_Helena', 'Atlantic/Stanley', 'Australia/ACT', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Canberra', 'Australia/Currie', 'Australia/Darwin', 'Australia/Eucla', 'Australia/Hobart', 'Australia/LHI', 'Australia/Lindeman', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/NSW', 'Australia/North', 'Australia/Perth', 'Australia/Queensland', 'Australia/South', 'Australia/Sydney', 'Australia/Tasmania', 'Australia/Victoria', 'Australia/West', 'Australia/Yancowinna', 'Brazil/Acre', 'Brazil/DeNoronha', 'Brazil/East', 'Brazil/West', 'CET', 'CST6CDT', 'Canada/Atlantic', 'Canada/Central', 'Canada/Eastern', 'Canada/Mountain', 'Canada/Newfoundland', 'Canada/Pacific', 'Canada/Saskatchewan', 'Canada/Yukon', 'Chile/Continental', 'Chile/EasterIsland', 'Cuba', 'EET', 'EST', 'EST5EDT', 'Egypt', 'Eire', 'Etc/GMT', 'Etc/GMT+0', 'Etc/GMT+1', 'Etc/GMT+10', 'Etc/GMT+11', 'Etc/GMT+12', 'Etc/GMT+2', 'Etc/GMT+3', 'Etc/GMT+4', 'Etc/GMT+5', 'Etc/GMT+6', 'Etc/GMT+7', 'Etc/GMT+8', 'Etc/GMT+9', 'Etc/GMT-0', 'Etc/GMT-1', 'Etc/GMT-10', 'Etc/GMT-11', 'Etc/GMT-12', 'Etc/GMT-13', 'Etc/GMT-14', 'Etc/GMT-2', 'Etc/GMT-3', 'Etc/GMT-4', 'Etc/GMT-5', 'Etc/GMT-6', 'Etc/GMT-7', 'Etc/GMT-8', 'Etc/GMT-9', 'Etc/GMT0', 'Etc/Greenwich', 'Etc/UCT', 'Etc/UTC', 'Etc/Universal', 'Etc/Zulu', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Astrakhan', 'Europe/Athens', 'Europe/Belfast', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Busingen', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Guernsey', 'Europe/Helsinki', 'Europe/Isle_of_Man', 'Europe/Istanbul', 'Europe/Jersey', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Kirov', 'Europe/Kyiv', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Mariehamn', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Nicosia', 'Europe/Oslo', 'Europe/Paris', 'Europe/Podgorica', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Saratov', 'Europe/Simferopol', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Tiraspol', 'Europe/Ulyanovsk', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zaporozhye', 'Europe/Zurich', 'Factory', 'GB', 'GB-Eire', 'GMT', 'GMT+0', 'GMT-0', 'GMT0', 'Greenwich', 'HST', 'Hongkong', 'Iceland', 'Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion', 'Iran', 'Israel', 'Jamaica', 'Japan', 'Kwajalein', 'Libya', 'MET', 'MST', 'MST7MDT', 'Mexico/BajaNorte', 'Mexico/BajaSur', 'Mexico/General', 'NZ', 'NZ-CHAT', 'Navajo', 'PRC', 'PST8PDT', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Bougainville', 'Pacific/Chatham', 'Pacific/Chuuk', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Kanton', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Pohnpei', 'Pacific/Ponape', 'Pacific/Port_Moresby', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Samoa', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Truk', 'Pacific/Wake', 'Pacific/Wallis', 'Pacific/Yap', 'Poland', 'Portugal', 'ROC', 'ROK', 'Singapore', 'Turkey', 'UCT', 'US/Alaska', 'US/Aleutian', 'US/Arizona', 'US/Central', 'US/East-Indiana', 'US/Eastern', 'US/Hawaii', 'US/Indiana-Starke', 'US/Michigan', 'US/Mountain', 'US/Pacific', 'US/Pacific-New', 'US/Samoa', 'UTC', 'Universal', 'W-SU', 'WET', 'Zulu']|str"
]
diff --git a/stripe/params/tax/__init__.py b/stripe/params/tax/__init__.py
index 5000a07c1..b6e237580 100644
--- a/stripe/params/tax/__init__.py
+++ b/stripe/params/tax/__init__.py
@@ -97,6 +97,7 @@
RegistrationCreateParamsCountryOptionsEeStandard as RegistrationCreateParamsCountryOptionsEeStandard,
RegistrationCreateParamsCountryOptionsEg as RegistrationCreateParamsCountryOptionsEg,
RegistrationCreateParamsCountryOptionsEs as RegistrationCreateParamsCountryOptionsEs,
+ RegistrationCreateParamsCountryOptionsEsIgic as RegistrationCreateParamsCountryOptionsEsIgic,
RegistrationCreateParamsCountryOptionsEsStandard as RegistrationCreateParamsCountryOptionsEsStandard,
RegistrationCreateParamsCountryOptionsEt as RegistrationCreateParamsCountryOptionsEt,
RegistrationCreateParamsCountryOptionsEtStandard as RegistrationCreateParamsCountryOptionsEtStandard,
@@ -566,6 +567,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsEsIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsEsStandard": (
"stripe.params.tax._registration_create_params",
False,
diff --git a/stripe/params/tax/_registration_create_params.py b/stripe/params/tax/_registration_create_params.py
index ceab9df22..a0ea18dde 100644
--- a/stripe/params/tax/_registration_create_params.py
+++ b/stripe/params/tax/_registration_create_params.py
@@ -986,16 +986,29 @@ class RegistrationCreateParamsCountryOptionsEg(TypedDict):
class RegistrationCreateParamsCountryOptionsEs(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsEsIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsEsStandard"]
"""
Options for the standard registration.
"""
- type: Union[Literal["ioss", "oss_non_union", "oss_union", "standard"], str]
+ type: Union[
+ Literal["igic", "ioss", "oss_non_union", "oss_union", "standard"], str
+ ]
"""
Type of registration to be created in ES.
"""
+class RegistrationCreateParamsCountryOptionsEsIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsEsStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
diff --git a/stripe/params/terminal/_reader_list_params.py b/stripe/params/terminal/_reader_list_params.py
index caeaa5c8f..e27226260 100644
--- a/stripe/params/terminal/_reader_list_params.py
+++ b/stripe/params/terminal/_reader_list_params.py
@@ -7,7 +7,7 @@
class ReaderListParams(RequestOptions):
device_type: NotRequired[
- "Literal['bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_stripe_s710', 'simulated_stripe_t600', 'simulated_verifone_m425', 'simulated_verifone_p630', 'simulated_verifone_ux700', 'simulated_verifone_v660p', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'stripe_s710', 'stripe_t600', 'verifone_P400', 'verifone_m425', 'verifone_p630', 'verifone_ux700', 'verifone_v660p']|str"
+ "Literal['bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_stripe_s710', 'simulated_stripe_t600', 'simulated_verifone_m425', 'simulated_verifone_p630', 'simulated_verifone_ux700', 'simulated_verifone_v660p', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'stripe_s700_devkit', 'stripe_s710', 'stripe_s710_devkit', 'stripe_t600', 'stripe_t600_devkit', 'verifone_P400', 'verifone_m425', 'verifone_p630', 'verifone_ux700', 'verifone_ux700_devkit', 'verifone_v660p', 'verifone_v660p_devkit']|str"
]
"""
Filters readers by device type
diff --git a/stripe/params/test_helpers/treasury/__init__.py b/stripe/params/test_helpers/treasury/__init__.py
index 30b270ea3..d03ef9c80 100644
--- a/stripe/params/test_helpers/treasury/__init__.py
+++ b/stripe/params/test_helpers/treasury/__init__.py
@@ -7,9 +7,14 @@
from stripe.params.test_helpers.treasury._inbound_transfer_fail_params import (
InboundTransferFailParams as InboundTransferFailParams,
InboundTransferFailParamsFailureDetails as InboundTransferFailParamsFailureDetails,
+ InboundTransferFailParamsFailureDetailsNetworkDetails as InboundTransferFailParamsFailureDetailsNetworkDetails,
+ InboundTransferFailParamsFailureDetailsNetworkDetailsAch as InboundTransferFailParamsFailureDetailsNetworkDetailsAch,
)
from stripe.params.test_helpers.treasury._inbound_transfer_return_inbound_transfer_params import (
InboundTransferReturnInboundTransferParams as InboundTransferReturnInboundTransferParams,
+ InboundTransferReturnInboundTransferParamsFailureDetails as InboundTransferReturnInboundTransferParamsFailureDetails,
+ InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails as InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails,
+ InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch as InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch,
)
from stripe.params.test_helpers.treasury._inbound_transfer_succeed_params import (
InboundTransferSucceedParams as InboundTransferSucceedParams,
@@ -67,10 +72,30 @@
"stripe.params.test_helpers.treasury._inbound_transfer_fail_params",
False,
),
+ "InboundTransferFailParamsFailureDetailsNetworkDetails": (
+ "stripe.params.test_helpers.treasury._inbound_transfer_fail_params",
+ False,
+ ),
+ "InboundTransferFailParamsFailureDetailsNetworkDetailsAch": (
+ "stripe.params.test_helpers.treasury._inbound_transfer_fail_params",
+ False,
+ ),
"InboundTransferReturnInboundTransferParams": (
"stripe.params.test_helpers.treasury._inbound_transfer_return_inbound_transfer_params",
False,
),
+ "InboundTransferReturnInboundTransferParamsFailureDetails": (
+ "stripe.params.test_helpers.treasury._inbound_transfer_return_inbound_transfer_params",
+ False,
+ ),
+ "InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails": (
+ "stripe.params.test_helpers.treasury._inbound_transfer_return_inbound_transfer_params",
+ False,
+ ),
+ "InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch": (
+ "stripe.params.test_helpers.treasury._inbound_transfer_return_inbound_transfer_params",
+ False,
+ ),
"InboundTransferSucceedParams": (
"stripe.params.test_helpers.treasury._inbound_transfer_succeed_params",
False,
diff --git a/stripe/params/test_helpers/treasury/_inbound_transfer_fail_params.py b/stripe/params/test_helpers/treasury/_inbound_transfer_fail_params.py
index 515241848..fbf7f9ade 100644
--- a/stripe/params/test_helpers/treasury/_inbound_transfer_fail_params.py
+++ b/stripe/params/test_helpers/treasury/_inbound_transfer_fail_params.py
@@ -22,3 +22,29 @@ class InboundTransferFailParamsFailureDetails(TypedDict):
"""
Reason for the failure.
"""
+ network_details: NotRequired[
+ "InboundTransferFailParamsFailureDetailsNetworkDetails"
+ ]
+ """
+ Network specific details for the failure.
+ """
+
+
+class InboundTransferFailParamsFailureDetailsNetworkDetails(TypedDict):
+ ach: NotRequired[
+ "InboundTransferFailParamsFailureDetailsNetworkDetailsAch"
+ ]
+ """
+ ACH network failure details.
+ """
+ type: Literal["ach"]
+ """
+ The network used to transfer funds.
+ """
+
+
+class InboundTransferFailParamsFailureDetailsNetworkDetailsAch(TypedDict):
+ return_code: str
+ """
+ NACHA ACH return code.
+ """
diff --git a/stripe/params/test_helpers/treasury/_inbound_transfer_return_inbound_transfer_params.py b/stripe/params/test_helpers/treasury/_inbound_transfer_return_inbound_transfer_params.py
index 1a61dde96..30540f01e 100644
--- a/stripe/params/test_helpers/treasury/_inbound_transfer_return_inbound_transfer_params.py
+++ b/stripe/params/test_helpers/treasury/_inbound_transfer_return_inbound_transfer_params.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import List
-from typing_extensions import NotRequired, TypedDict
+from typing_extensions import Literal, NotRequired, TypedDict
class InboundTransferReturnInboundTransferParams(TypedDict):
@@ -9,3 +9,48 @@ class InboundTransferReturnInboundTransferParams(TypedDict):
"""
Specifies which fields in the response should be expanded.
"""
+ failure_details: NotRequired[
+ "InboundTransferReturnInboundTransferParamsFailureDetails"
+ ]
+ """
+ Details about a returned InboundTransfer.
+ """
+
+
+class InboundTransferReturnInboundTransferParamsFailureDetails(TypedDict):
+ code: NotRequired[
+ "Literal['account_closed', 'account_frozen', 'bank_account_restricted', 'bank_ownership_changed', 'debit_not_authorized', 'incorrect_account_holder_address', 'incorrect_account_holder_name', 'incorrect_account_holder_tax_id', 'insufficient_funds', 'invalid_account_number', 'invalid_currency', 'no_account', 'other']|str"
+ ]
+ """
+ Reason for the failure.
+ """
+ network_details: NotRequired[
+ "InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails"
+ ]
+ """
+ Network specific details for the failure.
+ """
+
+
+class InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails(
+ TypedDict,
+):
+ ach: NotRequired[
+ "InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch"
+ ]
+ """
+ ACH network failure details.
+ """
+ type: Literal["ach"]
+ """
+ The network used to transfer funds.
+ """
+
+
+class InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch(
+ TypedDict,
+):
+ return_code: str
+ """
+ NACHA ACH return code.
+ """
diff --git a/stripe/params/treasury/__init__.py b/stripe/params/treasury/__init__.py
index dbb430948..a9ed3ff6c 100644
--- a/stripe/params/treasury/__init__.py
+++ b/stripe/params/treasury/__init__.py
@@ -136,6 +136,8 @@
from stripe.params.treasury._inbound_transfer_fail_params import (
InboundTransferFailParams as InboundTransferFailParams,
InboundTransferFailParamsFailureDetails as InboundTransferFailParamsFailureDetails,
+ InboundTransferFailParamsFailureDetailsNetworkDetails as InboundTransferFailParamsFailureDetailsNetworkDetails,
+ InboundTransferFailParamsFailureDetailsNetworkDetailsAch as InboundTransferFailParamsFailureDetailsNetworkDetailsAch,
)
from stripe.params.treasury._inbound_transfer_list_params import (
InboundTransferListParams as InboundTransferListParams,
@@ -145,6 +147,9 @@
)
from stripe.params.treasury._inbound_transfer_return_inbound_transfer_params import (
InboundTransferReturnInboundTransferParams as InboundTransferReturnInboundTransferParams,
+ InboundTransferReturnInboundTransferParamsFailureDetails as InboundTransferReturnInboundTransferParamsFailureDetails,
+ InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails as InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails,
+ InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch as InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch,
)
from stripe.params.treasury._inbound_transfer_succeed_params import (
InboundTransferSucceedParams as InboundTransferSucceedParams,
@@ -639,6 +644,14 @@
"stripe.params.treasury._inbound_transfer_fail_params",
False,
),
+ "InboundTransferFailParamsFailureDetailsNetworkDetails": (
+ "stripe.params.treasury._inbound_transfer_fail_params",
+ False,
+ ),
+ "InboundTransferFailParamsFailureDetailsNetworkDetailsAch": (
+ "stripe.params.treasury._inbound_transfer_fail_params",
+ False,
+ ),
"InboundTransferListParams": (
"stripe.params.treasury._inbound_transfer_list_params",
False,
@@ -651,6 +664,18 @@
"stripe.params.treasury._inbound_transfer_return_inbound_transfer_params",
False,
),
+ "InboundTransferReturnInboundTransferParamsFailureDetails": (
+ "stripe.params.treasury._inbound_transfer_return_inbound_transfer_params",
+ False,
+ ),
+ "InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails": (
+ "stripe.params.treasury._inbound_transfer_return_inbound_transfer_params",
+ False,
+ ),
+ "InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch": (
+ "stripe.params.treasury._inbound_transfer_return_inbound_transfer_params",
+ False,
+ ),
"InboundTransferSucceedParams": (
"stripe.params.treasury._inbound_transfer_succeed_params",
False,
diff --git a/stripe/params/treasury/_inbound_transfer_fail_params.py b/stripe/params/treasury/_inbound_transfer_fail_params.py
index 02f8bb4fc..16f8284f6 100644
--- a/stripe/params/treasury/_inbound_transfer_fail_params.py
+++ b/stripe/params/treasury/_inbound_transfer_fail_params.py
@@ -23,3 +23,29 @@ class InboundTransferFailParamsFailureDetails(TypedDict):
"""
Reason for the failure.
"""
+ network_details: NotRequired[
+ "InboundTransferFailParamsFailureDetailsNetworkDetails"
+ ]
+ """
+ Network specific details for the failure.
+ """
+
+
+class InboundTransferFailParamsFailureDetailsNetworkDetails(TypedDict):
+ ach: NotRequired[
+ "InboundTransferFailParamsFailureDetailsNetworkDetailsAch"
+ ]
+ """
+ ACH network failure details.
+ """
+ type: Literal["ach"]
+ """
+ The network used to transfer funds.
+ """
+
+
+class InboundTransferFailParamsFailureDetailsNetworkDetailsAch(TypedDict):
+ return_code: str
+ """
+ NACHA ACH return code.
+ """
diff --git a/stripe/params/treasury/_inbound_transfer_return_inbound_transfer_params.py b/stripe/params/treasury/_inbound_transfer_return_inbound_transfer_params.py
index ada9cdfae..6f36ab78b 100644
--- a/stripe/params/treasury/_inbound_transfer_return_inbound_transfer_params.py
+++ b/stripe/params/treasury/_inbound_transfer_return_inbound_transfer_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
-from typing_extensions import NotRequired
+from typing_extensions import Literal, NotRequired, TypedDict
class InboundTransferReturnInboundTransferParams(RequestOptions):
@@ -10,3 +10,48 @@ class InboundTransferReturnInboundTransferParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ failure_details: NotRequired[
+ "InboundTransferReturnInboundTransferParamsFailureDetails"
+ ]
+ """
+ Details about a returned InboundTransfer.
+ """
+
+
+class InboundTransferReturnInboundTransferParamsFailureDetails(TypedDict):
+ code: NotRequired[
+ "Literal['account_closed', 'account_frozen', 'bank_account_restricted', 'bank_ownership_changed', 'debit_not_authorized', 'incorrect_account_holder_address', 'incorrect_account_holder_name', 'incorrect_account_holder_tax_id', 'insufficient_funds', 'invalid_account_number', 'invalid_currency', 'no_account', 'other']|str"
+ ]
+ """
+ Reason for the failure.
+ """
+ network_details: NotRequired[
+ "InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails"
+ ]
+ """
+ Network specific details for the failure.
+ """
+
+
+class InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetails(
+ TypedDict,
+):
+ ach: NotRequired[
+ "InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch"
+ ]
+ """
+ ACH network failure details.
+ """
+ type: Literal["ach"]
+ """
+ The network used to transfer funds.
+ """
+
+
+class InboundTransferReturnInboundTransferParamsFailureDetailsNetworkDetailsAch(
+ TypedDict,
+):
+ return_code: str
+ """
+ NACHA ACH return code.
+ """
diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py
index 600364265..ea02566a5 100644
--- a/stripe/params/v2/core/__init__.py
+++ b/stripe/params/v2/core/__init__.py
@@ -34,6 +34,7 @@
AccountCreateParamsConfigurationMerchantCapabilitiesAuBecsDebitPayments as AccountCreateParamsConfigurationMerchantCapabilitiesAuBecsDebitPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesBacsDebitPayments as AccountCreateParamsConfigurationMerchantCapabilitiesBacsDebitPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesBancontactPayments as AccountCreateParamsConfigurationMerchantCapabilitiesBancontactPayments,
+ AccountCreateParamsConfigurationMerchantCapabilitiesBilliePayments as AccountCreateParamsConfigurationMerchantCapabilitiesBilliePayments,
AccountCreateParamsConfigurationMerchantCapabilitiesBlikPayments as AccountCreateParamsConfigurationMerchantCapabilitiesBlikPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesBlikRecurringPayments as AccountCreateParamsConfigurationMerchantCapabilitiesBlikRecurringPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesBoletoPayments as AccountCreateParamsConfigurationMerchantCapabilitiesBoletoPayments,
@@ -52,15 +53,19 @@
AccountCreateParamsConfigurationMerchantCapabilitiesKonbiniPayments as AccountCreateParamsConfigurationMerchantCapabilitiesKonbiniPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesKrCardPayments as AccountCreateParamsConfigurationMerchantCapabilitiesKrCardPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesLinkPayments as AccountCreateParamsConfigurationMerchantCapabilitiesLinkPayments,
+ AccountCreateParamsConfigurationMerchantCapabilitiesMbWayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesMbWayPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesMobilepayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesMobilepayPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesMultibancoPayments as AccountCreateParamsConfigurationMerchantCapabilitiesMultibancoPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesMxBankTransferPayments as AccountCreateParamsConfigurationMerchantCapabilitiesMxBankTransferPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesNaverPayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesNaverPayPayments,
+ AccountCreateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments as AccountCreateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesOxxoPayments as AccountCreateParamsConfigurationMerchantCapabilitiesOxxoPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesP24Payments as AccountCreateParamsConfigurationMerchantCapabilitiesP24Payments,
AccountCreateParamsConfigurationMerchantCapabilitiesPayByBankPayments as AccountCreateParamsConfigurationMerchantCapabilitiesPayByBankPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesPaycoPayments as AccountCreateParamsConfigurationMerchantCapabilitiesPaycoPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesPaynowPayments as AccountCreateParamsConfigurationMerchantCapabilitiesPaynowPayments,
+ AccountCreateParamsConfigurationMerchantCapabilitiesPaypayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesPaypayPayments,
+ AccountCreateParamsConfigurationMerchantCapabilitiesPixPayments as AccountCreateParamsConfigurationMerchantCapabilitiesPixPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesPromptpayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesPromptpayPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesRevolutPayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesRevolutPayPayments,
AccountCreateParamsConfigurationMerchantCapabilitiesSamsungPayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSamsungPayPayments,
@@ -78,6 +83,11 @@
AccountCreateParamsConfigurationMerchantKonbiniPayments as AccountCreateParamsConfigurationMerchantKonbiniPayments,
AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupport as AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupport,
AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupportHours as AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupportHours,
+ AccountCreateParamsConfigurationMerchantPaypayPayments as AccountCreateParamsConfigurationMerchantPaypayPayments,
+ AccountCreateParamsConfigurationMerchantPaypayPaymentsSite as AccountCreateParamsConfigurationMerchantPaypayPaymentsSite,
+ AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteAccessible as AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteAccessible,
+ AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment as AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment,
+ AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteRestricted as AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteRestricted,
AccountCreateParamsConfigurationMerchantScriptStatementDescriptor as AccountCreateParamsConfigurationMerchantScriptStatementDescriptor,
AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKana as AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKana,
AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKanji as AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKanji,
@@ -161,6 +171,7 @@
from stripe.params.v2.core._account_link_create_params import (
AccountLinkCreateParams as AccountLinkCreateParams,
AccountLinkCreateParamsUseCase as AccountLinkCreateParamsUseCase,
+ AccountLinkCreateParamsUseCaseAccountDashboard as AccountLinkCreateParamsUseCaseAccountDashboard,
AccountLinkCreateParamsUseCaseAccountOnboarding as AccountLinkCreateParamsUseCaseAccountOnboarding,
AccountLinkCreateParamsUseCaseAccountOnboardingCollectionOptions as AccountLinkCreateParamsUseCaseAccountOnboardingCollectionOptions,
AccountLinkCreateParamsUseCaseAccountUpdate as AccountLinkCreateParamsUseCaseAccountUpdate,
@@ -260,6 +271,7 @@
AccountUpdateParamsConfigurationMerchantCapabilitiesAuBecsDebitPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesAuBecsDebitPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesBacsDebitPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesBacsDebitPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesBancontactPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesBancontactPayments,
+ AccountUpdateParamsConfigurationMerchantCapabilitiesBilliePayments as AccountUpdateParamsConfigurationMerchantCapabilitiesBilliePayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesBlikPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesBlikPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesBlikRecurringPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesBlikRecurringPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesBoletoPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesBoletoPayments,
@@ -278,15 +290,19 @@
AccountUpdateParamsConfigurationMerchantCapabilitiesKonbiniPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesKonbiniPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesKrCardPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesKrCardPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesLinkPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesLinkPayments,
+ AccountUpdateParamsConfigurationMerchantCapabilitiesMbWayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesMbWayPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesMobilepayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesMobilepayPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesMultibancoPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesMultibancoPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesMxBankTransferPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesMxBankTransferPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesNaverPayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesNaverPayPayments,
+ AccountUpdateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesOxxoPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesOxxoPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesP24Payments as AccountUpdateParamsConfigurationMerchantCapabilitiesP24Payments,
AccountUpdateParamsConfigurationMerchantCapabilitiesPayByBankPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesPayByBankPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesPaycoPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesPaycoPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesPaynowPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesPaynowPayments,
+ AccountUpdateParamsConfigurationMerchantCapabilitiesPaypayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesPaypayPayments,
+ AccountUpdateParamsConfigurationMerchantCapabilitiesPixPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesPixPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesPromptpayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesPromptpayPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesRevolutPayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesRevolutPayPayments,
AccountUpdateParamsConfigurationMerchantCapabilitiesSamsungPayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSamsungPayPayments,
@@ -304,6 +320,11 @@
AccountUpdateParamsConfigurationMerchantKonbiniPayments as AccountUpdateParamsConfigurationMerchantKonbiniPayments,
AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupport as AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupport,
AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupportHours as AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupportHours,
+ AccountUpdateParamsConfigurationMerchantPaypayPayments as AccountUpdateParamsConfigurationMerchantPaypayPayments,
+ AccountUpdateParamsConfigurationMerchantPaypayPaymentsSite as AccountUpdateParamsConfigurationMerchantPaypayPaymentsSite,
+ AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteAccessible as AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteAccessible,
+ AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment as AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment,
+ AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteRestricted as AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteRestricted,
AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor as AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor,
AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKana as AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKana,
AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKanji as AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKanji,
@@ -386,6 +407,18 @@
AccountUpdateParamsIdentityIndividualScriptNamesKana as AccountUpdateParamsIdentityIndividualScriptNamesKana,
AccountUpdateParamsIdentityIndividualScriptNamesKanji as AccountUpdateParamsIdentityIndividualScriptNamesKanji,
)
+ from stripe.params.v2.core._claimable_sandbox_create_params import (
+ ClaimableSandboxCreateParams as ClaimableSandboxCreateParams,
+ ClaimableSandboxCreateParamsOnboardingLinkDetails as ClaimableSandboxCreateParamsOnboardingLinkDetails,
+ ClaimableSandboxCreateParamsPrefill as ClaimableSandboxCreateParamsPrefill,
+ )
+ from stripe.params.v2.core._claimable_sandbox_renew_onboarding_link_params import (
+ ClaimableSandboxRenewOnboardingLinkParams as ClaimableSandboxRenewOnboardingLinkParams,
+ ClaimableSandboxRenewOnboardingLinkParamsOnboardingLinkDetails as ClaimableSandboxRenewOnboardingLinkParamsOnboardingLinkDetails,
+ )
+ from stripe.params.v2.core._claimable_sandbox_retrieve_params import (
+ ClaimableSandboxRetrieveParams as ClaimableSandboxRetrieveParams,
+ )
from stripe.params.v2.core._event_destination_create_params import (
EventDestinationCreateParams as EventDestinationCreateParams,
EventDestinationCreateParamsAmazonEventbridge as EventDestinationCreateParamsAmazonEventbridge,
@@ -530,6 +563,10 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsConfigurationMerchantCapabilitiesBilliePayments": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsConfigurationMerchantCapabilitiesBlikPayments": (
"stripe.params.v2.core._account_create_params",
False,
@@ -602,6 +639,10 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsConfigurationMerchantCapabilitiesMbWayPayments": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsConfigurationMerchantCapabilitiesMobilepayPayments": (
"stripe.params.v2.core._account_create_params",
False,
@@ -618,6 +659,10 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsConfigurationMerchantCapabilitiesOxxoPayments": (
"stripe.params.v2.core._account_create_params",
False,
@@ -638,6 +683,14 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsConfigurationMerchantCapabilitiesPaypayPayments": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationMerchantCapabilitiesPixPayments": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsConfigurationMerchantCapabilitiesPromptpayPayments": (
"stripe.params.v2.core._account_create_params",
False,
@@ -706,6 +759,26 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsConfigurationMerchantPaypayPayments": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationMerchantPaypayPaymentsSite": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteAccessible": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteRestricted": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsConfigurationMerchantScriptStatementDescriptor": (
"stripe.params.v2.core._account_create_params",
False,
@@ -1030,6 +1103,10 @@
"stripe.params.v2.core._account_link_create_params",
False,
),
+ "AccountLinkCreateParamsUseCaseAccountDashboard": (
+ "stripe.params.v2.core._account_link_create_params",
+ False,
+ ),
"AccountLinkCreateParamsUseCaseAccountOnboarding": (
"stripe.params.v2.core._account_link_create_params",
False,
@@ -1383,6 +1460,10 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesBilliePayments": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsConfigurationMerchantCapabilitiesBlikPayments": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1455,6 +1536,10 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesMbWayPayments": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsConfigurationMerchantCapabilitiesMobilepayPayments": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1471,6 +1556,10 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsConfigurationMerchantCapabilitiesOxxoPayments": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1491,6 +1580,14 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesPaypayPayments": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesPixPayments": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsConfigurationMerchantCapabilitiesPromptpayPayments": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1559,6 +1656,26 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsConfigurationMerchantPaypayPayments": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationMerchantPaypayPaymentsSite": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteAccessible": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteRestricted": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1883,6 +2000,30 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "ClaimableSandboxCreateParams": (
+ "stripe.params.v2.core._claimable_sandbox_create_params",
+ False,
+ ),
+ "ClaimableSandboxCreateParamsOnboardingLinkDetails": (
+ "stripe.params.v2.core._claimable_sandbox_create_params",
+ False,
+ ),
+ "ClaimableSandboxCreateParamsPrefill": (
+ "stripe.params.v2.core._claimable_sandbox_create_params",
+ False,
+ ),
+ "ClaimableSandboxRenewOnboardingLinkParams": (
+ "stripe.params.v2.core._claimable_sandbox_renew_onboarding_link_params",
+ False,
+ ),
+ "ClaimableSandboxRenewOnboardingLinkParamsOnboardingLinkDetails": (
+ "stripe.params.v2.core._claimable_sandbox_renew_onboarding_link_params",
+ False,
+ ),
+ "ClaimableSandboxRetrieveParams": (
+ "stripe.params.v2.core._claimable_sandbox_retrieve_params",
+ False,
+ ),
"EventDestinationCreateParams": (
"stripe.params.v2.core._event_destination_create_params",
False,
diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py
index 9756754ae..f1a02b828 100644
--- a/stripe/params/v2/core/_account_create_params.py
+++ b/stripe/params/v2/core/_account_create_params.py
@@ -26,7 +26,7 @@ class AccountCreateParams(TypedDict):
"""
dashboard: NotRequired[Literal["express", "full", "none"]]
"""
- A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
+ Specifies the account's Stripe-hosted Dashboard access. Available values depend on the configurations enabled for the account. Learn more about [configuring Dashboard access](https://docs.stripe.com/connect/accounts-v2/connected-account-configuration#set-dashboard-access).
"""
defaults: NotRequired["AccountCreateParamsDefaults"]
"""
@@ -276,6 +276,12 @@ class AccountCreateParamsConfigurationMerchant(TypedDict):
"""
The Merchant Category Code (MCC) for the Merchant Configuration. MCCs classify businesses based on the goods or services they provide.
"""
+ paypay_payments: NotRequired[
+ "AccountCreateParamsConfigurationMerchantPaypayPayments"
+ ]
+ """
+ Settings for PayPay payments.
+ """
script_statement_descriptor: NotRequired[
"AccountCreateParamsConfigurationMerchantScriptStatementDescriptor"
]
@@ -381,6 +387,12 @@ class AccountCreateParamsConfigurationMerchantCapabilities(TypedDict):
"""
Allow the merchant to process Bancontact payments.
"""
+ billie_payments: NotRequired[
+ "AccountCreateParamsConfigurationMerchantCapabilitiesBilliePayments"
+ ]
+ """
+ Allow the merchant to process Billie payments.
+ """
blik_payments: NotRequired[
"AccountCreateParamsConfigurationMerchantCapabilitiesBlikPayments"
]
@@ -489,6 +501,12 @@ class AccountCreateParamsConfigurationMerchantCapabilities(TypedDict):
"""
Allow the merchant to process Link payments.
"""
+ mb_way_payments: NotRequired[
+ "AccountCreateParamsConfigurationMerchantCapabilitiesMbWayPayments"
+ ]
+ """
+ Allow the merchant to process MB WAY payments.
+ """
mobilepay_payments: NotRequired[
"AccountCreateParamsConfigurationMerchantCapabilitiesMobilepayPayments"
]
@@ -513,6 +531,12 @@ class AccountCreateParamsConfigurationMerchantCapabilities(TypedDict):
"""
Allow the merchant to process Naver Pay payments.
"""
+ nz_bank_account_becs_debit_payments: NotRequired[
+ "AccountCreateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments"
+ ]
+ """
+ Allow the merchant to process New Zealand BECS Direct Debit payments.
+ """
oxxo_payments: NotRequired[
"AccountCreateParamsConfigurationMerchantCapabilitiesOxxoPayments"
]
@@ -543,6 +567,18 @@ class AccountCreateParamsConfigurationMerchantCapabilities(TypedDict):
"""
Allow the merchant to process PayNow payments.
"""
+ paypay_payments: NotRequired[
+ "AccountCreateParamsConfigurationMerchantCapabilitiesPaypayPayments"
+ ]
+ """
+ Allow the merchant to process PayPay payments.
+ """
+ pix_payments: NotRequired[
+ "AccountCreateParamsConfigurationMerchantCapabilitiesPixPayments"
+ ]
+ """
+ Allow the merchant to process Pix payments.
+ """
promptpay_payments: NotRequired[
"AccountCreateParamsConfigurationMerchantCapabilitiesPromptpayPayments"
]
@@ -698,6 +734,15 @@ class AccountCreateParamsConfigurationMerchantCapabilitiesBancontactPayments(
"""
+class AccountCreateParamsConfigurationMerchantCapabilitiesBilliePayments(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountCreateParamsConfigurationMerchantCapabilitiesBlikPayments(
TypedDict,
):
@@ -860,6 +905,15 @@ class AccountCreateParamsConfigurationMerchantCapabilitiesLinkPayments(
"""
+class AccountCreateParamsConfigurationMerchantCapabilitiesMbWayPayments(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountCreateParamsConfigurationMerchantCapabilitiesMobilepayPayments(
TypedDict,
):
@@ -896,6 +950,15 @@ class AccountCreateParamsConfigurationMerchantCapabilitiesNaverPayPayments(
"""
+class AccountCreateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountCreateParamsConfigurationMerchantCapabilitiesOxxoPayments(
TypedDict,
):
@@ -941,6 +1004,24 @@ class AccountCreateParamsConfigurationMerchantCapabilitiesPaynowPayments(
"""
+class AccountCreateParamsConfigurationMerchantCapabilitiesPaypayPayments(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationMerchantCapabilitiesPixPayments(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountCreateParamsConfigurationMerchantCapabilitiesPromptpayPayments(
TypedDict,
):
@@ -1070,6 +1151,10 @@ class AccountCreateParamsConfigurationMerchantCardPaymentsDeclineOn(TypedDict):
class AccountCreateParamsConfigurationMerchantKonbiniPayments(TypedDict):
+ additional_material: NotRequired[str]
+ """
+ Information provided to support the onboarding process for Konbini payments.
+ """
support: NotRequired[
"AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupport"
]
@@ -1110,6 +1195,80 @@ class AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupportHours(
"""
+class AccountCreateParamsConfigurationMerchantPaypayPayments(TypedDict):
+ additional_files: List[str]
+ """
+ Additional files supporting PayPay payments configuration.
+ """
+ goods_type: NotRequired[Literal["digital_content", "other"]]
+ """
+ The type of goods sold by the merchant for PayPay payments.
+ """
+ site: NotRequired[
+ "AccountCreateParamsConfigurationMerchantPaypayPaymentsSite"
+ ]
+ """
+ The business's website for PayPay payments.
+ """
+ specified_commercial_transactions_act_url: NotRequired[str]
+ """
+ URL to the Specified Commercial Transactions Act page for PayPay payments.
+ """
+
+
+class AccountCreateParamsConfigurationMerchantPaypayPaymentsSite(TypedDict):
+ accessible: NotRequired[
+ "AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteAccessible"
+ ]
+ """
+ Additional information about the business's website when it's accessible.
+ """
+ in_development: NotRequired[
+ "AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment"
+ ]
+ """
+ Additional information about the business's website when it's in development.
+ """
+ restricted: NotRequired[
+ "AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteRestricted"
+ ]
+ """
+ Additional information about the business's website when it has restricted access.
+ """
+ type: NotRequired[Literal["accessible", "in_development", "restricted"]]
+ """
+ The status of the business's website.
+ """
+
+
+class AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteAccessible(
+ TypedDict,
+):
+ pass
+
+
+class AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment(
+ TypedDict,
+):
+ password: NotRequired[str]
+ """
+ The password needed to access the business's website.
+ """
+ username: NotRequired[str]
+ """
+ The username needed to access the business's website.
+ """
+
+
+class AccountCreateParamsConfigurationMerchantPaypayPaymentsSiteRestricted(
+ TypedDict,
+):
+ payment_flow_file: NotRequired[str]
+ """
+ The file explaining the payment flow for the business.
+ """
+
+
class AccountCreateParamsConfigurationMerchantScriptStatementDescriptor(
TypedDict,
):
@@ -1523,11 +1682,11 @@ class AccountCreateParamsDefaultsResponsibilities(TypedDict):
"application", "application_custom", "application_express", "stripe"
]
"""
- A value indicating the party responsible for collecting fees from this account.
+ Controls who pays Stripe fees for direct charges and other pricing-control-eligible Stripe products. For new integrations, setting `losses_collector=application` requires `fees_collector=application`; legacy Custom and Express accounts can also use `application_custom` or `application_express`. For destination charges and separate charges and transfers, Stripe bills the platform regardless of this setting. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior), including application fees and pricing considerations.
"""
losses_collector: Literal["application", "stripe"]
"""
- A value indicating who is responsible for losses when this Account can't pay back negative balances from payments.
+ Controls who is responsible for payment-related negative balances on this account. The platform remains liable for negative balances on its own account. To use Stripe negative balance liability, your integration must meet [Managed Risk requirements](https://docs.stripe.com/connect/risk-management/managed-risk).
"""
diff --git a/stripe/params/v2/core/_account_link_create_params.py b/stripe/params/v2/core/_account_link_create_params.py
index 03bef84a6..40a63f401 100644
--- a/stripe/params/v2/core/_account_link_create_params.py
+++ b/stripe/params/v2/core/_account_link_create_params.py
@@ -18,6 +18,12 @@ class AccountLinkCreateParams(TypedDict):
class AccountLinkCreateParamsUseCase(TypedDict):
+ account_dashboard: NotRequired[
+ "AccountLinkCreateParamsUseCaseAccountDashboard"
+ ]
+ """
+ Hash containing configuration options for an Account Link that provides access to the account's Stripe-hosted Dashboard.
+ """
account_onboarding: NotRequired[
"AccountLinkCreateParamsUseCaseAccountOnboarding"
]
@@ -28,12 +34,23 @@ class AccountLinkCreateParamsUseCase(TypedDict):
"""
Hash containing configuration options for an Account Link that updates an existing account.
"""
- type: Union[Literal["account_onboarding", "account_update"], str]
+ type: Union[
+ Literal["account_dashboard", "account_onboarding", "account_update"],
+ str,
+ ]
"""
Open Enum. The type of Account Link the user is requesting.
"""
+class AccountLinkCreateParamsUseCaseAccountDashboard(TypedDict):
+ refresh_url: str
+ """
+ The URL to redirect to if the Account Link has expired or has already
+ been used. Authenticate the user before generating a replacement link.
+ """
+
+
class AccountLinkCreateParamsUseCaseAccountOnboarding(TypedDict):
collection_options: NotRequired[
"AccountLinkCreateParamsUseCaseAccountOnboardingCollectionOptions"
diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py
index 721bfe448..ffd893bd7 100644
--- a/stripe/params/v2/core/_account_update_params.py
+++ b/stripe/params/v2/core/_account_update_params.py
@@ -26,7 +26,7 @@ class AccountUpdateParams(TypedDict):
"""
dashboard: NotRequired[Literal["express", "full", "none"]]
"""
- A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
+ Specifies the account's Stripe-hosted Dashboard access. Available values depend on the configurations enabled for the account. Learn more about [configuring Dashboard access](https://docs.stripe.com/connect/accounts-v2/connected-account-configuration#set-dashboard-access).
"""
defaults: NotRequired["AccountUpdateParamsDefaults"]
"""
@@ -294,6 +294,12 @@ class AccountUpdateParamsConfigurationMerchant(TypedDict):
"""
The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide.
"""
+ paypay_payments: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantPaypayPayments"
+ ]
+ """
+ Settings for PayPay payments.
+ """
script_statement_descriptor: NotRequired[
"AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor"
]
@@ -399,6 +405,12 @@ class AccountUpdateParamsConfigurationMerchantCapabilities(TypedDict):
"""
Allow the merchant to process Bancontact payments.
"""
+ billie_payments: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesBilliePayments"
+ ]
+ """
+ Allow the merchant to process Billie payments.
+ """
blik_payments: NotRequired[
"AccountUpdateParamsConfigurationMerchantCapabilitiesBlikPayments"
]
@@ -507,6 +519,12 @@ class AccountUpdateParamsConfigurationMerchantCapabilities(TypedDict):
"""
Allow the merchant to process Link payments.
"""
+ mb_way_payments: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesMbWayPayments"
+ ]
+ """
+ Allow the merchant to process MB WAY payments.
+ """
mobilepay_payments: NotRequired[
"AccountUpdateParamsConfigurationMerchantCapabilitiesMobilepayPayments"
]
@@ -531,6 +549,12 @@ class AccountUpdateParamsConfigurationMerchantCapabilities(TypedDict):
"""
Allow the merchant to process Naver Pay payments.
"""
+ nz_bank_account_becs_debit_payments: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments"
+ ]
+ """
+ Allow the merchant to process New Zealand BECS Direct Debit payments.
+ """
oxxo_payments: NotRequired[
"AccountUpdateParamsConfigurationMerchantCapabilitiesOxxoPayments"
]
@@ -561,6 +585,18 @@ class AccountUpdateParamsConfigurationMerchantCapabilities(TypedDict):
"""
Allow the merchant to process PayNow payments.
"""
+ paypay_payments: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesPaypayPayments"
+ ]
+ """
+ Allow the merchant to process PayPay payments.
+ """
+ pix_payments: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantCapabilitiesPixPayments"
+ ]
+ """
+ Allow the merchant to process Pix payments.
+ """
promptpay_payments: NotRequired[
"AccountUpdateParamsConfigurationMerchantCapabilitiesPromptpayPayments"
]
@@ -716,6 +752,15 @@ class AccountUpdateParamsConfigurationMerchantCapabilitiesBancontactPayments(
"""
+class AccountUpdateParamsConfigurationMerchantCapabilitiesBilliePayments(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountUpdateParamsConfigurationMerchantCapabilitiesBlikPayments(
TypedDict,
):
@@ -878,6 +923,15 @@ class AccountUpdateParamsConfigurationMerchantCapabilitiesLinkPayments(
"""
+class AccountUpdateParamsConfigurationMerchantCapabilitiesMbWayPayments(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountUpdateParamsConfigurationMerchantCapabilitiesMobilepayPayments(
TypedDict,
):
@@ -914,6 +968,15 @@ class AccountUpdateParamsConfigurationMerchantCapabilitiesNaverPayPayments(
"""
+class AccountUpdateParamsConfigurationMerchantCapabilitiesNzBankAccountBecsDebitPayments(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountUpdateParamsConfigurationMerchantCapabilitiesOxxoPayments(
TypedDict,
):
@@ -959,6 +1022,24 @@ class AccountUpdateParamsConfigurationMerchantCapabilitiesPaynowPayments(
"""
+class AccountUpdateParamsConfigurationMerchantCapabilitiesPaypayPayments(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationMerchantCapabilitiesPixPayments(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountUpdateParamsConfigurationMerchantCapabilitiesPromptpayPayments(
TypedDict,
):
@@ -1088,6 +1169,10 @@ class AccountUpdateParamsConfigurationMerchantCardPaymentsDeclineOn(TypedDict):
class AccountUpdateParamsConfigurationMerchantKonbiniPayments(TypedDict):
+ additional_material: NotRequired[str]
+ """
+ Information provided to support the onboarding process for Konbini payments.
+ """
support: NotRequired[
"AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupport"
]
@@ -1128,6 +1213,80 @@ class AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupportHours(
"""
+class AccountUpdateParamsConfigurationMerchantPaypayPayments(TypedDict):
+ additional_files: NotRequired[List[str]]
+ """
+ Additional files supporting PayPay payments configuration.
+ """
+ goods_type: NotRequired[Literal["digital_content", "other"]]
+ """
+ The type of goods sold by the merchant for PayPay payments.
+ """
+ site: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantPaypayPaymentsSite"
+ ]
+ """
+ The business's website for PayPay payments.
+ """
+ specified_commercial_transactions_act_url: NotRequired[str]
+ """
+ URL to the Specified Commercial Transactions Act page for PayPay payments.
+ """
+
+
+class AccountUpdateParamsConfigurationMerchantPaypayPaymentsSite(TypedDict):
+ accessible: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteAccessible"
+ ]
+ """
+ Additional information about the business's website when it's accessible.
+ """
+ in_development: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment"
+ ]
+ """
+ Additional information about the business's website when it's in development.
+ """
+ restricted: NotRequired[
+ "AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteRestricted"
+ ]
+ """
+ Additional information about the business's website when it has restricted access.
+ """
+ type: NotRequired[Literal["accessible", "in_development", "restricted"]]
+ """
+ The status of the business's website.
+ """
+
+
+class AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteAccessible(
+ TypedDict,
+):
+ pass
+
+
+class AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteInDevelopment(
+ TypedDict,
+):
+ password: NotRequired[str]
+ """
+ The password needed to access the business's website.
+ """
+ username: NotRequired[str]
+ """
+ The username needed to access the business's website.
+ """
+
+
+class AccountUpdateParamsConfigurationMerchantPaypayPaymentsSiteRestricted(
+ TypedDict,
+):
+ payment_flow_file: NotRequired[str]
+ """
+ The file explaining the payment flow for the business.
+ """
+
+
class AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor(
TypedDict,
):
@@ -1549,11 +1708,11 @@ class AccountUpdateParamsDefaultsResponsibilities(TypedDict):
"application", "application_custom", "application_express", "stripe"
]
"""
- A value indicating the party responsible for collecting fees from this account.
+ Controls who pays Stripe fees for direct charges and other pricing-control-eligible Stripe products. For new integrations, setting `losses_collector=application` requires `fees_collector=application`; legacy Custom and Express accounts can also use `application_custom` or `application_express`. For destination charges and separate charges and transfers, Stripe bills the platform regardless of this setting. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior), including application fees and pricing considerations. Set this value when adding an applicable configuration to the account. You can't change it after it's set.
"""
losses_collector: Literal["application", "stripe"]
"""
- A value indicating who is responsible for losses when this Account can't pay back negative balances from payments.
+ Controls who is responsible for payment-related negative balances on this account. The platform remains liable for negative balances on its own account. To use Stripe negative balance liability, your integration must meet [Managed Risk requirements](https://docs.stripe.com/connect/risk-management/managed-risk). Set this value when adding an applicable configuration to the account. You can't change it after it's set.
"""
diff --git a/stripe/params/v2/core/_claimable_sandbox_create_params.py b/stripe/params/v2/core/_claimable_sandbox_create_params.py
new file mode 100644
index 000000000..8d782bcb8
--- /dev/null
+++ b/stripe/params/v2/core/_claimable_sandbox_create_params.py
@@ -0,0 +1,56 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class ClaimableSandboxCreateParams(TypedDict):
+ channel: NotRequired[Literal["public", "testing"]]
+ """
+ The distribution channel used to pre-install your Stripe App on the claimable sandbox.
+ Use `testing` to install your app's external test version or `public` to install its published version.
+ This field defaults to `public` if omitted.
+ """
+ enable_mcp_access: bool
+ """
+ If true, returns a key that can be used with [Stripe's MCP server](https://docs.stripe.com/mcp).
+ """
+ onboarding_link_details: (
+ "ClaimableSandboxCreateParamsOnboardingLinkDetails"
+ )
+ """
+ Details about the onboarding link.
+ """
+ prefill: "ClaimableSandboxCreateParamsPrefill"
+ """
+ Values that are prefilled when a user claims the sandbox. When a user claims the sandbox, they will be able to update these values.
+ """
+
+
+class ClaimableSandboxCreateParamsOnboardingLinkDetails(TypedDict):
+ refresh_url: str
+ """
+ The URL the user will be redirected to if the onboarding link is expired or invalid.
+ The URL specified should attempt to generate a new onboarding link,
+ and re-direct the user to this new onboarding link so that they can proceed with the onboarding flow.
+ """
+ return_url: NotRequired[str]
+ """
+ The URL offered to the user as a way back to your app after they claim the sandbox.
+ """
+
+
+class ClaimableSandboxCreateParamsPrefill(TypedDict):
+ country: str
+ """
+ Country in which the account holder resides, or in which the business is legally established.
+ Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ email: str
+ """
+ Email address of the user who will claim the sandbox.
+ Stripe sends this address an invitation to claim the sandbox and a reminder before the unclaimed sandbox expires.
+ """
+ name: NotRequired[str]
+ """
+ Name for the sandbox.
+ """
diff --git a/stripe/params/v2/core/_claimable_sandbox_renew_onboarding_link_params.py b/stripe/params/v2/core/_claimable_sandbox_renew_onboarding_link_params.py
new file mode 100644
index 000000000..10e765b83
--- /dev/null
+++ b/stripe/params/v2/core/_claimable_sandbox_renew_onboarding_link_params.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class ClaimableSandboxRenewOnboardingLinkParams(TypedDict):
+ onboarding_link_details: NotRequired[
+ "ClaimableSandboxRenewOnboardingLinkParamsOnboardingLinkDetails"
+ ]
+ """
+ Details about the onboarding link. If omitted, existing details are reused.
+ Omitted URL fields retain their existing values.
+ """
+
+
+class ClaimableSandboxRenewOnboardingLinkParamsOnboardingLinkDetails(
+ TypedDict
+):
+ refresh_url: NotRequired[str]
+ """
+ The URL the user will be redirected to if the onboarding link is expired or invalid.
+ If omitted, the existing refresh URL is retained.
+ The URL should generate a new onboarding link and redirect the user to it.
+ """
+ return_url: NotRequired[str]
+ """
+ The URL offered to the user as a way back to your app after they claim the sandbox.
+ If omitted, the existing return URL is retained. Set to null to clear it.
+ """
diff --git a/stripe/params/v2/core/_claimable_sandbox_retrieve_params.py b/stripe/params/v2/core/_claimable_sandbox_retrieve_params.py
new file mode 100644
index 000000000..5e124a038
--- /dev/null
+++ b/stripe/params/v2/core/_claimable_sandbox_retrieve_params.py
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class ClaimableSandboxRetrieveParams(TypedDict):
+ include: NotRequired[List[Literal["sandbox_details.api_keys"]]]
+ """
+ Additional fields to include in the response.
+ """
diff --git a/stripe/params/v2/money_management/_financial_account_list_params.py b/stripe/params/v2/money_management/_financial_account_list_params.py
index 8d6a12796..528bd5beb 100644
--- a/stripe/params/v2/money_management/_financial_account_list_params.py
+++ b/stripe/params/v2/money_management/_financial_account_list_params.py
@@ -13,7 +13,7 @@ class FinancialAccountListParams(TypedDict):
"""
limit: NotRequired[int]
"""
- The page limit.
+ Maximum number of results to return. Default: 10. Valid range: 1-20.
"""
statuses: NotRequired[List[Literal["closed", "open", "pending"]]]
"""
diff --git a/stripe/params/v2/money_management/_financial_address_create_params.py b/stripe/params/v2/money_management/_financial_address_create_params.py
index 138ab0f7a..417cc41f2 100644
--- a/stripe/params/v2/money_management/_financial_address_create_params.py
+++ b/stripe/params/v2/money_management/_financial_address_create_params.py
@@ -22,9 +22,9 @@ class FinancialAddressCreateParams(TypedDict):
class FinancialAddressCreateParamsBankAccount(TypedDict):
country: NotRequired[str]
"""
- The country for the bank account. Used to select the appropriate rails (e.g. for SEPA).
+ The country where Stripe provisions the bank account. Each currency supports the country listed in its description. If omitted, Stripe selects that country.
"""
currency: Union[Literal["eur", "gbp", "usd"], str]
"""
- The currency of the bank account to provision. Available currencies depend on your account's enabled features and rollout access; `eur` requires the Financial Address Global Payouts EU preview.
+ The currency of the bank account to provision. Some currencies require preview or rollout access, as configured for your account.
"""
diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py
index 2757495ab..a0064efd4 100644
--- a/stripe/radar/_payment_evaluation.py
+++ b/stripe/radar/_payment_evaluation.py
@@ -614,7 +614,7 @@ class FraudulentPayment(StripeObject):
"""
recommended_action: Union[Literal["block", "continue"], str]
"""
- Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`.
+ Recommended action for this payment based on its evaluated signals and rules.
"""
signals: Signals
"""
diff --git a/stripe/reporting/_report_run.py b/stripe/reporting/_report_run.py
index 3eda46c25..be428df7e 100644
--- a/stripe/reporting/_report_run.py
+++ b/stripe/reporting/_report_run.py
@@ -68,6 +68,10 @@ class Parameters(StripeObject):
"""
Category of balance transactions to be included in the report run.
"""
+ tax_invoice_month: Optional[str]
+ """
+ The tax invoice month in YYYY-MM format.
+ """
timezone: Optional[str]
"""
Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`.
diff --git a/stripe/reserve/_hold.py b/stripe/reserve/_hold.py
index 5d2c3f4ce..a28493813 100644
--- a/stripe/reserve/_hold.py
+++ b/stripe/reserve/_hold.py
@@ -12,7 +12,7 @@
class Hold(StripeObject):
"""
- ReserveHolds are used to place a temporary ReserveHold on a merchant's funds.
+ A ReserveHold holds a portion of an account's funds until it's released. Stripe or the account's platform can create a ReserveHold directly, and a ReservePlan creates ReserveHolds automatically from incoming Charges.
"""
OBJECT_NAME: ClassVar[Literal["reserve.hold"]] = "reserve.hold"
diff --git a/stripe/tax/_registration.py b/stripe/tax/_registration.py
index 2f9b36286..7da5ceebe 100644
--- a/stripe/tax/_registration.py
+++ b/stripe/tax/_registration.py
@@ -387,6 +387,12 @@ class Eg(StripeObject):
"""
class Es(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -395,14 +401,18 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
- Literal["ioss", "oss_non_union", "oss_union", "standard"], str
+ Literal[
+ "igic", "ioss", "oss_non_union", "oss_union", "standard"
+ ],
+ str,
]
"""
Type of registration in ES.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Et(StripeObject):
type: Literal["standard"]
diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py
index a66b1089d..ad2c6abfa 100644
--- a/stripe/terminal/_reader.py
+++ b/stripe/terminal/_reader.py
@@ -165,6 +165,7 @@ class ApiError(StripeObject):
"forwarding_api_upstream_connection_timeout",
"forwarding_api_upstream_error",
"idempotency_key_in_use",
+ "inactive_api_operation_confirmation_required",
"incorrect_address",
"incorrect_cvc",
"incorrect_number",
@@ -919,13 +920,18 @@ class LineItem(StripeObject):
"simulated_wisepos_e",
"stripe_m2",
"stripe_s700",
+ "stripe_s700_devkit",
"stripe_s710",
+ "stripe_s710_devkit",
"stripe_t600",
+ "stripe_t600_devkit",
"verifone_P400",
"verifone_m425",
"verifone_p630",
"verifone_ux700",
+ "verifone_ux700_devkit",
"verifone_v660p",
+ "verifone_v660p_devkit",
],
str,
]
diff --git a/stripe/test_helpers/treasury/_inbound_transfer_service.py b/stripe/test_helpers/treasury/_inbound_transfer_service.py
index 13402c931..086debe86 100644
--- a/stripe/test_helpers/treasury/_inbound_transfer_service.py
+++ b/stripe/test_helpers/treasury/_inbound_transfer_service.py
@@ -28,7 +28,7 @@ def fail(
options: Optional["RequestOptions"] = None,
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -51,7 +51,7 @@ async def fail_async(
options: Optional["RequestOptions"] = None,
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -74,7 +74,7 @@ def return_inbound_transfer(
options: Optional["RequestOptions"] = None,
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
return cast(
"InboundTransfer",
@@ -97,7 +97,7 @@ async def return_inbound_transfer_async(
options: Optional["RequestOptions"] = None,
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
return cast(
"InboundTransfer",
@@ -120,7 +120,7 @@ def succeed(
options: Optional["RequestOptions"] = None,
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -143,7 +143,7 @@ async def succeed_async(
options: Optional["RequestOptions"] = None,
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
diff --git a/stripe/test_helpers/treasury/_outbound_payment_service.py b/stripe/test_helpers/treasury/_outbound_payment_service.py
index e3c187e54..7be2c5dcc 100644
--- a/stripe/test_helpers/treasury/_outbound_payment_service.py
+++ b/stripe/test_helpers/treasury/_outbound_payment_service.py
@@ -31,7 +31,7 @@ def update(
options: Optional["RequestOptions"] = None,
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundPayment",
@@ -54,7 +54,7 @@ async def update_async(
options: Optional["RequestOptions"] = None,
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundPayment",
@@ -77,7 +77,7 @@ def fail(
options: Optional["RequestOptions"] = None,
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -100,7 +100,7 @@ async def fail_async(
options: Optional["RequestOptions"] = None,
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -123,7 +123,7 @@ def post(
options: Optional["RequestOptions"] = None,
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -146,7 +146,7 @@ async def post_async(
options: Optional["RequestOptions"] = None,
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -169,7 +169,7 @@ def return_outbound_payment(
options: Optional["RequestOptions"] = None,
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
return cast(
"OutboundPayment",
@@ -192,7 +192,7 @@ async def return_outbound_payment_async(
options: Optional["RequestOptions"] = None,
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
return cast(
"OutboundPayment",
diff --git a/stripe/test_helpers/treasury/_outbound_transfer_service.py b/stripe/test_helpers/treasury/_outbound_transfer_service.py
index eca1872cd..1df1e5311 100644
--- a/stripe/test_helpers/treasury/_outbound_transfer_service.py
+++ b/stripe/test_helpers/treasury/_outbound_transfer_service.py
@@ -31,7 +31,7 @@ def update(
options: Optional["RequestOptions"] = None,
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundTransfer",
@@ -54,7 +54,7 @@ async def update_async(
options: Optional["RequestOptions"] = None,
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundTransfer",
@@ -77,7 +77,7 @@ def fail(
options: Optional["RequestOptions"] = None,
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -100,7 +100,7 @@ async def fail_async(
options: Optional["RequestOptions"] = None,
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -123,7 +123,7 @@ def post(
options: Optional["RequestOptions"] = None,
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -146,7 +146,7 @@ async def post_async(
options: Optional["RequestOptions"] = None,
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -171,7 +171,7 @@ def return_outbound_transfer(
options: Optional["RequestOptions"] = None,
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
return cast(
"OutboundTransfer",
@@ -196,7 +196,7 @@ async def return_outbound_transfer_async(
options: Optional["RequestOptions"] = None,
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
return cast(
"OutboundTransfer",
diff --git a/stripe/test_helpers/treasury/_received_credit_service.py b/stripe/test_helpers/treasury/_received_credit_service.py
index b0ffb9ffe..82d4b7624 100644
--- a/stripe/test_helpers/treasury/_received_credit_service.py
+++ b/stripe/test_helpers/treasury/_received_credit_service.py
@@ -19,7 +19,7 @@ def create(
options: Optional["RequestOptions"] = None,
) -> "ReceivedCredit":
"""
- Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties.
+ Simulates a test ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredit objects initiated by third parties.
"""
return cast(
"ReceivedCredit",
@@ -38,7 +38,7 @@ async def create_async(
options: Optional["RequestOptions"] = None,
) -> "ReceivedCredit":
"""
- Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties.
+ Simulates a test ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredit objects initiated by third parties.
"""
return cast(
"ReceivedCredit",
diff --git a/stripe/test_helpers/treasury/_received_debit_service.py b/stripe/test_helpers/treasury/_received_debit_service.py
index 4b86843ac..cb4bac603 100644
--- a/stripe/test_helpers/treasury/_received_debit_service.py
+++ b/stripe/test_helpers/treasury/_received_debit_service.py
@@ -19,7 +19,7 @@ def create(
options: Optional["RequestOptions"] = None,
) -> "ReceivedDebit":
"""
- Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties.
+ Simulates a test ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebit objects initiated by third parties.
"""
return cast(
"ReceivedDebit",
@@ -38,7 +38,7 @@ async def create_async(
options: Optional["RequestOptions"] = None,
) -> "ReceivedDebit":
"""
- Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties.
+ Simulates a test ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebit objects initiated by third parties.
"""
return cast(
"ReceivedDebit",
diff --git a/stripe/treasury/_inbound_transfer.py b/stripe/treasury/_inbound_transfer.py
index b2861a4d6..5028da9f9 100644
--- a/stripe/treasury/_inbound_transfer.py
+++ b/stripe/treasury/_inbound_transfer.py
@@ -53,6 +53,23 @@ class InboundTransfer(
)
class FailureDetails(StripeObject):
+ class NetworkDetails(StripeObject):
+ class Ach(StripeObject):
+ return_code: Optional[str]
+ """
+ NACHA ACH return code.
+ """
+ return_reason: Optional[str]
+ """
+ NACHA ACH return reason.
+ """
+
+ ach: Optional[Ach]
+ """
+ ACH return details.
+ """
+ _inner_class_types = {"ach": Ach}
+
code: Union[
Literal[
"account_closed",
@@ -74,6 +91,11 @@ class FailureDetails(StripeObject):
"""
Reason for the failure.
"""
+ network_details: Optional[NetworkDetails]
+ """
+ Money movement network-specific details regarding the failure.
+ """
+ _inner_class_types = {"network_details": NetworkDetails}
class LinkedFlows(StripeObject):
received_debit: Optional[str]
@@ -480,7 +502,7 @@ def _cls_fail(
cls, id: str, /, **params: Unpack["InboundTransferFailParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -499,7 +521,7 @@ def fail(
id: str, /, **params: Unpack["InboundTransferFailParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
...
@@ -508,7 +530,7 @@ def fail(
self, **params: Unpack["InboundTransferFailParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
...
@@ -517,7 +539,7 @@ def fail(
self, **params: Unpack["InboundTransferFailParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -535,7 +557,7 @@ async def _cls_fail_async(
cls, id: str, /, **params: Unpack["InboundTransferFailParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -554,7 +576,7 @@ async def fail_async(
id: str, /, **params: Unpack["InboundTransferFailParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
...
@@ -563,7 +585,7 @@ async def fail_async(
self, **params: Unpack["InboundTransferFailParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
...
@@ -572,7 +594,7 @@ async def fail_async(
self, **params: Unpack["InboundTransferFailParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -593,7 +615,7 @@ def _cls_return_inbound_transfer(
**params: Unpack["InboundTransferReturnInboundTransferParams"],
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
return cast(
"InboundTransfer",
@@ -614,7 +636,7 @@ def return_inbound_transfer(
**params: Unpack["InboundTransferReturnInboundTransferParams"],
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
...
@@ -624,7 +646,7 @@ def return_inbound_transfer(
**params: Unpack["InboundTransferReturnInboundTransferParams"],
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
...
@@ -634,7 +656,7 @@ def return_inbound_transfer(
**params: Unpack["InboundTransferReturnInboundTransferParams"],
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
return cast(
"InboundTransfer",
@@ -655,7 +677,7 @@ async def _cls_return_inbound_transfer_async(
**params: Unpack["InboundTransferReturnInboundTransferParams"],
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
return cast(
"InboundTransfer",
@@ -676,7 +698,7 @@ async def return_inbound_transfer_async(
**params: Unpack["InboundTransferReturnInboundTransferParams"],
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
...
@@ -686,7 +708,7 @@ async def return_inbound_transfer_async(
**params: Unpack["InboundTransferReturnInboundTransferParams"],
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
...
@@ -696,7 +718,7 @@ async def return_inbound_transfer_async(
**params: Unpack["InboundTransferReturnInboundTransferParams"],
) -> "InboundTransfer":
"""
- Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
+ Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
"""
return cast(
"InboundTransfer",
@@ -714,7 +736,7 @@ def _cls_succeed(
cls, id: str, /, **params: Unpack["InboundTransferSucceedParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -733,7 +755,7 @@ def succeed(
id: str, /, **params: Unpack["InboundTransferSucceedParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
...
@@ -742,7 +764,7 @@ def succeed(
self, **params: Unpack["InboundTransferSucceedParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
...
@@ -751,7 +773,7 @@ def succeed(
self, **params: Unpack["InboundTransferSucceedParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -769,7 +791,7 @@ async def _cls_succeed_async(
cls, id: str, /, **params: Unpack["InboundTransferSucceedParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
@@ -788,7 +810,7 @@ async def succeed_async(
id: str, /, **params: Unpack["InboundTransferSucceedParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
...
@@ -797,7 +819,7 @@ async def succeed_async(
self, **params: Unpack["InboundTransferSucceedParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
...
@@ -806,7 +828,7 @@ async def succeed_async(
self, **params: Unpack["InboundTransferSucceedParams"]
) -> "InboundTransfer":
"""
- Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
+ Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
"""
return cast(
"InboundTransfer",
diff --git a/stripe/treasury/_outbound_payment.py b/stripe/treasury/_outbound_payment.py
index 6808978f5..e7b75e39e 100644
--- a/stripe/treasury/_outbound_payment.py
+++ b/stripe/treasury/_outbound_payment.py
@@ -166,6 +166,23 @@ class EndUserDetails(StripeObject):
"""
class ReturnedDetails(StripeObject):
+ class NetworkDetails(StripeObject):
+ class Ach(StripeObject):
+ return_code: Optional[str]
+ """
+ NACHA ACH return code.
+ """
+ return_reason: Optional[str]
+ """
+ NACHA ACH return reason.
+ """
+
+ ach: Optional[Ach]
+ """
+ ACH return details.
+ """
+ _inner_class_types = {"ach": Ach}
+
code: Union[
Literal[
"account_closed",
@@ -184,10 +201,15 @@ class ReturnedDetails(StripeObject):
"""
Reason for the return.
"""
+ network_details: Optional[NetworkDetails]
+ """
+ Money movement network-specific details regarding the failure.
+ """
transaction: ExpandableField["Transaction"]
"""
The Transaction associated with this object.
"""
+ _inner_class_types = {"network_details": NetworkDetails}
class StatusTransitions(StripeObject):
canceled_at: Optional[int]
@@ -538,7 +560,7 @@ def _cls_fail(
cls, id: str, /, **params: Unpack["OutboundPaymentFailParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -557,7 +579,7 @@ def fail(
id: str, /, **params: Unpack["OutboundPaymentFailParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
...
@@ -566,7 +588,7 @@ def fail(
self, **params: Unpack["OutboundPaymentFailParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
...
@@ -575,7 +597,7 @@ def fail(
self, **params: Unpack["OutboundPaymentFailParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -593,7 +615,7 @@ async def _cls_fail_async(
cls, id: str, /, **params: Unpack["OutboundPaymentFailParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -612,7 +634,7 @@ async def fail_async(
id: str, /, **params: Unpack["OutboundPaymentFailParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
...
@@ -621,7 +643,7 @@ async def fail_async(
self, **params: Unpack["OutboundPaymentFailParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
...
@@ -630,7 +652,7 @@ async def fail_async(
self, **params: Unpack["OutboundPaymentFailParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -648,7 +670,7 @@ def _cls_post(
cls, id: str, /, **params: Unpack["OutboundPaymentPostParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -667,7 +689,7 @@ def post(
id: str, /, **params: Unpack["OutboundPaymentPostParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
...
@@ -676,7 +698,7 @@ def post(
self, **params: Unpack["OutboundPaymentPostParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
...
@@ -685,7 +707,7 @@ def post(
self, **params: Unpack["OutboundPaymentPostParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -703,7 +725,7 @@ async def _cls_post_async(
cls, id: str, /, **params: Unpack["OutboundPaymentPostParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -722,7 +744,7 @@ async def post_async(
id: str, /, **params: Unpack["OutboundPaymentPostParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
...
@@ -731,7 +753,7 @@ async def post_async(
self, **params: Unpack["OutboundPaymentPostParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
...
@@ -740,7 +762,7 @@ async def post_async(
self, **params: Unpack["OutboundPaymentPostParams"]
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
"""
return cast(
"OutboundPayment",
@@ -761,7 +783,7 @@ def _cls_return_outbound_payment(
**params: Unpack["OutboundPaymentReturnOutboundPaymentParams"],
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
return cast(
"OutboundPayment",
@@ -782,7 +804,7 @@ def return_outbound_payment(
**params: Unpack["OutboundPaymentReturnOutboundPaymentParams"],
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
...
@@ -792,7 +814,7 @@ def return_outbound_payment(
**params: Unpack["OutboundPaymentReturnOutboundPaymentParams"],
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
...
@@ -802,7 +824,7 @@ def return_outbound_payment(
**params: Unpack["OutboundPaymentReturnOutboundPaymentParams"],
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
return cast(
"OutboundPayment",
@@ -823,7 +845,7 @@ async def _cls_return_outbound_payment_async(
**params: Unpack["OutboundPaymentReturnOutboundPaymentParams"],
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
return cast(
"OutboundPayment",
@@ -844,7 +866,7 @@ async def return_outbound_payment_async(
**params: Unpack["OutboundPaymentReturnOutboundPaymentParams"],
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
...
@@ -854,7 +876,7 @@ async def return_outbound_payment_async(
**params: Unpack["OutboundPaymentReturnOutboundPaymentParams"],
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
...
@@ -864,7 +886,7 @@ async def return_outbound_payment_async(
**params: Unpack["OutboundPaymentReturnOutboundPaymentParams"],
) -> "OutboundPayment":
"""
- Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
+ Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
"""
return cast(
"OutboundPayment",
@@ -882,7 +904,7 @@ def _cls_update(
cls, id: str, /, **params: Unpack["OutboundPaymentUpdateParams"]
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundPayment",
@@ -901,7 +923,7 @@ def update(
id: str, /, **params: Unpack["OutboundPaymentUpdateParams"]
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
...
@@ -910,7 +932,7 @@ def update(
self, **params: Unpack["OutboundPaymentUpdateParams"]
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
...
@@ -919,7 +941,7 @@ def update(
self, **params: Unpack["OutboundPaymentUpdateParams"]
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundPayment",
@@ -937,7 +959,7 @@ async def _cls_update_async(
cls, id: str, /, **params: Unpack["OutboundPaymentUpdateParams"]
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundPayment",
@@ -956,7 +978,7 @@ async def update_async(
id: str, /, **params: Unpack["OutboundPaymentUpdateParams"]
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
...
@@ -965,7 +987,7 @@ async def update_async(
self, **params: Unpack["OutboundPaymentUpdateParams"]
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
...
@@ -974,7 +996,7 @@ async def update_async(
self, **params: Unpack["OutboundPaymentUpdateParams"]
) -> "OutboundPayment":
"""
- Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundPayment",
diff --git a/stripe/treasury/_outbound_transfer.py b/stripe/treasury/_outbound_transfer.py
index d84dba8ef..883cb0dd9 100644
--- a/stripe/treasury/_outbound_transfer.py
+++ b/stripe/treasury/_outbound_transfer.py
@@ -156,6 +156,23 @@ class UsBankAccount(StripeObject):
}
class ReturnedDetails(StripeObject):
+ class NetworkDetails(StripeObject):
+ class Ach(StripeObject):
+ return_code: Optional[str]
+ """
+ NACHA ACH return code.
+ """
+ return_reason: Optional[str]
+ """
+ NACHA ACH return reason.
+ """
+
+ ach: Optional[Ach]
+ """
+ ACH return details.
+ """
+ _inner_class_types = {"ach": Ach}
+
code: Union[
Literal[
"account_closed",
@@ -174,10 +191,15 @@ class ReturnedDetails(StripeObject):
"""
Reason for the return.
"""
+ network_details: Optional[NetworkDetails]
+ """
+ Money movement network-specific details regarding the failure.
+ """
transaction: ExpandableField["Transaction"]
"""
The Transaction associated with this object.
"""
+ _inner_class_types = {"network_details": NetworkDetails}
class StatusTransitions(StripeObject):
canceled_at: Optional[int]
@@ -528,7 +550,7 @@ def _cls_fail(
**params: Unpack["OutboundTransferFailParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -549,7 +571,7 @@ def fail(
**params: Unpack["OutboundTransferFailParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
...
@@ -558,7 +580,7 @@ def fail(
self, **params: Unpack["OutboundTransferFailParams"]
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
...
@@ -567,7 +589,7 @@ def fail(
self, **params: Unpack["OutboundTransferFailParams"]
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -590,7 +612,7 @@ async def _cls_fail_async(
**params: Unpack["OutboundTransferFailParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -611,7 +633,7 @@ async def fail_async(
**params: Unpack["OutboundTransferFailParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
...
@@ -620,7 +642,7 @@ async def fail_async(
self, **params: Unpack["OutboundTransferFailParams"]
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
...
@@ -629,7 +651,7 @@ async def fail_async(
self, **params: Unpack["OutboundTransferFailParams"]
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -652,7 +674,7 @@ def _cls_post(
**params: Unpack["OutboundTransferPostParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -673,7 +695,7 @@ def post(
**params: Unpack["OutboundTransferPostParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
...
@@ -682,7 +704,7 @@ def post(
self, **params: Unpack["OutboundTransferPostParams"]
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
...
@@ -691,7 +713,7 @@ def post(
self, **params: Unpack["OutboundTransferPostParams"]
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -714,7 +736,7 @@ async def _cls_post_async(
**params: Unpack["OutboundTransferPostParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -735,7 +757,7 @@ async def post_async(
**params: Unpack["OutboundTransferPostParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
...
@@ -744,7 +766,7 @@ async def post_async(
self, **params: Unpack["OutboundTransferPostParams"]
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
...
@@ -753,7 +775,7 @@ async def post_async(
self, **params: Unpack["OutboundTransferPostParams"]
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
"""
return cast(
"OutboundTransfer",
@@ -776,7 +798,7 @@ def _cls_return_outbound_transfer(
**params: Unpack["OutboundTransferReturnOutboundTransferParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
return cast(
"OutboundTransfer",
@@ -797,7 +819,7 @@ def return_outbound_transfer(
**params: Unpack["OutboundTransferReturnOutboundTransferParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
...
@@ -807,7 +829,7 @@ def return_outbound_transfer(
**params: Unpack["OutboundTransferReturnOutboundTransferParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
...
@@ -817,7 +839,7 @@ def return_outbound_transfer(
**params: Unpack["OutboundTransferReturnOutboundTransferParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
return cast(
"OutboundTransfer",
@@ -840,7 +862,7 @@ async def _cls_return_outbound_transfer_async(
**params: Unpack["OutboundTransferReturnOutboundTransferParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
return cast(
"OutboundTransfer",
@@ -861,7 +883,7 @@ async def return_outbound_transfer_async(
**params: Unpack["OutboundTransferReturnOutboundTransferParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
...
@@ -871,7 +893,7 @@ async def return_outbound_transfer_async(
**params: Unpack["OutboundTransferReturnOutboundTransferParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
...
@@ -881,7 +903,7 @@ async def return_outbound_transfer_async(
**params: Unpack["OutboundTransferReturnOutboundTransferParams"],
) -> "OutboundTransfer":
"""
- Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
+ Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
"""
return cast(
"OutboundTransfer",
@@ -904,7 +926,7 @@ def _cls_update(
**params: Unpack["OutboundTransferUpdateParams"],
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundTransfer",
@@ -925,7 +947,7 @@ def update(
**params: Unpack["OutboundTransferUpdateParams"],
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
...
@@ -934,7 +956,7 @@ def update(
self, **params: Unpack["OutboundTransferUpdateParams"]
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
...
@@ -943,7 +965,7 @@ def update(
self, **params: Unpack["OutboundTransferUpdateParams"]
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundTransfer",
@@ -966,7 +988,7 @@ async def _cls_update_async(
**params: Unpack["OutboundTransferUpdateParams"],
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundTransfer",
@@ -987,7 +1009,7 @@ async def update_async(
**params: Unpack["OutboundTransferUpdateParams"],
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
...
@@ -996,7 +1018,7 @@ async def update_async(
self, **params: Unpack["OutboundTransferUpdateParams"]
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
...
@@ -1005,7 +1027,7 @@ async def update_async(
self, **params: Unpack["OutboundTransferUpdateParams"]
) -> "OutboundTransfer":
"""
- Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
+ Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
"""
return cast(
"OutboundTransfer",
diff --git a/stripe/treasury/_received_credit.py b/stripe/treasury/_received_credit.py
index 4bc8dbdf7..2769f4a0a 100644
--- a/stripe/treasury/_received_credit.py
+++ b/stripe/treasury/_received_credit.py
@@ -370,7 +370,7 @@ def create(
cls, **params: Unpack["ReceivedCreditCreateParams"]
) -> "ReceivedCredit":
"""
- Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties.
+ Simulates a test ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredit objects initiated by third parties.
"""
return cast(
"ReceivedCredit",
@@ -386,7 +386,7 @@ async def create_async(
cls, **params: Unpack["ReceivedCreditCreateParams"]
) -> "ReceivedCredit":
"""
- Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties.
+ Simulates a test ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredit objects initiated by third parties.
"""
return cast(
"ReceivedCredit",
diff --git a/stripe/treasury/_received_debit.py b/stripe/treasury/_received_debit.py
index ef4e98888..2d00c5ce6 100644
--- a/stripe/treasury/_received_debit.py
+++ b/stripe/treasury/_received_debit.py
@@ -312,7 +312,7 @@ def create(
cls, **params: Unpack["ReceivedDebitCreateParams"]
) -> "ReceivedDebit":
"""
- Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties.
+ Simulates a test ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebit objects initiated by third parties.
"""
return cast(
"ReceivedDebit",
@@ -328,7 +328,7 @@ async def create_async(
cls, **params: Unpack["ReceivedDebitCreateParams"]
) -> "ReceivedDebit":
"""
- Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties.
+ Simulates a test ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebit objects initiated by third parties.
"""
return cast(
"ReceivedDebit",
diff --git a/stripe/v2/_core_service.py b/stripe/v2/_core_service.py
index 35a600637..f916eabe2 100644
--- a/stripe/v2/_core_service.py
+++ b/stripe/v2/_core_service.py
@@ -8,6 +8,9 @@
from stripe.v2.core._account_link_service import AccountLinkService
from stripe.v2.core._account_service import AccountService
from stripe.v2.core._account_token_service import AccountTokenService
+ from stripe.v2.core._claimable_sandbox_service import (
+ ClaimableSandboxService,
+ )
from stripe.v2.core._event_destination_service import (
EventDestinationService,
)
@@ -24,6 +27,10 @@
"stripe.v2.core._account_token_service",
"AccountTokenService",
],
+ "claimable_sandboxes": [
+ "stripe.v2.core._claimable_sandbox_service",
+ "ClaimableSandboxService",
+ ],
"events": ["stripe.v2.core._event_service", "EventService"],
"event_destinations": [
"stripe.v2.core._event_destination_service",
@@ -37,6 +44,7 @@ class CoreService(StripeService):
accounts: "AccountService"
account_links: "AccountLinkService"
account_tokens: "AccountTokenService"
+ claimable_sandboxes: "ClaimableSandboxService"
events: "EventService"
event_destinations: "EventDestinationService"
vault: "VaultService"
diff --git a/stripe/v2/core/__init__.py b/stripe/v2/core/__init__.py
index b84e7015f..e33493612 100644
--- a/stripe/v2/core/__init__.py
+++ b/stripe/v2/core/__init__.py
@@ -30,6 +30,12 @@
from stripe.v2.core._account_token_service import (
AccountTokenService as AccountTokenService,
)
+ from stripe.v2.core._claimable_sandbox import (
+ ClaimableSandbox as ClaimableSandbox,
+ )
+ from stripe.v2.core._claimable_sandbox_service import (
+ ClaimableSandboxService as ClaimableSandboxService,
+ )
from stripe.v2.core._event import Event as Event
from stripe.v2.core._event_destination import (
EventDestination as EventDestination,
@@ -52,6 +58,11 @@
"AccountService": ("stripe.v2.core._account_service", False),
"AccountToken": ("stripe.v2.core._account_token", False),
"AccountTokenService": ("stripe.v2.core._account_token_service", False),
+ "ClaimableSandbox": ("stripe.v2.core._claimable_sandbox", False),
+ "ClaimableSandboxService": (
+ "stripe.v2.core._claimable_sandbox_service",
+ False,
+ ),
"Event": ("stripe.v2.core._event", False),
"EventDestination": ("stripe.v2.core._event_destination", False),
"EventDestinationService": (
diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py
index 9f5c0091f..64296b071 100644
--- a/stripe/v2/core/_account.py
+++ b/stripe/v2/core/_account.py
@@ -673,6 +673,51 @@ class StatusDetail(StripeObject):
"""
_inner_class_types = {"status_details": StatusDetail}
+ class BilliePayments(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "rejected_fraud",
+ "rejected_incomplete_verification",
+ "rejected_listed",
+ "rejected_other",
+ "rejected_platform_fraud",
+ "rejected_platform_other",
+ "rejected_platform_terms_of_service",
+ "rejected_terms_of_service",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe", "no_resolution", "provide_info"
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active",
+ "pending",
+ "rejected",
+ "restricted",
+ "unsupported",
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
class BlikPayments(StripeObject):
class StatusDetail(StripeObject):
code: Literal[
@@ -1483,6 +1528,51 @@ class StatusDetail(StripeObject):
"""
_inner_class_types = {"status_details": StatusDetail}
+ class MbWayPayments(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "rejected_fraud",
+ "rejected_incomplete_verification",
+ "rejected_listed",
+ "rejected_other",
+ "rejected_platform_fraud",
+ "rejected_platform_other",
+ "rejected_platform_terms_of_service",
+ "rejected_terms_of_service",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe", "no_resolution", "provide_info"
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active",
+ "pending",
+ "rejected",
+ "restricted",
+ "unsupported",
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
class MobilepayPayments(StripeObject):
class StatusDetail(StripeObject):
code: Literal[
@@ -1663,6 +1753,51 @@ class StatusDetail(StripeObject):
"""
_inner_class_types = {"status_details": StatusDetail}
+ class NzBankAccountBecsDebitPayments(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "rejected_fraud",
+ "rejected_incomplete_verification",
+ "rejected_listed",
+ "rejected_other",
+ "rejected_platform_fraud",
+ "rejected_platform_other",
+ "rejected_platform_terms_of_service",
+ "rejected_terms_of_service",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe", "no_resolution", "provide_info"
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active",
+ "pending",
+ "rejected",
+ "restricted",
+ "unsupported",
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
class OxxoPayments(StripeObject):
class StatusDetail(StripeObject):
code: Literal[
@@ -1888,6 +2023,96 @@ class StatusDetail(StripeObject):
"""
_inner_class_types = {"status_details": StatusDetail}
+ class PaypayPayments(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "rejected_fraud",
+ "rejected_incomplete_verification",
+ "rejected_listed",
+ "rejected_other",
+ "rejected_platform_fraud",
+ "rejected_platform_other",
+ "rejected_platform_terms_of_service",
+ "rejected_terms_of_service",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe", "no_resolution", "provide_info"
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active",
+ "pending",
+ "rejected",
+ "restricted",
+ "unsupported",
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ class PixPayments(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "rejected_fraud",
+ "rejected_incomplete_verification",
+ "rejected_listed",
+ "rejected_other",
+ "rejected_platform_fraud",
+ "rejected_platform_other",
+ "rejected_platform_terms_of_service",
+ "rejected_terms_of_service",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe", "no_resolution", "provide_info"
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active",
+ "pending",
+ "rejected",
+ "restricted",
+ "unsupported",
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
class PromptpayPayments(StripeObject):
class StatusDetail(StripeObject):
code: Literal[
@@ -2518,6 +2743,10 @@ class StatusDetail(StripeObject):
"""
Allow the merchant to process Bancontact payments.
"""
+ billie_payments: Optional[BilliePayments]
+ """
+ Allow the merchant to process Billie payments.
+ """
blik_payments: Optional[BlikPayments]
"""
Allow the merchant to process BLIK payments.
@@ -2590,6 +2819,10 @@ class StatusDetail(StripeObject):
"""
Allow the merchant to process Link payments.
"""
+ mb_way_payments: Optional[MbWayPayments]
+ """
+ Allow the merchant to process MB WAY payments.
+ """
mobilepay_payments: Optional[MobilepayPayments]
"""
Allow the merchant to process MobilePay payments.
@@ -2606,6 +2839,12 @@ class StatusDetail(StripeObject):
"""
Allow the merchant to process Naver Pay payments.
"""
+ nz_bank_account_becs_debit_payments: Optional[
+ NzBankAccountBecsDebitPayments
+ ]
+ """
+ Allow the merchant to process New Zealand BECS Direct Debit payments.
+ """
oxxo_payments: Optional[OxxoPayments]
"""
Allow the merchant to process OXXO payments.
@@ -2626,6 +2865,14 @@ class StatusDetail(StripeObject):
"""
Allow the merchant to process PayNow payments.
"""
+ paypay_payments: Optional[PaypayPayments]
+ """
+ Allow the merchant to process PayPay payments.
+ """
+ pix_payments: Optional[PixPayments]
+ """
+ Allow the merchant to process Pix payments.
+ """
promptpay_payments: Optional[PromptpayPayments]
"""
Allow the merchant to process PromptPay payments.
@@ -2688,6 +2935,7 @@ class StatusDetail(StripeObject):
"au_becs_debit_payments": AuBecsDebitPayments,
"bacs_debit_payments": BacsDebitPayments,
"bancontact_payments": BancontactPayments,
+ "billie_payments": BilliePayments,
"blik_payments": BlikPayments,
"blik_recurring_payments": BlikRecurringPayments,
"boleto_payments": BoletoPayments,
@@ -2706,15 +2954,19 @@ class StatusDetail(StripeObject):
"konbini_payments": KonbiniPayments,
"kr_card_payments": KrCardPayments,
"link_payments": LinkPayments,
+ "mb_way_payments": MbWayPayments,
"mobilepay_payments": MobilepayPayments,
"multibanco_payments": MultibancoPayments,
"mx_bank_transfer_payments": MxBankTransferPayments,
"naver_pay_payments": NaverPayPayments,
+ "nz_bank_account_becs_debit_payments": NzBankAccountBecsDebitPayments,
"oxxo_payments": OxxoPayments,
"p24_payments": P24Payments,
"pay_by_bank_payments": PayByBankPayments,
"payco_payments": PaycoPayments,
"paynow_payments": PaynowPayments,
+ "paypay_payments": PaypayPayments,
+ "pix_payments": PixPayments,
"promptpay_payments": PromptpayPayments,
"revolut_pay_payments": RevolutPayPayments,
"samsung_pay_payments": SamsungPayPayments,
@@ -2773,12 +3025,79 @@ class Hours(StripeObject):
"""
_inner_class_types = {"hours": Hours}
+ additional_material: Optional[str]
+ """
+ Information provided to support the onboarding process for Konbini payments.
+ """
support: Optional[Support]
"""
Support for Konbini payments.
"""
_inner_class_types = {"support": Support}
+ class PaypayPayments(StripeObject):
+ class Site(StripeObject):
+ class Accessible(StripeObject):
+ pass
+
+ class InDevelopment(StripeObject):
+ password_provided: bool
+ """
+ Whether a password needed to access the business's website has been provided.
+ """
+ username: Optional[str]
+ """
+ The username needed to access the business's website.
+ """
+
+ class Restricted(StripeObject):
+ payment_flow_file: Optional[str]
+ """
+ The file explaining the payment flow for the business.
+ """
+
+ accessible: Optional[Accessible]
+ """
+ Additional information about the business's website when it's accessible.
+ """
+ in_development: Optional[InDevelopment]
+ """
+ Additional information about the business's website when it's in development.
+ """
+ restricted: Optional[Restricted]
+ """
+ Additional information about the business's website when it has restricted access.
+ """
+ type: Optional[
+ Literal["accessible", "in_development", "restricted"]
+ ]
+ """
+ The status of the business's website.
+ """
+ _inner_class_types = {
+ "accessible": Accessible,
+ "in_development": InDevelopment,
+ "restricted": Restricted,
+ }
+
+ additional_files: List[str]
+ """
+ Additional files supporting PayPay payments configuration.
+ """
+ goods_type: Optional[Literal["digital_content", "other"]]
+ """
+ The type of goods sold by the merchant for PayPay payments.
+ """
+ site: Optional[Site]
+ """
+ The business's website for PayPay payments.
+ """
+ specified_commercial_transactions_act_url: Optional[str]
+ """
+ URL to the Specified Commercial Transactions Act page for PayPay payments.
+ """
+ _inner_class_types = {"site": Site}
+
class ScriptStatementDescriptor(StripeObject):
class Kana(StripeObject):
descriptor: Optional[str]
@@ -2903,6 +3222,10 @@ class Address(StripeObject):
"""
The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide.
"""
+ paypay_payments: Optional[PaypayPayments]
+ """
+ Settings for PayPay payments.
+ """
script_statement_descriptor: Optional[ScriptStatementDescriptor]
"""
Settings for the default text that appears on statements for language variations.
@@ -2925,6 +3248,7 @@ class Address(StripeObject):
"capabilities": Capabilities,
"card_payments": CardPayments,
"konbini_payments": KonbiniPayments,
+ "paypay_payments": PaypayPayments,
"script_statement_descriptor": ScriptStatementDescriptor,
"sepa_debit_payments": SepaDebitPayments,
"statement_descriptor": StatementDescriptor,
@@ -3525,11 +3849,11 @@ class Responsibilities(StripeObject):
]
]
"""
- Indicates whether the platform or connected account is responsible for paying Stripe fees for pricing-control-eligible products.
+ Controls who pays Stripe fees for direct charges and other pricing-control-eligible Stripe products. For new integrations, setting `losses_collector=application` requires `fees_collector=application`; legacy Custom and Express accounts can also use `application_custom` or `application_express`. For destination charges and separate charges and transfers, Stripe bills the platform regardless of this setting. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior), including application fees and pricing considerations.
"""
losses_collector: Optional[Literal["application", "stripe"]]
"""
- A value indicating the responsibility for losses on this account.
+ Controls who is responsible for payment-related negative balances on this account. The platform remains liable for negative balances on its own account. To use Stripe negative balance liability, your integration must meet [Managed Risk requirements](https://docs.stripe.com/connect/risk-management/managed-risk).
"""
requirements_collector: Literal["application", "stripe"]
"""
@@ -3997,6 +4321,7 @@ class Deadline(StripeObject):
"bank_accounts.sepa",
"bank_accounts.swift",
"bank_accounts.wire",
+ "billie_payments",
"blik_payments",
"blik_recurring_payments",
"boleto_payments",
@@ -4016,15 +4341,19 @@ class Deadline(StripeObject):
"konbini_payments",
"kr_card_payments",
"link_payments",
+ "mb_way_payments",
"mobilepay_payments",
"multibanco_payments",
"mx_bank_transfer_payments",
"naver_pay_payments",
+ "nz_bank_account_becs_debit_payments",
"oxxo_payments",
"p24_payments",
"payco_payments",
"paynow_payments",
+ "paypay_payments",
"pay_by_bank_payments",
+ "pix_payments",
"promptpay_payments",
"revolut_pay_payments",
"samsung_pay_payments",
@@ -5822,6 +6151,7 @@ class Deadline(StripeObject):
"bank_accounts.sepa",
"bank_accounts.swift",
"bank_accounts.wire",
+ "billie_payments",
"blik_payments",
"blik_recurring_payments",
"boleto_payments",
@@ -5841,15 +6171,19 @@ class Deadline(StripeObject):
"konbini_payments",
"kr_card_payments",
"link_payments",
+ "mb_way_payments",
"mobilepay_payments",
"multibanco_payments",
"mx_bank_transfer_payments",
"naver_pay_payments",
+ "nz_bank_account_becs_debit_payments",
"oxxo_payments",
"p24_payments",
"payco_payments",
"paynow_payments",
+ "paypay_payments",
"pay_by_bank_payments",
+ "pix_payments",
"promptpay_payments",
"revolut_pay_payments",
"samsung_pay_payments",
@@ -6014,7 +6348,7 @@ class MinimumDeadline(StripeObject):
"""
dashboard: Optional[Literal["express", "full", "none"]]
"""
- A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
+ Specifies the account's Stripe-hosted Dashboard access. Available values depend on the configurations enabled for the account. Learn more about [configuring Dashboard access](https://docs.stripe.com/connect/accounts-v2/connected-account-configuration#set-dashboard-access).
"""
defaults: Optional[Defaults]
"""
diff --git a/stripe/v2/core/_account_link.py b/stripe/v2/core/_account_link.py
index 7c334216c..e087c4acd 100644
--- a/stripe/v2/core/_account_link.py
+++ b/stripe/v2/core/_account_link.py
@@ -7,7 +7,7 @@
class AccountLink(StripeObject):
"""
- Account Links let a platform create a temporary, single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
+ Account Links let a platform create a temporary, single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information, or to access its Stripe-hosted Dashboard.
"""
OBJECT_NAME: ClassVar[Literal["v2.core.account_link"]] = (
@@ -15,6 +15,13 @@ class AccountLink(StripeObject):
)
class UseCase(StripeObject):
+ class AccountDashboard(StripeObject):
+ refresh_url: str
+ """
+ The URL to redirect to if the Account Link has expired or has already
+ been used. Authenticate the user before generating a replacement link.
+ """
+
class AccountOnboarding(StripeObject):
class CollectionOptions(StripeObject):
fields: Optional[
@@ -73,6 +80,10 @@ class CollectionOptions(StripeObject):
"""
_inner_class_types = {"collection_options": CollectionOptions}
+ account_dashboard: Optional[AccountDashboard]
+ """
+ Hash containing configuration options for an Account Link that provides access to the account's Stripe-hosted Dashboard.
+ """
account_onboarding: Optional[AccountOnboarding]
"""
Hash containing configuration options for an Account Link object that onboards a new account.
@@ -81,11 +92,17 @@ class CollectionOptions(StripeObject):
"""
Hash containing configuration options for an Account Link that updates an existing account.
"""
- type: Union[Literal["account_onboarding", "account_update"], str]
+ type: Union[
+ Literal[
+ "account_dashboard", "account_onboarding", "account_update"
+ ],
+ str,
+ ]
"""
Open Enum. The type of Account Link the user is requesting.
"""
_inner_class_types = {
+ "account_dashboard": AccountDashboard,
"account_onboarding": AccountOnboarding,
"account_update": AccountUpdate,
}
diff --git a/stripe/v2/core/_account_link_service.py b/stripe/v2/core/_account_link_service.py
index 19b868c0c..33308de01 100644
--- a/stripe/v2/core/_account_link_service.py
+++ b/stripe/v2/core/_account_link_service.py
@@ -19,7 +19,7 @@ def create(
options: Optional["RequestOptions"] = None,
) -> "AccountLink":
"""
- Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
+ Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information, or to access its Stripe-hosted Dashboard.
"""
return cast(
"AccountLink",
@@ -38,7 +38,7 @@ async def create_async(
options: Optional["RequestOptions"] = None,
) -> "AccountLink":
"""
- Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
+ Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information, or to access its Stripe-hosted Dashboard.
"""
return cast(
"AccountLink",
diff --git a/stripe/v2/core/_account_person_token.py b/stripe/v2/core/_account_person_token.py
index 34b07a1e6..e615dcc07 100644
--- a/stripe/v2/core/_account_person_token.py
+++ b/stripe/v2/core/_account_person_token.py
@@ -8,6 +8,8 @@
class AccountPersonToken(StripeObject):
"""
Person Tokens are single-use tokens which tokenize person information, and are used for creating or updating a Person.
+ In live mode, you must create person tokens using a live publishable key.
+ In a sandbox, you can create person tokens with secret or publishable keys.
"""
OBJECT_NAME: ClassVar[Literal["v2.core.account_person_token"]] = (
diff --git a/stripe/v2/core/_account_token.py b/stripe/v2/core/_account_token.py
index 27f454cb0..936d29b8f 100644
--- a/stripe/v2/core/_account_token.py
+++ b/stripe/v2/core/_account_token.py
@@ -7,7 +7,9 @@
class AccountToken(StripeObject):
"""
- Account tokens are single-use tokens which tokenize an account's contact_email, display_name, contact_phone, and identity.
+ Account tokens are single-use tokens which tokenize an account's `contact_email`, `display_name`, `contact_phone`, and `identity`.
+ In live mode, you must create account tokens using a live publishable key.
+ In a sandbox, you can create account tokens with secret or publishable keys.
"""
OBJECT_NAME: ClassVar[Literal["v2.core.account_token"]] = (
diff --git a/stripe/v2/core/_account_token_service.py b/stripe/v2/core/_account_token_service.py
index 33d82d2c2..99f042e4f 100644
--- a/stripe/v2/core/_account_token_service.py
+++ b/stripe/v2/core/_account_token_service.py
@@ -27,8 +27,8 @@ def create(
Create an account token with a publishable key and pass it to the Accounts v2 API to
create or update an account without its data touching your server.
Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens).
- In live mode, you can only create account tokens with your application's publishable key.
- In test mode, you can create account tokens with your secret key or publishable key.
+ In live mode, you must create account tokens using a live publishable key.
+ In a sandbox, you can create account tokens with secret or publishable keys.
"""
return cast(
"AccountToken",
@@ -61,8 +61,8 @@ async def create_async(
Create an account token with a publishable key and pass it to the Accounts v2 API to
create or update an account without its data touching your server.
Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens).
- In live mode, you can only create account tokens with your application's publishable key.
- In test mode, you can create account tokens with your secret key or publishable key.
+ In live mode, you must create account tokens using a live publishable key.
+ In a sandbox, you can create account tokens with secret or publishable keys.
"""
return cast(
"AccountToken",
diff --git a/stripe/v2/core/_claimable_sandbox.py b/stripe/v2/core/_claimable_sandbox.py
new file mode 100644
index 000000000..7d7b86523
--- /dev/null
+++ b/stripe/v2/core/_claimable_sandbox.py
@@ -0,0 +1,273 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional, Union
+from typing_extensions import Literal
+
+
+class ClaimableSandbox(StripeObject):
+ """
+ A claimable sandbox is a Stripe sandbox that a user can claim into a new or existing Stripe account
+ through an onboarding link. You can prefill it with an email address, sandbox name, and country.
+ Claimable sandboxes have 60 days to be claimed. After this expiration time has passed,
+ if the sandbox is not claimed, it will be deleted.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.core.claimable_sandbox"]] = (
+ "v2.core.claimable_sandbox"
+ )
+
+ class OnboardingLinkDetails(StripeObject):
+ expires_at: str
+ """
+ Time at which the onboarding link expires. Represented as an RFC 3339 timestamp in UTC
+ with millisecond precision, for example `2022-09-18T13:22:18.123Z`.
+ """
+ refresh_url: str
+ """
+ The URL the user will be redirected to if the onboarding link is expired or invalid.
+ The URL specified should attempt to generate a new onboarding link,
+ and re-direct the user to this new onboarding link so that they can proceed with the onboarding flow.
+ """
+ return_url: Optional[str]
+ """
+ The URL offered to the user as a way back to your app after they claim the sandbox.
+ """
+ url: str
+ """
+ The URL that lets a user claim the sandbox or continue onboarding their Stripe account,
+ depending on the sandbox's status.
+ """
+
+ class OwnerDetails(StripeObject):
+ account: Optional[str]
+ """
+ The ID of the live mode Stripe account that owns the sandbox.
+ This field is only set when `owner_details.app_install_status` is `installed`.
+ """
+ app_install_status: Optional[
+ Literal["installed", "pending_install", "pending_onboarding"]
+ ]
+ """
+ Indicates whether the platform app is installed on the sandbox's live mode owner account.
+ """
+
+ class Prefill(StripeObject):
+ country: str
+ """
+ Country in which the account holder resides, or in which the business is legally established.
+ Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ email: str
+ """
+ Email address of the user who will claim the sandbox.
+ Stripe sends this address an invitation to claim the sandbox and a reminder before the unclaimed sandbox expires.
+ """
+ name: str
+ """
+ Name for the sandbox.
+ """
+
+ class SandboxDetails(StripeObject):
+ class ApiKeys(StripeObject):
+ class Mcp(StripeObject):
+ class SecretKey(StripeObject):
+ token: Optional[str]
+ """
+ The plaintext token for the API key.
+ """
+
+ created: str
+ """
+ Time at which the API key was created. Represented as an RFC 3339 timestamp in UTC
+ with millisecond precision, for example `2022-09-18T13:22:18.123Z`.
+ """
+ expires_at: Optional[str]
+ """
+ Time at which the API key expires. Represented as an RFC 3339 timestamp in UTC
+ with millisecond precision, for example `2022-09-18T13:22:18.123Z`.
+ """
+ id: str
+ """
+ Unique identifier of the API key.
+ """
+ secret_key: Optional[SecretKey]
+ """
+ Token for the secret key. Present only in the create response;
+ null in subsequent retrieve responses.
+ """
+ status: Union[Literal["active", "expired"], str]
+ """
+ Current status of the API key.
+ """
+ type: Union[Literal["secret_key"], str]
+ """
+ Type of the API key.
+ """
+ _inner_class_types = {"secret_key": SecretKey}
+
+ class Publishable(StripeObject):
+ class PublishableKey(StripeObject):
+ token: Optional[str]
+ """
+ The plaintext token for the API key.
+ """
+
+ created: str
+ """
+ Time at which the API key was created. Represented as an RFC 3339 timestamp in UTC
+ with millisecond precision, for example `2022-09-18T13:22:18.123Z`.
+ """
+ expires_at: Optional[str]
+ """
+ Time at which the API key expires. Represented as an RFC 3339 timestamp in UTC
+ with millisecond precision, for example `2022-09-18T13:22:18.123Z`.
+ """
+ id: str
+ """
+ Unique identifier of the API key.
+ """
+ publishable_key: Optional[PublishableKey]
+ """
+ Token for the publishable key. Present only in the create response;
+ null in subsequent retrieve responses.
+ """
+ status: Union[Literal["active", "expired"], str]
+ """
+ Current status of the API key.
+ """
+ type: Union[Literal["publishable_key"], str]
+ """
+ Type of the API key.
+ """
+ _inner_class_types = {"publishable_key": PublishableKey}
+
+ class Secret(StripeObject):
+ class SecretKey(StripeObject):
+ token: Optional[str]
+ """
+ The plaintext token for the API key.
+ """
+
+ created: str
+ """
+ Time at which the API key was created. Represented as an RFC 3339 timestamp in UTC
+ with millisecond precision, for example `2022-09-18T13:22:18.123Z`.
+ """
+ expires_at: Optional[str]
+ """
+ Time at which the API key expires. Represented as an RFC 3339 timestamp in UTC
+ with millisecond precision, for example `2022-09-18T13:22:18.123Z`.
+ """
+ id: str
+ """
+ Unique identifier of the API key.
+ """
+ secret_key: Optional[SecretKey]
+ """
+ Token for the secret key. Present only in the create response;
+ null in subsequent retrieve responses.
+ """
+ status: Union[Literal["active", "expired"], str]
+ """
+ Current status of the API key.
+ """
+ type: Union[Literal["secret_key"], str]
+ """
+ Type of the API key.
+ """
+ _inner_class_types = {"secret_key": SecretKey}
+
+ mcp: Optional[Mcp]
+ """
+ Object hash for the sandbox's MCP key.
+ Null unless `enable_mcp_access: true` was passed in the creation request.
+ """
+ publishable: Publishable
+ """
+ Object hash for the sandbox's publishable key.
+ """
+ secret: Secret
+ """
+ Object hash for the sandbox's secret key.
+ """
+ _inner_class_types = {
+ "mcp": Mcp,
+ "publishable": Publishable,
+ "secret": Secret,
+ }
+
+ account: str
+ """
+ The sandbox's Stripe account ID.
+ """
+ api_keys: Optional[ApiKeys]
+ """
+ Keys that can be used to set up an integration for this sandbox and operate on the account.
+ Present in the create response. To fetch this field in the retrieve response,
+ pass `sandbox_details.api_keys` in the `include` parameter.
+ """
+ _inner_class_types = {"api_keys": ApiKeys}
+
+ channel: Literal["public", "testing"]
+ """
+ The distribution channel used to pre-install your Stripe App on the claimable sandbox.
+ Use `testing` to install your app's external test version or `public` to install its published version.
+ """
+ claimed_at: Optional[str]
+ """
+ Time at which the sandbox was claimed. Set when the status is `claimed` or `live`.
+ Represented as an RFC 3339 timestamp in UTC with millisecond precision,
+ for example `2022-09-18T13:22:18.123Z`.
+ """
+ created: str
+ """
+ Time at which the sandbox was created. Represented as an RFC 3339 timestamp in UTC
+ with millisecond precision, for example `2022-09-18T13:22:18.123Z`.
+ """
+ expires_at: Optional[str]
+ """
+ Time at which the unclaimed sandbox expires. Null when the status is `claimed` or `live`.
+ Represented as an RFC 3339 timestamp in UTC with millisecond precision,
+ for example `2022-09-18T13:22:18.123Z`.
+ """
+ id: str
+ """
+ Unique identifier for the claimable sandbox.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.core.claimable_sandbox"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ onboarding_link_details: Optional[OnboardingLinkDetails]
+ """
+ Details about the onboarding link.
+ Null when the sandbox status is `live` or `expired`.
+ """
+ owner_details: Optional[OwnerDetails]
+ """
+ Details about the live mode owner account of the sandbox.
+ This will be null until the sandbox is claimed.
+ """
+ prefill: Prefill
+ """
+ Values prefilled during the creation of the sandbox. When a user claims the sandbox, they will be able to update these values.
+ """
+ sandbox_details: SandboxDetails
+ """
+ Data about the Stripe sandbox object.
+ """
+ status: Literal["claimed", "expired", "live", "unclaimed"]
+ """
+ Status of the sandbox.
+ """
+ _inner_class_types = {
+ "onboarding_link_details": OnboardingLinkDetails,
+ "owner_details": OwnerDetails,
+ "prefill": Prefill,
+ "sandbox_details": SandboxDetails,
+ }
diff --git a/stripe/v2/core/_claimable_sandbox_service.py b/stripe/v2/core/_claimable_sandbox_service.py
new file mode 100644
index 000000000..43f04f3ef
--- /dev/null
+++ b/stripe/v2/core/_claimable_sandbox_service.py
@@ -0,0 +1,155 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.core._claimable_sandbox_create_params import (
+ ClaimableSandboxCreateParams,
+ )
+ from stripe.params.v2.core._claimable_sandbox_renew_onboarding_link_params import (
+ ClaimableSandboxRenewOnboardingLinkParams,
+ )
+ from stripe.params.v2.core._claimable_sandbox_retrieve_params import (
+ ClaimableSandboxRetrieveParams,
+ )
+ from stripe.v2.core._claimable_sandbox import ClaimableSandbox
+
+
+class ClaimableSandboxService(StripeService):
+ def create(
+ self,
+ params: "ClaimableSandboxCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "ClaimableSandbox":
+ """
+ Create a claimable sandbox with prefilled data. The response includes an onboarding link that lets
+ a user claim the sandbox into a new or existing Stripe account.
+ """
+ return cast(
+ "ClaimableSandbox",
+ self._request(
+ "post",
+ "/v2/core/claimable_sandboxes",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "ClaimableSandboxCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "ClaimableSandbox":
+ """
+ Create a claimable sandbox with prefilled data. The response includes an onboarding link that lets
+ a user claim the sandbox into a new or existing Stripe account.
+ """
+ return cast(
+ "ClaimableSandbox",
+ await self._request_async(
+ "post",
+ "/v2/core/claimable_sandboxes",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ /,
+ params: Optional["ClaimableSandboxRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ClaimableSandbox":
+ """
+ Retrieves the details of a claimable sandbox that was previously been created.
+ Supply the unique claimable sandbox ID that was returned from your creation request,
+ and Stripe will return the corresponding sandbox information.
+ """
+ return cast(
+ "ClaimableSandbox",
+ self._request(
+ "get",
+ "/v2/core/claimable_sandboxes/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ /,
+ params: Optional["ClaimableSandboxRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ClaimableSandbox":
+ """
+ Retrieves the details of a claimable sandbox that was previously been created.
+ Supply the unique claimable sandbox ID that was returned from your creation request,
+ and Stripe will return the corresponding sandbox information.
+ """
+ return cast(
+ "ClaimableSandbox",
+ await self._request_async(
+ "get",
+ "/v2/core/claimable_sandboxes/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def renew_onboarding_link(
+ self,
+ id: str,
+ /,
+ params: Optional["ClaimableSandboxRenewOnboardingLinkParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ClaimableSandbox":
+ """
+ Renew the claimable sandbox onboarding link. This invalidates the existing onboarding link.
+ The endpoint only works on a claimable sandbox with status `unclaimed` or `claimed`.
+ """
+ return cast(
+ "ClaimableSandbox",
+ self._request(
+ "post",
+ "/v2/core/claimable_sandboxes/{id}/renew_onboarding_link".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def renew_onboarding_link_async(
+ self,
+ id: str,
+ /,
+ params: Optional["ClaimableSandboxRenewOnboardingLinkParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ClaimableSandbox":
+ """
+ Renew the claimable sandbox onboarding link. This invalidates the existing onboarding link.
+ The endpoint only works on a claimable sandbox with status `unclaimed` or `claimed`.
+ """
+ return cast(
+ "ClaimableSandbox",
+ await self._request_async(
+ "post",
+ "/v2/core/claimable_sandboxes/{id}/renew_onboarding_link".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/core/accounts/_person_token_service.py b/stripe/v2/core/accounts/_person_token_service.py
index 0a40fb628..be9726e96 100644
--- a/stripe/v2/core/accounts/_person_token_service.py
+++ b/stripe/v2/core/accounts/_person_token_service.py
@@ -27,7 +27,8 @@ def create(
) -> "AccountPersonToken":
"""
Creates a single-use token that represents the details for a person. Use this when you create or update persons associated with an Account v2. Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens).
- You can only create person tokens with your application's publishable key and in live mode. You can use your application's secret key to create person tokens only in test mode.
+ In live mode, you must create person tokens using a live publishable key.
+ In a sandbox, you can create person tokens with secret or publishable keys.
"""
return cast(
"AccountPersonToken",
@@ -54,7 +55,8 @@ async def create_async(
) -> "AccountPersonToken":
"""
Creates a single-use token that represents the details for a person. Use this when you create or update persons associated with an Account v2. Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens).
- You can only create person tokens with your application's publishable key and in live mode. You can use your application's secret key to create person tokens only in test mode.
+ In live mode, you must create person tokens using a live publishable key.
+ In a sandbox, you can create person tokens with secret or publishable keys.
"""
return cast(
"AccountPersonToken",
diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py
index 0884cc636..7b8d579c0 100644
--- a/tests/test_generated_examples.py
+++ b/tests/test_generated_examples.py
@@ -43930,6 +43930,7 @@ def test_v2_core_account_link_post_service(
{
"account": "account",
"use_case": {
+ "account_dashboard": {"refresh_url": "refresh_url"},
"account_onboarding": {
"collection_options": {
"fields": "eventually_due",
@@ -43946,7 +43947,7 @@ def test_v2_core_account_link_post_service(
"refresh_url": "refresh_url",
"return_url": "return_url",
},
- "type": "account_onboarding",
+ "type": "account_dashboard",
},
}
)
@@ -43955,7 +43956,7 @@ def test_v2_core_account_link_post_service(
path="/v2/core/account_links",
query_string="",
api_base="https://api.stripe.com",
- post_data='{"account":"account","use_case":{"account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"refresh_url":"refresh_url","return_url":"return_url"},"type":"account_onboarding"}}',
+ post_data='{"account":"account","use_case":{"account_dashboard":{"refresh_url":"refresh_url"},"account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"refresh_url":"refresh_url","return_url":"return_url"},"type":"account_dashboard"}}',
is_json=True,
)
@@ -44001,6 +44002,83 @@ def test_v2_core_account_token_get_service(
api_base="https://api.stripe.com",
)
+ def test_v2_core_claimable_sandbox_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/claimable_sandboxes",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.claimable_sandboxes.create(
+ {
+ "enable_mcp_access": True,
+ "onboarding_link_details": {
+ "refresh_url": "refresh_url",
+ "return_url": "return_url",
+ },
+ "prefill": {
+ "country": "country",
+ "email": "email",
+ "name": "name",
+ },
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/claimable_sandboxes",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"enable_mcp_access":true,"onboarding_link_details":{"refresh_url":"refresh_url","return_url":"return_url"},"prefill":{"country":"country","email":"email","name":"name"}}',
+ is_json=True,
+ )
+
+ def test_v2_core_claimable_sandbox_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/claimable_sandboxes/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.claimable_sandboxes.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/claimable_sandboxes/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_claimable_sandbox_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/claimable_sandboxes/id_123/renew_onboarding_link",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.claimable_sandboxes.renew_onboarding_link("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/claimable_sandboxes/id_123/renew_onboarding_link",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
def test_v2_core_event_get_service(
self, http_client_mock: HTTPClientMock
) -> None: