diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index da5c58a23..87e13fd3c 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -9aa5ee4ed2b929f65b7fbf7c341f938682888500 \ No newline at end of file +9e9ef9ec9df30a59ccafb74c27b81311fa2896d5 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 048a4fc1a..c200ff51d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2252 \ No newline at end of file +v2276 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index ea14e692a..357c370c0 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -262,6 +262,10 @@ class Capabilities(StripeObject): """ The status of the Billie capability of the account, or whether the account can directly process Billie payments. """ + bizum_payments: Optional[Literal["active", "inactive", "pending"]] + """ + The status of the Bizum capability of the account, or whether the account can directly process Bizum payments. + """ blik_payments: Optional[Literal["active", "inactive", "pending"]] """ The status of the blik payments capability of the account, or whether the account can directly process blik charges. @@ -436,6 +440,10 @@ class Capabilities(StripeObject): """ The status of the Satispay capability of the account, or whether the account can directly process Satispay payments. """ + scalapay_payments: Optional[Literal["active", "inactive", "pending"]] + """ + The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments. + """ sepa_bank_transfer_payments: Optional[ Literal["active", "inactive", "pending"] ] diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 426060069..a2e41e6db 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-04-22.dahlia" + CURRENT = "2026-05-27.dahlia" CURRENT_MAJOR = "dahlia" diff --git a/stripe/_balance_settings.py b/stripe/_balance_settings.py index 8ea2c0a32..3d9fc86e5 100644 --- a/stripe/_balance_settings.py +++ b/stripe/_balance_settings.py @@ -27,6 +27,20 @@ class BalanceSettings( class Payments(StripeObject): class Payouts(StripeObject): + class AutomaticTransferRulesByCurrency(StripeObject): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: Optional[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + class Schedule(StripeObject): interval: Optional[ Literal["daily", "manual", "monthly", "weekly"] @@ -53,6 +67,12 @@ class Schedule(StripeObject): The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly. """ + automatic_transfer_rules_by_currency: Optional[ + UntypedStripeObject[List[AutomaticTransferRulesByCurrency]] + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: Optional[UntypedStripeObject[int]] """ The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](https://docs.stripe.com/payouts/minimum-balances-for-automatic-payouts). @@ -69,9 +89,27 @@ class Schedule(StripeObject): """ Whether the funds in this account can be paid out. """ - _inner_class_types = {"schedule": Schedule} + _inner_class_types = { + "automatic_transfer_rules_by_currency": AutomaticTransferRulesByCurrency, + "schedule": Schedule, + } + _inner_class_dicts = ["automatic_transfer_rules_by_currency"] class SettlementTiming(StripeObject): + class StartOfDay(StripeObject): + hour: int + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: int + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: str + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + delay_days: int """ The number of days charge funds are held before becoming available. @@ -80,6 +118,11 @@ class SettlementTiming(StripeObject): """ The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. """ + start_of_day: Optional[StartOfDay] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + _inner_class_types = {"start_of_day": StartOfDay} debit_negative_balances: Optional[bool] """ diff --git a/stripe/_charge.py b/stripe/_charge.py index f346866b6..a3da18b49 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -456,6 +456,12 @@ class Billie(StripeObject): The Billie transaction ID associated with this payment. """ + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -1856,6 +1862,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -1966,7 +1978,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -2048,6 +2063,7 @@ class Zip(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -2083,6 +2099,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] @@ -2114,6 +2131,7 @@ class Zip(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2149,6 +2167,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sofort": Sofort, diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 152b895c6..c2ae3a460 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -218,6 +218,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1289,6 +1292,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1459,6 +1465,7 @@ class Zip(StripeObject): bancontact: Optional[Bancontact] billie: Optional[Billie] billing_details: BillingDetails + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1499,6 +1506,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] sunbit: Optional[Sunbit] @@ -1515,6 +1523,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1551,6 +1560,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -1580,6 +1590,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1615,6 +1626,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "sunbit": Sunbit, diff --git a/stripe/_discount.py b/stripe/_discount.py index 1637edc79..d62b10208 100644 --- a/stripe/_discount.py +++ b/stripe/_discount.py @@ -33,7 +33,7 @@ class Source(StripeObject): checkout_session: Optional[str] """ - The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. + The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode. """ customer: Optional[ExpandableField["Customer"]] """ @@ -53,7 +53,7 @@ class Source(StripeObject): """ id: str """ - The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. + The ID of the discount object. Discounts can't be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. """ invoice: Optional[str] """ diff --git a/stripe/_invoice.py b/stripe/_invoice.py index d18713b37..0fe35d184 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -539,6 +539,7 @@ class LastFinalizationError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -579,6 +580,7 @@ class LastFinalizationError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -1018,6 +1020,7 @@ class Filters(StripeObject): "sepa_debit", "sofort", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -1304,6 +1307,10 @@ class TaxRateDetails(StripeObject): """ The amount, in cents (or local equivalent), that was paid. """ + amount_paid_off_stripe: Optional[int] + """ + Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe. + """ amount_remaining: int """ The difference between amount_due and amount_paid, in cents (or local equivalent). diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index 2854a96ff..2732a0edf 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -108,6 +108,30 @@ class PriceDetails(StripeObject): _field_encodings = {"unit_amount_decimal": "decimal_string"} class ProrationDetails(StripeObject): + class CreditedItems(StripeObject): + class InvoiceLineItemDetails(StripeObject): + invoice: str + """ + The invoice id for the debited line item(s). + """ + invoice_line_items: List[str] + """ + IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration. + """ + + invoice_item: Optional[str] + """ + When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration. + """ + invoice_line_item_details: Optional[InvoiceLineItemDetails] + type: Literal["invoice_item", "invoice_line_items"] + """ + Whether the credit references a pending invoice item or one or more invoice line items on an invoice. + """ + _inner_class_types = { + "invoice_line_item_details": InvoiceLineItemDetails, + } + class DiscountAmount(StripeObject): amount: int """ @@ -118,11 +142,18 @@ class DiscountAmount(StripeObject): The discount that was applied to get this discount amount. """ + credited_items: Optional[CreditedItems] + """ + For a credit proration, links to the debit invoice line items or invoice item that the credit applies to. + """ discount_amounts: List[DiscountAmount] """ Discount amounts applied when the proration was created. """ - _inner_class_types = {"discount_amounts": DiscountAmount} + _inner_class_types = { + "credited_items": CreditedItems, + "discount_amounts": DiscountAmount, + } amount: int """ diff --git a/stripe/_mandate.py b/stripe/_mandate.py index ff1f8b0eb..9f2939192 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -248,6 +248,9 @@ class SepaDebit(StripeObject): The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively. """ + class Twint(StripeObject): + pass + class Upi(StripeObject): amount: Optional[int] """ @@ -289,6 +292,7 @@ class UsBankAccount(StripeObject): pix: Optional[Pix] revolut_pay: Optional[RevolutPay] sepa_debit: Optional[SepaDebit] + twint: Optional[Twint] type: str """ This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method. @@ -313,6 +317,7 @@ class UsBankAccount(StripeObject): "pix": Pix, "revolut_pay": RevolutPay, "sepa_debit": SepaDebit, + "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, } diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 0044b007e..9198dae9d 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -416,6 +416,12 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -1267,13 +1273,11 @@ class Address(StripeObject): """ payment_method_category: Optional[str] """ - The Klarna payment method used for this transaction. - Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` """ preferred_locale: Optional[str] """ - Preferred language of the Klarna authorization page that the customer is redirected to. - Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ reader: Optional[str] """ @@ -1342,8 +1346,7 @@ class KrCard(StripeObject): class Link(StripeObject): country: Optional[str] """ - 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. + 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. """ class MbWay(StripeObject): @@ -1474,9 +1477,7 @@ class P24(StripeObject): """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Przelewy24 directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - Przelewy24 rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. """ class PayByBank(StripeObject): @@ -1614,7 +1615,7 @@ class Card(StripeObject): card: Optional[Card] type: Optional[Literal["card"]] """ - funding type of the underlying payment method. + Funding type of the underlying payment method. """ _inner_class_types = {"card": Card} @@ -1641,6 +1642,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -1749,7 +1756,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -1835,6 +1845,7 @@ class Zip(StripeObject): """ The billing details associated with the method of payment. """ + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1883,6 +1894,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] @@ -1915,6 +1927,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1951,6 +1964,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sofort": Sofort, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 96dff0afc..f4a280aa2 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -121,11 +121,11 @@ class Shipping(StripeObject): """ from_postal_code: Optional[str] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: Optional[str] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ class Tax(StripeObject): @@ -324,6 +324,7 @@ class LastPaymentError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -364,6 +365,7 @@ class LastPaymentError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -509,6 +511,9 @@ class AlipayHandleRedirect(StripeObject): The URL you must redirect your customer to in order to authenticate the payment. """ + class BlikAuthorize(StripeObject): + pass + class BoletoDisplayDetails(StripeObject): expires_at: Optional[int] """ @@ -1440,6 +1445,7 @@ class WechatPayRedirectToIosApp(StripeObject): """ alipay_handle_redirect: Optional[AlipayHandleRedirect] + blik_authorize: Optional[BlikAuthorize] boleto_display_details: Optional[BoletoDisplayDetails] card_await_notification: Optional[CardAwaitNotification] cashapp_handle_redirect_or_display_qr_code: Optional[ @@ -1478,6 +1484,7 @@ class WechatPayRedirectToIosApp(StripeObject): wechat_pay_redirect_to_ios_app: Optional[WechatPayRedirectToIosApp] _inner_class_types = { "alipay_handle_redirect": AlipayHandleRedirect, + "blik_authorize": BlikAuthorize, "boleto_display_details": BoletoDisplayDetails, "card_await_notification": CardAwaitNotification, "cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode, @@ -1710,6 +1717,9 @@ class Billie(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Bizum(StripeObject): + pass + class Blik(StripeObject): setup_future_usage: Optional[Literal["none"]] """ @@ -2513,6 +2523,12 @@ class Satispay(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Scalapay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class SepaDebit(StripeObject): class MandateOptions(StripeObject): reference_prefix: Optional[str] @@ -2574,7 +2590,7 @@ class Swish(StripeObject): """ class Twint(StripeObject): - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2716,6 +2732,7 @@ class Zip(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -2751,6 +2768,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] swish: Optional[Swish] @@ -2770,6 +2788,7 @@ class Zip(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2805,6 +2824,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "swish": Swish, @@ -2896,16 +2916,36 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class TransferData(StripeObject): + class PaymentData(StripeObject): + description: Optional[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: Optional[UntypedStripeObject[str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + amount: Optional[int] """ The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). """ + description: Optional[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: ExpandableField["Account"] """ The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. """ + metadata: Optional[UntypedStripeObject[str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + payment_data: Optional[PaymentData] + _inner_class_types = {"payment_data": PaymentData} amount: int """ @@ -3008,6 +3048,7 @@ class TransferData(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -3040,6 +3081,7 @@ class TransferData(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -4000,7 +4042,9 @@ def _cls_increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -4043,7 +4087,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -4075,7 +4121,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -4107,7 +4155,9 @@ def increment_authorization( # pyright: ignore[reportGeneralTypeIssues] Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -4150,7 +4200,9 @@ async def _cls_increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -4193,7 +4245,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -4225,7 +4279,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -4257,7 +4313,9 @@ async def increment_authorization_async( # pyright: ignore[reportGeneralTypeIss Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 2370ce4e4..694a3397c 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -604,7 +604,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -649,7 +651,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 652552779..70137d0b6 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -406,6 +406,33 @@ class PaymentIntentData(StripeObject): A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details. """ + class PaymentMethodOptions(StripeObject): + class Card(StripeObject): + class Restrictions(StripeObject): + brands_blocked: List[ + Literal[ + "american_express", + "discover_global_network", + "mastercard", + "visa", + ] + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + restrictions: Optional[Restrictions] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + _inner_class_types = {"restrictions": Restrictions} + + card: Optional[Card] + """ + Configuration for `card` payment methods. + """ + _inner_class_types = {"card": Card} + class PhoneNumberCollection(StripeObject): enabled: bool """ @@ -844,6 +871,10 @@ class TransferData(StripeObject): """ Configuration for collecting a payment method during checkout. Defaults to `always`. """ + payment_method_options: Optional[PaymentMethodOptions] + """ + Payment-method-specific configuration. + """ payment_method_types: Optional[ List[ Literal[ @@ -855,6 +886,7 @@ class TransferData(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1178,6 +1210,7 @@ async def retrieve_async( "name_collection": NameCollection, "optional_items": OptionalItem, "payment_intent_data": PaymentIntentData, + "payment_method_options": PaymentMethodOptions, "phone_number_collection": PhoneNumberCollection, "restrictions": Restrictions, "shipping_address_collection": ShippingAddressCollection, diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 9d98d72d0..3039ea29c 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -169,6 +169,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1264,6 +1267,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1434,6 +1440,7 @@ class Zip(StripeObject): bancontact: Optional[Bancontact] billie: Optional[Billie] billing_details: BillingDetails + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1499,6 +1506,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] sunbit: Optional[Sunbit] @@ -1515,6 +1523,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1551,6 +1560,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -2029,6 +2039,7 @@ async def retrieve_async( "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2066,6 +2077,7 @@ async def retrieve_async( "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "sunbit": Sunbit, diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index 3297cf42a..ea9e8083b 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -292,6 +292,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Bizum(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class Blik(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1084,6 +1106,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Scalapay(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class SepaDebit(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1301,6 +1345,7 @@ class DisplayPreference(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1361,6 +1406,7 @@ class DisplayPreference(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] sunbit: Optional[Sunbit] @@ -1519,6 +1565,7 @@ async def retrieve_async( "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1555,6 +1602,7 @@ async def retrieve_async( "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "sunbit": Sunbit, diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index a62cce12a..21bf46a29 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -432,6 +432,12 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -1283,13 +1289,11 @@ class Address(StripeObject): """ payment_method_category: Optional[str] """ - The Klarna payment method used for this transaction. - Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` """ preferred_locale: Optional[str] """ - Preferred language of the Klarna authorization page that the customer is redirected to. - Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ reader: Optional[str] """ @@ -1358,8 +1362,7 @@ class KrCard(StripeObject): class Link(StripeObject): country: Optional[str] """ - 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. + 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. """ class MbWay(StripeObject): @@ -1490,9 +1493,7 @@ class P24(StripeObject): """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Przelewy24 directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - Przelewy24 rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. """ class PayByBank(StripeObject): @@ -1630,7 +1631,7 @@ class Card(StripeObject): card: Optional[Card] type: Optional[Literal["card"]] """ - funding type of the underlying payment method. + Funding type of the underlying payment method. """ _inner_class_types = {"card": Card} @@ -1657,6 +1658,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -1765,7 +1772,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -1851,6 +1861,7 @@ class Zip(StripeObject): """ The billing details associated with the method of payment. """ + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1899,6 +1910,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] @@ -1931,6 +1943,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1967,6 +1980,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sofort": Sofort, diff --git a/stripe/_refund.py b/stripe/_refund.py index 0be8002d5..cc6373e05 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -212,6 +212,9 @@ class Pix(StripeObject): class Revolut(StripeObject): pass + class Scalapay(StripeObject): + pass + class Sofort(StripeObject): pass @@ -286,6 +289,7 @@ class Zip(StripeObject): paypal: Optional[Paypal] pix: Optional[Pix] revolut: Optional[Revolut] + scalapay: Optional[Scalapay] sofort: Optional[Sofort] swish: Optional[Swish] th_bank_transfer: Optional[ThBankTransfer] @@ -326,6 +330,7 @@ class Zip(StripeObject): "paypal": Paypal, "pix": Pix, "revolut": Revolut, + "scalapay": Scalapay, "sofort": Sofort, "swish": Swish, "th_bank_transfer": ThBankTransfer, diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index 20f0161be..5c6ac3fa9 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -409,6 +409,9 @@ class Sofort(StripeObject): (if supported) at the time of authorization or settlement. They cannot be set or mutated. """ + class Twint(StripeObject): + pass + class Upi(StripeObject): pass @@ -437,6 +440,7 @@ class UsBankAccount(StripeObject): revolut_pay: Optional[RevolutPay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] + twint: Optional[Twint] type: str """ The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method. @@ -466,6 +470,7 @@ class UsBankAccount(StripeObject): "revolut_pay": RevolutPay, "sepa_debit": SepaDebit, "sofort": Sofort, + "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, } @@ -605,6 +610,7 @@ class SetupError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -645,6 +651,7 @@ class SetupError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index a57a67487..2f9486ae6 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -220,6 +220,7 @@ class LastSetupError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -260,6 +261,7 @@ class LastSetupError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -387,6 +389,9 @@ class ManagedPayments(StripeObject): """ class NextAction(StripeObject): + class BlikAuthorize(StripeObject): + pass + class CashappHandleRedirectOrDisplayQrCode(StripeObject): class QrCode(StripeObject): expires_at: int @@ -481,6 +486,7 @@ class VerifyWithMicrodeposits(StripeObject): The type of the microdeposit sent to the customer. Used to distinguish between different verification methods. """ + blik_authorize: Optional[BlikAuthorize] cashapp_handle_redirect_or_display_qr_code: Optional[ CashappHandleRedirectOrDisplayQrCode ] @@ -499,6 +505,7 @@ class VerifyWithMicrodeposits(StripeObject): """ verify_with_microdeposits: Optional[VerifyWithMicrodeposits] _inner_class_types = { + "blik_authorize": BlikAuthorize, "cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode, "pix_display_qr_code": PixDisplayQrCode, "redirect_to_url": RedirectToUrl, @@ -568,6 +575,9 @@ class MandateOptions(StripeObject): mandate_options: Optional[MandateOptions] _inner_class_types = {"mandate_options": MandateOptions} + class Bizum(StripeObject): + pass + class Card(StripeObject): class MandateOptions(StripeObject): amount: int @@ -863,6 +873,7 @@ class MandateOptions(StripeObject): acss_debit: Optional[AcssDebit] amazon_pay: Optional[AmazonPay] bacs_debit: Optional[BacsDebit] + bizum: Optional[Bizum] card: Optional[Card] card_present: Optional[CardPresent] klarna: Optional[Klarna] @@ -877,6 +888,7 @@ class MandateOptions(StripeObject): "acss_debit": AcssDebit, "amazon_pay": AmazonPay, "bacs_debit": BacsDebit, + "bizum": Bizum, "card": Card, "card_present": CardPresent, "klarna": Klarna, @@ -948,6 +960,7 @@ class MandateOptions(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -980,6 +993,7 @@ class MandateOptions(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 07bc2c8bb..a66720d4f 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -31,6 +31,7 @@ from stripe._discount import Discount from stripe._invoice import Invoice from stripe._payment_method import PaymentMethod + from stripe._price import Price from stripe._setup_intent import SetupIntent from stripe._source import Source from stripe._subscription_item import SubscriptionItem @@ -148,6 +149,60 @@ class Flexible(StripeObject): """ _inner_class_types = {"flexible": Flexible} + class BillingSchedule(StripeObject): + class AppliesTo(StripeObject): + price: Optional[ExpandableField["Price"]] + """ + The billing schedule will apply to the subscription item with the given price ID. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + class BillUntil(StripeObject): + class Duration(StripeObject): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: Optional[int] + """ + The multiplier applied to the interval. + """ + + computed_timestamp: int + """ + The timestamp the billing schedule will apply until. + """ + duration: Optional[Duration] + """ + Specifies the billing period. + """ + timestamp: Optional[int] + """ + If specified, the billing schedule will apply until the specified timestamp. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + _inner_class_types = {"duration": Duration} + + applies_to: Optional[List[AppliesTo]] + """ + Specifies which subscription items the billing schedule applies to. + """ + bill_until: BillUntil + """ + Specifies the end of billing period. + """ + key: str + """ + Unique identifier for the billing schedule. + """ + _inner_class_types = {"applies_to": AppliesTo, "bill_until": BillUntil} + class BillingThresholds(StripeObject): amount_gte: Optional[int] """ @@ -552,6 +607,7 @@ class Filters(StripeObject): "sepa_debit", "sofort", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -584,10 +640,22 @@ class PendingUpdate(StripeObject): """ If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. """ + discount: Optional["Discount"] + """ + The pending subscription-level discount that will be applied when the pending update is applied. + """ + discounts: Optional[List[ExpandableField["Discount"]]] + """ + The discounts that will be applied to the subscription when the pending update is applied. Use `expand[]=discounts` to expand each discount. + """ expires_at: int """ The point after which the changes reflected by this update will be discarded and no longer applied. """ + metadata: Optional[UntypedStripeObject[str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ subscription_items: Optional[List["SubscriptionItem"]] """ List of subscription items, each with an attached plan, that will be set if the update is applied. @@ -653,6 +721,10 @@ class EndBehavior(StripeObject): """ The billing mode of the subscription. """ + billing_schedules: List[BillingSchedule] + """ + Billing schedules for this subscription. + """ billing_thresholds: Optional[BillingThresholds] """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period @@ -842,7 +914,7 @@ def _cls_cancel( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -868,7 +940,7 @@ def cancel( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -881,7 +953,7 @@ def cancel( self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -894,7 +966,7 @@ def cancel( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -918,7 +990,7 @@ async def _cls_cancel_async( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -944,7 +1016,7 @@ async def cancel_async( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -957,7 +1029,7 @@ async def cancel_async( self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -970,7 +1042,7 @@ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -1380,7 +1452,7 @@ def _cls_resume( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1399,7 +1471,7 @@ def resume( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1408,7 +1480,7 @@ def resume( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1417,7 +1489,7 @@ def resume( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1435,7 +1507,7 @@ async def _cls_resume_async( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1454,7 +1526,7 @@ async def resume_async( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1463,7 +1535,7 @@ async def resume_async( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1472,7 +1544,7 @@ async def resume_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1551,6 +1623,7 @@ async def search_auto_paging_iter_async( "automatic_tax": AutomaticTax, "billing_cycle_anchor_config": BillingCycleAnchorConfig, "billing_mode": BillingMode, + "billing_schedules": BillingSchedule, "billing_thresholds": BillingThresholds, "cancellation_details": CancellationDetails, "invoice_settings": InvoiceSettings, diff --git a/stripe/_subscription_item.py b/stripe/_subscription_item.py index 9c92f6d78..782500154 100644 --- a/stripe/_subscription_item.py +++ b/stripe/_subscription_item.py @@ -52,6 +52,10 @@ class BillingThresholds(StripeObject): Usage threshold that triggers the subscription to create an invoice """ + billed_until: Optional[int] + """ + The time period the subscription item has been billed for. + """ billing_thresholds: Optional[BillingThresholds] """ Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 7ee787105..2f738738d 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -246,6 +246,10 @@ class Start(StripeObject): start: Start _inner_class_types = {"end": End, "start": Start} + discountable: Optional[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: List[Discount] """ The stackable discounts that will be applied to the item. diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 1f57420d2..f52f3f673 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -46,7 +46,7 @@ def cancel( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -74,7 +74,7 @@ async def cancel_async( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -462,7 +462,7 @@ def resume( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -484,7 +484,7 @@ async def resume_async( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 3af1b05f0..be7819d7b 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -268,7 +268,7 @@ class PaymentMethodReuseAgreement(StripeObject): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: Optional[Literal["none", "required"]] """ @@ -992,7 +992,7 @@ class Restrictions(StripeObject): ] ] """ - Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. """ capture_method: Optional[Literal["manual"]] @@ -1541,6 +1541,12 @@ class Satispay(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Scalapay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class SepaDebit(StripeObject): class MandateOptions(StripeObject): reference_prefix: Optional[str] @@ -1586,7 +1592,7 @@ class Swish(StripeObject): """ class Twint(StripeObject): - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1729,6 +1735,7 @@ class Filters(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] swish: Optional[Swish] @@ -1773,6 +1780,7 @@ class Filters(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "swish": Swish, @@ -2280,8 +2288,8 @@ class Link(StripeObject): """ client_secret: Optional[str] """ - The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout. - For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. + The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. For `ui_mode: embedded_page`, the client secret is to be used when initializing Stripe.js embedded checkout. + For `ui_mode: elements`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. """ collected_information: Optional[CollectedInformation] """ @@ -2495,11 +2503,11 @@ class Link(StripeObject): """ redirect_on_completion: Optional[Literal["always", "if_required", "never"]] """ - This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. """ return_url: Optional[str] """ - Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. + Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. """ saved_payment_method_options: Optional[SavedPaymentMethodOptions] """ @@ -2555,7 +2563,7 @@ class Link(StripeObject): """ url: Optional[str] """ - The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.` + The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted_page`. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.` This value is only present when the session is active. """ wallet_options: Optional[WalletOptions] diff --git a/stripe/issuing/_dispute.py b/stripe/issuing/_dispute.py index 6b644332e..ecf081c47 100644 --- a/stripe/issuing/_dispute.py +++ b/stripe/issuing/_dispute.py @@ -331,7 +331,7 @@ class Treasury(StripeObject): """ treasury: Optional[Treasury] """ - [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts + [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts) """ @classmethod diff --git a/stripe/issuing/_personalization_design.py b/stripe/issuing/_personalization_design.py index 08d8fd75f..8c5ca1476 100644 --- a/stripe/issuing/_personalization_design.py +++ b/stripe/issuing/_personalization_design.py @@ -115,7 +115,7 @@ class RejectionReasons(StripeObject): card_logo: Optional[ExpandableField["File"]] """ - The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. + The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale. """ carrier_text: Optional[CarrierText] """ diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index a7a0c1961..e7bf7eff8 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -60,6 +60,7 @@ AccountCreateParamsCapabilitiesBancontactPayments as AccountCreateParamsCapabilitiesBancontactPayments, AccountCreateParamsCapabilitiesBankTransferPayments as AccountCreateParamsCapabilitiesBankTransferPayments, AccountCreateParamsCapabilitiesBilliePayments as AccountCreateParamsCapabilitiesBilliePayments, + AccountCreateParamsCapabilitiesBizumPayments as AccountCreateParamsCapabilitiesBizumPayments, AccountCreateParamsCapabilitiesBlikPayments as AccountCreateParamsCapabilitiesBlikPayments, AccountCreateParamsCapabilitiesBoletoPayments as AccountCreateParamsCapabilitiesBoletoPayments, AccountCreateParamsCapabilitiesCardIssuing as AccountCreateParamsCapabilitiesCardIssuing, @@ -99,6 +100,7 @@ AccountCreateParamsCapabilitiesRevolutPayPayments as AccountCreateParamsCapabilitiesRevolutPayPayments, AccountCreateParamsCapabilitiesSamsungPayPayments as AccountCreateParamsCapabilitiesSamsungPayPayments, AccountCreateParamsCapabilitiesSatispayPayments as AccountCreateParamsCapabilitiesSatispayPayments, + AccountCreateParamsCapabilitiesScalapayPayments as AccountCreateParamsCapabilitiesScalapayPayments, AccountCreateParamsCapabilitiesSepaBankTransferPayments as AccountCreateParamsCapabilitiesSepaBankTransferPayments, AccountCreateParamsCapabilitiesSepaDebitPayments as AccountCreateParamsCapabilitiesSepaDebitPayments, AccountCreateParamsCapabilitiesSofortPayments as AccountCreateParamsCapabilitiesSofortPayments, @@ -406,6 +408,7 @@ AccountUpdateParamsCapabilitiesBancontactPayments as AccountUpdateParamsCapabilitiesBancontactPayments, AccountUpdateParamsCapabilitiesBankTransferPayments as AccountUpdateParamsCapabilitiesBankTransferPayments, AccountUpdateParamsCapabilitiesBilliePayments as AccountUpdateParamsCapabilitiesBilliePayments, + AccountUpdateParamsCapabilitiesBizumPayments as AccountUpdateParamsCapabilitiesBizumPayments, AccountUpdateParamsCapabilitiesBlikPayments as AccountUpdateParamsCapabilitiesBlikPayments, AccountUpdateParamsCapabilitiesBoletoPayments as AccountUpdateParamsCapabilitiesBoletoPayments, AccountUpdateParamsCapabilitiesCardIssuing as AccountUpdateParamsCapabilitiesCardIssuing, @@ -445,6 +448,7 @@ AccountUpdateParamsCapabilitiesRevolutPayPayments as AccountUpdateParamsCapabilitiesRevolutPayPayments, AccountUpdateParamsCapabilitiesSamsungPayPayments as AccountUpdateParamsCapabilitiesSamsungPayPayments, AccountUpdateParamsCapabilitiesSatispayPayments as AccountUpdateParamsCapabilitiesSatispayPayments, + AccountUpdateParamsCapabilitiesScalapayPayments as AccountUpdateParamsCapabilitiesScalapayPayments, AccountUpdateParamsCapabilitiesSepaBankTransferPayments as AccountUpdateParamsCapabilitiesSepaBankTransferPayments, AccountUpdateParamsCapabilitiesSepaDebitPayments as AccountUpdateParamsCapabilitiesSepaDebitPayments, AccountUpdateParamsCapabilitiesSofortPayments as AccountUpdateParamsCapabilitiesSofortPayments, @@ -562,8 +566,10 @@ BalanceSettingsModifyParams as BalanceSettingsModifyParams, BalanceSettingsModifyParamsPayments as BalanceSettingsModifyParamsPayments, BalanceSettingsModifyParamsPaymentsPayouts as BalanceSettingsModifyParamsPaymentsPayouts, + BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency as BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency, BalanceSettingsModifyParamsPaymentsPayoutsSchedule as BalanceSettingsModifyParamsPaymentsPayoutsSchedule, BalanceSettingsModifyParamsPaymentsSettlementTiming as BalanceSettingsModifyParamsPaymentsSettlementTiming, + BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay as BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay, ) from stripe.params._balance_settings_retrieve_params import ( BalanceSettingsRetrieveParams as BalanceSettingsRetrieveParams, @@ -572,8 +578,10 @@ BalanceSettingsUpdateParams as BalanceSettingsUpdateParams, BalanceSettingsUpdateParamsPayments as BalanceSettingsUpdateParamsPayments, BalanceSettingsUpdateParamsPaymentsPayouts as BalanceSettingsUpdateParamsPaymentsPayouts, + BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency as BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency, BalanceSettingsUpdateParamsPaymentsPayoutsSchedule as BalanceSettingsUpdateParamsPaymentsPayoutsSchedule, BalanceSettingsUpdateParamsPaymentsSettlementTiming as BalanceSettingsUpdateParamsPaymentsSettlementTiming, + BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay as BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay, ) from stripe.params._balance_transaction_list_params import ( BalanceTransactionListParams as BalanceTransactionListParams, @@ -643,6 +651,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress, + ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, @@ -678,6 +687,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay, ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, + ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataSunbit as ConfirmationTokenCreateParamsPaymentMethodDataSunbit, @@ -1160,6 +1170,10 @@ InvoiceCreatePreviewParamsSubscriptionDetails as InvoiceCreatePreviewParamsSubscriptionDetails, InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode as InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode, InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible as InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule as InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration, InvoiceCreatePreviewParamsSubscriptionDetailsItem as InvoiceCreatePreviewParamsSubscriptionDetailsItem, InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds as InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds, InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount as InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount, @@ -1428,6 +1442,7 @@ PaymentIntentConfirmParamsPaymentMethodDataBillie as PaymentIntentConfirmParamsPaymentMethodDataBillie, PaymentIntentConfirmParamsPaymentMethodDataBillingDetails as PaymentIntentConfirmParamsPaymentMethodDataBillingDetails, PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentConfirmParamsPaymentMethodDataBizum as PaymentIntentConfirmParamsPaymentMethodDataBizum, PaymentIntentConfirmParamsPaymentMethodDataBlik as PaymentIntentConfirmParamsPaymentMethodDataBlik, PaymentIntentConfirmParamsPaymentMethodDataBoleto as PaymentIntentConfirmParamsPaymentMethodDataBoleto, PaymentIntentConfirmParamsPaymentMethodDataCashapp as PaymentIntentConfirmParamsPaymentMethodDataCashapp, @@ -1463,6 +1478,7 @@ PaymentIntentConfirmParamsPaymentMethodDataRevolutPay as PaymentIntentConfirmParamsPaymentMethodDataRevolutPay, PaymentIntentConfirmParamsPaymentMethodDataSamsungPay as PaymentIntentConfirmParamsPaymentMethodDataSamsungPay, PaymentIntentConfirmParamsPaymentMethodDataSatispay as PaymentIntentConfirmParamsPaymentMethodDataSatispay, + PaymentIntentConfirmParamsPaymentMethodDataScalapay as PaymentIntentConfirmParamsPaymentMethodDataScalapay, PaymentIntentConfirmParamsPaymentMethodDataSepaDebit as PaymentIntentConfirmParamsPaymentMethodDataSepaDebit, PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort, PaymentIntentConfirmParamsPaymentMethodDataSunbit as PaymentIntentConfirmParamsPaymentMethodDataSunbit, @@ -1486,6 +1502,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsBancontact as PaymentIntentConfirmParamsPaymentMethodOptionsBancontact, PaymentIntentConfirmParamsPaymentMethodOptionsBillie as PaymentIntentConfirmParamsPaymentMethodOptionsBillie, + PaymentIntentConfirmParamsPaymentMethodOptionsBizum as PaymentIntentConfirmParamsPaymentMethodOptionsBizum, PaymentIntentConfirmParamsPaymentMethodOptionsBlik as PaymentIntentConfirmParamsPaymentMethodOptionsBlik, PaymentIntentConfirmParamsPaymentMethodOptionsBoleto as PaymentIntentConfirmParamsPaymentMethodOptionsBoleto, PaymentIntentConfirmParamsPaymentMethodOptionsCard as PaymentIntentConfirmParamsPaymentMethodOptionsCard, @@ -1535,6 +1552,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay as PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay, PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay as PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay, PaymentIntentConfirmParamsPaymentMethodOptionsSatispay as PaymentIntentConfirmParamsPaymentMethodOptionsSatispay, + PaymentIntentConfirmParamsPaymentMethodOptionsScalapay as PaymentIntentConfirmParamsPaymentMethodOptionsScalapay, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsSofort as PaymentIntentConfirmParamsPaymentMethodOptionsSofort, @@ -1587,6 +1605,7 @@ PaymentIntentCreateParamsPaymentMethodDataBillie as PaymentIntentCreateParamsPaymentMethodDataBillie, PaymentIntentCreateParamsPaymentMethodDataBillingDetails as PaymentIntentCreateParamsPaymentMethodDataBillingDetails, PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentCreateParamsPaymentMethodDataBizum as PaymentIntentCreateParamsPaymentMethodDataBizum, PaymentIntentCreateParamsPaymentMethodDataBlik as PaymentIntentCreateParamsPaymentMethodDataBlik, PaymentIntentCreateParamsPaymentMethodDataBoleto as PaymentIntentCreateParamsPaymentMethodDataBoleto, PaymentIntentCreateParamsPaymentMethodDataCashapp as PaymentIntentCreateParamsPaymentMethodDataCashapp, @@ -1622,6 +1641,7 @@ PaymentIntentCreateParamsPaymentMethodDataRevolutPay as PaymentIntentCreateParamsPaymentMethodDataRevolutPay, PaymentIntentCreateParamsPaymentMethodDataSamsungPay as PaymentIntentCreateParamsPaymentMethodDataSamsungPay, PaymentIntentCreateParamsPaymentMethodDataSatispay as PaymentIntentCreateParamsPaymentMethodDataSatispay, + PaymentIntentCreateParamsPaymentMethodDataScalapay as PaymentIntentCreateParamsPaymentMethodDataScalapay, PaymentIntentCreateParamsPaymentMethodDataSepaDebit as PaymentIntentCreateParamsPaymentMethodDataSepaDebit, PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort, PaymentIntentCreateParamsPaymentMethodDataSunbit as PaymentIntentCreateParamsPaymentMethodDataSunbit, @@ -1645,6 +1665,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsBancontact as PaymentIntentCreateParamsPaymentMethodOptionsBancontact, PaymentIntentCreateParamsPaymentMethodOptionsBillie as PaymentIntentCreateParamsPaymentMethodOptionsBillie, + PaymentIntentCreateParamsPaymentMethodOptionsBizum as PaymentIntentCreateParamsPaymentMethodOptionsBizum, PaymentIntentCreateParamsPaymentMethodOptionsBlik as PaymentIntentCreateParamsPaymentMethodOptionsBlik, PaymentIntentCreateParamsPaymentMethodOptionsBoleto as PaymentIntentCreateParamsPaymentMethodOptionsBoleto, PaymentIntentCreateParamsPaymentMethodOptionsCard as PaymentIntentCreateParamsPaymentMethodOptionsCard, @@ -1694,6 +1715,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay as PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay, PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay as PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay, PaymentIntentCreateParamsPaymentMethodOptionsSatispay as PaymentIntentCreateParamsPaymentMethodOptionsSatispay, + PaymentIntentCreateParamsPaymentMethodOptionsScalapay as PaymentIntentCreateParamsPaymentMethodOptionsScalapay, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsSofort as PaymentIntentCreateParamsPaymentMethodOptionsSofort, @@ -1712,6 +1734,7 @@ PaymentIntentCreateParamsShipping as PaymentIntentCreateParamsShipping, PaymentIntentCreateParamsShippingAddress as PaymentIntentCreateParamsShippingAddress, PaymentIntentCreateParamsTransferData as PaymentIntentCreateParamsTransferData, + PaymentIntentCreateParamsTransferDataPaymentData as PaymentIntentCreateParamsTransferDataPaymentData, ) from stripe.params._payment_intent_increment_authorization_params import ( PaymentIntentIncrementAuthorizationParams as PaymentIntentIncrementAuthorizationParams, @@ -1767,6 +1790,7 @@ PaymentIntentModifyParamsPaymentMethodDataBillie as PaymentIntentModifyParamsPaymentMethodDataBillie, PaymentIntentModifyParamsPaymentMethodDataBillingDetails as PaymentIntentModifyParamsPaymentMethodDataBillingDetails, PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentModifyParamsPaymentMethodDataBizum as PaymentIntentModifyParamsPaymentMethodDataBizum, PaymentIntentModifyParamsPaymentMethodDataBlik as PaymentIntentModifyParamsPaymentMethodDataBlik, PaymentIntentModifyParamsPaymentMethodDataBoleto as PaymentIntentModifyParamsPaymentMethodDataBoleto, PaymentIntentModifyParamsPaymentMethodDataCashapp as PaymentIntentModifyParamsPaymentMethodDataCashapp, @@ -1802,6 +1826,7 @@ PaymentIntentModifyParamsPaymentMethodDataRevolutPay as PaymentIntentModifyParamsPaymentMethodDataRevolutPay, PaymentIntentModifyParamsPaymentMethodDataSamsungPay as PaymentIntentModifyParamsPaymentMethodDataSamsungPay, PaymentIntentModifyParamsPaymentMethodDataSatispay as PaymentIntentModifyParamsPaymentMethodDataSatispay, + PaymentIntentModifyParamsPaymentMethodDataScalapay as PaymentIntentModifyParamsPaymentMethodDataScalapay, PaymentIntentModifyParamsPaymentMethodDataSepaDebit as PaymentIntentModifyParamsPaymentMethodDataSepaDebit, PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort, PaymentIntentModifyParamsPaymentMethodDataSunbit as PaymentIntentModifyParamsPaymentMethodDataSunbit, @@ -1825,6 +1850,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsBancontact as PaymentIntentModifyParamsPaymentMethodOptionsBancontact, PaymentIntentModifyParamsPaymentMethodOptionsBillie as PaymentIntentModifyParamsPaymentMethodOptionsBillie, + PaymentIntentModifyParamsPaymentMethodOptionsBizum as PaymentIntentModifyParamsPaymentMethodOptionsBizum, PaymentIntentModifyParamsPaymentMethodOptionsBlik as PaymentIntentModifyParamsPaymentMethodOptionsBlik, PaymentIntentModifyParamsPaymentMethodOptionsBoleto as PaymentIntentModifyParamsPaymentMethodOptionsBoleto, PaymentIntentModifyParamsPaymentMethodOptionsCard as PaymentIntentModifyParamsPaymentMethodOptionsCard, @@ -1874,6 +1900,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay as PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay, PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay as PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay, PaymentIntentModifyParamsPaymentMethodOptionsSatispay as PaymentIntentModifyParamsPaymentMethodOptionsSatispay, + PaymentIntentModifyParamsPaymentMethodOptionsScalapay as PaymentIntentModifyParamsPaymentMethodOptionsScalapay, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsSofort as PaymentIntentModifyParamsPaymentMethodOptionsSofort, @@ -1891,6 +1918,7 @@ PaymentIntentModifyParamsShipping as PaymentIntentModifyParamsShipping, PaymentIntentModifyParamsShippingAddress as PaymentIntentModifyParamsShippingAddress, PaymentIntentModifyParamsTransferData as PaymentIntentModifyParamsTransferData, + PaymentIntentModifyParamsTransferDataPaymentData as PaymentIntentModifyParamsTransferDataPaymentData, ) from stripe.params._payment_intent_retrieve_params import ( PaymentIntentRetrieveParams as PaymentIntentRetrieveParams, @@ -1927,6 +1955,7 @@ PaymentIntentUpdateParamsPaymentMethodDataBillie as PaymentIntentUpdateParamsPaymentMethodDataBillie, PaymentIntentUpdateParamsPaymentMethodDataBillingDetails as PaymentIntentUpdateParamsPaymentMethodDataBillingDetails, PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentUpdateParamsPaymentMethodDataBizum as PaymentIntentUpdateParamsPaymentMethodDataBizum, PaymentIntentUpdateParamsPaymentMethodDataBlik as PaymentIntentUpdateParamsPaymentMethodDataBlik, PaymentIntentUpdateParamsPaymentMethodDataBoleto as PaymentIntentUpdateParamsPaymentMethodDataBoleto, PaymentIntentUpdateParamsPaymentMethodDataCashapp as PaymentIntentUpdateParamsPaymentMethodDataCashapp, @@ -1962,6 +1991,7 @@ PaymentIntentUpdateParamsPaymentMethodDataRevolutPay as PaymentIntentUpdateParamsPaymentMethodDataRevolutPay, PaymentIntentUpdateParamsPaymentMethodDataSamsungPay as PaymentIntentUpdateParamsPaymentMethodDataSamsungPay, PaymentIntentUpdateParamsPaymentMethodDataSatispay as PaymentIntentUpdateParamsPaymentMethodDataSatispay, + PaymentIntentUpdateParamsPaymentMethodDataScalapay as PaymentIntentUpdateParamsPaymentMethodDataScalapay, PaymentIntentUpdateParamsPaymentMethodDataSepaDebit as PaymentIntentUpdateParamsPaymentMethodDataSepaDebit, PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort, PaymentIntentUpdateParamsPaymentMethodDataSunbit as PaymentIntentUpdateParamsPaymentMethodDataSunbit, @@ -1985,6 +2015,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsBancontact as PaymentIntentUpdateParamsPaymentMethodOptionsBancontact, PaymentIntentUpdateParamsPaymentMethodOptionsBillie as PaymentIntentUpdateParamsPaymentMethodOptionsBillie, + PaymentIntentUpdateParamsPaymentMethodOptionsBizum as PaymentIntentUpdateParamsPaymentMethodOptionsBizum, PaymentIntentUpdateParamsPaymentMethodOptionsBlik as PaymentIntentUpdateParamsPaymentMethodOptionsBlik, PaymentIntentUpdateParamsPaymentMethodOptionsBoleto as PaymentIntentUpdateParamsPaymentMethodOptionsBoleto, PaymentIntentUpdateParamsPaymentMethodOptionsCard as PaymentIntentUpdateParamsPaymentMethodOptionsCard, @@ -2034,6 +2065,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay as PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay, PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay as PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay, PaymentIntentUpdateParamsPaymentMethodOptionsSatispay as PaymentIntentUpdateParamsPaymentMethodOptionsSatispay, + PaymentIntentUpdateParamsPaymentMethodOptionsScalapay as PaymentIntentUpdateParamsPaymentMethodOptionsScalapay, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsSofort as PaymentIntentUpdateParamsPaymentMethodOptionsSofort, @@ -2051,6 +2083,7 @@ PaymentIntentUpdateParamsShipping as PaymentIntentUpdateParamsShipping, PaymentIntentUpdateParamsShippingAddress as PaymentIntentUpdateParamsShippingAddress, PaymentIntentUpdateParamsTransferData as PaymentIntentUpdateParamsTransferData, + PaymentIntentUpdateParamsTransferDataPaymentData as PaymentIntentUpdateParamsTransferDataPaymentData, ) from stripe.params._payment_intent_verify_microdeposits_params import ( PaymentIntentVerifyMicrodepositsParams as PaymentIntentVerifyMicrodepositsParams, @@ -2092,6 +2125,9 @@ PaymentLinkCreateParamsOptionalItem as PaymentLinkCreateParamsOptionalItem, PaymentLinkCreateParamsOptionalItemAdjustableQuantity as PaymentLinkCreateParamsOptionalItemAdjustableQuantity, PaymentLinkCreateParamsPaymentIntentData as PaymentLinkCreateParamsPaymentIntentData, + PaymentLinkCreateParamsPaymentMethodOptions as PaymentLinkCreateParamsPaymentMethodOptions, + PaymentLinkCreateParamsPaymentMethodOptionsCard as PaymentLinkCreateParamsPaymentMethodOptionsCard, + PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions as PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions, PaymentLinkCreateParamsPhoneNumberCollection as PaymentLinkCreateParamsPhoneNumberCollection, PaymentLinkCreateParamsRestrictions as PaymentLinkCreateParamsRestrictions, PaymentLinkCreateParamsRestrictionsCompletedSessions as PaymentLinkCreateParamsRestrictionsCompletedSessions, @@ -2145,6 +2181,9 @@ PaymentLinkModifyParamsOptionalItem as PaymentLinkModifyParamsOptionalItem, PaymentLinkModifyParamsOptionalItemAdjustableQuantity as PaymentLinkModifyParamsOptionalItemAdjustableQuantity, PaymentLinkModifyParamsPaymentIntentData as PaymentLinkModifyParamsPaymentIntentData, + PaymentLinkModifyParamsPaymentMethodOptions as PaymentLinkModifyParamsPaymentMethodOptions, + PaymentLinkModifyParamsPaymentMethodOptionsCard as PaymentLinkModifyParamsPaymentMethodOptionsCard, + PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions as PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions, PaymentLinkModifyParamsPhoneNumberCollection as PaymentLinkModifyParamsPhoneNumberCollection, PaymentLinkModifyParamsRestrictions as PaymentLinkModifyParamsRestrictions, PaymentLinkModifyParamsRestrictionsCompletedSessions as PaymentLinkModifyParamsRestrictionsCompletedSessions, @@ -2190,6 +2229,9 @@ PaymentLinkUpdateParamsOptionalItem as PaymentLinkUpdateParamsOptionalItem, PaymentLinkUpdateParamsOptionalItemAdjustableQuantity as PaymentLinkUpdateParamsOptionalItemAdjustableQuantity, PaymentLinkUpdateParamsPaymentIntentData as PaymentLinkUpdateParamsPaymentIntentData, + PaymentLinkUpdateParamsPaymentMethodOptions as PaymentLinkUpdateParamsPaymentMethodOptions, + PaymentLinkUpdateParamsPaymentMethodOptionsCard as PaymentLinkUpdateParamsPaymentMethodOptionsCard, + PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions as PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions, PaymentLinkUpdateParamsPhoneNumberCollection as PaymentLinkUpdateParamsPhoneNumberCollection, PaymentLinkUpdateParamsRestrictions as PaymentLinkUpdateParamsRestrictions, PaymentLinkUpdateParamsRestrictionsCompletedSessions as PaymentLinkUpdateParamsRestrictionsCompletedSessions, @@ -2230,6 +2272,8 @@ PaymentMethodConfigurationCreateParamsBancontactDisplayPreference as PaymentMethodConfigurationCreateParamsBancontactDisplayPreference, PaymentMethodConfigurationCreateParamsBillie as PaymentMethodConfigurationCreateParamsBillie, PaymentMethodConfigurationCreateParamsBillieDisplayPreference as PaymentMethodConfigurationCreateParamsBillieDisplayPreference, + PaymentMethodConfigurationCreateParamsBizum as PaymentMethodConfigurationCreateParamsBizum, + PaymentMethodConfigurationCreateParamsBizumDisplayPreference as PaymentMethodConfigurationCreateParamsBizumDisplayPreference, PaymentMethodConfigurationCreateParamsBlik as PaymentMethodConfigurationCreateParamsBlik, PaymentMethodConfigurationCreateParamsBlikDisplayPreference as PaymentMethodConfigurationCreateParamsBlikDisplayPreference, PaymentMethodConfigurationCreateParamsBoleto as PaymentMethodConfigurationCreateParamsBoleto, @@ -2304,6 +2348,8 @@ PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference as PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference, PaymentMethodConfigurationCreateParamsSatispay as PaymentMethodConfigurationCreateParamsSatispay, PaymentMethodConfigurationCreateParamsSatispayDisplayPreference as PaymentMethodConfigurationCreateParamsSatispayDisplayPreference, + PaymentMethodConfigurationCreateParamsScalapay as PaymentMethodConfigurationCreateParamsScalapay, + PaymentMethodConfigurationCreateParamsScalapayDisplayPreference as PaymentMethodConfigurationCreateParamsScalapayDisplayPreference, PaymentMethodConfigurationCreateParamsSepaDebit as PaymentMethodConfigurationCreateParamsSepaDebit, PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference, PaymentMethodConfigurationCreateParamsSofort as PaymentMethodConfigurationCreateParamsSofort, @@ -2352,6 +2398,8 @@ PaymentMethodConfigurationModifyParamsBancontactDisplayPreference as PaymentMethodConfigurationModifyParamsBancontactDisplayPreference, PaymentMethodConfigurationModifyParamsBillie as PaymentMethodConfigurationModifyParamsBillie, PaymentMethodConfigurationModifyParamsBillieDisplayPreference as PaymentMethodConfigurationModifyParamsBillieDisplayPreference, + PaymentMethodConfigurationModifyParamsBizum as PaymentMethodConfigurationModifyParamsBizum, + PaymentMethodConfigurationModifyParamsBizumDisplayPreference as PaymentMethodConfigurationModifyParamsBizumDisplayPreference, PaymentMethodConfigurationModifyParamsBlik as PaymentMethodConfigurationModifyParamsBlik, PaymentMethodConfigurationModifyParamsBlikDisplayPreference as PaymentMethodConfigurationModifyParamsBlikDisplayPreference, PaymentMethodConfigurationModifyParamsBoleto as PaymentMethodConfigurationModifyParamsBoleto, @@ -2426,6 +2474,8 @@ PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference as PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference, PaymentMethodConfigurationModifyParamsSatispay as PaymentMethodConfigurationModifyParamsSatispay, PaymentMethodConfigurationModifyParamsSatispayDisplayPreference as PaymentMethodConfigurationModifyParamsSatispayDisplayPreference, + PaymentMethodConfigurationModifyParamsScalapay as PaymentMethodConfigurationModifyParamsScalapay, + PaymentMethodConfigurationModifyParamsScalapayDisplayPreference as PaymentMethodConfigurationModifyParamsScalapayDisplayPreference, PaymentMethodConfigurationModifyParamsSepaDebit as PaymentMethodConfigurationModifyParamsSepaDebit, PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference as PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference, PaymentMethodConfigurationModifyParamsSofort as PaymentMethodConfigurationModifyParamsSofort, @@ -2474,6 +2524,8 @@ PaymentMethodConfigurationUpdateParamsBancontactDisplayPreference as PaymentMethodConfigurationUpdateParamsBancontactDisplayPreference, PaymentMethodConfigurationUpdateParamsBillie as PaymentMethodConfigurationUpdateParamsBillie, PaymentMethodConfigurationUpdateParamsBillieDisplayPreference as PaymentMethodConfigurationUpdateParamsBillieDisplayPreference, + PaymentMethodConfigurationUpdateParamsBizum as PaymentMethodConfigurationUpdateParamsBizum, + PaymentMethodConfigurationUpdateParamsBizumDisplayPreference as PaymentMethodConfigurationUpdateParamsBizumDisplayPreference, PaymentMethodConfigurationUpdateParamsBlik as PaymentMethodConfigurationUpdateParamsBlik, PaymentMethodConfigurationUpdateParamsBlikDisplayPreference as PaymentMethodConfigurationUpdateParamsBlikDisplayPreference, PaymentMethodConfigurationUpdateParamsBoleto as PaymentMethodConfigurationUpdateParamsBoleto, @@ -2548,6 +2600,8 @@ PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference as PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference, PaymentMethodConfigurationUpdateParamsSatispay as PaymentMethodConfigurationUpdateParamsSatispay, PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference as PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference, + PaymentMethodConfigurationUpdateParamsScalapay as PaymentMethodConfigurationUpdateParamsScalapay, + PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference as PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference, PaymentMethodConfigurationUpdateParamsSepaDebit as PaymentMethodConfigurationUpdateParamsSepaDebit, PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference, PaymentMethodConfigurationUpdateParamsSofort as PaymentMethodConfigurationUpdateParamsSofort, @@ -2581,6 +2635,7 @@ PaymentMethodCreateParamsBillie as PaymentMethodCreateParamsBillie, PaymentMethodCreateParamsBillingDetails as PaymentMethodCreateParamsBillingDetails, PaymentMethodCreateParamsBillingDetailsAddress as PaymentMethodCreateParamsBillingDetailsAddress, + PaymentMethodCreateParamsBizum as PaymentMethodCreateParamsBizum, PaymentMethodCreateParamsBlik as PaymentMethodCreateParamsBlik, PaymentMethodCreateParamsBoleto as PaymentMethodCreateParamsBoleto, PaymentMethodCreateParamsCard as PaymentMethodCreateParamsCard, @@ -2619,6 +2674,7 @@ PaymentMethodCreateParamsRevolutPay as PaymentMethodCreateParamsRevolutPay, PaymentMethodCreateParamsSamsungPay as PaymentMethodCreateParamsSamsungPay, PaymentMethodCreateParamsSatispay as PaymentMethodCreateParamsSatispay, + PaymentMethodCreateParamsScalapay as PaymentMethodCreateParamsScalapay, PaymentMethodCreateParamsSepaDebit as PaymentMethodCreateParamsSepaDebit, PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort, PaymentMethodCreateParamsSunbit as PaymentMethodCreateParamsSunbit, @@ -3019,6 +3075,7 @@ SetupIntentConfirmParamsPaymentMethodDataBillie as SetupIntentConfirmParamsPaymentMethodDataBillie, SetupIntentConfirmParamsPaymentMethodDataBillingDetails as SetupIntentConfirmParamsPaymentMethodDataBillingDetails, SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress as SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentConfirmParamsPaymentMethodDataBizum as SetupIntentConfirmParamsPaymentMethodDataBizum, SetupIntentConfirmParamsPaymentMethodDataBlik as SetupIntentConfirmParamsPaymentMethodDataBlik, SetupIntentConfirmParamsPaymentMethodDataBoleto as SetupIntentConfirmParamsPaymentMethodDataBoleto, SetupIntentConfirmParamsPaymentMethodDataCashapp as SetupIntentConfirmParamsPaymentMethodDataCashapp, @@ -3054,6 +3111,7 @@ SetupIntentConfirmParamsPaymentMethodDataRevolutPay as SetupIntentConfirmParamsPaymentMethodDataRevolutPay, SetupIntentConfirmParamsPaymentMethodDataSamsungPay as SetupIntentConfirmParamsPaymentMethodDataSamsungPay, SetupIntentConfirmParamsPaymentMethodDataSatispay as SetupIntentConfirmParamsPaymentMethodDataSatispay, + SetupIntentConfirmParamsPaymentMethodDataScalapay as SetupIntentConfirmParamsPaymentMethodDataScalapay, SetupIntentConfirmParamsPaymentMethodDataSepaDebit as SetupIntentConfirmParamsPaymentMethodDataSepaDebit, SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort, SetupIntentConfirmParamsPaymentMethodDataSunbit as SetupIntentConfirmParamsPaymentMethodDataSunbit, @@ -3070,6 +3128,7 @@ SetupIntentConfirmParamsPaymentMethodOptionsAmazonPay as SetupIntentConfirmParamsPaymentMethodOptionsAmazonPay, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentConfirmParamsPaymentMethodOptionsBizum as SetupIntentConfirmParamsPaymentMethodOptionsBizum, SetupIntentConfirmParamsPaymentMethodOptionsCard as SetupIntentConfirmParamsPaymentMethodOptionsCard, SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions, SetupIntentConfirmParamsPaymentMethodOptionsCardPresent as SetupIntentConfirmParamsPaymentMethodOptionsCardPresent, @@ -3116,6 +3175,7 @@ SetupIntentCreateParamsPaymentMethodDataBillie as SetupIntentCreateParamsPaymentMethodDataBillie, SetupIntentCreateParamsPaymentMethodDataBillingDetails as SetupIntentCreateParamsPaymentMethodDataBillingDetails, SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress as SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentCreateParamsPaymentMethodDataBizum as SetupIntentCreateParamsPaymentMethodDataBizum, SetupIntentCreateParamsPaymentMethodDataBlik as SetupIntentCreateParamsPaymentMethodDataBlik, SetupIntentCreateParamsPaymentMethodDataBoleto as SetupIntentCreateParamsPaymentMethodDataBoleto, SetupIntentCreateParamsPaymentMethodDataCashapp as SetupIntentCreateParamsPaymentMethodDataCashapp, @@ -3151,6 +3211,7 @@ SetupIntentCreateParamsPaymentMethodDataRevolutPay as SetupIntentCreateParamsPaymentMethodDataRevolutPay, SetupIntentCreateParamsPaymentMethodDataSamsungPay as SetupIntentCreateParamsPaymentMethodDataSamsungPay, SetupIntentCreateParamsPaymentMethodDataSatispay as SetupIntentCreateParamsPaymentMethodDataSatispay, + SetupIntentCreateParamsPaymentMethodDataScalapay as SetupIntentCreateParamsPaymentMethodDataScalapay, SetupIntentCreateParamsPaymentMethodDataSepaDebit as SetupIntentCreateParamsPaymentMethodDataSepaDebit, SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort, SetupIntentCreateParamsPaymentMethodDataSunbit as SetupIntentCreateParamsPaymentMethodDataSunbit, @@ -3167,6 +3228,7 @@ SetupIntentCreateParamsPaymentMethodOptionsAmazonPay as SetupIntentCreateParamsPaymentMethodOptionsAmazonPay, SetupIntentCreateParamsPaymentMethodOptionsBacsDebit as SetupIntentCreateParamsPaymentMethodOptionsBacsDebit, SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentCreateParamsPaymentMethodOptionsBizum as SetupIntentCreateParamsPaymentMethodOptionsBizum, SetupIntentCreateParamsPaymentMethodOptionsCard as SetupIntentCreateParamsPaymentMethodOptionsCard, SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentCreateParamsPaymentMethodOptionsCardPresent as SetupIntentCreateParamsPaymentMethodOptionsCardPresent, @@ -3213,6 +3275,7 @@ SetupIntentModifyParamsPaymentMethodDataBillie as SetupIntentModifyParamsPaymentMethodDataBillie, SetupIntentModifyParamsPaymentMethodDataBillingDetails as SetupIntentModifyParamsPaymentMethodDataBillingDetails, SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress as SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentModifyParamsPaymentMethodDataBizum as SetupIntentModifyParamsPaymentMethodDataBizum, SetupIntentModifyParamsPaymentMethodDataBlik as SetupIntentModifyParamsPaymentMethodDataBlik, SetupIntentModifyParamsPaymentMethodDataBoleto as SetupIntentModifyParamsPaymentMethodDataBoleto, SetupIntentModifyParamsPaymentMethodDataCashapp as SetupIntentModifyParamsPaymentMethodDataCashapp, @@ -3248,6 +3311,7 @@ SetupIntentModifyParamsPaymentMethodDataRevolutPay as SetupIntentModifyParamsPaymentMethodDataRevolutPay, SetupIntentModifyParamsPaymentMethodDataSamsungPay as SetupIntentModifyParamsPaymentMethodDataSamsungPay, SetupIntentModifyParamsPaymentMethodDataSatispay as SetupIntentModifyParamsPaymentMethodDataSatispay, + SetupIntentModifyParamsPaymentMethodDataScalapay as SetupIntentModifyParamsPaymentMethodDataScalapay, SetupIntentModifyParamsPaymentMethodDataSepaDebit as SetupIntentModifyParamsPaymentMethodDataSepaDebit, SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort, SetupIntentModifyParamsPaymentMethodDataSunbit as SetupIntentModifyParamsPaymentMethodDataSunbit, @@ -3264,6 +3328,7 @@ SetupIntentModifyParamsPaymentMethodOptionsAmazonPay as SetupIntentModifyParamsPaymentMethodOptionsAmazonPay, SetupIntentModifyParamsPaymentMethodOptionsBacsDebit as SetupIntentModifyParamsPaymentMethodOptionsBacsDebit, SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentModifyParamsPaymentMethodOptionsBizum as SetupIntentModifyParamsPaymentMethodOptionsBizum, SetupIntentModifyParamsPaymentMethodOptionsCard as SetupIntentModifyParamsPaymentMethodOptionsCard, SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions, SetupIntentModifyParamsPaymentMethodOptionsCardPresent as SetupIntentModifyParamsPaymentMethodOptionsCardPresent, @@ -3308,6 +3373,7 @@ SetupIntentUpdateParamsPaymentMethodDataBillie as SetupIntentUpdateParamsPaymentMethodDataBillie, SetupIntentUpdateParamsPaymentMethodDataBillingDetails as SetupIntentUpdateParamsPaymentMethodDataBillingDetails, SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress as SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentUpdateParamsPaymentMethodDataBizum as SetupIntentUpdateParamsPaymentMethodDataBizum, SetupIntentUpdateParamsPaymentMethodDataBlik as SetupIntentUpdateParamsPaymentMethodDataBlik, SetupIntentUpdateParamsPaymentMethodDataBoleto as SetupIntentUpdateParamsPaymentMethodDataBoleto, SetupIntentUpdateParamsPaymentMethodDataCashapp as SetupIntentUpdateParamsPaymentMethodDataCashapp, @@ -3343,6 +3409,7 @@ SetupIntentUpdateParamsPaymentMethodDataRevolutPay as SetupIntentUpdateParamsPaymentMethodDataRevolutPay, SetupIntentUpdateParamsPaymentMethodDataSamsungPay as SetupIntentUpdateParamsPaymentMethodDataSamsungPay, SetupIntentUpdateParamsPaymentMethodDataSatispay as SetupIntentUpdateParamsPaymentMethodDataSatispay, + SetupIntentUpdateParamsPaymentMethodDataScalapay as SetupIntentUpdateParamsPaymentMethodDataScalapay, SetupIntentUpdateParamsPaymentMethodDataSepaDebit as SetupIntentUpdateParamsPaymentMethodDataSepaDebit, SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort, SetupIntentUpdateParamsPaymentMethodDataSunbit as SetupIntentUpdateParamsPaymentMethodDataSunbit, @@ -3359,6 +3426,7 @@ SetupIntentUpdateParamsPaymentMethodOptionsAmazonPay as SetupIntentUpdateParamsPaymentMethodOptionsAmazonPay, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentUpdateParamsPaymentMethodOptionsBizum as SetupIntentUpdateParamsPaymentMethodOptionsBizum, SetupIntentUpdateParamsPaymentMethodOptionsCard as SetupIntentUpdateParamsPaymentMethodOptionsCard, SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentUpdateParamsPaymentMethodOptionsCardPresent as SetupIntentUpdateParamsPaymentMethodOptionsCardPresent, @@ -3486,6 +3554,10 @@ SubscriptionCreateParamsBillingCycleAnchorConfig as SubscriptionCreateParamsBillingCycleAnchorConfig, SubscriptionCreateParamsBillingMode as SubscriptionCreateParamsBillingMode, SubscriptionCreateParamsBillingModeFlexible as SubscriptionCreateParamsBillingModeFlexible, + SubscriptionCreateParamsBillingSchedule as SubscriptionCreateParamsBillingSchedule, + SubscriptionCreateParamsBillingScheduleAppliesTo as SubscriptionCreateParamsBillingScheduleAppliesTo, + SubscriptionCreateParamsBillingScheduleBillUntil as SubscriptionCreateParamsBillingScheduleBillUntil, + SubscriptionCreateParamsBillingScheduleBillUntilDuration as SubscriptionCreateParamsBillingScheduleBillUntilDuration, SubscriptionCreateParamsBillingThresholds as SubscriptionCreateParamsBillingThresholds, SubscriptionCreateParamsDiscount as SubscriptionCreateParamsDiscount, SubscriptionCreateParamsInvoiceSettings as SubscriptionCreateParamsInvoiceSettings, @@ -3576,6 +3648,10 @@ SubscriptionModifyParamsAddInvoiceItemPriceData as SubscriptionModifyParamsAddInvoiceItemPriceData, SubscriptionModifyParamsAutomaticTax as SubscriptionModifyParamsAutomaticTax, SubscriptionModifyParamsAutomaticTaxLiability as SubscriptionModifyParamsAutomaticTaxLiability, + SubscriptionModifyParamsBillingSchedule as SubscriptionModifyParamsBillingSchedule, + SubscriptionModifyParamsBillingScheduleAppliesTo as SubscriptionModifyParamsBillingScheduleAppliesTo, + SubscriptionModifyParamsBillingScheduleBillUntil as SubscriptionModifyParamsBillingScheduleBillUntil, + SubscriptionModifyParamsBillingScheduleBillUntilDuration as SubscriptionModifyParamsBillingScheduleBillUntilDuration, SubscriptionModifyParamsBillingThresholds as SubscriptionModifyParamsBillingThresholds, SubscriptionModifyParamsCancellationDetails as SubscriptionModifyParamsCancellationDetails, SubscriptionModifyParamsDiscount as SubscriptionModifyParamsDiscount, @@ -3740,6 +3816,10 @@ SubscriptionUpdateParamsAddInvoiceItemPriceData as SubscriptionUpdateParamsAddInvoiceItemPriceData, SubscriptionUpdateParamsAutomaticTax as SubscriptionUpdateParamsAutomaticTax, SubscriptionUpdateParamsAutomaticTaxLiability as SubscriptionUpdateParamsAutomaticTaxLiability, + SubscriptionUpdateParamsBillingSchedule as SubscriptionUpdateParamsBillingSchedule, + SubscriptionUpdateParamsBillingScheduleAppliesTo as SubscriptionUpdateParamsBillingScheduleAppliesTo, + SubscriptionUpdateParamsBillingScheduleBillUntil as SubscriptionUpdateParamsBillingScheduleBillUntil, + SubscriptionUpdateParamsBillingScheduleBillUntilDuration as SubscriptionUpdateParamsBillingScheduleBillUntilDuration, SubscriptionUpdateParamsBillingThresholds as SubscriptionUpdateParamsBillingThresholds, SubscriptionUpdateParamsCancellationDetails as SubscriptionUpdateParamsCancellationDetails, SubscriptionUpdateParamsDiscount as SubscriptionUpdateParamsDiscount, @@ -4063,6 +4143,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesBizumPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesBlikPayments": ( "stripe.params._account_create_params", False, @@ -4219,6 +4303,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesScalapayPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesSepaBankTransferPayments": ( "stripe.params._account_create_params", False, @@ -5167,6 +5255,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesBizumPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesBlikPayments": ( "stripe.params._account_update_params", False, @@ -5323,6 +5415,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesScalapayPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesSepaBankTransferPayments": ( "stripe.params._account_update_params", False, @@ -5649,6 +5745,10 @@ "stripe.params._balance_settings_modify_params", False, ), + "BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency": ( + "stripe.params._balance_settings_modify_params", + False, + ), "BalanceSettingsModifyParamsPaymentsPayoutsSchedule": ( "stripe.params._balance_settings_modify_params", False, @@ -5657,6 +5757,10 @@ "stripe.params._balance_settings_modify_params", False, ), + "BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay": ( + "stripe.params._balance_settings_modify_params", + False, + ), "BalanceSettingsRetrieveParams": ( "stripe.params._balance_settings_retrieve_params", False, @@ -5673,6 +5777,10 @@ "stripe.params._balance_settings_update_params", False, ), + "BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency": ( + "stripe.params._balance_settings_update_params", + False, + ), "BalanceSettingsUpdateParamsPaymentsPayoutsSchedule": ( "stripe.params._balance_settings_update_params", False, @@ -5681,6 +5789,10 @@ "stripe.params._balance_settings_update_params", False, ), + "BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay": ( + "stripe.params._balance_settings_update_params", + False, + ), "BalanceTransactionListParams": ( "stripe.params._balance_transaction_list_params", False, @@ -5818,6 +5930,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataBizum": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBlik": ( "stripe.params._confirmation_token_create_params", False, @@ -5958,6 +6074,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._confirmation_token_create_params", False, @@ -7038,6 +7158,22 @@ "stripe.params._invoice_create_preview_params", False, ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration": ( + "stripe.params._invoice_create_preview_params", + False, + ), "InvoiceCreatePreviewParamsSubscriptionDetailsItem": ( "stripe.params._invoice_create_preview_params", False, @@ -7792,6 +7928,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_confirm_params", False, @@ -7932,6 +8072,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -8024,6 +8168,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_confirm_params", False, @@ -8220,6 +8368,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -8420,6 +8572,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_create_params", False, @@ -8560,6 +8716,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_create_params", False, @@ -8652,6 +8812,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_create_params", False, @@ -8848,6 +9012,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_create_params", False, @@ -8920,6 +9088,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentIncrementAuthorizationParams": ( "stripe.params._payment_intent_increment_authorization_params", False, @@ -9108,6 +9280,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_modify_params", False, @@ -9248,6 +9424,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -9340,6 +9520,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_modify_params", False, @@ -9536,6 +9720,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -9604,6 +9792,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentRetrieveParams": ( "stripe.params._payment_intent_retrieve_params", False, @@ -9724,6 +9916,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_update_params", False, @@ -9864,6 +10060,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_update_params", False, @@ -9956,6 +10156,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_update_params", False, @@ -10152,6 +10356,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_update_params", False, @@ -10220,6 +10428,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentVerifyMicrodepositsParams": ( "stripe.params._payment_intent_verify_microdeposits_params", False, @@ -10368,6 +10580,18 @@ "stripe.params._payment_link_create_params", False, ), + "PaymentLinkCreateParamsPaymentMethodOptions": ( + "stripe.params._payment_link_create_params", + False, + ), + "PaymentLinkCreateParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_create_params", + False, + ), + "PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_create_params", + False, + ), "PaymentLinkCreateParamsPhoneNumberCollection": ( "stripe.params._payment_link_create_params", False, @@ -10548,6 +10772,18 @@ "stripe.params._payment_link_modify_params", False, ), + "PaymentLinkModifyParamsPaymentMethodOptions": ( + "stripe.params._payment_link_modify_params", + False, + ), + "PaymentLinkModifyParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_modify_params", + False, + ), + "PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_modify_params", + False, + ), "PaymentLinkModifyParamsPhoneNumberCollection": ( "stripe.params._payment_link_modify_params", False, @@ -10712,6 +10948,18 @@ "stripe.params._payment_link_update_params", False, ), + "PaymentLinkUpdateParamsPaymentMethodOptions": ( + "stripe.params._payment_link_update_params", + False, + ), + "PaymentLinkUpdateParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_update_params", + False, + ), + "PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_update_params", + False, + ), "PaymentLinkUpdateParamsPhoneNumberCollection": ( "stripe.params._payment_link_update_params", False, @@ -10856,6 +11104,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsBizum": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsBlik": ( "stripe.params._payment_method_configuration_create_params", False, @@ -11152,6 +11408,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsScalapay": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsSepaDebit": ( "stripe.params._payment_method_configuration_create_params", False, @@ -11328,6 +11592,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsBizum": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsBlik": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -11624,6 +11896,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsScalapay": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsSepaDebit": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -11800,6 +12080,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsBizum": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsBlik": ( "stripe.params._payment_method_configuration_update_params", False, @@ -12096,6 +12384,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsScalapay": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsSepaDebit": ( "stripe.params._payment_method_configuration_update_params", False, @@ -12220,6 +12516,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsBizum": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsBlik": ( "stripe.params._payment_method_create_params", False, @@ -12372,6 +12672,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsScalapay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsSepaDebit": ( "stripe.params._payment_method_create_params", False, @@ -13120,6 +13424,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_confirm_params", False, @@ -13260,6 +13568,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_confirm_params", False, @@ -13324,6 +13636,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_confirm_params", False, @@ -13500,6 +13816,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_create_params", False, @@ -13640,6 +13960,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_create_params", False, @@ -13704,6 +14028,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_create_params", False, @@ -13872,6 +14200,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_modify_params", False, @@ -14012,6 +14344,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_modify_params", False, @@ -14076,6 +14412,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_modify_params", False, @@ -14236,6 +14576,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_update_params", False, @@ -14376,6 +14720,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_update_params", False, @@ -14440,6 +14788,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_update_params", False, @@ -14793,6 +15145,22 @@ "stripe.params._subscription_create_params", False, ), + "SubscriptionCreateParamsBillingSchedule": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsBillingScheduleAppliesTo": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsBillingScheduleBillUntil": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsBillingScheduleBillUntilDuration": ( + "stripe.params._subscription_create_params", + False, + ), "SubscriptionCreateParamsBillingThresholds": ( "stripe.params._subscription_create_params", False, @@ -15073,6 +15441,22 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsBillingSchedule": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsBillingScheduleAppliesTo": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsBillingScheduleBillUntil": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsBillingScheduleBillUntilDuration": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsBillingThresholds": ( "stripe.params._subscription_modify_params", False, @@ -15641,6 +16025,22 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsBillingSchedule": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsBillingScheduleAppliesTo": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsBillingScheduleBillUntil": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsBillingScheduleBillUntilDuration": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsBillingThresholds": ( "stripe.params._subscription_update_params", False, diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 325208805..be5e3f9e0 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -281,6 +281,10 @@ class AccountCreateParamsCapabilities(TypedDict): """ The billie_payments capability. """ + bizum_payments: NotRequired["AccountCreateParamsCapabilitiesBizumPayments"] + """ + The bizum_payments capability. + """ blik_payments: NotRequired["AccountCreateParamsCapabilitiesBlikPayments"] """ The blik_payments capability. @@ -489,6 +493,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The satispay_payments capability. """ + scalapay_payments: NotRequired[ + "AccountCreateParamsCapabilitiesScalapayPayments" + ] + """ + The scalapay_payments capability. + """ sepa_bank_transfer_payments: NotRequired[ "AccountCreateParamsCapabilitiesSepaBankTransferPayments" ] @@ -640,6 +650,13 @@ class AccountCreateParamsCapabilitiesBilliePayments(TypedDict): """ +class AccountCreateParamsCapabilitiesBizumPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountCreateParamsCapabilitiesBlikPayments(TypedDict): requested: NotRequired[bool] """ @@ -913,6 +930,13 @@ class AccountCreateParamsCapabilitiesSatispayPayments(TypedDict): """ +class AccountCreateParamsCapabilitiesScalapayPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountCreateParamsCapabilitiesSepaBankTransferPayments(TypedDict): requested: NotRequired[bool] """ diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index 884c0417d..2e0a7d6e4 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -268,6 +268,10 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The billie_payments capability. """ + bizum_payments: NotRequired["AccountUpdateParamsCapabilitiesBizumPayments"] + """ + The bizum_payments capability. + """ blik_payments: NotRequired["AccountUpdateParamsCapabilitiesBlikPayments"] """ The blik_payments capability. @@ -476,6 +480,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The satispay_payments capability. """ + scalapay_payments: NotRequired[ + "AccountUpdateParamsCapabilitiesScalapayPayments" + ] + """ + The scalapay_payments capability. + """ sepa_bank_transfer_payments: NotRequired[ "AccountUpdateParamsCapabilitiesSepaBankTransferPayments" ] @@ -627,6 +637,13 @@ class AccountUpdateParamsCapabilitiesBilliePayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesBizumPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountUpdateParamsCapabilitiesBlikPayments(TypedDict): requested: NotRequired[bool] """ @@ -900,6 +917,13 @@ class AccountUpdateParamsCapabilitiesSatispayPayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesScalapayPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountUpdateParamsCapabilitiesSepaBankTransferPayments(TypedDict): requested: NotRequired[bool] """ diff --git a/stripe/params/_balance_settings_modify_params.py b/stripe/params/_balance_settings_modify_params.py index b29845675..92adc1c0f 100644 --- a/stripe/params/_balance_settings_modify_params.py +++ b/stripe/params/_balance_settings_modify_params.py @@ -35,6 +35,12 @@ class BalanceSettingsModifyParamsPayments(TypedDict): class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict): + automatic_transfer_rules_by_currency: NotRequired[ + "Literal['']|Dict[str, Union[Literal[''], List[BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]|UntypedStripeObject[Union[Literal[''], List[BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]" + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: NotRequired[ "Literal['']|Dict[str, Union[Literal[''], int]]|UntypedStripeObject[Union[Literal[''], int]]" ] @@ -51,6 +57,23 @@ class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict): """ +class BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency( + TypedDict, +): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: NotRequired[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + + class BalanceSettingsModifyParamsPaymentsPayoutsSchedule(TypedDict): interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]] """ @@ -73,3 +96,24 @@ class BalanceSettingsModifyParamsPaymentsSettlementTiming(TypedDict): """ Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](https://docs.stripe.com/connect/manage-payout-schedule). """ + start_of_day: NotRequired[ + "Literal['']|BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay" + ] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + + +class BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay(TypedDict): + hour: NotRequired[int] + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: NotRequired[int] + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: NotRequired[str] + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ diff --git a/stripe/params/_balance_settings_update_params.py b/stripe/params/_balance_settings_update_params.py index af7de3215..c10275d06 100644 --- a/stripe/params/_balance_settings_update_params.py +++ b/stripe/params/_balance_settings_update_params.py @@ -34,6 +34,12 @@ class BalanceSettingsUpdateParamsPayments(TypedDict): class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): + automatic_transfer_rules_by_currency: NotRequired[ + "Literal['']|Dict[str, Union[Literal[''], List[BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]|UntypedStripeObject[Union[Literal[''], List[BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]" + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: NotRequired[ "Literal['']|Dict[str, Union[Literal[''], int]]|UntypedStripeObject[Union[Literal[''], int]]" ] @@ -50,6 +56,23 @@ class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): """ +class BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency( + TypedDict, +): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: NotRequired[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + + class BalanceSettingsUpdateParamsPaymentsPayoutsSchedule(TypedDict): interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]] """ @@ -72,3 +95,24 @@ class BalanceSettingsUpdateParamsPaymentsSettlementTiming(TypedDict): """ Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](https://docs.stripe.com/connect/manage-payout-schedule). """ + start_of_day: NotRequired[ + "Literal['']|BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay" + ] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + + +class BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay(TypedDict): + hour: NotRequired[int] + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: NotRequired[int] + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: NotRequired[str] + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ diff --git a/stripe/params/_charge_create_params.py b/stripe/params/_charge_create_params.py index b2a13998a..6d5b58deb 100644 --- a/stripe/params/_charge_create_params.py +++ b/stripe/params/_charge_create_params.py @@ -156,6 +156,10 @@ class ChargeCreateParamsTransferData(TypedDict): """ The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: str """ ID of an existing, connected Stripe account. diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index 8fb039209..b1d21fb89 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -106,6 +106,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -184,7 +188,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMbWay"] """ @@ -282,6 +286,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit" ] @@ -315,6 +325,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -347,6 +358,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -503,6 +515,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class ConfirmationTokenCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -819,6 +835,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py index dedcc2412..b733bf134 100644 --- a/stripe/params/_customer_list_payment_methods_params.py +++ b/stripe/params/_customer_list_payment_methods_params.py @@ -38,6 +38,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -72,6 +73,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py index 32e4f640e..6c7227348 100644 --- a/stripe/params/_customer_payment_method_list_params.py +++ b/stripe/params/_customer_payment_method_list_params.py @@ -37,6 +37,7 @@ class CustomerPaymentMethodListParams(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -71,6 +72,7 @@ class CustomerPaymentMethodListParams(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index f8c6298e7..f95675082 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -229,7 +229,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index c3fb7f196..6b92ce798 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -632,6 +632,10 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhase(TypedDict): class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List[ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount" @@ -977,8 +981,14 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict): """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. """ + billing_schedules: NotRequired[ + "Literal['']|List[InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule]" + ] + """ + Sets the billing schedules for the subscription. + """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -1047,6 +1057,72 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible( """ +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule(TypedDict): + applies_to: NotRequired[ + List[ + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo" + ] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_until: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil" + ] + """ + The end date for the billing schedule. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo( + TypedDict, +): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil( + TypedDict, +): + duration: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration" + ] + """ + Specifies the billing period. + """ + timestamp: NotRequired[int] + """ + The end date of the billing schedule. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + + class InvoiceCreatePreviewParamsSubscriptionDetailsItem(TypedDict): billing_thresholds: NotRequired[ "Literal['']|InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds" diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index c625f75c7..c1ec68ac0 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -196,7 +196,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index 3850c95c9..c5f9d2eb9 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -195,7 +195,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_payment_intent_capture_params.py b/stripe/params/_payment_intent_capture_params.py index 34a08289f..98fa8f708 100644 --- a/stripe/params/_payment_intent_capture_params.py +++ b/stripe/params/_payment_intent_capture_params.py @@ -237,11 +237,11 @@ class PaymentIntentCaptureParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index a96df9d88..a0c63009b 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -34,7 +34,7 @@ class PaymentIntentConfirmParams(RequestOptions): Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication). """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -56,7 +56,7 @@ class PaymentIntentConfirmParams(RequestOptions): ] off_session: NotRequired["bool|Literal['one_off', 'recurring']"] """ - Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). + Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). """ payment_details: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentDetails" @@ -302,11 +302,11 @@ class PaymentIntentConfirmParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ @@ -467,6 +467,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -535,7 +539,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataMbWay"] """ @@ -633,6 +637,12 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit" ] @@ -666,6 +676,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -698,6 +709,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -852,6 +864,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentConfirmParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataBlik(TypedDict): pass @@ -1168,6 +1184,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentConfirmParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1314,6 +1334,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBlik" ] @@ -1420,7 +1446,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMbWay" @@ -1524,6 +1550,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit" ] @@ -1827,6 +1859,10 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -3030,6 +3066,17 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -3109,7 +3156,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentConfirmParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 19f566827..d8be7545b 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -86,6 +86,7 @@ class PaymentIntentCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -118,6 +119,7 @@ class PaymentIntentCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -157,7 +159,7 @@ class PaymentIntentCreateParams(RequestOptions): """ off_session: NotRequired["bool|Literal['one_off', 'recurring']"] """ - Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). + Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). """ on_behalf_of: NotRequired[str] """ @@ -425,11 +427,11 @@ class PaymentIntentCreateParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ @@ -601,6 +603,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -669,7 +675,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMbWay"] """ @@ -765,6 +771,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataSepaDebit" ] @@ -798,6 +808,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -830,6 +841,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -984,6 +996,10 @@ class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -1300,6 +1316,10 @@ class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1446,6 +1466,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBlik" ] @@ -1552,7 +1578,7 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMbWay" @@ -1656,6 +1682,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit" ] @@ -1957,6 +1989,10 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -3156,6 +3192,17 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -3235,7 +3282,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentCreateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3495,6 +3542,10 @@ class PaymentIntentCreateParamsTransferData(TypedDict): [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount) might be a better fit for your integration. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: str """ If specified, successful charges will be attributed to the destination @@ -3502,3 +3553,28 @@ class PaymentIntentCreateParamsTransferData(TypedDict): to the destination account. The ID of the resulting transfer will be returned on the successful charge's `transfer` field. """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + payment_data: NotRequired[ + "PaymentIntentCreateParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentCreateParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ diff --git a/stripe/params/_payment_intent_increment_authorization_params.py b/stripe/params/_payment_intent_increment_authorization_params.py index e5803cab1..478364bff 100644 --- a/stripe/params/_payment_intent_increment_authorization_params.py +++ b/stripe/params/_payment_intent_increment_authorization_params.py @@ -243,11 +243,11 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsShipping( """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index c9636e1e6..c4169ca30 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -52,7 +52,7 @@ class PaymentIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -322,11 +322,11 @@ class PaymentIntentModifyParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ @@ -438,6 +438,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -506,7 +510,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentModifyParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentModifyParamsPaymentMethodDataMbWay"] """ @@ -602,6 +606,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataSepaDebit" ] @@ -635,6 +643,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -667,6 +676,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -821,6 +831,10 @@ class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentModifyParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataBlik(TypedDict): pass @@ -1137,6 +1151,10 @@ class PaymentIntentModifyParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentModifyParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1283,6 +1301,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBlik" ] @@ -1389,7 +1413,7 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMbWay" @@ -1493,6 +1517,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit" ] @@ -1794,6 +1824,10 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -2993,6 +3027,17 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -3072,7 +3117,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentModifyParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3319,3 +3364,32 @@ class PaymentIntentModifyParamsTransferData(TypedDict): """ The amount that will be transferred automatically when a charge succeeds. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + payment_data: NotRequired[ + "PaymentIntentModifyParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentModifyParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index 9bab2d5ab..b2305f084 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -51,7 +51,7 @@ class PaymentIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -321,11 +321,11 @@ class PaymentIntentUpdateParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ @@ -437,6 +437,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -505,7 +509,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataMbWay"] """ @@ -601,6 +605,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit" ] @@ -634,6 +642,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -666,6 +675,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -820,6 +830,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentUpdateParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataBlik(TypedDict): pass @@ -1136,6 +1150,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentUpdateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1282,6 +1300,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBlik" ] @@ -1388,7 +1412,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMbWay" @@ -1492,6 +1516,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit" ] @@ -1793,6 +1823,10 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -2992,6 +3026,17 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -3071,7 +3116,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentUpdateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3318,3 +3363,32 @@ class PaymentIntentUpdateParamsTransferData(TypedDict): """ The amount that will be transferred automatically when a charge succeeds. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + payment_data: NotRequired[ + "PaymentIntentUpdateParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentUpdateParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index b2747a033..0b975c6cb 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -104,6 +104,9 @@ class PaymentLinkCreateParams(RequestOptions): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). """ + payment_method_options: NotRequired[ + "PaymentLinkCreateParamsPaymentMethodOptions" + ] payment_method_types: NotRequired[ List[ Literal[ @@ -115,6 +118,7 @@ class PaymentLinkCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -264,7 +268,7 @@ class PaymentLinkCreateParamsConsentCollection(TypedDict): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: NotRequired[Literal["none", "required"]] """ @@ -743,6 +747,38 @@ class PaymentLinkCreateParamsPaymentIntentData(TypedDict): """ +class PaymentLinkCreateParamsPaymentMethodOptions(TypedDict): + card: NotRequired["PaymentLinkCreateParamsPaymentMethodOptionsCard"] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkCreateParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + List[ + Literal[ + "american_express", + "discover_global_network", + "mastercard", + "visa", + ] + ] + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkCreateParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py index 884ea67df..3fd8a899c 100644 --- a/stripe/params/_payment_link_modify_params.py +++ b/stripe/params/_payment_link_modify_params.py @@ -89,8 +89,14 @@ class PaymentLinkModifyParams(RequestOptions): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). """ + payment_method_options: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptions" + ] + """ + Payment-method-specific configuration. + """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). @@ -546,6 +552,33 @@ class PaymentLinkModifyParamsPaymentIntentData(TypedDict): """ +class PaymentLinkModifyParamsPaymentMethodOptions(TypedDict): + card: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptionsCard" + ] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkModifyParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + "Literal['']|List[Literal['american_express', 'discover_global_network', 'mastercard', 'visa']]" + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkModifyParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py index 25fde04bb..54254f40b 100644 --- a/stripe/params/_payment_link_update_params.py +++ b/stripe/params/_payment_link_update_params.py @@ -88,8 +88,14 @@ class PaymentLinkUpdateParams(TypedDict): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). """ + payment_method_options: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptions" + ] + """ + Payment-method-specific configuration. + """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). @@ -545,6 +551,33 @@ class PaymentLinkUpdateParamsPaymentIntentData(TypedDict): """ +class PaymentLinkUpdateParamsPaymentMethodOptions(TypedDict): + card: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptionsCard" + ] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkUpdateParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + "Literal['']|List[Literal['american_express', 'discover_global_network', 'mastercard', 'visa']]" + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkUpdateParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_method_configuration_create_params.py b/stripe/params/_payment_method_configuration_create_params.py index eba0d81e2..200f76569 100644 --- a/stripe/params/_payment_method_configuration_create_params.py +++ b/stripe/params/_payment_method_configuration_create_params.py @@ -60,6 +60,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationCreateParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationCreateParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -232,6 +236,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationCreateParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationCreateParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -480,6 +488,22 @@ class PaymentMethodConfigurationCreateParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationCreateParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsBlikDisplayPreference" @@ -1108,6 +1132,24 @@ class PaymentMethodConfigurationCreateParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationCreateParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_list_params.py b/stripe/params/_payment_method_configuration_list_params.py index 260d38878..cc2bce98b 100644 --- a/stripe/params/_payment_method_configuration_list_params.py +++ b/stripe/params/_payment_method_configuration_list_params.py @@ -6,6 +6,10 @@ class PaymentMethodConfigurationListParams(RequestOptions): + active: NotRequired[bool] + """ + Whether the configuration is active. + """ application: NotRequired["Literal['']|str"] """ The Connect application to filter by. diff --git a/stripe/params/_payment_method_configuration_modify_params.py b/stripe/params/_payment_method_configuration_modify_params.py index 87151caf4..90f8a3b66 100644 --- a/stripe/params/_payment_method_configuration_modify_params.py +++ b/stripe/params/_payment_method_configuration_modify_params.py @@ -64,6 +64,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationModifyParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationModifyParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -232,6 +236,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationModifyParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationModifyParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -480,6 +488,22 @@ class PaymentMethodConfigurationModifyParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationModifyParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsBlikDisplayPreference" @@ -1108,6 +1132,24 @@ class PaymentMethodConfigurationModifyParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationModifyParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_update_params.py b/stripe/params/_payment_method_configuration_update_params.py index 239cac6e0..044fe5bf8 100644 --- a/stripe/params/_payment_method_configuration_update_params.py +++ b/stripe/params/_payment_method_configuration_update_params.py @@ -63,6 +63,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationUpdateParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationUpdateParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -231,6 +235,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationUpdateParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationUpdateParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -479,6 +487,22 @@ class PaymentMethodConfigurationUpdateParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationUpdateParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsBlikDisplayPreference" @@ -1107,6 +1131,24 @@ class PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationUpdateParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 177ffa5d7..bed5bfdb9 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -55,6 +55,10 @@ class PaymentMethodCreateParams(RequestOptions): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentMethodCreateParamsBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentMethodCreateParamsBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -133,7 +137,7 @@ class PaymentMethodCreateParams(RequestOptions): """ link: NotRequired["PaymentMethodCreateParamsLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentMethodCreateParamsMbWay"] """ @@ -215,6 +219,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentMethodCreateParamsScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired["PaymentMethodCreateParamsSepaDebit"] """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. @@ -247,6 +255,7 @@ class PaymentMethodCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -281,6 +290,7 @@ class PaymentMethodCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -430,6 +440,10 @@ class PaymentMethodCreateParamsBillingDetailsAddress(TypedDict): """ +class PaymentMethodCreateParamsBizum(TypedDict): + pass + + class PaymentMethodCreateParamsBlik(TypedDict): pass @@ -787,6 +801,10 @@ class PaymentMethodCreateParamsSatispay(TypedDict): pass +class PaymentMethodCreateParamsScalapay(TypedDict): + pass + + class PaymentMethodCreateParamsSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py index 0a3ecbbf6..88fe74935 100644 --- a/stripe/params/_payment_method_list_params.py +++ b/stripe/params/_payment_method_list_params.py @@ -46,6 +46,7 @@ class PaymentMethodListParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -80,6 +81,7 @@ class PaymentMethodListParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", diff --git a/stripe/params/_payout_create_params.py b/stripe/params/_payout_create_params.py index d4ddff0ea..d97efb1ef 100644 --- a/stripe/params/_payout_create_params.py +++ b/stripe/params/_payout_create_params.py @@ -45,5 +45,5 @@ class PayoutCreateParams(RequestOptions): """ statement_descriptor: NotRequired[str] """ - A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. + A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. For US ACH payouts, this maps to the ACH Company Entry Description field, which the NACHA standard limits to 10 characters. Stripe truncates descriptors longer than 10 characters for US ACH payouts. """ diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index e7e4e3154..b4a90c0d9 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -159,6 +159,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentConfirmParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentConfirmParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -225,7 +229,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentConfirmParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentConfirmParamsPaymentMethodDataMbWay"] """ @@ -319,6 +323,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentConfirmParamsPaymentMethodDataSepaDebit" ] @@ -352,6 +360,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -384,6 +393,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -538,6 +548,10 @@ class SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ +class SetupIntentConfirmParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataBlik(TypedDict): pass @@ -854,6 +868,10 @@ class SetupIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -958,6 +976,10 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -974,7 +996,7 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsPaypal"] """ @@ -1074,6 +1096,10 @@ class SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index 32daeb603..6fb00af9b 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -58,6 +58,7 @@ class SetupIntentCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -90,6 +91,7 @@ class SetupIntentCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -293,6 +295,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -359,7 +365,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentCreateParamsPaymentMethodDataMbWay"] """ @@ -449,6 +455,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentCreateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentCreateParamsPaymentMethodDataSepaDebit" ] @@ -482,6 +492,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -514,6 +525,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -666,6 +678,10 @@ class SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -982,6 +998,10 @@ class SetupIntentCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1086,6 +1106,10 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1102,7 +1126,7 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsPaypal"] """ @@ -1202,6 +1226,10 @@ class SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index bbbf21ae7..d8e028871 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -30,7 +30,7 @@ class SetupIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -141,6 +141,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentModifyParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentModifyParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -207,7 +211,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentModifyParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentModifyParamsPaymentMethodDataMbWay"] """ @@ -297,6 +301,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentModifyParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentModifyParamsPaymentMethodDataSepaDebit" ] @@ -330,6 +338,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -362,6 +371,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -514,6 +524,10 @@ class SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataBlik(TypedDict): pass @@ -830,6 +844,10 @@ class SetupIntentModifyParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -934,6 +952,10 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -950,7 +972,7 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsPaypal"] """ @@ -1050,6 +1072,10 @@ class SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index a483715a9..63dae872e 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -29,7 +29,7 @@ class SetupIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -140,6 +140,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentUpdateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentUpdateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -206,7 +210,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentUpdateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentUpdateParamsPaymentMethodDataMbWay"] """ @@ -296,6 +300,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentUpdateParamsPaymentMethodDataSepaDebit" ] @@ -329,6 +337,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -361,6 +370,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -513,6 +523,10 @@ class SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataBlik(TypedDict): pass @@ -829,6 +843,10 @@ class SetupIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -933,6 +951,10 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -949,7 +971,7 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsPaypal"] """ @@ -1049,6 +1071,10 @@ class SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index 1ba8dcab2..b2daef377 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -40,13 +40,21 @@ class SubscriptionCreateParams(RequestOptions): """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. """ + billing_schedules: NotRequired[ + List["SubscriptionCreateParamsBillingSchedule"] + ] + """ + Sets the billing schedules for the subscription. + """ billing_thresholds: NotRequired[ "Literal['']|SubscriptionCreateParamsBillingThresholds" ] """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ - cancel_at: NotRequired["int|Literal['max_period_end', 'min_period_end']"] + cancel_at: NotRequired[ + "int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -133,17 +141,7 @@ class SubscriptionCreateParams(RequestOptions): ] ] """ - Only applies to subscriptions with `collection_method=charge_automatically`. - - Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription's invoice, such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state. - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/upgrades#2019-03-14) to learn more. - - `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription. - - Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. + Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. """ payment_settings: NotRequired["SubscriptionCreateParamsPaymentSettings"] """ @@ -184,6 +182,10 @@ class SubscriptionCreateParams(RequestOptions): class SubscriptionCreateParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionCreateParamsAddInvoiceItemDiscount"] ] @@ -350,6 +352,62 @@ class SubscriptionCreateParamsBillingModeFlexible(TypedDict): """ +class SubscriptionCreateParamsBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["SubscriptionCreateParamsBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_until: "SubscriptionCreateParamsBillingScheduleBillUntil" + """ + The end date for the billing schedule. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class SubscriptionCreateParamsBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class SubscriptionCreateParamsBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "SubscriptionCreateParamsBillingScheduleBillUntilDuration" + ] + """ + Specifies the billing period. + """ + timestamp: NotRequired[int] + """ + The end date of the billing schedule. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + + +class SubscriptionCreateParamsBillingScheduleBillUntilDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + + class SubscriptionCreateParamsBillingThresholds(TypedDict): amount_gte: NotRequired[int] """ @@ -505,7 +563,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_subscription_item_create_params.py b/stripe/params/_subscription_item_create_params.py index 99826b1e4..43251242d 100644 --- a/stripe/params/_subscription_item_create_params.py +++ b/stripe/params/_subscription_item_create_params.py @@ -37,13 +37,7 @@ class SubscriptionItemCreateParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_item_delete_params.py b/stripe/params/_subscription_item_delete_params.py index 82aea8fea..e675cf8a1 100644 --- a/stripe/params/_subscription_item_delete_params.py +++ b/stripe/params/_subscription_item_delete_params.py @@ -18,13 +18,7 @@ class SubscriptionItemDeleteParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/params/_subscription_item_modify_params.py b/stripe/params/_subscription_item_modify_params.py index 9fb55eb2b..0f61710fc 100644 --- a/stripe/params/_subscription_item_modify_params.py +++ b/stripe/params/_subscription_item_modify_params.py @@ -43,13 +43,7 @@ class SubscriptionItemModifyParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_item_update_params.py b/stripe/params/_subscription_item_update_params.py index c6b5a26ba..a9b7d48fb 100644 --- a/stripe/params/_subscription_item_update_params.py +++ b/stripe/params/_subscription_item_update_params.py @@ -42,13 +42,7 @@ class SubscriptionItemUpdateParams(TypedDict): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index b34f00d1c..7b8512126 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -26,6 +26,12 @@ class SubscriptionModifyParams(RequestOptions): """ Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ + billing_schedules: NotRequired[ + "Literal['']|List[SubscriptionModifyParamsBillingSchedule]" + ] + """ + Sets the billing schedules for the subscription. + """ billing_thresholds: NotRequired[ "Literal['']|SubscriptionModifyParamsBillingThresholds" ] @@ -33,7 +39,7 @@ class SubscriptionModifyParams(RequestOptions): Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -78,7 +84,7 @@ class SubscriptionModifyParams(RequestOptions): "Literal['']|List[SubscriptionModifyParamsDiscount]" ] """ - The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. """ expand: NotRequired[List[str]] """ @@ -121,13 +127,7 @@ class SubscriptionModifyParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ payment_settings: NotRequired["SubscriptionModifyParamsPaymentSettings"] """ @@ -170,6 +170,10 @@ class SubscriptionModifyParams(RequestOptions): class SubscriptionModifyParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionModifyParamsAddInvoiceItemDiscount"] ] @@ -295,6 +299,62 @@ class SubscriptionModifyParamsAutomaticTaxLiability(TypedDict): """ +class SubscriptionModifyParamsBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["SubscriptionModifyParamsBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_until: NotRequired["SubscriptionModifyParamsBillingScheduleBillUntil"] + """ + The end date for the billing schedule. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class SubscriptionModifyParamsBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class SubscriptionModifyParamsBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "SubscriptionModifyParamsBillingScheduleBillUntilDuration" + ] + """ + Specifies the billing period. + """ + timestamp: NotRequired[int] + """ + The end date of the billing schedule. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + + +class SubscriptionModifyParamsBillingScheduleBillUntilDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + + class SubscriptionModifyParamsBillingThresholds(TypedDict): amount_gte: NotRequired[int] """ @@ -488,7 +548,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). 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 f86559956..cf914b417 100644 --- a/stripe/params/_subscription_schedule_create_params.py +++ b/stripe/params/_subscription_schedule_create_params.py @@ -313,6 +313,10 @@ class SubscriptionScheduleCreateParamsPhase(TypedDict): class SubscriptionScheduleCreateParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_schedule_modify_params.py b/stripe/params/_subscription_schedule_modify_params.py index 8c98581c8..66a91725d 100644 --- a/stripe/params/_subscription_schedule_modify_params.py +++ b/stripe/params/_subscription_schedule_modify_params.py @@ -283,6 +283,10 @@ class SubscriptionScheduleModifyParamsPhase(TypedDict): class SubscriptionScheduleModifyParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_schedule_update_params.py b/stripe/params/_subscription_schedule_update_params.py index b4fad43c1..02f0c4903 100644 --- a/stripe/params/_subscription_schedule_update_params.py +++ b/stripe/params/_subscription_schedule_update_params.py @@ -282,6 +282,10 @@ class SubscriptionScheduleUpdateParamsPhase(TypedDict): class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index b42611ed2..e67522480 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -25,6 +25,12 @@ class SubscriptionUpdateParams(TypedDict): """ Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ + billing_schedules: NotRequired[ + "Literal['']|List[SubscriptionUpdateParamsBillingSchedule]" + ] + """ + Sets the billing schedules for the subscription. + """ billing_thresholds: NotRequired[ "Literal['']|SubscriptionUpdateParamsBillingThresholds" ] @@ -32,7 +38,7 @@ class SubscriptionUpdateParams(TypedDict): Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -77,7 +83,7 @@ class SubscriptionUpdateParams(TypedDict): "Literal['']|List[SubscriptionUpdateParamsDiscount]" ] """ - The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. """ expand: NotRequired[List[str]] """ @@ -120,13 +126,7 @@ class SubscriptionUpdateParams(TypedDict): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ payment_settings: NotRequired["SubscriptionUpdateParamsPaymentSettings"] """ @@ -169,6 +169,10 @@ class SubscriptionUpdateParams(TypedDict): class SubscriptionUpdateParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionUpdateParamsAddInvoiceItemDiscount"] ] @@ -294,6 +298,62 @@ class SubscriptionUpdateParamsAutomaticTaxLiability(TypedDict): """ +class SubscriptionUpdateParamsBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["SubscriptionUpdateParamsBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_until: NotRequired["SubscriptionUpdateParamsBillingScheduleBillUntil"] + """ + The end date for the billing schedule. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class SubscriptionUpdateParamsBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class SubscriptionUpdateParamsBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "SubscriptionUpdateParamsBillingScheduleBillUntilDuration" + ] + """ + Specifies the billing period. + """ + timestamp: NotRequired[int] + """ + The end date of the billing schedule. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + + +class SubscriptionUpdateParamsBillingScheduleBillUntilDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + + class SubscriptionUpdateParamsBillingThresholds(TypedDict): amount_gte: NotRequired[int] """ @@ -487,7 +547,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 2988c0b2b..589cb7af2 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -132,6 +132,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2026-02-25.clover", "2026-03-25.dahlia", "2026-04-22.dahlia", + "2026-05-27.dahlia", ] ] """ diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index 23d56fe84..649df0707 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -101,6 +101,7 @@ SessionCreateParamsPaymentMethodOptionsRevolutPay as SessionCreateParamsPaymentMethodOptionsRevolutPay, SessionCreateParamsPaymentMethodOptionsSamsungPay as SessionCreateParamsPaymentMethodOptionsSamsungPay, SessionCreateParamsPaymentMethodOptionsSatispay as SessionCreateParamsPaymentMethodOptionsSatispay, + SessionCreateParamsPaymentMethodOptionsScalapay as SessionCreateParamsPaymentMethodOptionsScalapay, SessionCreateParamsPaymentMethodOptionsSepaDebit as SessionCreateParamsPaymentMethodOptionsSepaDebit, SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort, @@ -576,6 +577,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsScalapay": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params.checkout._session_create_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index 81d58f3b0..be27f5726 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -14,7 +14,7 @@ class SessionCreateParams(RequestOptions): """ after_expiration: NotRequired["SessionCreateParamsAfterExpiration"] """ - Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`. + Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `elements`. """ allow_promotion_codes: NotRequired[bool] """ @@ -30,11 +30,11 @@ class SessionCreateParams(RequestOptions): """ branding_settings: NotRequired["SessionCreateParamsBrandingSettings"] """ - The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `custom`. + The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `elements`. """ cancel_url: NotRequired[str] """ - If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`. + If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded_page` or `elements`. """ client_reference_id: NotRequired[str] """ @@ -117,6 +117,7 @@ class SessionCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -149,6 +150,7 @@ class SessionCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -272,7 +274,7 @@ class SessionCreateParams(RequestOptions): """ origin_context: NotRequired[Literal["mobile_app", "web"]] """ - Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`. + Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `elements`. """ payment_intent_data: NotRequired["SessionCreateParamsPaymentIntentData"] """ @@ -314,6 +316,7 @@ class SessionCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -347,6 +350,7 @@ class SessionCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -391,12 +395,12 @@ class SessionCreateParams(RequestOptions): Literal["always", "if_required", "never"] ] """ - This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. """ return_url: NotRequired[str] """ The URL to redirect your customer back to after they authenticate or cancel their payment on the - payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom` + payment method's app or site. This parameter is required if `ui_mode` is `embedded_page` or `elements` and redirect-based payment methods are enabled on the session. """ saved_payment_method_options: NotRequired[ @@ -427,7 +431,7 @@ class SessionCreateParams(RequestOptions): to customize relevant text on the page, such as the submit button. `submit_type` can only be specified on Checkout Sessions in `payment` or `subscription` mode. If blank or `auto`, `pay` is used. - You can't set this parameter if `ui_mode` is `custom`. + You can't set this parameter if `ui_mode` is `elements`. """ subscription_data: NotRequired["SessionCreateParamsSubscriptionData"] """ @@ -437,7 +441,7 @@ class SessionCreateParams(RequestOptions): """ The URL to which Stripe should send customers when payment or setup is complete. - This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use + This parameter is not allowed if ui_mode is `embedded_page` or `elements`. If you'd like to use information from the successful Checkout Session on your page, read the guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page). """ @@ -449,7 +453,7 @@ class SessionCreateParams(RequestOptions): Literal["elements", "embedded_page", "form", "hosted_page"] ] """ - The UI mode of the Session. Defaults to `hosted`. + The UI mode of the Session. Defaults to `hosted_page`. """ wallet_options: NotRequired["SessionCreateParamsWalletOptions"] """ @@ -584,7 +588,7 @@ class SessionCreateParamsConsentCollection(TypedDict): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: NotRequired[Literal["none", "required"]] """ @@ -1203,7 +1207,7 @@ class SessionCreateParamsPaymentMethodData(TypedDict): class SessionCreateParamsPaymentMethodOptions(TypedDict): acss_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsAcssDebit"] """ - contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`. + contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `elements`. """ affirm: NotRequired["SessionCreateParamsPaymentMethodOptionsAffirm"] """ @@ -1311,7 +1315,7 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SessionCreateParamsPaymentMethodOptionsLink"] """ - contains details about the Link payment method options. + contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mobilepay: NotRequired["SessionCreateParamsPaymentMethodOptionsMobilepay"] """ @@ -1377,6 +1381,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Satispay payment method options. """ + scalapay: NotRequired["SessionCreateParamsPaymentMethodOptionsScalapay"] + """ + contains details about the Scalapay payment method options. + """ sepa_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsSepaDebit"] """ contains details about the Sepa Debit payment method options. @@ -1715,7 +1723,7 @@ class SessionCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict): ] ] """ - Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. """ @@ -2334,6 +2342,13 @@ class SessionCreateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + + class SessionCreateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -2389,7 +2404,7 @@ class SessionCreateParamsPaymentMethodOptionsSwish(TypedDict): class SessionCreateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2930,7 +2945,7 @@ class SessionCreateParamsSubscriptionData(TypedDict): """ billing_cycle_anchor: NotRequired[int] """ - A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`. + A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`. """ billing_mode: NotRequired["SessionCreateParamsSubscriptionDataBillingMode"] """ @@ -3084,7 +3099,7 @@ class SessionCreateParamsTaxIdCollection(TypedDict): class SessionCreateParamsWalletOptions(TypedDict): link: NotRequired["SessionCreateParamsWalletOptionsLink"] """ - contains details about the Link wallet options. + contains details about the Link wallet options (Link is also known as Onelink in the UK). """ diff --git a/stripe/params/terminal/__init__.py b/stripe/params/terminal/__init__.py index 0e4fff399..a6b541217 100644 --- a/stripe/params/terminal/__init__.py +++ b/stripe/params/terminal/__init__.py @@ -35,7 +35,11 @@ ConfigurationCreateParamsTippingSek as ConfigurationCreateParamsTippingSek, ConfigurationCreateParamsTippingSgd as ConfigurationCreateParamsTippingSgd, ConfigurationCreateParamsTippingUsd as ConfigurationCreateParamsTippingUsd, + ConfigurationCreateParamsVerifoneM425 as ConfigurationCreateParamsVerifoneM425, ConfigurationCreateParamsVerifoneP400 as ConfigurationCreateParamsVerifoneP400, + ConfigurationCreateParamsVerifoneP630 as ConfigurationCreateParamsVerifoneP630, + ConfigurationCreateParamsVerifoneUx700 as ConfigurationCreateParamsVerifoneUx700, + ConfigurationCreateParamsVerifoneV660p as ConfigurationCreateParamsVerifoneV660p, ConfigurationCreateParamsWifi as ConfigurationCreateParamsWifi, ConfigurationCreateParamsWifiEnterpriseEapPeap as ConfigurationCreateParamsWifiEnterpriseEapPeap, ConfigurationCreateParamsWifiEnterpriseEapTls as ConfigurationCreateParamsWifiEnterpriseEapTls, @@ -78,7 +82,11 @@ ConfigurationModifyParamsTippingSek as ConfigurationModifyParamsTippingSek, ConfigurationModifyParamsTippingSgd as ConfigurationModifyParamsTippingSgd, ConfigurationModifyParamsTippingUsd as ConfigurationModifyParamsTippingUsd, + ConfigurationModifyParamsVerifoneM425 as ConfigurationModifyParamsVerifoneM425, ConfigurationModifyParamsVerifoneP400 as ConfigurationModifyParamsVerifoneP400, + ConfigurationModifyParamsVerifoneP630 as ConfigurationModifyParamsVerifoneP630, + ConfigurationModifyParamsVerifoneUx700 as ConfigurationModifyParamsVerifoneUx700, + ConfigurationModifyParamsVerifoneV660p as ConfigurationModifyParamsVerifoneV660p, ConfigurationModifyParamsWifi as ConfigurationModifyParamsWifi, ConfigurationModifyParamsWifiEnterpriseEapPeap as ConfigurationModifyParamsWifiEnterpriseEapPeap, ConfigurationModifyParamsWifiEnterpriseEapTls as ConfigurationModifyParamsWifiEnterpriseEapTls, @@ -118,7 +126,11 @@ ConfigurationUpdateParamsTippingSek as ConfigurationUpdateParamsTippingSek, ConfigurationUpdateParamsTippingSgd as ConfigurationUpdateParamsTippingSgd, ConfigurationUpdateParamsTippingUsd as ConfigurationUpdateParamsTippingUsd, + ConfigurationUpdateParamsVerifoneM425 as ConfigurationUpdateParamsVerifoneM425, ConfigurationUpdateParamsVerifoneP400 as ConfigurationUpdateParamsVerifoneP400, + ConfigurationUpdateParamsVerifoneP630 as ConfigurationUpdateParamsVerifoneP630, + ConfigurationUpdateParamsVerifoneUx700 as ConfigurationUpdateParamsVerifoneUx700, + ConfigurationUpdateParamsVerifoneV660p as ConfigurationUpdateParamsVerifoneV660p, ConfigurationUpdateParamsWifi as ConfigurationUpdateParamsWifi, ConfigurationUpdateParamsWifiEnterpriseEapPeap as ConfigurationUpdateParamsWifiEnterpriseEapPeap, ConfigurationUpdateParamsWifiEnterpriseEapTls as ConfigurationUpdateParamsWifiEnterpriseEapTls, @@ -350,10 +362,26 @@ "stripe.params.terminal._configuration_create_params", False, ), + "ConfigurationCreateParamsVerifoneM425": ( + "stripe.params.terminal._configuration_create_params", + False, + ), "ConfigurationCreateParamsVerifoneP400": ( "stripe.params.terminal._configuration_create_params", False, ), + "ConfigurationCreateParamsVerifoneP630": ( + "stripe.params.terminal._configuration_create_params", + False, + ), + "ConfigurationCreateParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_create_params", + False, + ), + "ConfigurationCreateParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_create_params", + False, + ), "ConfigurationCreateParamsWifi": ( "stripe.params.terminal._configuration_create_params", False, @@ -498,10 +526,26 @@ "stripe.params.terminal._configuration_modify_params", False, ), + "ConfigurationModifyParamsVerifoneM425": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), "ConfigurationModifyParamsVerifoneP400": ( "stripe.params.terminal._configuration_modify_params", False, ), + "ConfigurationModifyParamsVerifoneP630": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), + "ConfigurationModifyParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), + "ConfigurationModifyParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), "ConfigurationModifyParamsWifi": ( "stripe.params.terminal._configuration_modify_params", False, @@ -642,10 +686,26 @@ "stripe.params.terminal._configuration_update_params", False, ), + "ConfigurationUpdateParamsVerifoneM425": ( + "stripe.params.terminal._configuration_update_params", + False, + ), "ConfigurationUpdateParamsVerifoneP400": ( "stripe.params.terminal._configuration_update_params", False, ), + "ConfigurationUpdateParamsVerifoneP630": ( + "stripe.params.terminal._configuration_update_params", + False, + ), + "ConfigurationUpdateParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_update_params", + False, + ), + "ConfigurationUpdateParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_update_params", + False, + ), "ConfigurationUpdateParamsWifi": ( "stripe.params.terminal._configuration_update_params", False, diff --git a/stripe/params/terminal/_configuration_create_params.py b/stripe/params/terminal/_configuration_create_params.py index 7c3d3d215..e9e748924 100644 --- a/stripe/params/terminal/_configuration_create_params.py +++ b/stripe/params/terminal/_configuration_create_params.py @@ -46,10 +46,26 @@ class ConfigurationCreateParams(RequestOptions): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired["ConfigurationCreateParamsVerifoneM425"] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired["ConfigurationCreateParamsVerifoneP400"] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired["ConfigurationCreateParamsVerifoneP630"] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired["ConfigurationCreateParamsVerifoneUx700"] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired["ConfigurationCreateParamsVerifoneV660p"] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationCreateParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -511,6 +527,13 @@ class ConfigurationCreateParamsTippingUsd(TypedDict): """ +class ConfigurationCreateParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationCreateParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -518,6 +541,27 @@ class ConfigurationCreateParamsVerifoneP400(TypedDict): """ +class ConfigurationCreateParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationCreateParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationCreateParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationCreateParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationCreateParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_configuration_modify_params.py b/stripe/params/terminal/_configuration_modify_params.py index a6993430e..60d8efb42 100644 --- a/stripe/params/terminal/_configuration_modify_params.py +++ b/stripe/params/terminal/_configuration_modify_params.py @@ -52,12 +52,36 @@ class ConfigurationModifyParams(RequestOptions): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneM425" + ] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired[ "Literal['']|ConfigurationModifyParamsVerifoneP400" ] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneP630" + ] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneUx700" + ] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneV660p" + ] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationModifyParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -519,6 +543,13 @@ class ConfigurationModifyParamsTippingUsd(TypedDict): """ +class ConfigurationModifyParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationModifyParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -526,6 +557,27 @@ class ConfigurationModifyParamsVerifoneP400(TypedDict): """ +class ConfigurationModifyParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationModifyParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationModifyParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationModifyParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationModifyParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_configuration_update_params.py b/stripe/params/terminal/_configuration_update_params.py index 6dc96a26d..e03929938 100644 --- a/stripe/params/terminal/_configuration_update_params.py +++ b/stripe/params/terminal/_configuration_update_params.py @@ -51,12 +51,36 @@ class ConfigurationUpdateParams(TypedDict): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneM425" + ] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired[ "Literal['']|ConfigurationUpdateParamsVerifoneP400" ] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneP630" + ] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneUx700" + ] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneV660p" + ] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationUpdateParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -518,6 +542,13 @@ class ConfigurationUpdateParamsTippingUsd(TypedDict): """ +class ConfigurationUpdateParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationUpdateParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -525,6 +556,27 @@ class ConfigurationUpdateParamsVerifoneP400(TypedDict): """ +class ConfigurationUpdateParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationUpdateParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationUpdateParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationUpdateParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationUpdateParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_reader_list_params.py b/stripe/params/terminal/_reader_list_params.py index e39cb2d36..cef8d2c9f 100644 --- a/stripe/params/terminal/_reader_list_params.py +++ b/stripe/params/terminal/_reader_list_params.py @@ -14,11 +14,19 @@ class ReaderListParams(RequestOptions): "mobile_phone_reader", "simulated_stripe_s700", "simulated_stripe_s710", + "simulated_verifone_m425", + "simulated_verifone_p630", + "simulated_verifone_ux700", + "simulated_verifone_v660p", "simulated_wisepos_e", "stripe_m2", "stripe_s700", "stripe_s710", "verifone_P400", + "verifone_m425", + "verifone_p630", + "verifone_ux700", + "verifone_v660p", ] ] """ diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py index 05b77550c..ad5a16626 100644 --- a/stripe/params/test_helpers/__init__.py +++ b/stripe/params/test_helpers/__init__.py @@ -24,6 +24,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress, + ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, @@ -59,6 +60,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay, ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, + ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataSunbit as ConfirmationTokenCreateParamsPaymentMethodDataSunbit, @@ -159,6 +161,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataBizum": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBlik": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -299,6 +305,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params.test_helpers._confirmation_token_create_params", False, diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 9d6a4cf02..0b2945124 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -105,6 +105,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -183,7 +187,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMbWay"] """ @@ -281,6 +285,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit" ] @@ -314,6 +324,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -346,6 +357,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -502,6 +514,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class ConfirmationTokenCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -818,6 +834,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/test_helpers/_test_clock_create_params.py b/stripe/params/test_helpers/_test_clock_create_params.py index 9375ca502..c52e78948 100644 --- a/stripe/params/test_helpers/_test_clock_create_params.py +++ b/stripe/params/test_helpers/_test_clock_create_params.py @@ -6,6 +6,10 @@ class TestClockCreateParams(RequestOptions): + customer: NotRequired[str] + """ + Existing customer this test clock will be attached to. Once attached, customers can't be removed from a test clock. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index 99b9ab19a..b171f87bf 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -515,7 +515,7 @@ class FraudulentPayment(StripeObject): """ recommended_action: Literal["block", "continue"] """ - Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block` and `continue`. + Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. """ signals: Signals """ diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index 09065bd32..da6d22f83 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -431,12 +431,36 @@ class Usd(StripeObject): "usd": Usd, } + class VerifoneM425(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + class VerifoneP400(StripeObject): splashscreen: Optional[ExpandableField["File"]] """ A File ID representing an image to display on the reader """ + class VerifoneP630(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + + class VerifoneUx700(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + + class VerifoneV660p(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + class Wifi(StripeObject): class EnterpriseEapPeap(StripeObject): ca_certificate_file: Optional[str] @@ -535,7 +559,11 @@ class PersonalPsk(StripeObject): stripe_s700: Optional[StripeS700] stripe_s710: Optional[StripeS710] tipping: Optional[Tipping] + verifone_m425: Optional[VerifoneM425] verifone_p400: Optional[VerifoneP400] + verifone_p630: Optional[VerifoneP630] + verifone_ux700: Optional[VerifoneUx700] + verifone_v660p: Optional[VerifoneV660p] wifi: Optional[Wifi] @classmethod @@ -773,6 +801,10 @@ async def retrieve_async( "stripe_s700": StripeS700, "stripe_s710": StripeS710, "tipping": Tipping, + "verifone_m425": VerifoneM425, "verifone_p400": VerifoneP400, + "verifone_p630": VerifoneP630, + "verifone_ux700": VerifoneUx700, + "verifone_v660p": VerifoneV660p, "wifi": Wifi, } diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index f2e19e4c9..2b734969b 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -9,15 +9,19 @@ from stripe._test_helpers import APIResourceTestHelpers from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import class_method_variant, sanitize_id -from typing import ClassVar, List, Optional, cast, overload +from typing import ClassVar, List, Optional, Union, cast, overload from typing_extensions import Literal, Type, Unpack, TYPE_CHECKING if TYPE_CHECKING: + from stripe._account import Account + from stripe._bank_account import BankAccount + from stripe._card import Card from stripe._charge import Charge from stripe._payment_intent import PaymentIntent from stripe._payment_method import PaymentMethod from stripe._refund import Refund from stripe._setup_intent import SetupIntent + from stripe._source import Source from stripe.params.terminal._reader_cancel_action_params import ( ReaderCancelActionParams, ) @@ -76,6 +80,301 @@ class Reader( OBJECT_NAME: ClassVar[Literal["terminal.reader"]] = "terminal.reader" class Action(StripeObject): + class ApiError(StripeObject): + advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one. + """ + charge: Optional[str] + """ + For card errors, the ID of the failed charge. + """ + code: Optional[ + Literal[ + "account_closed", + "account_country_invalid_address", + "account_error_country_change_requires_additional_steps", + "account_information_mismatch", + "account_invalid", + "account_number_invalid", + "account_token_required_for_v2_account", + "acss_debit_session_incomplete", + "action_blocked", + "alipay_upgrade_required", + "amount_too_large", + "amount_too_small", + "api_key_expired", + "application_fees_not_allowed", + "approval_required", + "authentication_required", + "balance_insufficient", + "balance_invalid_parameter", + "bank_account_bad_routing_numbers", + "bank_account_declined", + "bank_account_exists", + "bank_account_restricted", + "bank_account_unusable", + "bank_account_unverified", + "bank_account_verification_failed", + "billing_invalid_mandate", + "bitcoin_upgrade_required", + "capture_charge_authorization_expired", + "capture_unauthorized_payment", + "card_decline_rate_limit_exceeded", + "card_declined", + "cardholder_phone_number_required", + "charge_already_captured", + "charge_already_refunded", + "charge_disputed", + "charge_exceeds_source_limit", + "charge_exceeds_transaction_limit", + "charge_expired_for_capture", + "charge_invalid_parameter", + "charge_not_refundable", + "clearing_code_unsupported", + "country_code_invalid", + "country_unsupported", + "coupon_expired", + "customer_max_payment_methods", + "customer_max_subscriptions", + "customer_session_expired", + "customer_tax_location_invalid", + "debit_not_authorized", + "email_invalid", + "expired_card", + "financial_connections_account_inactive", + "financial_connections_account_pending_account_numbers", + "financial_connections_account_unavailable_account_numbers", + "financial_connections_no_successful_transaction_refresh", + "forwarding_api_inactive", + "forwarding_api_invalid_parameter", + "forwarding_api_retryable_upstream_error", + "forwarding_api_upstream_connection_error", + "forwarding_api_upstream_connection_timeout", + "forwarding_api_upstream_error", + "idempotency_key_in_use", + "incorrect_address", + "incorrect_cvc", + "incorrect_number", + "incorrect_zip", + "india_recurring_payment_mandate_canceled", + "instant_payouts_config_disabled", + "instant_payouts_currency_disabled", + "instant_payouts_limit_exceeded", + "instant_payouts_unsupported", + "insufficient_funds", + "intent_invalid_state", + "intent_verification_method_missing", + "invalid_card_type", + "invalid_characters", + "invalid_charge_amount", + "invalid_cvc", + "invalid_expiry_month", + "invalid_expiry_year", + "invalid_mandate_reference_prefix_format", + "invalid_number", + "invalid_source_usage", + "invalid_tax_location", + "invoice_no_customer_line_items", + "invoice_no_payment_method_types", + "invoice_no_subscription_line_items", + "invoice_not_editable", + "invoice_on_behalf_of_not_editable", + "invoice_payment_intent_requires_action", + "invoice_upcoming_none", + "livemode_mismatch", + "lock_timeout", + "missing", + "no_account", + "not_allowed_on_standard_account", + "out_of_inventory", + "ownership_declaration_not_allowed", + "parameter_invalid_empty", + "parameter_invalid_integer", + "parameter_invalid_string_blank", + "parameter_invalid_string_empty", + "parameter_missing", + "parameter_unknown", + "parameters_exclusive", + "payment_intent_action_required", + "payment_intent_authentication_failure", + "payment_intent_incompatible_payment_method", + "payment_intent_invalid_parameter", + "payment_intent_konbini_rejected_confirmation_number", + "payment_intent_mandate_invalid", + "payment_intent_payment_attempt_expired", + "payment_intent_payment_attempt_failed", + "payment_intent_rate_limit_exceeded", + "payment_intent_unexpected_state", + "payment_method_bank_account_already_verified", + "payment_method_bank_account_blocked", + "payment_method_billing_details_address_missing", + "payment_method_configuration_failures", + "payment_method_currency_mismatch", + "payment_method_customer_decline", + "payment_method_invalid_parameter", + "payment_method_invalid_parameter_testmode", + "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", + "payment_method_microdeposit_verification_amounts_invalid", + "payment_method_microdeposit_verification_amounts_mismatch", + "payment_method_microdeposit_verification_attempts_exceeded", + "payment_method_microdeposit_verification_descriptor_code_mismatch", + "payment_method_microdeposit_verification_timeout", + "payment_method_not_available", + "payment_method_provider_decline", + "payment_method_provider_timeout", + "payment_method_unactivated", + "payment_method_unexpected_state", + "payment_method_unsupported_type", + "payout_reconciliation_not_ready", + "payouts_limit_exceeded", + "payouts_not_allowed", + "platform_account_required", + "platform_api_key_expired", + "postal_code_invalid", + "processing_error", + "product_inactive", + "progressive_onboarding_limit_exceeded", + "rate_limit", + "refer_to_customer", + "refund_disputed_payment", + "request_blocked", + "resource_already_exists", + "resource_missing", + "return_intent_already_processed", + "routing_number_invalid", + "secret_key_required", + "sepa_unsupported_account", + "service_period_coupon_with_metered_tiered_item_unsupported", + "setup_attempt_failed", + "setup_intent_authentication_failure", + "setup_intent_invalid_parameter", + "setup_intent_mandate_invalid", + "setup_intent_mobile_wallet_unsupported", + "setup_intent_setup_attempt_expired", + "setup_intent_unexpected_state", + "shipping_address_invalid", + "shipping_calculation_failed", + "siret_invalid", + "sku_inactive", + "state_unsupported", + "status_transition_invalid", + "storer_capability_missing", + "storer_capability_not_active", + "stripe_tax_inactive", + "tax_id_invalid", + "tax_id_prohibited", + "taxes_calculation_failed", + "terminal_location_country_unsupported", + "terminal_reader_busy", + "terminal_reader_hardware_fault", + "terminal_reader_invalid_location_for_activation", + "terminal_reader_invalid_location_for_payment", + "terminal_reader_offline", + "terminal_reader_timeout", + "testmode_charges_only", + "tls_version_unsupported", + "token_already_used", + "token_card_network_invalid", + "token_in_use", + "transfer_source_balance_parameters_mismatch", + "transfers_not_allowed", + "url_invalid", + ] + ] + """ + For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported. + """ + decline_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one. + """ + doc_url: Optional[str] + """ + A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported. + """ + message: Optional[str] + """ + A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + """ + network_advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + """ + network_decline_code: Optional[str] + """ + For payments declined by the network, an alphanumeric code which indicates the reason the payment failed. + """ + param: Optional[str] + """ + If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. + """ + payment_intent: Optional["PaymentIntent"] + """ + A PaymentIntent guides you through the process of collecting a payment from your customer. + We recommend that you create exactly one PaymentIntent for each order or + customer session in your system. You can reference the PaymentIntent later to + see the history of payment attempts for a particular session. + + A PaymentIntent transitions through + [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle) + throughout its lifetime as it interfaces with Stripe.js to perform + authentication flows and ultimately creates at most one successful charge. + + Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents) + """ + payment_method: Optional["PaymentMethod"] + """ + PaymentMethod objects represent your customer's payment instruments. + You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to + Customer objects to store instrument details for future payments. + + Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). + """ + payment_method_type: Optional[str] + """ + If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. + """ + request_log_url: Optional[str] + """ + A URL to the request log entry in your dashboard. + """ + setup_intent: Optional["SetupIntent"] + """ + A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. + For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment. + Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow. + + Create a SetupIntent when you're ready to collect your customer's payment credentials. + Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. + The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides + you through the setup process. + + Successful SetupIntents result in payment credentials that are optimized for future payments. + For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through + [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection + to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents). + If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer), + it automatically attaches the resulting payment method to that Customer after successful setup. + We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on + PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods. + + By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. + + Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) + """ + source: Optional[Union["Account", "BankAccount", "Card", "Source"]] + type: Literal[ + "api_error", + "card_error", + "idempotency_error", + "invalid_request_error", + ] + """ + The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` + """ + class CollectInputs(StripeObject): class Input(StripeObject): class CustomText(StripeObject): @@ -302,6 +601,35 @@ class ConfirmConfig(StripeObject): """ _inner_class_types = {"confirm_config": ConfirmConfig} + class PrintContent(StripeObject): + class Image(StripeObject): + created_at: int + """ + Creation time of the object (in seconds since the Unix epoch). + """ + filename: str + """ + The original name of the uploaded file (e.g. `receipt.png`). + """ + size: int + """ + The size (in bytes) of the uploaded file. + """ + type: str + """ + The format of the uploaded file. + """ + + image: Optional[Image] + """ + Metadata of an uploaded file + """ + type: Literal["image"] + """ + The type of content to print. Currently supports `image`. + """ + _inner_class_types = {"image": Image} + class ProcessPaymentIntent(StripeObject): class ProcessConfig(StripeObject): class Tipping(StripeObject): @@ -450,6 +778,10 @@ class LineItem(StripeObject): """ _inner_class_types = {"cart": Cart} + api_error: Optional[ApiError] + """ + The reader action failed due to an [API error](https://docs.stripe.com/api/errors). Only present when `status` is `failed` and the underlying failure was an API error. Avoid parsing the `message` field for programmatic logic; use `type` or `code` instead. The `message` field is for display to humans only and may be updated at anytime. Requires [reader version](https://docs.stripe.com/terminal/readers/stripe-reader-s700-s710#reader-software-version) 2.42 or later. Readers on older versions always return null. + """ collect_inputs: Optional[CollectInputs] """ Represents a reader action to collect customer inputs @@ -470,6 +802,10 @@ class LineItem(StripeObject): """ Detailed failure message, only set if status is `failed`. """ + print_content: Optional[PrintContent] + """ + Represents a reader action to print content + """ process_payment_intent: Optional[ProcessPaymentIntent] """ Represents a reader action to process a payment intent @@ -494,6 +830,7 @@ class LineItem(StripeObject): "collect_inputs", "collect_payment_method", "confirm_payment_intent", + "print_content", "process_payment_intent", "process_setup_intent", "refund_payment", @@ -503,9 +840,11 @@ class LineItem(StripeObject): Type of action performed by the reader. """ _inner_class_types = { + "api_error": ApiError, "collect_inputs": CollectInputs, "collect_payment_method": CollectPaymentMethod, "confirm_payment_intent": ConfirmPaymentIntent, + "print_content": PrintContent, "process_payment_intent": ProcessPaymentIntent, "process_setup_intent": ProcessSetupIntent, "refund_payment": RefundPayment, @@ -531,11 +870,19 @@ class LineItem(StripeObject): "mobile_phone_reader", "simulated_stripe_s700", "simulated_stripe_s710", + "simulated_verifone_m425", + "simulated_verifone_p630", + "simulated_verifone_ux700", + "simulated_verifone_v660p", "simulated_wisepos_e", "stripe_m2", "stripe_s700", "stripe_s710", "verifone_P400", + "verifone_m425", + "verifone_p630", + "verifone_ux700", + "verifone_v660p", ] """ Device type of the reader.