diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 1b3017c05..e192a1695 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -85839f80afcaccd622aa30bf53a414cdffbd57bc \ No newline at end of file +12a3ccc9c8524b11fe63c8e5e5d3178b307a612b \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dea428aab..a7ad01c1f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2369 \ No newline at end of file +v2372 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 0ee92707f..557f60198 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -507,7 +507,7 @@ class Capabilities(StripeObject): """ sequra_payments: Optional[Literal["active", "inactive", "pending"]] """ - The status of the Sequra capability of the account, or whether the account can directly process Sequra payments. + The status of the SeQura capability of the account, or whether the account can directly process SeQura payments. """ shopeepay_payments: Optional[Literal["active", "inactive", "pending"]] """ diff --git a/stripe/_charge.py b/stripe/_charge.py index 33c542cab..2811bb495 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -1809,9 +1809,13 @@ class Link(StripeObject): Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. """ + funding_source_group: Optional[str] + """ + The funding source group applied to this Link payment at confirmation time. Maps to a bundle in your Stripe pricing contract and on Stripe's published pricing page. Omitted if group lookup failed at confirmation time. + """ pricing_group: Optional[str] """ - The pricing bundle applied to this Link payment at confirmation time. Maps to a bundle in your Stripe pricing contract and on Stripe's published pricing page. Omitted if bundle lookup failed at confirmation time. + Deprecated: use funding_source_group instead. """ class MbWay(StripeObject): @@ -2265,7 +2269,7 @@ class SepaDebit(StripeObject): class Sequra(StripeObject): transaction_id: Optional[str] """ - The Sequra transaction ID associated with this payment. + The SeQura transaction ID associated with this payment. """ class Shopeepay(StripeObject): diff --git a/stripe/_invoice.py b/stripe/_invoice.py index da460620a..477f04b8e 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1212,6 +1212,7 @@ class WechatPay(StripeObject): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 0e7b34a96..a90a1e67f 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -2002,7 +2002,7 @@ class SepaDebit(StripeObject): class Sequra(StripeObject): transaction_id: Optional[str] """ - The Sequra transaction ID associated with this payment. + The SeQura transaction ID associated with this payment. """ class Shopeepay(StripeObject): diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index af12d53f0..4c2cdbefd 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -4870,6 +4870,16 @@ class Sequra(StripeObject): """ Controls when the funds will be captured from the customer's account. """ + setup_future_usage: Optional[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class Shopeepay(StripeObject): setup_future_usage: Optional[Literal["none"]] diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index e8ce0c306..af95c1359 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -2019,7 +2019,7 @@ class SepaDebit(StripeObject): class Sequra(StripeObject): transaction_id: Optional[str] """ - The Sequra transaction ID associated with this payment. + The SeQura transaction ID associated with this payment. """ class Shopeepay(StripeObject): diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index 051ee2752..dcd8e2ef7 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -1168,6 +1168,7 @@ class WechatPay(StripeObject): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 90ae354a6..0393444d8 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -775,6 +775,7 @@ class WechatPay(StripeObject): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", diff --git a/stripe/crypto/_customer_consumer_wallet.py b/stripe/crypto/_customer_consumer_wallet.py index 239c33c8c..4af212ffa 100644 --- a/stripe/crypto/_customer_consumer_wallet.py +++ b/stripe/crypto/_customer_consumer_wallet.py @@ -27,6 +27,7 @@ class CustomerConsumerWallet(StripeObject): "avalanche", "base", "bitcoin", + "celo", "ethereum", "optimism", "polygon", diff --git a/stripe/crypto/_onramp_session.py b/stripe/crypto/_onramp_session.py index ccd78dcad..f34cfb789 100644 --- a/stripe/crypto/_onramp_session.py +++ b/stripe/crypto/_onramp_session.py @@ -72,6 +72,10 @@ class DestinationTags(StripeObject): """ A bitcoin address """ + celo: Optional[str] + """ + A Celo address + """ destination_tags: Optional[DestinationTags] """ The end customer's crypto wallet destination tag (for each network) to use for this transaction. @@ -151,6 +155,7 @@ class DestinationTags(StripeObject): "avalanche", "base", "bitcoin", + "celo", "ethereum", "optimism", "polygon", @@ -173,6 +178,7 @@ class DestinationTags(StripeObject): "avalanche", "base", "bitcoin", + "celo", "ethereum", "optimism", "polygon", diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index 949820c91..4eda9f6ad 100644 --- a/stripe/issuing/_authorization.py +++ b/stripe/issuing/_authorization.py @@ -987,6 +987,44 @@ class AmountDetails(StripeObject): The amount of cash requested by the cardholder. """ + class HoldAmount(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + class HoldAmountDetails(StripeObject): + class Network(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + class Reserve(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + network: Network + reserve: Optional[Reserve] + """ + The reserve amount held for this authorization. Present for certain MCCs that may have overcaptures. + """ + _inner_class_types = {"network": Network, "reserve": Reserve} + amount: int """ The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://docs.stripe.com/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). @@ -999,6 +1037,14 @@ class AmountDetails(StripeObject): """ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). """ + hold_amount: Optional[HoldAmount] + """ + The total amount to be held for this authorization request. + """ + hold_amount_details: Optional[HoldAmountDetails] + """ + Breakdown of the amounts contributing to hold_amount. + """ is_amount_controllable: bool """ If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization. @@ -1015,7 +1061,11 @@ class AmountDetails(StripeObject): """ The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99. """ - _inner_class_types = {"amount_details": AmountDetails} + _inner_class_types = { + "amount_details": AmountDetails, + "hold_amount": HoldAmount, + "hold_amount_details": HoldAmountDetails, + } class Redaction(StripeObject): status: Union[Literal["processing", "redacted", "validated"], str] @@ -1034,6 +1084,44 @@ class AmountDetails(StripeObject): The amount of cash requested by the cardholder. """ + class HoldAmount(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + class HoldAmountDetails(StripeObject): + class Network(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + class Reserve(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + network: Network + reserve: Optional[Reserve] + """ + The reserve amount held for this authorization. Present for certain MCCs that may have overcaptures. + """ + _inner_class_types = {"network": Network, "reserve": Reserve} + class NetworkData(StripeObject): class TraceId(StripeObject): banknet_reference_number: Optional[str] @@ -1079,6 +1167,14 @@ class TraceId(StripeObject): """ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). """ + hold_amount: Optional[HoldAmount] + """ + The total amount that was held for this authorization request. + """ + hold_amount_details: Optional[HoldAmountDetails] + """ + Breakdown of the amounts contributing to hold_amount. + """ merchant_amount: int """ The `pending_request.merchant_amount` at the time of the request, presented in the `merchant_currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). @@ -1134,6 +1230,8 @@ class TraceId(StripeObject): """ _inner_class_types = { "amount_details": AmountDetails, + "hold_amount": HoldAmount, + "hold_amount_details": HoldAmountDetails, "network_data": NetworkData, } diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index ecc43a8dd..ebd264d81 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -288,7 +288,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index f00e4eaf1..ca7ef80f6 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -253,7 +253,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index 28d6e1161..4ecbd64b6 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -252,7 +252,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index 0674dc6d0..f31706eae 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -850,7 +850,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index ba9ef4553..b0bb0774b 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -820,7 +820,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_subscription_schedule_create_params.py b/stripe/params/_subscription_schedule_create_params.py index 12610523d..98782b167 100644 --- a/stripe/params/_subscription_schedule_create_params.py +++ b/stripe/params/_subscription_schedule_create_params.py @@ -320,7 +320,7 @@ class SubscriptionScheduleCreateParamsPauseSchedule(TypedDict): """ A unique identifier for this pause schedule entry. """ - pause: "SubscriptionScheduleCreateParamsPauseSchedulePause" + pause: NotRequired["SubscriptionScheduleCreateParamsPauseSchedulePause"] """ Configuration for when and how the subscription pauses. """ @@ -460,7 +460,7 @@ class SubscriptionScheduleCreateParamsPauseScheduleResumeSettings(TypedDict): Literal["resume_on_payment_attempt", "resume_on_payment_success"] ] """ - Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_attempt`. + Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. """ proration_behavior: NotRequired[ "Literal['always_invoice', 'create_prorations', 'none']|str" diff --git a/stripe/params/_subscription_schedule_modify_params.py b/stripe/params/_subscription_schedule_modify_params.py index 3d75a29ad..1ed55b391 100644 --- a/stripe/params/_subscription_schedule_modify_params.py +++ b/stripe/params/_subscription_schedule_modify_params.py @@ -292,7 +292,9 @@ class SubscriptionScheduleModifyParamsPauseSchedule(TypedDict): """ Configuration for when and how the subscription pauses. """ - resume: NotRequired["SubscriptionScheduleModifyParamsPauseScheduleResume"] + resume: NotRequired[ + "Literal['']|SubscriptionScheduleModifyParamsPauseScheduleResume" + ] """ Configuration for when and how the subscription resumes. """ @@ -432,7 +434,7 @@ class SubscriptionScheduleModifyParamsPauseScheduleResumeSettings(TypedDict): Literal["resume_on_payment_attempt", "resume_on_payment_success"] ] """ - Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_attempt`. + Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. """ proration_behavior: NotRequired[ "Literal['always_invoice', 'create_prorations', 'none']|str" diff --git a/stripe/params/_subscription_schedule_update_params.py b/stripe/params/_subscription_schedule_update_params.py index 8e2e2d2d4..2db566f09 100644 --- a/stripe/params/_subscription_schedule_update_params.py +++ b/stripe/params/_subscription_schedule_update_params.py @@ -291,7 +291,9 @@ class SubscriptionScheduleUpdateParamsPauseSchedule(TypedDict): """ Configuration for when and how the subscription pauses. """ - resume: NotRequired["SubscriptionScheduleUpdateParamsPauseScheduleResume"] + resume: NotRequired[ + "Literal['']|SubscriptionScheduleUpdateParamsPauseScheduleResume" + ] """ Configuration for when and how the subscription resumes. """ @@ -431,7 +433,7 @@ class SubscriptionScheduleUpdateParamsPauseScheduleResumeSettings(TypedDict): Literal["resume_on_payment_attempt", "resume_on_payment_success"] ] """ - Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_attempt`. + Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. """ proration_behavior: NotRequired[ "Literal['always_invoice', 'create_prorations', 'none']|str" diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index 2440a1594..138d897b1 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -819,7 +819,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/crypto/_onramp_session_create_params.py b/stripe/params/crypto/_onramp_session_create_params.py index 8b5eff8a4..e22019465 100644 --- a/stripe/params/crypto/_onramp_session_create_params.py +++ b/stripe/params/crypto/_onramp_session_create_params.py @@ -48,7 +48,7 @@ class OnrampSessionCreateParams(RequestOptions): * When set, if `destination_currencies` is also set, the value of `destination_currency` must be present in that array. To lock a `destination_currency`, specify that value as the single value for `destination_currencies`. Users can select a different cryptocurrency in the onramp UI subject to `destination_currencies` if set. """ destination_network: NotRequired[ - "Literal['avalanche', 'base', 'bitcoin', 'ethereum', 'optimism', 'polygon', 'solana', 'stellar', 'sui', 'tempo', 'worldchain']|str" + "Literal['avalanche', 'base', 'bitcoin', 'celo', 'ethereum', 'optimism', 'polygon', 'solana', 'stellar', 'sui', 'tempo', 'worldchain']|str" ] """ The default destination crypto network. @@ -63,6 +63,7 @@ class OnrampSessionCreateParams(RequestOptions): "avalanche", "base", "bitcoin", + "celo", "ethereum", "optimism", "polygon", diff --git a/stripe/params/crypto/_onramp_session_list_params.py b/stripe/params/crypto/_onramp_session_list_params.py index fab1dbd90..db1e1314c 100644 --- a/stripe/params/crypto/_onramp_session_list_params.py +++ b/stripe/params/crypto/_onramp_session_list_params.py @@ -17,7 +17,7 @@ class OnrampSessionListParams(RequestOptions): The destination cryptocurrency to filter by. """ destination_network: NotRequired[ - "Literal['avalanche', 'base', 'bitcoin', 'ethereum', 'optimism', 'polygon', 'solana', 'stellar', 'sui', 'tempo', 'worldchain']|str" + "Literal['avalanche', 'base', 'bitcoin', 'celo', 'ethereum', 'optimism', 'polygon', 'solana', 'stellar', 'sui', 'tempo', 'worldchain']|str" ] """ The destination blockchain network to filter by. diff --git a/stripe/params/crypto/_onramp_transaction_limits_retrieve_params.py b/stripe/params/crypto/_onramp_transaction_limits_retrieve_params.py index aa91da517..041141249 100644 --- a/stripe/params/crypto/_onramp_transaction_limits_retrieve_params.py +++ b/stripe/params/crypto/_onramp_transaction_limits_retrieve_params.py @@ -11,7 +11,7 @@ class OnrampTransactionLimitsRetrieveParams(RequestOptions): The IP address of the customer requesting transaction limits. We support IPv4 and IPv6 addresses. """ destination_network: NotRequired[ - "Literal['avalanche', 'base', 'bitcoin', 'ethereum', 'optimism', 'polygon', 'solana', 'stellar', 'sui', 'tempo', 'worldchain']|str" + "Literal['avalanche', 'base', 'bitcoin', 'celo', 'ethereum', 'optimism', 'polygon', 'solana', 'stellar', 'sui', 'tempo', 'worldchain']|str" ] """ The destination blockchain network to use for limit calculations.