diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 4540bccf0..6fae6735a 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -826bf48af8bcd391512daeaf283b8486347b14c8 \ No newline at end of file +d59a1f4bdea3032b8e282d40badc032cb021fc60 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 97a293208..30723023b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2253 \ No newline at end of file +v2277 \ No newline at end of file diff --git a/README.md b/README.md index ea26bd8d3..ab1ba4ce0 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ client = StripeClient("sk_test_...", http_client=stripe.UrllibClient()) ``` Without a configured client, by default the library will attempt to load -libraries in the order above (i.e. `urlfetch` is preferred with `urllib2` used +libraries in the order above (i.e. `urlfetch` is preferred with `urllib` used as a last resort). We usually recommend that people use `requests`. ### Configuring a Proxy diff --git a/examples/event_notification_handler_endpoint.py b/examples/event_notification_handler_endpoint.py index 6a794a03d..e7d121c9c 100644 --- a/examples/event_notification_handler_endpoint.py +++ b/examples/event_notification_handler_endpoint.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- +# File copied from our code generator; changes here will be overwritten. """ event_notification_handler_endpoint.py - receive and process event notifications (AKA thin events) like "v1.billing.meter.error_report_triggered" using EventNotificationHandler. diff --git a/examples/event_notification_webhook_handler.py b/examples/event_notification_webhook_handler.py index f167f138f..0f0946971 100644 --- a/examples/event_notification_webhook_handler.py +++ b/examples/event_notification_webhook_handler.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- +# File copied from our code generator; changes here will be overwritten. """ event_notification_webhook_handler.py - receive and process event notifications (AKA thin events) like the v1.billing.meter.error_report_triggered and v1.billing.meter.no_meter_found events. diff --git a/stripe/_account.py b/stripe/_account.py index 28aa98b16..4897b0498 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -272,6 +272,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. @@ -478,6 +482,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/_account_service.py b/stripe/_account_service.py index 69e2c76af..4bc9cf659 100644 --- a/stripe/_account_service.py +++ b/stripe/_account_service.py @@ -413,12 +413,12 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"account": account}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py index ae057a867..b6612986b 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -72,6 +72,14 @@ _default_proxy: Optional[str] = None +def _maybe_emit_stripe_notice(rheaders: Mapping[str, str]) -> None: + notice = rheaders.get("Stripe-Notice") + if notice: + import warnings + + warnings.warn(notice) + + def is_v2_delete_resp(method: str, api_mode: ApiMode) -> bool: return method == "delete" and api_mode == "V2" @@ -209,6 +217,7 @@ def request( options=options, usage=usage, ) + _maybe_emit_stripe_notice(rheaders) resp = requestor._interpret_response(rbody, rcode, rheaders, api_mode) obj = _convert_to_stripe_object( @@ -243,6 +252,7 @@ async def request_async( options=options, usage=usage, ) + _maybe_emit_stripe_notice(rheaders) resp = requestor._interpret_response(rbody, rcode, rheaders, api_mode) obj = _convert_to_stripe_object( diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 1afe7b7af..61b0acc08 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2026-04-22.preview" + CURRENT = "2026-05-27.preview" 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 aca5ae488..cd50852cd 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -460,6 +460,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] """ @@ -2004,6 +2010,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] """ @@ -2123,7 +2135,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] @@ -2205,6 +2220,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] @@ -2245,6 +2261,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] shopeepay: Optional[Shopeepay] @@ -2278,6 +2295,7 @@ class Zip(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2318,6 +2336,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 02766d304..0d69a52b1 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -222,6 +222,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1335,6 +1338,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1518,6 +1524,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] @@ -1563,6 +1570,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] @@ -1581,6 +1589,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1622,6 +1631,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -1653,6 +1663,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1693,6 +1704,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, diff --git a/stripe/_coupon_service.py b/stripe/_coupon_service.py index c927d272c..3f27ba870 100644 --- a/stripe/_coupon_service.py +++ b/stripe/_coupon_service.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +import json +from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast +from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -216,3 +219,25 @@ async def create_async( options=options, ), ) + + def serialize_batch_create( + self, + params: Optional["CouponCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Coupon create request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_credit_note_service.py b/stripe/_credit_note_service.py index dda4556f3..4d716f4ce 100644 --- a/stripe/_credit_note_service.py +++ b/stripe/_credit_note_service.py @@ -1,11 +1,8 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec -import json -from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast -from uuid import uuid4 from importlib import import_module from typing_extensions import TYPE_CHECKING @@ -322,25 +319,3 @@ async def void_credit_note_async( options=options, ), ) - - def serialize_batch_create( - self, - params: Optional["CreditNoteCreateParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> str: - """ - Serializes a CreditNote create request into a batch job JSONL line. - """ - item_id = str(uuid4()) - stripe_version = ( - options.get("stripe_version") if options else None - ) or _ApiVersion.CURRENT - context = options.get("stripe_context") if options else None - item = { - "id": item_id, - "params": params, - "stripe_version": stripe_version, - } - if context is not None: - item["context"] = context - return json.dumps(item) diff --git a/stripe/_customer_service.py b/stripe/_customer_service.py index f90e27044..b82d40da9 100644 --- a/stripe/_customer_service.py +++ b/stripe/_customer_service.py @@ -415,12 +415,12 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"customer": customer}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) 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/_event_notification_handler.py b/stripe/_event_notification_handler.py index 9db0b9828..1ff1e9abc 100644 --- a/stripe/_event_notification_handler.py +++ b/stripe/_event_notification_handler.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- +# File copied from our code generator; changes here will be overwritten. from dataclasses import dataclass from typing_extensions import TYPE_CHECKING diff --git a/stripe/_invoice.py b/stripe/_invoice.py index ed80fb9eb..f0cb7520d 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -578,6 +578,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", @@ -619,6 +620,7 @@ class LastFinalizationError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -1108,6 +1110,7 @@ class Filters(StripeObject): "sofort", "stripe_balance", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -1408,6 +1411,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 5c91f0666..835205f12 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -109,6 +109,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 """ @@ -119,11 +143,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/_invoice_service.py b/stripe/_invoice_service.py index 6acd644b0..db1d71393 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -1,11 +1,8 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec -import json -from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast -from uuid import uuid4 from importlib import import_module from typing_extensions import TYPE_CHECKING @@ -850,51 +847,3 @@ async def create_preview_async( options=options, ), ) - - def serialize_batch_update( - self, - invoice: str, - params: Optional["InvoiceUpdateParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> str: - """ - Serializes an Invoice update request into a batch job JSONL line. - """ - item_id = str(uuid4()) - stripe_version = ( - options.get("stripe_version") if options else None - ) or _ApiVersion.CURRENT - context = options.get("stripe_context") if options else None - item = { - "id": item_id, - "path_params": {"invoice": invoice}, - "params": params, - "stripe_version": stripe_version, - } - if context is not None: - item["context"] = context - return json.dumps(item) - - def serialize_batch_pay( - self, - invoice: str, - params: Optional["InvoicePayParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> str: - """ - Serializes an Invoice pay request into a batch job JSONL line. - """ - item_id = str(uuid4()) - stripe_version = ( - options.get("stripe_version") if options else None - ) or _ApiVersion.CURRENT - context = options.get("stripe_context") if options else None - item = { - "id": item_id, - "path_params": {"invoice": invoice}, - "params": params, - "stripe_version": stripe_version, - } - if context is not None: - item["context"] = context - return json.dumps(item) diff --git a/stripe/_mandate.py b/stripe/_mandate.py index 3ff6a317f..b1db169cc 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -259,6 +259,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] """ @@ -300,6 +303,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. @@ -324,6 +328,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 e538a0055..6937bec5e 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -420,6 +420,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] """ @@ -1296,13 +1302,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] """ @@ -1371,8 +1375,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): @@ -1503,9 +1506,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): @@ -1737,7 +1738,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} @@ -1764,6 +1765,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] """ @@ -1881,7 +1888,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] @@ -1967,6 +1977,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] @@ -2020,6 +2031,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] shopeepay: Optional[Shopeepay] @@ -2054,6 +2066,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2095,6 +2108,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index beaf2ec9e..cf338c745 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -127,11 +127,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 Surcharge(StripeObject): @@ -367,6 +367,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", @@ -408,6 +409,7 @@ class LastPaymentError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -556,6 +558,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] """ @@ -1487,6 +1492,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[ @@ -1525,6 +1531,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, @@ -3013,6 +3020,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"]] """ @@ -3971,6 +3981,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] @@ -4056,7 +4072,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. @@ -4219,6 +4235,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] @@ -4259,6 +4276,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] @@ -4280,6 +4298,7 @@ class Zip(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -4320,6 +4339,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, @@ -4413,16 +4433,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 """ @@ -4526,6 +4566,7 @@ class TransferData(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -4563,6 +4604,7 @@ class TransferData(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -5769,7 +5811,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", @@ -5812,7 +5856,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). """ ... @@ -5844,7 +5890,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). """ ... @@ -5876,7 +5924,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", @@ -5919,7 +5969,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", @@ -5962,7 +6014,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). """ ... @@ -5994,7 +6048,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). """ ... @@ -6026,7 +6082,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 0085ea28a..28cf4f77a 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -684,7 +684,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", @@ -729,7 +731,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 4e0f91950..02e73c6a8 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", @@ -1183,6 +1215,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 59e93305f..6e7f06ece 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -174,6 +174,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1311,6 +1314,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1494,6 +1500,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] @@ -1568,6 +1575,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shared_payment_granted_token: Optional[str] """ @@ -1590,6 +1598,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1631,6 +1640,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -2111,6 +2121,7 @@ async def retrieve_async( "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2153,6 +2164,7 @@ async def retrieve_async( "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index 153155379..2f2585d08 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] @@ -1172,6 +1194,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] @@ -1411,6 +1455,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] @@ -1475,6 +1520,7 @@ class DisplayPreference(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] @@ -1634,6 +1680,7 @@ async def retrieve_async( "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1674,6 +1721,7 @@ async def retrieve_async( "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index 101388b19..7b633f355 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -436,6 +436,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] """ @@ -1312,13 +1318,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] """ @@ -1387,8 +1391,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): @@ -1519,9 +1522,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): @@ -1753,7 +1754,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} @@ -1780,6 +1781,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] """ @@ -1897,7 +1904,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] @@ -1983,6 +1993,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] @@ -2036,6 +2047,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] shopeepay: Optional[Shopeepay] @@ -2070,6 +2082,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2111,6 +2124,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, diff --git a/stripe/_promotion_code_service.py b/stripe/_promotion_code_service.py index eef6ffafa..cc7cb920d 100644 --- a/stripe/_promotion_code_service.py +++ b/stripe/_promotion_code_service.py @@ -204,14 +204,14 @@ def serialize_batch_create( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) def serialize_batch_update( self, @@ -227,12 +227,12 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"promotion_code": promotion_code}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index ad16cbc66..9df6bcd02 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -534,6 +534,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", @@ -575,6 +576,7 @@ class LastFinalizationError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -1064,6 +1066,7 @@ class Filters(StripeObject): "sofort", "stripe_balance", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -1364,6 +1367,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/_quote_preview_subscription_schedule.py b/stripe/_quote_preview_subscription_schedule.py index be02a6804..8339979e8 100644 --- a/stripe/_quote_preview_subscription_schedule.py +++ b/stripe/_quote_preview_subscription_schedule.py @@ -268,6 +268,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/_refund.py b/stripe/_refund.py index bc136a654..fb6bd00b1 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -222,6 +222,9 @@ class Pix(StripeObject): class Revolut(StripeObject): pass + class Scalapay(StripeObject): + pass + class Sofort(StripeObject): pass @@ -297,6 +300,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] @@ -338,6 +342,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 0f3ea816c..d9ffd0c43 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -430,6 +430,9 @@ class Sofort(StripeObject): class StripeBalance(StripeObject): pass + class Twint(StripeObject): + pass + class Upi(StripeObject): pass @@ -460,6 +463,7 @@ class UsBankAccount(StripeObject): sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] + 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. @@ -491,6 +495,7 @@ class UsBankAccount(StripeObject): "sepa_debit": SepaDebit, "sofort": Sofort, "stripe_balance": StripeBalance, + "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, } @@ -631,6 +636,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", @@ -672,6 +678,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 67a9fae8f..d3ec60ea9 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -221,6 +221,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", @@ -262,6 +263,7 @@ class LastSetupError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -392,6 +394,9 @@ class ManagedPayments(StripeObject): """ class NextAction(StripeObject): + class BlikAuthorize(StripeObject): + pass + class CashappHandleRedirectOrDisplayQrCode(StripeObject): class QrCode(StripeObject): expires_at: int @@ -486,6 +491,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 ] @@ -504,6 +510,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, @@ -573,6 +580,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 @@ -897,6 +907,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] @@ -911,6 +922,7 @@ class MandateOptions(StripeObject): "acss_debit": AcssDebit, "amazon_pay": AmazonPay, "bacs_debit": BacsDebit, + "bizum": Bizum, "card": Card, "card_present": CardPresent, "klarna": Klarna, @@ -982,6 +994,7 @@ class MandateOptions(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1019,6 +1032,7 @@ class MandateOptions(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index b721ad537..a898be2bf 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -54,6 +54,9 @@ from stripe.params._subscription_modify_params import ( SubscriptionModifyParams, ) + from stripe.params._subscription_pause_params import ( + SubscriptionPauseParams, + ) from stripe.params._subscription_resume_params import ( SubscriptionResumeParams, ) @@ -669,6 +672,7 @@ class Filters(StripeObject): "sofort", "stripe_balance", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -701,10 +705,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. + """ prebilling_iterations: Optional[int] """ The number of iterations of prebilling to apply. @@ -746,6 +762,38 @@ class PresentmentDetails(StripeObject): Currency used for customer payments. """ + class StatusDetails(StripeObject): + class Paused(StripeObject): + class Subscription(StripeObject): + type: Literal[ + "pause_requested", + "system", + "trial_end_without_payment_method", + ] + """ + The reason that the subscription was paused. + """ + + subscription: Subscription + """ + Information on the `type=subscription` pause. + """ + transitioned_at: int + """ + Unix timestamp in seconds of when the subscription status transitioned to `paused`. + """ + type: Literal["subscription"] + """ + The type of pause. + """ + _inner_class_types = {"subscription": Subscription} + + paused: Paused + """ + Indicates when and why the subscription transitioned to the paused status. + """ + _inner_class_types = {"paused": Paused} + class TransferData(StripeObject): amount_percent: Optional[float] """ @@ -796,7 +844,7 @@ class EndBehavior(StripeObject): """ The billing mode of the subscription. """ - billing_schedules: Optional[List[BillingSchedule]] + billing_schedules: List[BillingSchedule] """ Billing schedules for this subscription. """ @@ -969,6 +1017,10 @@ class EndBehavior(StripeObject): If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. """ + status_details: Optional[StatusDetails] + """ + Describes changes to the subscription's status. + """ test_clock: Optional[ExpandableField["TestClock"]] """ ID of the test clock this subscription belongs to. @@ -997,7 +1049,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. @@ -1023,7 +1075,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. @@ -1036,7 +1088,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. @@ -1049,7 +1101,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. @@ -1073,7 +1125,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. @@ -1099,7 +1151,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. @@ -1112,7 +1164,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. @@ -1125,7 +1177,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. @@ -1530,12 +1582,122 @@ async def modify_async( ), ) + @classmethod + def _cls_pause( + cls, subscription: str, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + cls._static_request( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(subscription) + ), + params=params, + ), + ) + + @overload + @staticmethod + def pause( + subscription: str, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + ... + + @overload + def pause( + self, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + ... + + @class_method_variant("_cls_pause") + def pause( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + self._request( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + @classmethod + async def _cls_pause_async( + cls, subscription: str, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + await cls._static_request_async( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(subscription) + ), + params=params, + ), + ) + + @overload + @staticmethod + async def pause_async( + subscription: str, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + ... + + @overload + async def pause_async( + self, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + ... + + @class_method_variant("_cls_pause_async") + async def pause_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + await self._request_async( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + @classmethod 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", @@ -1554,7 +1716,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). """ ... @@ -1563,7 +1725,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). """ ... @@ -1572,7 +1734,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", @@ -1590,7 +1752,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", @@ -1609,7 +1771,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). """ ... @@ -1618,7 +1780,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). """ ... @@ -1627,7 +1789,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", @@ -1718,6 +1880,7 @@ async def search_auto_paging_iter_async( "pending_update": PendingUpdate, "prebilling": Prebilling, "presentment_details": PresentmentDetails, + "status_details": StatusDetails, "transfer_data": TransferData, "trial_settings": TrialSettings, } diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 76b6a9765..88b7715fa 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -290,6 +290,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_schedule_service.py b/stripe/_subscription_schedule_service.py index be4f15618..30934f084 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -1,11 +1,8 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec -import json -from stripe._api_version import _ApiVersion from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast -from uuid import uuid4 from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: @@ -331,73 +328,3 @@ async def release_async( options=options, ), ) - - def serialize_batch_create( - self, - params: Optional["SubscriptionScheduleCreateParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> str: - """ - Serializes a SubscriptionSchedule create request into a batch job JSONL line. - """ - item_id = str(uuid4()) - stripe_version = ( - options.get("stripe_version") if options else None - ) or _ApiVersion.CURRENT - context = options.get("stripe_context") if options else None - item = { - "id": item_id, - "params": params, - "stripe_version": stripe_version, - } - if context is not None: - item["context"] = context - return json.dumps(item) - - def serialize_batch_update( - self, - schedule: str, - params: Optional["SubscriptionScheduleUpdateParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> str: - """ - Serializes a SubscriptionSchedule update request into a batch job JSONL line. - """ - item_id = str(uuid4()) - stripe_version = ( - options.get("stripe_version") if options else None - ) or _ApiVersion.CURRENT - context = options.get("stripe_context") if options else None - item = { - "id": item_id, - "path_params": {"schedule": schedule}, - "params": params, - "stripe_version": stripe_version, - } - if context is not None: - item["context"] = context - return json.dumps(item) - - def serialize_batch_cancel( - self, - schedule: str, - params: Optional["SubscriptionScheduleCancelParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> str: - """ - Serializes a SubscriptionSchedule cancel request into a batch job JSONL line. - """ - item_id = str(uuid4()) - stripe_version = ( - options.get("stripe_version") if options else None - ) or _ApiVersion.CURRENT - context = options.get("stripe_context") if options else None - item = { - "id": item_id, - "path_params": {"schedule": schedule}, - "params": params, - "stripe_version": stripe_version, - } - if context is not None: - item["context"] = context - return json.dumps(item) diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 30818bdca..256390d2b 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -27,6 +27,9 @@ from stripe.params._subscription_migrate_params import ( SubscriptionMigrateParams, ) + from stripe.params._subscription_pause_params import ( + SubscriptionPauseParams, + ) from stripe.params._subscription_resume_params import ( SubscriptionResumeParams, ) @@ -49,7 +52,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. @@ -77,7 +80,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. @@ -458,6 +461,50 @@ async def migrate_async( ), ) + def pause( + self, + subscription: str, + params: Optional["SubscriptionPauseParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + self._request( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(subscription), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def pause_async( + self, + subscription: str, + params: Optional["SubscriptionPauseParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + await self._request_async( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(subscription), + ), + base_address="api", + params=params, + options=options, + ), + ) + def resume( self, subscription: str, @@ -465,7 +512,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", @@ -487,7 +534,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", @@ -502,6 +549,32 @@ async def resume_async( ), ) + def serialize_batch_cancel( + self, + subscription_exposed_id: str, + params: Optional["SubscriptionCancelParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> str: + """ + Serializes a Subscription cancel request into a batch job JSONL line. + """ + item_id = str(uuid4()) + stripe_version = ( + options.get("stripe_version") if options else None + ) or _ApiVersion.CURRENT + context = options.get("stripe_context") if options else None + batch_request = { + "id": item_id, + "path_params": { + "subscription_exposed_id": subscription_exposed_id + }, + "params": params, + "stripe_version": stripe_version, + } + if context is not None: + batch_request["context"] = context + return json.dumps(batch_request) + def serialize_batch_update( self, subscription_exposed_id: str, @@ -516,7 +589,7 @@ def serialize_batch_update( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": { "subscription_exposed_id": subscription_exposed_id @@ -525,8 +598,8 @@ def serialize_batch_update( "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) def serialize_batch_migrate( self, @@ -542,12 +615,12 @@ def serialize_batch_migrate( options.get("stripe_version") if options else None ) or _ApiVersion.CURRENT context = options.get("stripe_context") if options else None - item = { + batch_request = { "id": item_id, "path_params": {"subscription": subscription}, "params": params, "stripe_version": stripe_version, } if context is not None: - item["context"] = context - return json.dumps(item) + batch_request["context"] = context + return json.dumps(batch_request) diff --git a/stripe/_v2_services.py b/stripe/_v2_services.py index de23db423..17ea0c8c6 100644 --- a/stripe/_v2_services.py +++ b/stripe/_v2_services.py @@ -8,7 +8,7 @@ from stripe.v2._billing_service import BillingService from stripe.v2._commerce_service import CommerceService from stripe.v2._core_service import CoreService - from stripe.v2._datum_service import DatumService + from stripe.v2._data_service import DataService from stripe.v2._extend_service import ExtendService from stripe.v2._iam_service import IamService from stripe.v2._money_management_service import MoneyManagementService @@ -22,7 +22,7 @@ "billing": ["stripe.v2._billing_service", "BillingService"], "commerce": ["stripe.v2._commerce_service", "CommerceService"], "core": ["stripe.v2._core_service", "CoreService"], - "data": ["stripe.v2._datum_service", "DatumService"], + "data": ["stripe.v2._data_service", "DataService"], "extend": ["stripe.v2._extend_service", "ExtendService"], "iam": ["stripe.v2._iam_service", "IamService"], "money_management": [ @@ -42,7 +42,7 @@ class V2Services(StripeService): billing: "BillingService" commerce: "CommerceService" core: "CoreService" - data: "DatumService" + data: "DataService" extend: "ExtendService" iam: "IamService" money_management: "MoneyManagementService" diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index f5db25650..74471ed4e 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -411,7 +411,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"]] """ @@ -1135,7 +1135,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"]] @@ -1694,6 +1694,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] @@ -1739,7 +1745,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. @@ -1903,6 +1909,7 @@ class ManualEntry(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] @@ -1947,6 +1954,7 @@ class ManualEntry(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "swish": Swish, @@ -2485,8 +2493,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] """ @@ -2700,11 +2708,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] """ @@ -2760,7 +2768,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/events/__init__.py b/stripe/events/__init__.py index 357157b38..9237614f6 100644 --- a/stripe/events/__init__.py +++ b/stripe/events/__init__.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +# File copied from our code generator; changes here will be overwritten. +# -*- coding: utf-8 -*- from typing_extensions import TYPE_CHECKING from stripe.v2.core._event import ( 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/issuing/_settlement.py b/stripe/issuing/_settlement.py index 0398d837d..44209e621 100644 --- a/stripe/issuing/_settlement.py +++ b/stripe/issuing/_settlement.py @@ -47,9 +47,9 @@ class Settlement(StripeObject): """ The total net amount required to settle with the network. """ - network: Literal["maestro", "visa"] + network: Literal["maestro", "mastercard", "visa"] """ - The card network for this settlement report. One of ["visa", "maestro"] + The card network for this settlement report. One of ["visa", "maestro", "mastercard"] """ network_fees_amount: int """ diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index 986cb9a60..b1ea65423 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -66,6 +66,7 @@ AccountCreateParamsCapabilitiesBancontactPayments as AccountCreateParamsCapabilitiesBancontactPayments, AccountCreateParamsCapabilitiesBankTransferPayments as AccountCreateParamsCapabilitiesBankTransferPayments, AccountCreateParamsCapabilitiesBilliePayments as AccountCreateParamsCapabilitiesBilliePayments, + AccountCreateParamsCapabilitiesBizumPayments as AccountCreateParamsCapabilitiesBizumPayments, AccountCreateParamsCapabilitiesBlikPayments as AccountCreateParamsCapabilitiesBlikPayments, AccountCreateParamsCapabilitiesBoletoPayments as AccountCreateParamsCapabilitiesBoletoPayments, AccountCreateParamsCapabilitiesCardIssuing as AccountCreateParamsCapabilitiesCardIssuing, @@ -112,6 +113,7 @@ AccountCreateParamsCapabilitiesRevolutPayPayments as AccountCreateParamsCapabilitiesRevolutPayPayments, AccountCreateParamsCapabilitiesSamsungPayPayments as AccountCreateParamsCapabilitiesSamsungPayPayments, AccountCreateParamsCapabilitiesSatispayPayments as AccountCreateParamsCapabilitiesSatispayPayments, + AccountCreateParamsCapabilitiesScalapayPayments as AccountCreateParamsCapabilitiesScalapayPayments, AccountCreateParamsCapabilitiesSepaBankTransferPayments as AccountCreateParamsCapabilitiesSepaBankTransferPayments, AccountCreateParamsCapabilitiesSepaDebitPayments as AccountCreateParamsCapabilitiesSepaDebitPayments, AccountCreateParamsCapabilitiesShopeepayPayments as AccountCreateParamsCapabilitiesShopeepayPayments, @@ -478,6 +480,7 @@ AccountUpdateParamsCapabilitiesBancontactPayments as AccountUpdateParamsCapabilitiesBancontactPayments, AccountUpdateParamsCapabilitiesBankTransferPayments as AccountUpdateParamsCapabilitiesBankTransferPayments, AccountUpdateParamsCapabilitiesBilliePayments as AccountUpdateParamsCapabilitiesBilliePayments, + AccountUpdateParamsCapabilitiesBizumPayments as AccountUpdateParamsCapabilitiesBizumPayments, AccountUpdateParamsCapabilitiesBlikPayments as AccountUpdateParamsCapabilitiesBlikPayments, AccountUpdateParamsCapabilitiesBoletoPayments as AccountUpdateParamsCapabilitiesBoletoPayments, AccountUpdateParamsCapabilitiesCardIssuing as AccountUpdateParamsCapabilitiesCardIssuing, @@ -524,6 +527,7 @@ AccountUpdateParamsCapabilitiesRevolutPayPayments as AccountUpdateParamsCapabilitiesRevolutPayPayments, AccountUpdateParamsCapabilitiesSamsungPayPayments as AccountUpdateParamsCapabilitiesSamsungPayPayments, AccountUpdateParamsCapabilitiesSatispayPayments as AccountUpdateParamsCapabilitiesSatispayPayments, + AccountUpdateParamsCapabilitiesScalapayPayments as AccountUpdateParamsCapabilitiesScalapayPayments, AccountUpdateParamsCapabilitiesSepaBankTransferPayments as AccountUpdateParamsCapabilitiesSepaBankTransferPayments, AccountUpdateParamsCapabilitiesSepaDebitPayments as AccountUpdateParamsCapabilitiesSepaDebitPayments, AccountUpdateParamsCapabilitiesShopeepayPayments as AccountUpdateParamsCapabilitiesShopeepayPayments, @@ -659,8 +663,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, @@ -669,8 +675,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, @@ -947,6 +955,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress, + ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, @@ -988,6 +997,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay, ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, + ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, @@ -2290,6 +2300,7 @@ PaymentIntentConfirmParamsPaymentMethodDataBillie as PaymentIntentConfirmParamsPaymentMethodDataBillie, PaymentIntentConfirmParamsPaymentMethodDataBillingDetails as PaymentIntentConfirmParamsPaymentMethodDataBillingDetails, PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentConfirmParamsPaymentMethodDataBizum as PaymentIntentConfirmParamsPaymentMethodDataBizum, PaymentIntentConfirmParamsPaymentMethodDataBlik as PaymentIntentConfirmParamsPaymentMethodDataBlik, PaymentIntentConfirmParamsPaymentMethodDataBoleto as PaymentIntentConfirmParamsPaymentMethodDataBoleto, PaymentIntentConfirmParamsPaymentMethodDataCashapp as PaymentIntentConfirmParamsPaymentMethodDataCashapp, @@ -2331,6 +2342,7 @@ PaymentIntentConfirmParamsPaymentMethodDataRevolutPay as PaymentIntentConfirmParamsPaymentMethodDataRevolutPay, PaymentIntentConfirmParamsPaymentMethodDataSamsungPay as PaymentIntentConfirmParamsPaymentMethodDataSamsungPay, PaymentIntentConfirmParamsPaymentMethodDataSatispay as PaymentIntentConfirmParamsPaymentMethodDataSatispay, + PaymentIntentConfirmParamsPaymentMethodDataScalapay as PaymentIntentConfirmParamsPaymentMethodDataScalapay, PaymentIntentConfirmParamsPaymentMethodDataSepaDebit as PaymentIntentConfirmParamsPaymentMethodDataSepaDebit, PaymentIntentConfirmParamsPaymentMethodDataShopeepay as PaymentIntentConfirmParamsPaymentMethodDataShopeepay, PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort, @@ -2356,6 +2368,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsBancontact as PaymentIntentConfirmParamsPaymentMethodOptionsBancontact, PaymentIntentConfirmParamsPaymentMethodOptionsBillie as PaymentIntentConfirmParamsPaymentMethodOptionsBillie, + PaymentIntentConfirmParamsPaymentMethodOptionsBizum as PaymentIntentConfirmParamsPaymentMethodOptionsBizum, PaymentIntentConfirmParamsPaymentMethodOptionsBlik as PaymentIntentConfirmParamsPaymentMethodOptionsBlik, PaymentIntentConfirmParamsPaymentMethodOptionsBoleto as PaymentIntentConfirmParamsPaymentMethodOptionsBoleto, PaymentIntentConfirmParamsPaymentMethodOptionsCard as PaymentIntentConfirmParamsPaymentMethodOptionsCard, @@ -2450,6 +2463,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay as PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay, PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay as PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay, PaymentIntentConfirmParamsPaymentMethodOptionsSatispay as PaymentIntentConfirmParamsPaymentMethodOptionsSatispay, + PaymentIntentConfirmParamsPaymentMethodOptionsScalapay as PaymentIntentConfirmParamsPaymentMethodOptionsScalapay, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay as PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay, @@ -2574,6 +2588,7 @@ PaymentIntentCreateParamsPaymentMethodDataBillie as PaymentIntentCreateParamsPaymentMethodDataBillie, PaymentIntentCreateParamsPaymentMethodDataBillingDetails as PaymentIntentCreateParamsPaymentMethodDataBillingDetails, PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentCreateParamsPaymentMethodDataBizum as PaymentIntentCreateParamsPaymentMethodDataBizum, PaymentIntentCreateParamsPaymentMethodDataBlik as PaymentIntentCreateParamsPaymentMethodDataBlik, PaymentIntentCreateParamsPaymentMethodDataBoleto as PaymentIntentCreateParamsPaymentMethodDataBoleto, PaymentIntentCreateParamsPaymentMethodDataCashapp as PaymentIntentCreateParamsPaymentMethodDataCashapp, @@ -2615,6 +2630,7 @@ PaymentIntentCreateParamsPaymentMethodDataRevolutPay as PaymentIntentCreateParamsPaymentMethodDataRevolutPay, PaymentIntentCreateParamsPaymentMethodDataSamsungPay as PaymentIntentCreateParamsPaymentMethodDataSamsungPay, PaymentIntentCreateParamsPaymentMethodDataSatispay as PaymentIntentCreateParamsPaymentMethodDataSatispay, + PaymentIntentCreateParamsPaymentMethodDataScalapay as PaymentIntentCreateParamsPaymentMethodDataScalapay, PaymentIntentCreateParamsPaymentMethodDataSepaDebit as PaymentIntentCreateParamsPaymentMethodDataSepaDebit, PaymentIntentCreateParamsPaymentMethodDataShopeepay as PaymentIntentCreateParamsPaymentMethodDataShopeepay, PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort, @@ -2640,6 +2656,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsBancontact as PaymentIntentCreateParamsPaymentMethodOptionsBancontact, PaymentIntentCreateParamsPaymentMethodOptionsBillie as PaymentIntentCreateParamsPaymentMethodOptionsBillie, + PaymentIntentCreateParamsPaymentMethodOptionsBizum as PaymentIntentCreateParamsPaymentMethodOptionsBizum, PaymentIntentCreateParamsPaymentMethodOptionsBlik as PaymentIntentCreateParamsPaymentMethodOptionsBlik, PaymentIntentCreateParamsPaymentMethodOptionsBoleto as PaymentIntentCreateParamsPaymentMethodOptionsBoleto, PaymentIntentCreateParamsPaymentMethodOptionsCard as PaymentIntentCreateParamsPaymentMethodOptionsCard, @@ -2734,6 +2751,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay as PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay, PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay as PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay, PaymentIntentCreateParamsPaymentMethodOptionsSatispay as PaymentIntentCreateParamsPaymentMethodOptionsSatispay, + PaymentIntentCreateParamsPaymentMethodOptionsScalapay as PaymentIntentCreateParamsPaymentMethodOptionsScalapay, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsShopeepay as PaymentIntentCreateParamsPaymentMethodOptionsShopeepay, @@ -2755,6 +2773,7 @@ PaymentIntentCreateParamsShipping as PaymentIntentCreateParamsShipping, PaymentIntentCreateParamsShippingAddress as PaymentIntentCreateParamsShippingAddress, PaymentIntentCreateParamsTransferData as PaymentIntentCreateParamsTransferData, + PaymentIntentCreateParamsTransferDataPaymentData as PaymentIntentCreateParamsTransferDataPaymentData, ) from stripe.params._payment_intent_decrement_authorization_params import ( PaymentIntentDecrementAuthorizationParams as PaymentIntentDecrementAuthorizationParams, @@ -2904,6 +2923,7 @@ PaymentIntentModifyParamsPaymentMethodDataBillie as PaymentIntentModifyParamsPaymentMethodDataBillie, PaymentIntentModifyParamsPaymentMethodDataBillingDetails as PaymentIntentModifyParamsPaymentMethodDataBillingDetails, PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentModifyParamsPaymentMethodDataBizum as PaymentIntentModifyParamsPaymentMethodDataBizum, PaymentIntentModifyParamsPaymentMethodDataBlik as PaymentIntentModifyParamsPaymentMethodDataBlik, PaymentIntentModifyParamsPaymentMethodDataBoleto as PaymentIntentModifyParamsPaymentMethodDataBoleto, PaymentIntentModifyParamsPaymentMethodDataCashapp as PaymentIntentModifyParamsPaymentMethodDataCashapp, @@ -2945,6 +2965,7 @@ PaymentIntentModifyParamsPaymentMethodDataRevolutPay as PaymentIntentModifyParamsPaymentMethodDataRevolutPay, PaymentIntentModifyParamsPaymentMethodDataSamsungPay as PaymentIntentModifyParamsPaymentMethodDataSamsungPay, PaymentIntentModifyParamsPaymentMethodDataSatispay as PaymentIntentModifyParamsPaymentMethodDataSatispay, + PaymentIntentModifyParamsPaymentMethodDataScalapay as PaymentIntentModifyParamsPaymentMethodDataScalapay, PaymentIntentModifyParamsPaymentMethodDataSepaDebit as PaymentIntentModifyParamsPaymentMethodDataSepaDebit, PaymentIntentModifyParamsPaymentMethodDataShopeepay as PaymentIntentModifyParamsPaymentMethodDataShopeepay, PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort, @@ -2970,6 +2991,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsBancontact as PaymentIntentModifyParamsPaymentMethodOptionsBancontact, PaymentIntentModifyParamsPaymentMethodOptionsBillie as PaymentIntentModifyParamsPaymentMethodOptionsBillie, + PaymentIntentModifyParamsPaymentMethodOptionsBizum as PaymentIntentModifyParamsPaymentMethodOptionsBizum, PaymentIntentModifyParamsPaymentMethodOptionsBlik as PaymentIntentModifyParamsPaymentMethodOptionsBlik, PaymentIntentModifyParamsPaymentMethodOptionsBoleto as PaymentIntentModifyParamsPaymentMethodOptionsBoleto, PaymentIntentModifyParamsPaymentMethodOptionsCard as PaymentIntentModifyParamsPaymentMethodOptionsCard, @@ -3064,6 +3086,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay as PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay, PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay as PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay, PaymentIntentModifyParamsPaymentMethodOptionsSatispay as PaymentIntentModifyParamsPaymentMethodOptionsSatispay, + PaymentIntentModifyParamsPaymentMethodOptionsScalapay as PaymentIntentModifyParamsPaymentMethodOptionsScalapay, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsShopeepay as PaymentIntentModifyParamsPaymentMethodOptionsShopeepay, @@ -3084,6 +3107,7 @@ PaymentIntentModifyParamsShipping as PaymentIntentModifyParamsShipping, PaymentIntentModifyParamsShippingAddress as PaymentIntentModifyParamsShippingAddress, PaymentIntentModifyParamsTransferData as PaymentIntentModifyParamsTransferData, + PaymentIntentModifyParamsTransferDataPaymentData as PaymentIntentModifyParamsTransferDataPaymentData, ) from stripe.params._payment_intent_retrieve_params import ( PaymentIntentRetrieveParams as PaymentIntentRetrieveParams, @@ -3196,6 +3220,7 @@ PaymentIntentUpdateParamsPaymentMethodDataBillie as PaymentIntentUpdateParamsPaymentMethodDataBillie, PaymentIntentUpdateParamsPaymentMethodDataBillingDetails as PaymentIntentUpdateParamsPaymentMethodDataBillingDetails, PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentUpdateParamsPaymentMethodDataBizum as PaymentIntentUpdateParamsPaymentMethodDataBizum, PaymentIntentUpdateParamsPaymentMethodDataBlik as PaymentIntentUpdateParamsPaymentMethodDataBlik, PaymentIntentUpdateParamsPaymentMethodDataBoleto as PaymentIntentUpdateParamsPaymentMethodDataBoleto, PaymentIntentUpdateParamsPaymentMethodDataCashapp as PaymentIntentUpdateParamsPaymentMethodDataCashapp, @@ -3237,6 +3262,7 @@ PaymentIntentUpdateParamsPaymentMethodDataRevolutPay as PaymentIntentUpdateParamsPaymentMethodDataRevolutPay, PaymentIntentUpdateParamsPaymentMethodDataSamsungPay as PaymentIntentUpdateParamsPaymentMethodDataSamsungPay, PaymentIntentUpdateParamsPaymentMethodDataSatispay as PaymentIntentUpdateParamsPaymentMethodDataSatispay, + PaymentIntentUpdateParamsPaymentMethodDataScalapay as PaymentIntentUpdateParamsPaymentMethodDataScalapay, PaymentIntentUpdateParamsPaymentMethodDataSepaDebit as PaymentIntentUpdateParamsPaymentMethodDataSepaDebit, PaymentIntentUpdateParamsPaymentMethodDataShopeepay as PaymentIntentUpdateParamsPaymentMethodDataShopeepay, PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort, @@ -3262,6 +3288,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsBancontact as PaymentIntentUpdateParamsPaymentMethodOptionsBancontact, PaymentIntentUpdateParamsPaymentMethodOptionsBillie as PaymentIntentUpdateParamsPaymentMethodOptionsBillie, + PaymentIntentUpdateParamsPaymentMethodOptionsBizum as PaymentIntentUpdateParamsPaymentMethodOptionsBizum, PaymentIntentUpdateParamsPaymentMethodOptionsBlik as PaymentIntentUpdateParamsPaymentMethodOptionsBlik, PaymentIntentUpdateParamsPaymentMethodOptionsBoleto as PaymentIntentUpdateParamsPaymentMethodOptionsBoleto, PaymentIntentUpdateParamsPaymentMethodOptionsCard as PaymentIntentUpdateParamsPaymentMethodOptionsCard, @@ -3356,6 +3383,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay as PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay, PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay as PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay, PaymentIntentUpdateParamsPaymentMethodOptionsSatispay as PaymentIntentUpdateParamsPaymentMethodOptionsSatispay, + PaymentIntentUpdateParamsPaymentMethodOptionsScalapay as PaymentIntentUpdateParamsPaymentMethodOptionsScalapay, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay as PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay, @@ -3376,6 +3404,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, @@ -3418,6 +3447,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, @@ -3471,6 +3503,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, @@ -3516,6 +3551,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, @@ -3556,6 +3594,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, @@ -3638,6 +3678,8 @@ PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference as PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference, PaymentMethodConfigurationCreateParamsSatispay as PaymentMethodConfigurationCreateParamsSatispay, PaymentMethodConfigurationCreateParamsSatispayDisplayPreference as PaymentMethodConfigurationCreateParamsSatispayDisplayPreference, + PaymentMethodConfigurationCreateParamsScalapay as PaymentMethodConfigurationCreateParamsScalapay, + PaymentMethodConfigurationCreateParamsScalapayDisplayPreference as PaymentMethodConfigurationCreateParamsScalapayDisplayPreference, PaymentMethodConfigurationCreateParamsSepaDebit as PaymentMethodConfigurationCreateParamsSepaDebit, PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference, PaymentMethodConfigurationCreateParamsShopeepay as PaymentMethodConfigurationCreateParamsShopeepay, @@ -3688,6 +3730,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, @@ -3770,6 +3814,8 @@ PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference as PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference, PaymentMethodConfigurationModifyParamsSatispay as PaymentMethodConfigurationModifyParamsSatispay, PaymentMethodConfigurationModifyParamsSatispayDisplayPreference as PaymentMethodConfigurationModifyParamsSatispayDisplayPreference, + PaymentMethodConfigurationModifyParamsScalapay as PaymentMethodConfigurationModifyParamsScalapay, + PaymentMethodConfigurationModifyParamsScalapayDisplayPreference as PaymentMethodConfigurationModifyParamsScalapayDisplayPreference, PaymentMethodConfigurationModifyParamsSepaDebit as PaymentMethodConfigurationModifyParamsSepaDebit, PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference as PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference, PaymentMethodConfigurationModifyParamsShopeepay as PaymentMethodConfigurationModifyParamsShopeepay, @@ -3820,6 +3866,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, @@ -3902,6 +3950,8 @@ PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference as PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference, PaymentMethodConfigurationUpdateParamsSatispay as PaymentMethodConfigurationUpdateParamsSatispay, PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference as PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference, + PaymentMethodConfigurationUpdateParamsScalapay as PaymentMethodConfigurationUpdateParamsScalapay, + PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference as PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference, PaymentMethodConfigurationUpdateParamsSepaDebit as PaymentMethodConfigurationUpdateParamsSepaDebit, PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference, PaymentMethodConfigurationUpdateParamsShopeepay as PaymentMethodConfigurationUpdateParamsShopeepay, @@ -3937,6 +3987,7 @@ PaymentMethodCreateParamsBillie as PaymentMethodCreateParamsBillie, PaymentMethodCreateParamsBillingDetails as PaymentMethodCreateParamsBillingDetails, PaymentMethodCreateParamsBillingDetailsAddress as PaymentMethodCreateParamsBillingDetailsAddress, + PaymentMethodCreateParamsBizum as PaymentMethodCreateParamsBizum, PaymentMethodCreateParamsBlik as PaymentMethodCreateParamsBlik, PaymentMethodCreateParamsBoleto as PaymentMethodCreateParamsBoleto, PaymentMethodCreateParamsCard as PaymentMethodCreateParamsCard, @@ -3981,6 +4032,7 @@ PaymentMethodCreateParamsRevolutPay as PaymentMethodCreateParamsRevolutPay, PaymentMethodCreateParamsSamsungPay as PaymentMethodCreateParamsSamsungPay, PaymentMethodCreateParamsSatispay as PaymentMethodCreateParamsSatispay, + PaymentMethodCreateParamsScalapay as PaymentMethodCreateParamsScalapay, PaymentMethodCreateParamsSepaDebit as PaymentMethodCreateParamsSepaDebit, PaymentMethodCreateParamsShopeepay as PaymentMethodCreateParamsShopeepay, PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort, @@ -4564,6 +4616,7 @@ SetupIntentConfirmParamsPaymentMethodDataBillie as SetupIntentConfirmParamsPaymentMethodDataBillie, SetupIntentConfirmParamsPaymentMethodDataBillingDetails as SetupIntentConfirmParamsPaymentMethodDataBillingDetails, SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress as SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentConfirmParamsPaymentMethodDataBizum as SetupIntentConfirmParamsPaymentMethodDataBizum, SetupIntentConfirmParamsPaymentMethodDataBlik as SetupIntentConfirmParamsPaymentMethodDataBlik, SetupIntentConfirmParamsPaymentMethodDataBoleto as SetupIntentConfirmParamsPaymentMethodDataBoleto, SetupIntentConfirmParamsPaymentMethodDataCashapp as SetupIntentConfirmParamsPaymentMethodDataCashapp, @@ -4605,6 +4658,7 @@ SetupIntentConfirmParamsPaymentMethodDataRevolutPay as SetupIntentConfirmParamsPaymentMethodDataRevolutPay, SetupIntentConfirmParamsPaymentMethodDataSamsungPay as SetupIntentConfirmParamsPaymentMethodDataSamsungPay, SetupIntentConfirmParamsPaymentMethodDataSatispay as SetupIntentConfirmParamsPaymentMethodDataSatispay, + SetupIntentConfirmParamsPaymentMethodDataScalapay as SetupIntentConfirmParamsPaymentMethodDataScalapay, SetupIntentConfirmParamsPaymentMethodDataSepaDebit as SetupIntentConfirmParamsPaymentMethodDataSepaDebit, SetupIntentConfirmParamsPaymentMethodDataShopeepay as SetupIntentConfirmParamsPaymentMethodDataShopeepay, SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort, @@ -4623,6 +4677,7 @@ SetupIntentConfirmParamsPaymentMethodOptionsAmazonPay as SetupIntentConfirmParamsPaymentMethodOptionsAmazonPay, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentConfirmParamsPaymentMethodOptionsBizum as SetupIntentConfirmParamsPaymentMethodOptionsBizum, SetupIntentConfirmParamsPaymentMethodOptionsCard as SetupIntentConfirmParamsPaymentMethodOptionsCard, SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions, SetupIntentConfirmParamsPaymentMethodOptionsCardPresent as SetupIntentConfirmParamsPaymentMethodOptionsCardPresent, @@ -4670,6 +4725,7 @@ SetupIntentCreateParamsPaymentMethodDataBillie as SetupIntentCreateParamsPaymentMethodDataBillie, SetupIntentCreateParamsPaymentMethodDataBillingDetails as SetupIntentCreateParamsPaymentMethodDataBillingDetails, SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress as SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentCreateParamsPaymentMethodDataBizum as SetupIntentCreateParamsPaymentMethodDataBizum, SetupIntentCreateParamsPaymentMethodDataBlik as SetupIntentCreateParamsPaymentMethodDataBlik, SetupIntentCreateParamsPaymentMethodDataBoleto as SetupIntentCreateParamsPaymentMethodDataBoleto, SetupIntentCreateParamsPaymentMethodDataCashapp as SetupIntentCreateParamsPaymentMethodDataCashapp, @@ -4711,6 +4767,7 @@ SetupIntentCreateParamsPaymentMethodDataRevolutPay as SetupIntentCreateParamsPaymentMethodDataRevolutPay, SetupIntentCreateParamsPaymentMethodDataSamsungPay as SetupIntentCreateParamsPaymentMethodDataSamsungPay, SetupIntentCreateParamsPaymentMethodDataSatispay as SetupIntentCreateParamsPaymentMethodDataSatispay, + SetupIntentCreateParamsPaymentMethodDataScalapay as SetupIntentCreateParamsPaymentMethodDataScalapay, SetupIntentCreateParamsPaymentMethodDataSepaDebit as SetupIntentCreateParamsPaymentMethodDataSepaDebit, SetupIntentCreateParamsPaymentMethodDataShopeepay as SetupIntentCreateParamsPaymentMethodDataShopeepay, SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort, @@ -4729,6 +4786,7 @@ SetupIntentCreateParamsPaymentMethodOptionsAmazonPay as SetupIntentCreateParamsPaymentMethodOptionsAmazonPay, SetupIntentCreateParamsPaymentMethodOptionsBacsDebit as SetupIntentCreateParamsPaymentMethodOptionsBacsDebit, SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentCreateParamsPaymentMethodOptionsBizum as SetupIntentCreateParamsPaymentMethodOptionsBizum, SetupIntentCreateParamsPaymentMethodOptionsCard as SetupIntentCreateParamsPaymentMethodOptionsCard, SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentCreateParamsPaymentMethodOptionsCardPresent as SetupIntentCreateParamsPaymentMethodOptionsCardPresent, @@ -4776,6 +4834,7 @@ SetupIntentModifyParamsPaymentMethodDataBillie as SetupIntentModifyParamsPaymentMethodDataBillie, SetupIntentModifyParamsPaymentMethodDataBillingDetails as SetupIntentModifyParamsPaymentMethodDataBillingDetails, SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress as SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentModifyParamsPaymentMethodDataBizum as SetupIntentModifyParamsPaymentMethodDataBizum, SetupIntentModifyParamsPaymentMethodDataBlik as SetupIntentModifyParamsPaymentMethodDataBlik, SetupIntentModifyParamsPaymentMethodDataBoleto as SetupIntentModifyParamsPaymentMethodDataBoleto, SetupIntentModifyParamsPaymentMethodDataCashapp as SetupIntentModifyParamsPaymentMethodDataCashapp, @@ -4817,6 +4876,7 @@ SetupIntentModifyParamsPaymentMethodDataRevolutPay as SetupIntentModifyParamsPaymentMethodDataRevolutPay, SetupIntentModifyParamsPaymentMethodDataSamsungPay as SetupIntentModifyParamsPaymentMethodDataSamsungPay, SetupIntentModifyParamsPaymentMethodDataSatispay as SetupIntentModifyParamsPaymentMethodDataSatispay, + SetupIntentModifyParamsPaymentMethodDataScalapay as SetupIntentModifyParamsPaymentMethodDataScalapay, SetupIntentModifyParamsPaymentMethodDataSepaDebit as SetupIntentModifyParamsPaymentMethodDataSepaDebit, SetupIntentModifyParamsPaymentMethodDataShopeepay as SetupIntentModifyParamsPaymentMethodDataShopeepay, SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort, @@ -4835,6 +4895,7 @@ SetupIntentModifyParamsPaymentMethodOptionsAmazonPay as SetupIntentModifyParamsPaymentMethodOptionsAmazonPay, SetupIntentModifyParamsPaymentMethodOptionsBacsDebit as SetupIntentModifyParamsPaymentMethodOptionsBacsDebit, SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentModifyParamsPaymentMethodOptionsBizum as SetupIntentModifyParamsPaymentMethodOptionsBizum, SetupIntentModifyParamsPaymentMethodOptionsCard as SetupIntentModifyParamsPaymentMethodOptionsCard, SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions, SetupIntentModifyParamsPaymentMethodOptionsCardPresent as SetupIntentModifyParamsPaymentMethodOptionsCardPresent, @@ -4880,6 +4941,7 @@ SetupIntentUpdateParamsPaymentMethodDataBillie as SetupIntentUpdateParamsPaymentMethodDataBillie, SetupIntentUpdateParamsPaymentMethodDataBillingDetails as SetupIntentUpdateParamsPaymentMethodDataBillingDetails, SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress as SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentUpdateParamsPaymentMethodDataBizum as SetupIntentUpdateParamsPaymentMethodDataBizum, SetupIntentUpdateParamsPaymentMethodDataBlik as SetupIntentUpdateParamsPaymentMethodDataBlik, SetupIntentUpdateParamsPaymentMethodDataBoleto as SetupIntentUpdateParamsPaymentMethodDataBoleto, SetupIntentUpdateParamsPaymentMethodDataCashapp as SetupIntentUpdateParamsPaymentMethodDataCashapp, @@ -4921,6 +4983,7 @@ SetupIntentUpdateParamsPaymentMethodDataRevolutPay as SetupIntentUpdateParamsPaymentMethodDataRevolutPay, SetupIntentUpdateParamsPaymentMethodDataSamsungPay as SetupIntentUpdateParamsPaymentMethodDataSamsungPay, SetupIntentUpdateParamsPaymentMethodDataSatispay as SetupIntentUpdateParamsPaymentMethodDataSatispay, + SetupIntentUpdateParamsPaymentMethodDataScalapay as SetupIntentUpdateParamsPaymentMethodDataScalapay, SetupIntentUpdateParamsPaymentMethodDataSepaDebit as SetupIntentUpdateParamsPaymentMethodDataSepaDebit, SetupIntentUpdateParamsPaymentMethodDataShopeepay as SetupIntentUpdateParamsPaymentMethodDataShopeepay, SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort, @@ -4939,6 +5002,7 @@ SetupIntentUpdateParamsPaymentMethodOptionsAmazonPay as SetupIntentUpdateParamsPaymentMethodOptionsAmazonPay, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentUpdateParamsPaymentMethodOptionsBizum as SetupIntentUpdateParamsPaymentMethodOptionsBizum, SetupIntentUpdateParamsPaymentMethodOptionsCard as SetupIntentUpdateParamsPaymentMethodOptionsCard, SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentUpdateParamsPaymentMethodOptionsCardPresent as SetupIntentUpdateParamsPaymentMethodOptionsCardPresent, @@ -5235,6 +5299,12 @@ SubscriptionModifyParamsTrialSettings as SubscriptionModifyParamsTrialSettings, SubscriptionModifyParamsTrialSettingsEndBehavior as SubscriptionModifyParamsTrialSettingsEndBehavior, ) + from stripe.params._subscription_pause_params import ( + SubscriptionPauseParams as SubscriptionPauseParams, + SubscriptionPauseParamsBillFor as SubscriptionPauseParamsBillFor, + SubscriptionPauseParamsBillForOutstandingUsageThrough as SubscriptionPauseParamsBillForOutstandingUsageThrough, + SubscriptionPauseParamsBillForUnusedTimeFrom as SubscriptionPauseParamsBillForUnusedTimeFrom, + ) from stripe.params._subscription_resume_params import ( SubscriptionResumeParams as SubscriptionResumeParams, ) @@ -5781,6 +5851,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesBizumPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesBlikPayments": ( "stripe.params._account_create_params", False, @@ -5965,6 +6039,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesScalapayPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesSepaBankTransferPayments": ( "stripe.params._account_create_params", False, @@ -7117,6 +7195,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesBizumPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesBlikPayments": ( "stripe.params._account_update_params", False, @@ -7301,6 +7383,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesScalapayPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesSepaBankTransferPayments": ( "stripe.params._account_update_params", False, @@ -7699,6 +7785,10 @@ "stripe.params._balance_settings_modify_params", False, ), + "BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency": ( + "stripe.params._balance_settings_modify_params", + False, + ), "BalanceSettingsModifyParamsPaymentsPayoutsSchedule": ( "stripe.params._balance_settings_modify_params", False, @@ -7707,6 +7797,10 @@ "stripe.params._balance_settings_modify_params", False, ), + "BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay": ( + "stripe.params._balance_settings_modify_params", + False, + ), "BalanceSettingsRetrieveParams": ( "stripe.params._balance_settings_retrieve_params", False, @@ -7723,6 +7817,10 @@ "stripe.params._balance_settings_update_params", False, ), + "BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency": ( + "stripe.params._balance_settings_update_params", + False, + ), "BalanceSettingsUpdateParamsPaymentsPayoutsSchedule": ( "stripe.params._balance_settings_update_params", False, @@ -7731,6 +7829,10 @@ "stripe.params._balance_settings_update_params", False, ), + "BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay": ( + "stripe.params._balance_settings_update_params", + False, + ), "BalanceTransactionListParams": ( "stripe.params._balance_transaction_list_params", False, @@ -8696,6 +8798,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataBizum": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBlik": ( "stripe.params._confirmation_token_create_params", False, @@ -8860,6 +8966,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._confirmation_token_create_params", False, @@ -12662,6 +12772,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_confirm_params", False, @@ -12826,6 +12940,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -12926,6 +13044,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_confirm_params", False, @@ -13302,6 +13424,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -13790,6 +13916,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_create_params", False, @@ -13954,6 +14084,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_create_params", False, @@ -14054,6 +14188,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_create_params", False, @@ -14430,6 +14568,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_create_params", False, @@ -14514,6 +14656,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentDecrementAuthorizationParams": ( "stripe.params._payment_intent_decrement_authorization_params", False, @@ -15070,6 +15216,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_modify_params", False, @@ -15234,6 +15384,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -15334,6 +15488,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_modify_params", False, @@ -15710,6 +15868,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -15790,6 +15952,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentRetrieveParams": ( "stripe.params._payment_intent_retrieve_params", False, @@ -16206,6 +16372,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_update_params", False, @@ -16370,6 +16540,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_update_params", False, @@ -16470,6 +16644,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_update_params", False, @@ -16846,6 +17024,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_update_params", False, @@ -16926,6 +17108,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, @@ -17078,6 +17264,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, @@ -17258,6 +17456,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, @@ -17422,6 +17632,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, @@ -17566,6 +17788,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, @@ -17894,6 +18124,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, @@ -18078,6 +18316,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, @@ -18406,6 +18652,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, @@ -18590,6 +18844,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, @@ -18918,6 +19180,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, @@ -19050,6 +19320,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsBizum": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsBlik": ( "stripe.params._payment_method_create_params", False, @@ -19226,6 +19500,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsScalapay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsSepaDebit": ( "stripe.params._payment_method_create_params", False, @@ -20602,6 +20880,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_confirm_params", False, @@ -20766,6 +21048,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_confirm_params", False, @@ -20838,6 +21124,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_confirm_params", False, @@ -21018,6 +21308,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_create_params", False, @@ -21182,6 +21476,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_create_params", False, @@ -21254,6 +21552,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_create_params", False, @@ -21426,6 +21728,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_modify_params", False, @@ -21590,6 +21896,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_modify_params", False, @@ -21662,6 +21972,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_modify_params", False, @@ -21826,6 +22140,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_update_params", False, @@ -21990,6 +22308,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_update_params", False, @@ -22062,6 +22384,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_update_params", False, @@ -23007,6 +23333,22 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionPauseParams": ( + "stripe.params._subscription_pause_params", + False, + ), + "SubscriptionPauseParamsBillFor": ( + "stripe.params._subscription_pause_params", + False, + ), + "SubscriptionPauseParamsBillForOutstandingUsageThrough": ( + "stripe.params._subscription_pause_params", + False, + ), + "SubscriptionPauseParamsBillForUnusedTimeFrom": ( + "stripe.params._subscription_pause_params", + False, + ), "SubscriptionResumeParams": ( "stripe.params._subscription_resume_params", False, diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 11138e953..96412e0c6 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -295,6 +295,10 @@ class AccountCreateParamsCapabilities(TypedDict): """ The billie_payments capability. """ + bizum_payments: NotRequired["AccountCreateParamsCapabilitiesBizumPayments"] + """ + The bizum_payments capability. + """ blik_payments: NotRequired["AccountCreateParamsCapabilitiesBlikPayments"] """ The blik_payments capability. @@ -541,6 +545,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The satispay_payments capability. """ + scalapay_payments: NotRequired[ + "AccountCreateParamsCapabilitiesScalapayPayments" + ] + """ + The scalapay_payments capability. + """ sepa_bank_transfer_payments: NotRequired[ "AccountCreateParamsCapabilitiesSepaBankTransferPayments" ] @@ -729,6 +739,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] """ @@ -1051,6 +1068,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 536ddb643..406e8a4e8 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -282,6 +282,10 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The billie_payments capability. """ + bizum_payments: NotRequired["AccountUpdateParamsCapabilitiesBizumPayments"] + """ + The bizum_payments capability. + """ blik_payments: NotRequired["AccountUpdateParamsCapabilitiesBlikPayments"] """ The blik_payments capability. @@ -528,6 +532,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The satispay_payments capability. """ + scalapay_payments: NotRequired[ + "AccountUpdateParamsCapabilitiesScalapayPayments" + ] + """ + The scalapay_payments capability. + """ sepa_bank_transfer_payments: NotRequired[ "AccountUpdateParamsCapabilitiesSepaBankTransferPayments" ] @@ -716,6 +726,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] """ @@ -1038,6 +1055,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 86b8b0396..addf1865e 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. @@ -194,7 +198,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"] """ @@ -306,6 +310,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" ] @@ -355,6 +365,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -392,6 +403,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -550,6 +562,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class ConfirmationTokenCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -907,6 +923,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 fa19a1074..6dafbc2b4 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", @@ -77,6 +78,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py index 0a3556e89..679d2a153 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", @@ -76,6 +77,7 @@ class CustomerPaymentMethodListParams(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index 1aa215249..4d639ad55 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -286,7 +286,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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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 4513b9e4a..5428d35c8 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -1314,6 +1314,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" @@ -1884,7 +1888,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict): 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. diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index 6979a82a7..9fdfad81f 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -253,7 +253,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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 fa260c26a..5be145d5e 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -252,7 +252,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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 e0eb8a9b5..2c69eb5f1 100644 --- a/stripe/params/_payment_intent_capture_params.py +++ b/stripe/params/_payment_intent_capture_params.py @@ -243,11 +243,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 45be62465..895413bac 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -38,7 +38,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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', '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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -64,7 +64,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" @@ -316,11 +316,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. """ @@ -2295,6 +2295,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. @@ -2373,7 +2377,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"] """ @@ -2485,6 +2489,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" ] @@ -2534,6 +2544,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -2571,6 +2582,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -2727,6 +2739,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentConfirmParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataBlik(TypedDict): pass @@ -3084,6 +3100,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentConfirmParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -3241,6 +3261,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" ] @@ -3359,7 +3385,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" @@ -3481,6 +3507,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" ] @@ -3796,6 +3828,10 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -6283,6 +6319,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" @@ -6394,7 +6441,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 cafb63ca4..5f1b9740f 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", @@ -123,6 +124,7 @@ class PaymentIntentCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -168,7 +170,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] """ @@ -446,11 +448,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. """ @@ -2420,6 +2422,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. @@ -2498,7 +2504,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"] """ @@ -2606,6 +2612,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" ] @@ -2655,6 +2665,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -2692,6 +2703,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -2848,6 +2860,10 @@ class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -3205,6 +3221,10 @@ class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -3362,6 +3382,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" ] @@ -3480,7 +3506,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" @@ -3602,6 +3628,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" ] @@ -3915,6 +3947,10 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -6398,6 +6434,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" @@ -6509,7 +6556,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. @@ -6792,6 +6839,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 @@ -6799,3 +6850,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_decrement_authorization_params.py b/stripe/params/_payment_intent_decrement_authorization_params.py index d87b32a8d..ef89c866d 100644 --- a/stripe/params/_payment_intent_decrement_authorization_params.py +++ b/stripe/params/_payment_intent_decrement_authorization_params.py @@ -245,11 +245,11 @@ class PaymentIntentDecrementAuthorizationParamsAmountDetailsShipping( """ 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_increment_authorization_params.py b/stripe/params/_payment_intent_increment_authorization_params.py index ef59ca000..b7f4cbc0a 100644 --- a/stripe/params/_payment_intent_increment_authorization_params.py +++ b/stripe/params/_payment_intent_increment_authorization_params.py @@ -255,11 +255,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 09671c353..07222fa8b 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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', '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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -333,11 +333,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. """ @@ -2278,6 +2278,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. @@ -2356,7 +2360,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"] """ @@ -2464,6 +2468,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" ] @@ -2513,6 +2521,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -2550,6 +2559,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -2706,6 +2716,10 @@ class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentModifyParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataBlik(TypedDict): pass @@ -3063,6 +3077,10 @@ class PaymentIntentModifyParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentModifyParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -3220,6 +3238,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" ] @@ -3338,7 +3362,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" @@ -3460,6 +3484,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" ] @@ -3773,6 +3803,10 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -6256,6 +6290,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" @@ -6367,7 +6412,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. @@ -6637,3 +6682,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 144269ee0..465504713 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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', '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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -332,11 +332,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. """ @@ -2277,6 +2277,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. @@ -2355,7 +2359,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"] """ @@ -2463,6 +2467,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" ] @@ -2512,6 +2520,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -2549,6 +2558,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -2705,6 +2715,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentUpdateParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataBlik(TypedDict): pass @@ -3062,6 +3076,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentUpdateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -3219,6 +3237,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" ] @@ -3337,7 +3361,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" @@ -3459,6 +3483,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" ] @@ -3772,6 +3802,10 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -6255,6 +6289,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" @@ -6366,7 +6411,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. @@ -6636,3 +6681,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 67cf1faa5..6e33186f0 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", @@ -269,7 +273,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"]] """ @@ -765,6 +769,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 0bc983969..d6ab86125 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', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', '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', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', '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 edab674d9..5577b0e3a 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', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', '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', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', '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 de4fa987b..ad51bec9f 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. @@ -250,6 +254,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. @@ -502,6 +510,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" @@ -1196,6 +1220,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 d4c256ff0..7a3680b3b 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. @@ -250,6 +254,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. @@ -502,6 +510,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" @@ -1196,6 +1220,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 13515ad88..d9d192595 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. @@ -249,6 +253,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. @@ -501,6 +509,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" @@ -1195,6 +1219,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 dc7832e22..92abfade4 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. @@ -141,7 +145,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"] """ @@ -235,6 +239,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. @@ -275,6 +283,7 @@ class PaymentMethodCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -314,6 +323,7 @@ class PaymentMethodCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -465,6 +475,10 @@ class PaymentMethodCreateParamsBillingDetailsAddress(TypedDict): """ +class PaymentMethodCreateParamsBizum(TypedDict): + pass + + class PaymentMethodCreateParamsBlik(TypedDict): pass @@ -863,6 +877,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 07a7f8c7b..e88a5cabc 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", @@ -85,6 +86,7 @@ class PaymentMethodListParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", 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 7d2f6e08c..4086ae73c 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. @@ -235,7 +239,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"] """ @@ -341,6 +345,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" ] @@ -390,6 +398,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -427,6 +436,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -583,6 +593,10 @@ class SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ +class SetupIntentConfirmParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataBlik(TypedDict): pass @@ -940,6 +954,10 @@ class SetupIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1055,6 +1073,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. @@ -1071,7 +1093,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"] """ @@ -1171,6 +1193,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 0833474e7..3df403a72 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", @@ -95,6 +96,7 @@ class SetupIntentCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -300,6 +302,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. @@ -376,7 +382,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"] """ @@ -478,6 +484,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" ] @@ -525,6 +535,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -562,6 +573,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -716,6 +728,10 @@ class SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -1073,6 +1089,10 @@ class SetupIntentCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1188,6 +1208,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. @@ -1204,7 +1228,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"] """ @@ -1304,6 +1328,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 59db1eaeb..9d93460ba 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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', '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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', '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. @@ -217,7 +221,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"] """ @@ -319,6 +323,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" ] @@ -366,6 +374,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -403,6 +412,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -557,6 +567,10 @@ class SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataBlik(TypedDict): pass @@ -914,6 +928,10 @@ class SetupIntentModifyParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1029,6 +1047,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. @@ -1045,7 +1067,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"] """ @@ -1145,6 +1167,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 73f4b7a98..52cd0d9bf 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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', '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', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', '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. @@ -216,7 +220,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"] """ @@ -318,6 +322,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" ] @@ -365,6 +373,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -402,6 +411,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -556,6 +566,10 @@ class SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataBlik(TypedDict): pass @@ -913,6 +927,10 @@ class SetupIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1028,6 +1046,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. @@ -1044,7 +1066,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"] """ @@ -1144,6 +1166,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 a59c3d184..d51dc2f3d 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -52,7 +52,9 @@ class SubscriptionCreateParams(RequestOptions): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ - cancel_at: NotRequired["int|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. """ @@ -139,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"] """ @@ -194,6 +186,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"] ] @@ -703,7 +699,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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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 c5bed4209..21225cabd 100644 --- a/stripe/params/_subscription_item_create_params.py +++ b/stripe/params/_subscription_item_create_params.py @@ -41,13 +41,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 641b7a251..34089943a 100644 --- a/stripe/params/_subscription_item_modify_params.py +++ b/stripe/params/_subscription_item_modify_params.py @@ -47,13 +47,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 813a22f47..1b14b0f18 100644 --- a/stripe/params/_subscription_item_update_params.py +++ b/stripe/params/_subscription_item_update_params.py @@ -46,13 +46,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 92880ff82..61e520062 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -39,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. @@ -84,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]] """ @@ -127,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"] """ @@ -180,6 +174,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"] ] @@ -671,7 +669,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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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_pause_params.py b/stripe/params/_subscription_pause_params.py new file mode 100644 index 000000000..454b7f268 --- /dev/null +++ b/stripe/params/_subscription_pause_params.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import Literal, NotRequired, TypedDict + + +class SubscriptionPauseParams(RequestOptions): + bill_for: NotRequired["SubscriptionPauseParamsBillFor"] + """ + Controls what to bill for when pausing the subscription. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + invoicing_behavior: NotRequired[Literal["invoice", "pending_invoice_item"]] + """ + Determines how to handle debits and credits when pausing. The default is `pending_invoice_item`. + """ + type: NotRequired[Literal["subscription"]] + """ + The type of pause to apply. Defaults to `subscription`. + """ + + +class SubscriptionPauseParamsBillFor(TypedDict): + outstanding_usage_through: NotRequired[ + "SubscriptionPauseParamsBillForOutstandingUsageThrough" + ] + """ + Controls when to bill for metered usage in the current period. Defaults to `{ type: "now" }`. + """ + unused_time_from: NotRequired[ + "SubscriptionPauseParamsBillForUnusedTimeFrom" + ] + """ + Controls when to credit for unused time on licensed items. Defaults to `{ type: "now" }`. + """ + + +class SubscriptionPauseParamsBillForOutstandingUsageThrough(TypedDict): + type: Literal["none", "now"] + """ + When to bill metered usage in the current period. + """ + + +class SubscriptionPauseParamsBillForUnusedTimeFrom(TypedDict): + type: Literal["item_current_period_start", "none", "now"] + """ + When to credit for unused time. + """ diff --git a/stripe/params/_subscription_resume_params.py b/stripe/params/_subscription_resume_params.py index e1ad4a625..5fdfc6f66 100644 --- a/stripe/params/_subscription_resume_params.py +++ b/stripe/params/_subscription_resume_params.py @@ -14,6 +14,12 @@ class SubscriptionResumeParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ + payment_behavior: NotRequired[ + Literal["resume_on_payment_attempt", "resume_on_payment_success"] + ] + """ + Controls whether Stripe attempts payment on the resumption invoice in the resume request, and how payment on that invoice affects the subscription's status. The default is `resume_on_payment_attempt`. + """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] ] diff --git a/stripe/params/_subscription_schedule_create_params.py b/stripe/params/_subscription_schedule_create_params.py index 5c9388bb6..08adc838f 100644 --- a/stripe/params/_subscription_schedule_create_params.py +++ b/stripe/params/_subscription_schedule_create_params.py @@ -339,6 +339,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 4abb5bf31..7e16a6d73 100644 --- a/stripe/params/_subscription_schedule_modify_params.py +++ b/stripe/params/_subscription_schedule_modify_params.py @@ -309,6 +309,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 dd89dd323..7489a83fb 100644 --- a/stripe/params/_subscription_schedule_update_params.py +++ b/stripe/params/_subscription_schedule_update_params.py @@ -308,6 +308,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 9b1716688..4db1aeec9 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -38,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. @@ -83,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]] """ @@ -126,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"] """ @@ -179,6 +173,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"] ] @@ -670,7 +668,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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', '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', 'stripe_balance', '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 a17f4cd42..937b98bf6 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 d0c49a2e4..9c82515b3 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -105,6 +105,7 @@ SessionCreateParamsPaymentMethodOptionsRevolutPay as SessionCreateParamsPaymentMethodOptionsRevolutPay, SessionCreateParamsPaymentMethodOptionsSamsungPay as SessionCreateParamsPaymentMethodOptionsSamsungPay, SessionCreateParamsPaymentMethodOptionsSatispay as SessionCreateParamsPaymentMethodOptionsSatispay, + SessionCreateParamsPaymentMethodOptionsScalapay as SessionCreateParamsPaymentMethodOptionsScalapay, SessionCreateParamsPaymentMethodOptionsSepaDebit as SessionCreateParamsPaymentMethodOptionsSepaDebit, SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort, @@ -621,6 +622,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 fc732618d..8d2f9786c 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", @@ -153,6 +154,7 @@ class SessionCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -277,7 +279,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"] """ @@ -319,6 +321,7 @@ class SessionCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -356,6 +359,7 @@ class SessionCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -401,12 +405,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[ @@ -437,7 +441,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"] """ @@ -447,7 +451,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). """ @@ -459,7 +463,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"] """ @@ -594,7 +598,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"]] """ @@ -1263,7 +1267,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"] """ @@ -1375,7 +1379,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"] """ @@ -1441,6 +1445,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. @@ -1804,7 +1812,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. """ @@ -2431,6 +2439,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" @@ -2486,7 +2501,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. @@ -3068,7 +3083,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"] """ @@ -3222,7 +3237,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 f5c5f4b54..89fb30f98 100644 --- a/stripe/params/terminal/__init__.py +++ b/stripe/params/terminal/__init__.py @@ -36,7 +36,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, @@ -80,7 +84,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, @@ -121,7 +129,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, @@ -360,10 +372,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, @@ -512,10 +540,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, @@ -660,10 +704,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 c84ae175a..d62b7461f 100644 --- a/stripe/params/terminal/_configuration_create_params.py +++ b/stripe/params/terminal/_configuration_create_params.py @@ -52,10 +52,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. @@ -524,6 +540,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"] """ @@ -531,6 +554,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 6d030d79e..cb4a0a550 100644 --- a/stripe/params/terminal/_configuration_modify_params.py +++ b/stripe/params/terminal/_configuration_modify_params.py @@ -58,12 +58,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. @@ -532,6 +556,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"] """ @@ -539,6 +570,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 59721a7ec..9ff889662 100644 --- a/stripe/params/terminal/_configuration_update_params.py +++ b/stripe/params/terminal/_configuration_update_params.py @@ -57,12 +57,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. @@ -531,6 +555,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"] """ @@ -538,6 +569,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 a18069676..2c8adbbf3 100644 --- a/stripe/params/test_helpers/__init__.py +++ b/stripe/params/test_helpers/__init__.py @@ -25,6 +25,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress, + ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, @@ -66,6 +67,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay, ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, + ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, @@ -169,6 +171,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, @@ -333,6 +339,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 343eb6fe4..6d4a488df 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. @@ -193,7 +197,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"] """ @@ -305,6 +309,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" ] @@ -354,6 +364,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -391,6 +402,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -549,6 +561,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class ConfirmationTokenCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -906,6 +922,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/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index d2c634817..d2a12f622 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -133,7 +133,9 @@ AccountCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack as AccountCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack, AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress, AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration, + AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner, AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership, + AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner as AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner, AccountCreateParamsIdentityBusinessDetailsIdNumber as AccountCreateParamsIdentityBusinessDetailsIdNumber, AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue, AccountCreateParamsIdentityBusinessDetailsRegistrationDate as AccountCreateParamsIdentityBusinessDetailsRegistrationDate, @@ -204,7 +206,9 @@ AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack, AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress, AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner, AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner, AccountTokenCreateParamsIdentityBusinessDetailsIdNumber as AccountTokenCreateParamsIdentityBusinessDetailsIdNumber, AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue, AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate as AccountTokenCreateParamsIdentityBusinessDetailsRegistrationDate, @@ -365,7 +369,9 @@ AccountUpdateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack as AccountUpdateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack, AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfAddress as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfAddress, AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration, + AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner, AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership, + AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner as AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner, AccountUpdateParamsIdentityBusinessDetailsIdNumber as AccountUpdateParamsIdentityBusinessDetailsIdNumber, AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountUpdateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue, AccountUpdateParamsIdentityBusinessDetailsRegistrationDate as AccountUpdateParamsIdentityBusinessDetailsRegistrationDate, @@ -948,10 +954,18 @@ "stripe.params.v2.core._account_create_params", False, ), + "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner": ( + "stripe.params.v2.core._account_create_params", + False, + ), "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership": ( "stripe.params.v2.core._account_create_params", False, ), + "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner": ( + "stripe.params.v2.core._account_create_params", + False, + ), "AccountCreateParamsIdentityBusinessDetailsIdNumber": ( "stripe.params.v2.core._account_create_params", False, @@ -1197,10 +1211,18 @@ "stripe.params.v2.core._account_token_create_params", False, ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership": ( "stripe.params.v2.core._account_token_create_params", False, ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), "AccountTokenCreateParamsIdentityBusinessDetailsIdNumber": ( "stripe.params.v2.core._account_token_create_params", False, @@ -1825,10 +1847,18 @@ "stripe.params.v2.core._account_update_params", False, ), + "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner": ( + "stripe.params.v2.core._account_update_params", + False, + ), "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership": ( "stripe.params.v2.core._account_update_params", False, ), + "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner": ( + "stripe.params.v2.core._account_update_params", + False, + ), "AccountUpdateParamsIdentityBusinessDetailsIdNumber": ( "stripe.params.v2.core._account_update_params", False, diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py index dc92b69f2..423705d5a 100644 --- a/stripe/params/v2/core/_account_create_params.py +++ b/stripe/params/v2/core/_account_create_params.py @@ -18,7 +18,7 @@ class AccountCreateParams(TypedDict): """ contact_email: NotRequired[str] """ - The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + The primary contact email address for the Account. """ contact_phone: NotRequired[str] """ @@ -66,7 +66,7 @@ class AccountCreateParams(TypedDict): class AccountCreateParamsConfiguration(TypedDict): customer: NotRequired["AccountCreateParamsConfigurationCustomer"] """ - The Customer Configuration allows the Account to be used in inbound payment flows. + The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). """ merchant: NotRequired["AccountCreateParamsConfigurationMerchant"] """ @@ -1658,7 +1658,7 @@ class AccountCreateParamsIdentity(TypedDict): Literal["company", "government_entity", "individual", "non_profit"] ] """ - The entity type. + The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. """ individual: NotRequired["AccountCreateParamsIdentityIndividual"] """ @@ -2141,12 +2141,27 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration( """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership( TypedDict, ): @@ -2154,12 +2169,27 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBenefici """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountCreateParamsIdentityBusinessDetailsIdNumber(TypedDict): registrar: NotRequired[str] """ @@ -2452,7 +2482,7 @@ class AccountCreateParamsIdentityIndividual(TypedDict): """ email: NotRequired[str] """ - The individual's email address. + The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. """ given_name: NotRequired[str] """ diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py index 4e359fbcf..08417d922 100644 --- a/stripe/params/v2/core/_account_token_create_params.py +++ b/stripe/params/v2/core/_account_token_create_params.py @@ -10,7 +10,7 @@ class AccountTokenCreateParams(TypedDict): contact_email: NotRequired[str] """ - The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + The primary contact email address for the Account. """ contact_phone: NotRequired[str] """ @@ -358,7 +358,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocuments(TypedDict): "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration" ] """ - One or more documents showing the company's proof of registration with the national business registry. + One or more documents that demonstrate proof of ultimate beneficial ownership. """ proof_of_ultimate_beneficial_ownership: NotRequired[ "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership" @@ -492,12 +492,27 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistratio """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership( TypedDict, ): @@ -505,12 +520,27 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBen """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountTokenCreateParamsIdentityBusinessDetailsIdNumber(TypedDict): registrar: NotRequired[str] """ @@ -815,7 +845,7 @@ class AccountTokenCreateParamsIdentityIndividual(TypedDict): """ email: NotRequired[str] """ - The individual's email address. + The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. """ given_name: NotRequired[str] """ diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py index b8bea7ad8..df6fc991c 100644 --- a/stripe/params/v2/core/_account_update_params.py +++ b/stripe/params/v2/core/_account_update_params.py @@ -18,7 +18,7 @@ class AccountUpdateParams(TypedDict): """ contact_email: NotRequired[str] """ - The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + The primary contact email address for the Account. """ contact_phone: NotRequired[str] """ @@ -144,7 +144,7 @@ class AccountUpdateParamsConfigurationCustomerAutomaticIndirectTax(TypedDict): class AccountUpdateParamsConfigurationCustomerBilling(TypedDict): default_payment_method: NotRequired[str] """ - ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions. + The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. """ invoice: NotRequired[ "AccountUpdateParamsConfigurationCustomerBillingInvoice" @@ -1688,7 +1688,7 @@ class AccountUpdateParamsIdentity(TypedDict): Literal["company", "government_entity", "individual", "non_profit"] ] """ - The entity type. + The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. """ individual: NotRequired["AccountUpdateParamsIdentityIndividual"] """ @@ -2060,7 +2060,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocuments(TypedDict): "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration" ] """ - One or more documents showing the company's proof of registration with the national business registry. + One or more documents that demonstrate proof of ultimate beneficial ownership. """ proof_of_ultimate_beneficial_ownership: NotRequired[ "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership" @@ -2194,12 +2194,27 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration( """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistrationSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership( TypedDict, ): @@ -2207,12 +2222,27 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBenefici """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: NotRequired[ + "AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner" + ] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ +class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipSigner( + TypedDict, +): + person: str + """ + Person signing the document. + """ + + class AccountUpdateParamsIdentityBusinessDetailsIdNumber(TypedDict): registrar: NotRequired[str] """ @@ -2505,7 +2535,7 @@ class AccountUpdateParamsIdentityIndividual(TypedDict): """ email: NotRequired[str] """ - The individual's email address. + The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. """ given_name: NotRequired[str] """ diff --git a/stripe/params/v2/core/_batch_job_create_params.py b/stripe/params/v2/core/_batch_job_create_params.py index 6b642227a..98cdefc57 100644 --- a/stripe/params/v2/core/_batch_job_create_params.py +++ b/stripe/params/v2/core/_batch_job_create_params.py @@ -38,17 +38,13 @@ class BatchJobCreateParamsEndpoint(TypedDict): """ path: Literal[ "/v1/accounts/:account", - "/v1/credit_notes", + "/v1/coupons", "/v1/customers/:customer", - "/v1/invoices/:invoice", - "/v1/invoices/:invoice/pay", "/v1/promotion_codes", "/v1/promotion_codes/:promotion_code", "/v1/subscriptions/:subscription_exposed_id", + "/v1/subscriptions/:subscription_exposed_id", "/v1/subscriptions/:subscription/migrate", - "/v1/subscription_schedules", - "/v1/subscription_schedules/:schedule", - "/v1/subscription_schedules/:schedule/cancel", ] """ The path of the endpoint to run this batch job against. diff --git a/stripe/params/v2/iam/__init__.py b/stripe/params/v2/iam/__init__.py index 2d9912b4f..c5b05a087 100644 --- a/stripe/params/v2/iam/__init__.py +++ b/stripe/params/v2/iam/__init__.py @@ -7,6 +7,9 @@ from stripe.params.v2.iam._activity_log_list_params import ( ActivityLogListParams as ActivityLogListParams, ) + from stripe.params.v2.iam._activity_log_retrieve_params import ( + ActivityLogRetrieveParams as ActivityLogRetrieveParams, + ) # name -> (import_target, is_submodule) _import_map = { @@ -14,6 +17,10 @@ "stripe.params.v2.iam._activity_log_list_params", False, ), + "ActivityLogRetrieveParams": ( + "stripe.params.v2.iam._activity_log_retrieve_params", + False, + ), } if not TYPE_CHECKING: diff --git a/stripe/params/v2/iam/_activity_log_retrieve_params.py b/stripe/params/v2/iam/_activity_log_retrieve_params.py new file mode 100644 index 000000000..c0bb5d21e --- /dev/null +++ b/stripe/params/v2/iam/_activity_log_retrieve_params.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import TypedDict + + +class ActivityLogRetrieveParams(TypedDict): + pass diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py index 2fa84d36f..24df33099 100644 --- a/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py +++ b/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py @@ -14,6 +14,7 @@ class OutboundSetupIntentUpdateParams(TypedDict): """ If no payout_method provided, used to create the underlying credential that is set up for outbound money movement. If a payout_method provided, used to update data on the credential linked to this setup intent. + Only card expiry (exp_month, exp_year) can be updated in the case where payout_method is provided. """ diff --git a/stripe/params/v2/test_helpers/_financial_address_credit_params.py b/stripe/params/v2/test_helpers/_financial_address_credit_params.py index 99625b139..af2c815d1 100644 --- a/stripe/params/v2/test_helpers/_financial_address_credit_params.py +++ b/stripe/params/v2/test_helpers/_financial_address_credit_params.py @@ -9,7 +9,7 @@ class FinancialAddressCreditParams(TypedDict): """ Object containing the amount value and currency to credit. """ - network: Literal["ach", "fps", "rtp", "wire"] + network: Literal["ach", "chaps", "fps", "rtp", "wire"] """ Open Enum. The network to use in simulating the funds flow. This will be the reflected in the resulting ReceivedCredit. """ diff --git a/stripe/product_catalog/_trial_offer.py b/stripe/product_catalog/_trial_offer.py index 40253cfe5..f154f5e52 100644 --- a/stripe/product_catalog/_trial_offer.py +++ b/stripe/product_catalog/_trial_offer.py @@ -15,8 +15,11 @@ class TrialOffer(CreateableAPIResource["TrialOffer"]): """ - Resource for the TrialOffer API, used to describe a subscription item's trial period settings. - Renders a TrialOffer object that describes the price, duration, end_behavior of a trial offer. + Trial offers let you define free or paid introductory pricing for a subscription item. + A TrialOffer specifies the price to charge during the trial, how long the trial lasts + (a fixed end timestamp or a number of billing intervals), and what price the subscription + item transitions to when the trial ends. You attach a TrialOffer to a subscription item + using `items[current_trial][trial_offer]` when creating or updating a subscription. """ OBJECT_NAME: ClassVar[Literal["product_catalog.trial_offer"]] = ( @@ -39,7 +42,7 @@ class Relative(StripeObject): class EndBehavior(StripeObject): class Transition(StripeObject): - price: str + price: ExpandableField["Price"] """ The new price to use at the end of the trial offer period. """ diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index a3c0f06e5..b341e5eb3 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/shared_payment/_granted_token.py b/stripe/shared_payment/_granted_token.py index fa62663fa..77adb8ae5 100644 --- a/stripe/shared_payment/_granted_token.py +++ b/stripe/shared_payment/_granted_token.py @@ -163,6 +163,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1046,6 +1049,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1228,6 +1234,7 @@ class Zip(StripeObject): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1268,6 +1275,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] @@ -1286,6 +1294,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1327,6 +1336,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "shopeepay", "sofort", @@ -1358,6 +1368,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1398,6 +1409,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index 5ac56a0f2..833ffb0d6 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -437,12 +437,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] @@ -542,7 +566,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 @@ -781,6 +809,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 5fa4ee346..7867ebaaa 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,306 @@ 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_institution_unavailable", + "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", + "sensitive_data_access_expired", + "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_collected_data_invalid", + "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", + "v2_account_disconnection_unsupported", + "v2_account_missing_configuration", + ] + ] + """ + 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): @@ -310,6 +614,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): @@ -466,6 +799,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 @@ -486,6 +823,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 @@ -510,6 +851,7 @@ class LineItem(StripeObject): "collect_inputs", "collect_payment_method", "confirm_payment_intent", + "print_content", "process_payment_intent", "process_setup_intent", "refund_payment", @@ -519,9 +861,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, @@ -547,11 +891,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. diff --git a/stripe/v2/__init__.py b/stripe/v2/__init__.py index fe5cdea9c..45fc0ea4a 100644 --- a/stripe/v2/__init__.py +++ b/stripe/v2/__init__.py @@ -22,7 +22,7 @@ from stripe.v2._billing_service import BillingService as BillingService from stripe.v2._commerce_service import CommerceService as CommerceService from stripe.v2._core_service import CoreService as CoreService - from stripe.v2._datum_service import DatumService as DatumService + from stripe.v2._data_service import DataService as DataService from stripe.v2._deleted_object import DeletedObject as DeletedObject from stripe.v2._extend_service import ExtendService as ExtendService from stripe.v2._financial_address_credit_simulation import ( @@ -58,7 +58,7 @@ "BillingService": ("stripe.v2._billing_service", False), "CommerceService": ("stripe.v2._commerce_service", False), "CoreService": ("stripe.v2._core_service", False), - "DatumService": ("stripe.v2._datum_service", False), + "DataService": ("stripe.v2._data_service", False), "DeletedObject": ("stripe.v2._deleted_object", False), "ExtendService": ("stripe.v2._extend_service", False), "FinancialAddressCreditSimulation": ( diff --git a/stripe/v2/_datum_service.py b/stripe/v2/_data_service.py similarity index 96% rename from stripe/v2/_datum_service.py rename to stripe/v2/_data_service.py index e654d27ed..6c6d0d19a 100644 --- a/stripe/v2/_datum_service.py +++ b/stripe/v2/_data_service.py @@ -12,7 +12,7 @@ } -class DatumService(StripeService): +class DataService(StripeService): reporting: "ReportingService" def __init__(self, requestor): diff --git a/stripe/v2/commerce/_product_catalog_import.py b/stripe/v2/commerce/_product_catalog_import.py index e5562955f..3e48b840e 100644 --- a/stripe/v2/commerce/_product_catalog_import.py +++ b/stripe/v2/commerce/_product_catalog_import.py @@ -7,7 +7,7 @@ class ProductCatalogImport(StripeObject): """ - The product catalog import object tracks the long-running background process that handles uploading, processing and validation. + The ProductCatalogImport object tracks the long-running background process that handles uploading, processing and validation. """ OBJECT_NAME: ClassVar[Literal["v2.commerce.product_catalog_import"]] = ( diff --git a/stripe/v2/core/__init__.py b/stripe/v2/core/__init__.py index c694e2591..6dc196b95 100644 --- a/stripe/v2/core/__init__.py +++ b/stripe/v2/core/__init__.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +# File copied from our code generator; changes here will be overwritten. +# -*- coding: utf-8 -*- from typing_extensions import TYPE_CHECKING from stripe.v2.core._event import ( diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index 5ffbc2f45..16d793aa6 100644 --- a/stripe/v2/core/_account.py +++ b/stripe/v2/core/_account.py @@ -9,9 +9,8 @@ class Account(StripeObject): """ - An Account v2 object represents a company, individual, or other entity that interacts with a platform on Stripe. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. - The Accounts v2 API supports both the Global Payouts preview feature and the Connect-Billing integration preview feature. However, a particular Account can only access one of them. - The Connect-Billing integration preview feature allows an Account v2 to pay subscription fees to a platform. An Account v1 required a separate Customer object to pay subscription fees. + An Account v2 object represents a company, individual, or other entity that your Stripe integration interacts with. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. + The Accounts v2 API is broadly available to Connect platforms, and to other users in preview. The Accounts v2 API also supports the Global Payouts preview feature. """ OBJECT_NAME: ClassVar[Literal["v2.core.account"]] = "v2.core.account" @@ -105,7 +104,7 @@ class Rendering(StripeObject): default_payment_method: Optional[str] """ - ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions. + The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. """ invoice: Optional[Invoice] """ @@ -2430,15 +2429,20 @@ class DefaultOutboundDestination(StripeObject): "ag_bank_account", "al_bank_account", "am_bank_account", + "ao_bank_account", "ar_bank_account", "at_bank_account", "au_bank_account", + "az_bank_account", "ba_bank_account", + "bd_bank_account", "be_bank_account", "bg_bank_account", "bh_bank_account", "bj_bank_account", "bn_bank_account", + "bo_bank_account", + "br_bank_account", "bs_bank_account", "bt_bank_account", "bw_bank_account", @@ -2446,6 +2450,7 @@ class DefaultOutboundDestination(StripeObject): "ca_bank_account", "ch_bank_account", "ci_bank_account", + "cl_bank_account", "cn_bank_account", "co_bank_account", "crypto_wallet", @@ -2463,12 +2468,16 @@ class DefaultOutboundDestination(StripeObject): "et_bank_account", "fi_bank_account", "fr_bank_account", + "ga_bank_account", "gb_bank_account", + "gh_bank_account", + "gi_bank_account", "gm_bank_account", "gr_bank_account", "gt_bank_account", "gy_bank_account", "hk_bank_account", + "hn_bank_account", "hr_bank_account", "hu_bank_account", "id_bank_account", @@ -2482,7 +2491,10 @@ class DefaultOutboundDestination(StripeObject): "jp_bank_account", "ke_bank_account", "kh_bank_account", + "kr_bank_account", "kw_bank_account", + "kz_bank_account", + "la_bank_account", "lc_bank_account", "li_bank_account", "lk_bank_account", @@ -2502,6 +2514,9 @@ class DefaultOutboundDestination(StripeObject): "my_bank_account", "mz_bank_account", "na_bank_account", + "ne_bank_account", + "ng_bank_account", + "ni_bank_account", "nl_bank_account", "no_bank_account", "nz_bank_account", @@ -2512,14 +2527,17 @@ class DefaultOutboundDestination(StripeObject): "pk_bank_account", "pl_bank_account", "pt_bank_account", + "py_bank_account", "qa_bank_account", "ro_bank_account", "rs_bank_account", "rw_bank_account", + "sa_bank_account", "se_bank_account", "sg_bank_account", "si_bank_account", "sk_bank_account", + "sm_bank_account", "sn_bank_account", "sv_bank_account", "th_bank_account", @@ -2529,6 +2547,7 @@ class DefaultOutboundDestination(StripeObject): "tw_bank_account", "tz_bank_account", "us_bank_account", + "uy_bank_account", "uz_bank_account", "vn_bank_account", "za_bank_account", @@ -3008,7 +3027,7 @@ class StatusDetail(StripeObject): customer: Optional[Customer] """ - The Customer Configuration allows the Account to be used in inbound payment flows. + The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). """ merchant: Optional[Merchant] """ @@ -3745,24 +3764,46 @@ class ProofOfAddress(StripeObject): """ class ProofOfRegistration(StripeObject): + class Signer(StripeObject): + person: str + """ + Person signing the document. + """ + files: List[str] """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: Optional[Signer] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ + _inner_class_types = {"signer": Signer} class ProofOfUltimateBeneficialOwnership(StripeObject): + class Signer(StripeObject): + person: str + """ + Person signing the document. + """ + files: List[str] """ One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. """ + signer: Optional[Signer] + """ + Person that is signing the document. + """ type: Literal["files"] """ The format of the document. Currently supports `files` only. """ + _inner_class_types = {"signer": Signer} bank_account_ownership_verification: Optional[ BankAccountOwnershipVerification @@ -4628,7 +4669,7 @@ class Kanji(StripeObject): """ email: Optional[str] """ - The individual's email address. + The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. """ given_name: Optional[str] """ @@ -4715,7 +4756,7 @@ class Kanji(StripeObject): Literal["company", "government_entity", "individual", "non_profit"] ] """ - The entity type. + The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. """ individual: Optional[Individual] """ @@ -5037,7 +5078,7 @@ class MinimumDeadline(StripeObject): """ contact_email: Optional[str] """ - The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + The primary contact email address for the Account. """ contact_phone: Optional[str] """ diff --git a/stripe/v2/core/_account_service.py b/stripe/v2/core/_account_service.py index d4f2f6c0c..055a76fb0 100644 --- a/stripe/v2/core/_account_service.py +++ b/stripe/v2/core/_account_service.py @@ -102,7 +102,7 @@ def create( options: Optional["RequestOptions"] = None, ) -> "Account": """ - An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. + Create an Account that represents a company, individual, or other entity that your business interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. """ return cast( "Account", @@ -121,7 +121,7 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "Account": """ - An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. + Create an Account that represents a company, individual, or other entity that your business interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. """ return cast( "Account", diff --git a/stripe/v2/core/_account_token.py b/stripe/v2/core/_account_token.py index c64b53754..27f454cb0 100644 --- a/stripe/v2/core/_account_token.py +++ b/stripe/v2/core/_account_token.py @@ -7,7 +7,7 @@ class AccountToken(StripeObject): """ - Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + Account tokens are single-use tokens which tokenize an account's contact_email, display_name, contact_phone, and identity. """ OBJECT_NAME: ClassVar[Literal["v2.core.account_token"]] = ( diff --git a/stripe/v2/core/_account_token_service.py b/stripe/v2/core/_account_token_service.py index a79949eee..2eea9c98f 100644 --- a/stripe/v2/core/_account_token_service.py +++ b/stripe/v2/core/_account_token_service.py @@ -23,7 +23,11 @@ def create( options: Optional["RequestOptions"] = None, ) -> "AccountToken": """ - Creates an Account Token. + Create an account token with a publishable key and pass it to the Accounts v2 API to + create or update an account without its data touching your server. + Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + In live mode, you can only create account tokens with your application's publishable key. + In test mode, you can create account tokens with your secret key or publishable key. """ return cast( "AccountToken", @@ -42,7 +46,11 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "AccountToken": """ - Creates an Account Token. + Create an account token with a publishable key and pass it to the Accounts v2 API to + create or update an account without its data touching your server. + Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + In live mode, you can only create account tokens with your application's publishable key. + In test mode, you can create account tokens with your secret key or publishable key. """ return cast( "AccountToken", diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py index d429dc97d..b46425608 100644 --- a/stripe/v2/core/_event.py +++ b/stripe/v2/core/_event.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +# File copied from our code generator; changes here will be overwritten. +# -*- coding: utf-8 -*- import json from typing import Any, ClassVar, Dict, Optional, cast @@ -17,6 +19,7 @@ class Event(StripeObject): """ Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload. + You can access events through the [Retrieve Event API](https://docs.stripe.com/api/v2/core/events/retrieve) for 30 days. """ OBJECT_NAME: ClassVar[Literal["v2.core.event"]] = "v2.core.event" @@ -190,7 +193,7 @@ def from_json(payload: str, client: "StripeClient") -> "EventNotification": def __repr__(self) -> str: return f"" - def fetch_event(self) -> Event: + def fetch_event(self) -> "Event": response = self._client.raw_request( "get", f"/v2/core/events/{self.id}", @@ -198,9 +201,9 @@ def fetch_event(self) -> Event: headers={"Stripe-Request-Trigger": f"event={self.id}"}, usage=["pushed_event_pull"], ) - return cast(Event, self._client.deserialize(response, api_mode="V2")) + return cast("Event", self._client.deserialize(response, api_mode="V2")) - async def fetch_event_async(self) -> Event: + async def fetch_event_async(self) -> "Event": response = await self._client.raw_request_async( "get", f"/v2/core/events/{self.id}", @@ -208,7 +211,7 @@ async def fetch_event_async(self) -> Event: headers={"Stripe-Request-Trigger": f"event={self.id}"}, usage=["pushed_event_pull", "pushed_event_pull_async"], ) - return cast(Event, self._client.deserialize(response, api_mode="V2")) + return cast("Event", self._client.deserialize(response, api_mode="V2")) class UnknownEventNotification(EventNotification): diff --git a/stripe/v2/core/_event_service.py b/stripe/v2/core/_event_service.py index 38da51e63..7033683af 100644 --- a/stripe/v2/core/_event_service.py +++ b/stripe/v2/core/_event_service.py @@ -61,7 +61,8 @@ def retrieve( options: Optional["RequestOptions"] = None, ) -> "Event": """ - Retrieves the details of an event. + Retrieves the details of an event if it was created in the last 30 days. Supply the unique + identifier of the event, which might have been delivered to your event destination. """ return cast( "Event", @@ -81,7 +82,8 @@ async def retrieve_async( options: Optional["RequestOptions"] = None, ) -> "Event": """ - Retrieves the details of an event. + Retrieves the details of an event if it was created in the last 30 days. Supply the unique + identifier of the event, which might have been delivered to your event destination. """ return cast( "Event", diff --git a/stripe/v2/iam/_activity_log_service.py b/stripe/v2/iam/_activity_log_service.py index 67ab2c604..c1bba92a3 100644 --- a/stripe/v2/iam/_activity_log_service.py +++ b/stripe/v2/iam/_activity_log_service.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService +from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING @@ -9,6 +10,9 @@ from stripe.params.v2.iam._activity_log_list_params import ( ActivityLogListParams, ) + from stripe.params.v2.iam._activity_log_retrieve_params import ( + ActivityLogRetrieveParams, + ) from stripe.v2._list_object import ListObject from stripe.v2.iam._activity_log import ActivityLog @@ -51,3 +55,43 @@ async def list_async( options=options, ), ) + + def retrieve( + self, + id: str, + params: Optional["ActivityLogRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ActivityLog": + """ + Retrieve an activity log. + """ + return cast( + "ActivityLog", + self._request( + "get", + "/v2/iam/activity_logs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + params: Optional["ActivityLogRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ActivityLog": + """ + Retrieve an activity log. + """ + return cast( + "ActivityLog", + await self._request_async( + "get", + "/v2/iam/activity_logs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/v2/money_management/_received_credit.py b/stripe/v2/money_management/_received_credit.py index b09feeebe..c219c929c 100644 --- a/stripe/v2/money_management/_received_credit.py +++ b/stripe/v2/money_management/_received_credit.py @@ -57,7 +57,7 @@ class GbBankAccount(StripeObject): """ The last 4 digits of the account number that originated the transfer. """ - network: Literal["fps"] + network: Literal["chaps", "fps"] """ Open Enum. The money transmission network used to send funds for this ReceivedCredit. """ diff --git a/stripe/v2/network/_business_profile.py b/stripe/v2/network/_business_profile.py index e4fdaf557..56da76ddb 100644 --- a/stripe/v2/network/_business_profile.py +++ b/stripe/v2/network/_business_profile.py @@ -7,7 +7,7 @@ class BusinessProfile(StripeObject): """ - The Stripe profile represents a business' public identity on the Stripe network. + The Stripe business profile represents a business' public identity on the Stripe network. """ OBJECT_NAME: ClassVar[Literal["v2.network.business_profile"]] = ( @@ -55,7 +55,7 @@ class Logo(StripeObject): """ display_name: str """ - The display name of the Stripe profile. + The display name of the Stripe business profile. """ id: str """ @@ -75,6 +75,6 @@ class Logo(StripeObject): """ username: str """ - The username of the Stripe profile. + The username of the Stripe business profile. """ _inner_class_types = {"branding": Branding} diff --git a/stripe/v2/network/_business_profile_service.py b/stripe/v2/network/_business_profile_service.py index 50b7f7f57..817ed59ef 100644 --- a/stripe/v2/network/_business_profile_service.py +++ b/stripe/v2/network/_business_profile_service.py @@ -23,7 +23,7 @@ def me( options: Optional["RequestOptions"] = None, ) -> "BusinessProfile": """ - Retrieve the Stripe profile associated with the requesting merchant and livemode. + Retrieve the Stripe business profile associated with the requesting merchant and livemode. """ return cast( "BusinessProfile", @@ -42,7 +42,7 @@ async def me_async( options: Optional["RequestOptions"] = None, ) -> "BusinessProfile": """ - Retrieve the Stripe profile associated with the requesting merchant and livemode. + Retrieve the Stripe business profile associated with the requesting merchant and livemode. """ return cast( "BusinessProfile", @@ -62,7 +62,7 @@ def retrieve( options: Optional["RequestOptions"] = None, ) -> "BusinessProfile": """ - Retrieve a Stripe profile by its Network ID. + Retrieve a Stripe business profile by its Network ID. """ return cast( "BusinessProfile", @@ -84,7 +84,7 @@ async def retrieve_async( options: Optional["RequestOptions"] = None, ) -> "BusinessProfile": """ - Retrieve a Stripe profile by its Network ID. + Retrieve a Stripe business profile by its Network ID. """ return cast( "BusinessProfile", diff --git a/tests/test_api_requestor.py b/tests/test_api_requestor.py index 4a3de5a04..fdec9846d 100644 --- a/tests/test_api_requestor.py +++ b/tests/test_api_requestor.py @@ -1038,6 +1038,72 @@ def test_extract_error_from_stream_request_for_response( "get", self.v1_path, {}, base_address="api" ) + def test_stripe_notice_header_emits_warning( + self, requestor, http_client_mock + ): + http_client_mock.stub_request( + "get", + path=self.v1_path, + rbody="{}", + rcode=200, + rheaders={"Stripe-Notice": "test notice value"}, + ) + + with pytest.warns(UserWarning, match="test notice value"): + requestor.request("get", self.v1_path, {}, base_address="api") + + @pytest.mark.anyio + async def test_stripe_notice_header_emits_warning_async( + self, requestor, http_client_mock + ): + http_client_mock.stub_request( + "get", + path=self.v1_path, + rbody="{}", + rcode=200, + rheaders={"Stripe-Notice": "test notice value"}, + ) + + with pytest.warns(UserWarning, match="test notice value"): + await requestor.request_async( + "get", self.v1_path, {}, base_address="api" + ) + + def test_no_stripe_notice_header_emits_no_warning( + self, requestor, http_client_mock + ): + import warnings + + http_client_mock.stub_request( + "get", + path=self.v1_path, + rbody="{}", + rcode=200, + ) + + with warnings.catch_warnings(): + warnings.simplefilter("error") + requestor.request("get", self.v1_path, {}, base_address="api") + + @pytest.mark.anyio + async def test_no_stripe_notice_header_emits_no_warning_async( + self, requestor, http_client_mock + ): + import warnings + + http_client_mock.stub_request( + "get", + path=self.v1_path, + rbody="{}", + rcode=200, + ) + + with warnings.catch_warnings(): + warnings.simplefilter("error") + await requestor.request_async( + "get", self.v1_path, {}, base_address="api" + ) + def test_raw_request_with_file_param(self, requestor, http_client_mock): test_file = tempfile.NamedTemporaryFile() test_file.write("\u263a".encode("utf-16")) diff --git a/tests/test_event_notification_handler.py b/tests/test_event_notification_handler.py index 568abec09..ddbf4c8fb 100644 --- a/tests/test_event_notification_handler.py +++ b/tests/test_event_notification_handler.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- +# File copied from our code generator; changes here will be overwritten. import json import pytest from typing import Optional diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 6096f08f1..7b0474211 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -44678,7 +44678,7 @@ def test_v2_core_batch_job_post_service( { "endpoint": { "http_method": "delete", - "path": "/v1/subscription_schedules", + "path": "/v1/subscriptions/:subscription_exposed_id", }, "metadata": {"key": "metadata"}, "skip_validation": True, @@ -44689,7 +44689,7 @@ def test_v2_core_batch_job_post_service( path="/v2/core/batch_jobs", query_string="", api_base="https://api.stripe.com", - post_data='{"endpoint":{"http_method":"delete","path":"/v1/subscription_schedules"},"metadata":{"key":"metadata"},"skip_validation":true}', + post_data='{"endpoint":{"http_method":"delete","path":"/v1/subscriptions/:subscription_exposed_id"},"metadata":{"key":"metadata"},"skip_validation":true}', is_json=True, ) @@ -45418,6 +45418,26 @@ def test_v2_iam_activity_log_get_service( api_base="https://api.stripe.com", ) + def test_v2_iam_activity_log_get_2_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/iam/activity_logs/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.iam.activity_logs.retrieve("id_123") + http_client_mock.assert_requested( + "get", + path="/v2/iam/activity_logs/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + def test_v2_money_management_adjustment_get_service( self, http_client_mock: HTTPClientMock ) -> None: @@ -46488,14 +46508,14 @@ def test_v2_test_helpers_financial_address_post_service( client.v2.test_helpers.financial_addresses.credit( "id_123", - {"amount": {"currency": "USD", "value": 96}, "network": "rtp"}, + {"amount": {"currency": "USD", "value": 96}, "network": "ach"}, ) http_client_mock.assert_requested( "post", path="/v2/test_helpers/financial_addresses/id_123/credit", query_string="", api_base="https://api.stripe.com", - post_data='{"amount":{"currency":"USD","value":96},"network":"rtp"}', + post_data='{"amount":{"currency":"USD","value":96},"network":"ach"}', is_json=True, ) diff --git a/tests/test_v2_event.py b/tests/test_v2_event.py index 9af9b5501..9b8df8bf8 100644 --- a/tests/test_v2_event.py +++ b/tests/test_v2_event.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- +# File copied from our code generator; changes here will be overwritten. import json from typing import Callable from typing_extensions import assert_type