From 842b6e2c67d710855b35c352c1eccd180862a50e Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 15:34:06 -0400 Subject: [PATCH 01/13] Update generated code (#1816) * Update generated code for v2276 and 9e9ef9ec9df30a59ccafb74c27b81311fa2896d5 * Update generated code for v2277 and d59a1f4bdea3032b8e282d40badc032cb021fc60 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_account.py | 8 + stripe/_api_version.py | 2 +- stripe/_balance_settings.py | 45 +- stripe/_charge.py | 21 +- stripe/_confirmation_token.py | 12 + stripe/_discount.py | 4 +- stripe/_invoice.py | 7 + stripe/_invoice_item.py | 33 +- stripe/_mandate.py | 5 + stripe/_object_classes.py | 4 + stripe/_payment_attempt_record.py | 36 +- stripe/_payment_intent.py | 80 +++- stripe/_payment_intent_service.py | 8 +- stripe/_payment_link.py | 33 ++ stripe/_payment_method.py | 12 + stripe/_payment_method_configuration.py | 48 +++ stripe/_payment_record.py | 36 +- stripe/_refund.py | 5 + stripe/_setup_attempt.py | 7 + stripe/_setup_intent.py | 14 + stripe/_subscription.py | 105 ++++- stripe/_subscription_item.py | 4 + stripe/_subscription_schedule.py | 4 + stripe/_subscription_service.py | 8 +- stripe/_v2_services.py | 3 + stripe/checkout/_session.py | 24 +- stripe/events/__init__.py | 48 +++ stripe/events/_event_classes.py | 48 +++ ...ling_meter_error_report_triggered_event.py | 1 + .../_v1_billing_meter_no_meter_found_event.py | 1 + ...ce_product_catalog_imports_failed_event.py | 117 +++++ ...roduct_catalog_imports_processing_event.py | 117 +++++ ...product_catalog_imports_succeeded_event.py | 117 +++++ ...log_imports_succeeded_with_errors_event.py | 119 ++++++ stripe/issuing/_dispute.py | 2 +- stripe/issuing/_personalization_design.py | 2 +- stripe/params/__init__.py | 400 ++++++++++++++++++ stripe/params/_account_create_params.py | 24 ++ stripe/params/_account_update_params.py | 24 ++ .../params/_balance_settings_modify_params.py | 44 ++ .../params/_balance_settings_update_params.py | 44 ++ stripe/params/_charge_create_params.py | 4 + .../_confirmation_token_create_params.py | 22 +- .../_customer_list_payment_methods_params.py | 2 + .../_customer_payment_method_list_params.py | 2 + stripe/params/_invoice_create_params.py | 2 +- .../params/_invoice_create_preview_params.py | 78 +++- stripe/params/_invoice_modify_params.py | 2 +- stripe/params/_invoice_update_params.py | 2 +- .../params/_payment_intent_capture_params.py | 4 +- .../params/_payment_intent_confirm_params.py | 61 ++- .../params/_payment_intent_create_params.py | 88 +++- ...t_intent_increment_authorization_params.py | 4 +- .../params/_payment_intent_modify_params.py | 86 +++- .../params/_payment_intent_update_params.py | 86 +++- stripe/params/_payment_link_create_params.py | 38 +- stripe/params/_payment_link_modify_params.py | 35 +- stripe/params/_payment_link_update_params.py | 35 +- ...ment_method_configuration_create_params.py | 42 ++ ...ayment_method_configuration_list_params.py | 4 + ...ment_method_configuration_modify_params.py | 42 ++ ...ment_method_configuration_update_params.py | 42 ++ .../params/_payment_method_create_params.py | 20 +- stripe/params/_payment_method_list_params.py | 2 + stripe/params/_payout_create_params.py | 2 +- stripe/params/_setup_intent_confirm_params.py | 30 +- stripe/params/_setup_intent_create_params.py | 32 +- stripe/params/_setup_intent_modify_params.py | 32 +- stripe/params/_setup_intent_update_params.py | 32 +- stripe/params/_subscription_create_params.py | 84 +++- .../_subscription_item_create_params.py | 8 +- .../_subscription_item_delete_params.py | 8 +- .../_subscription_item_modify_params.py | 8 +- .../_subscription_item_update_params.py | 8 +- stripe/params/_subscription_modify_params.py | 80 +++- .../_subscription_schedule_create_params.py | 4 + .../_subscription_schedule_modify_params.py | 4 + .../_subscription_schedule_update_params.py | 4 + stripe/params/_subscription_update_params.py | 80 +++- .../params/_webhook_endpoint_create_params.py | 1 + stripe/params/checkout/__init__.py | 5 + .../params/checkout/_session_create_params.py | 47 +- stripe/params/terminal/__init__.py | 60 +++ .../terminal/_configuration_create_params.py | 44 ++ .../terminal/_configuration_modify_params.py | 52 +++ .../terminal/_configuration_update_params.py | 52 +++ stripe/params/terminal/_reader_list_params.py | 8 + stripe/params/test_helpers/__init__.py | 10 + .../_confirmation_token_create_params.py | 22 +- .../test_helpers/_test_clock_create_params.py | 4 + .../_meter_event_adjustment_create_params.py | 4 +- stripe/params/v2/commerce/__init__.py | 27 ++ .../v2/commerce/product_catalog/__init__.py | 46 ++ .../product_catalog/_import_create_params.py | 20 + .../product_catalog/_import_list_params.py | 51 +++ .../_import_retrieve_params.py | 7 + stripe/params/v2/core/__init__.py | 35 ++ .../params/v2/core/_account_create_params.py | 38 +- .../v2/core/_account_token_create_params.py | 36 +- .../params/v2/core/_account_update_params.py | 40 +- .../core/_event_destination_create_params.py | 21 +- stripe/radar/_payment_evaluation.py | 2 +- stripe/terminal/_configuration.py | 32 ++ stripe/terminal/_reader.py | 349 ++++++++++++++- stripe/v2/__init__.py | 9 +- stripe/v2/_commerce_service.py | 40 ++ stripe/v2/billing/_meter_event_adjustment.py | 6 +- stripe/v2/billing/_meter_event_session.py | 6 +- .../billing/_meter_event_session_service.py | 4 +- stripe/v2/commerce/__init__.py | 41 ++ stripe/v2/commerce/_product_catalog_import.py | 204 +++++++++ .../v2/commerce/_product_catalog_service.py | 40 ++ .../v2/commerce/product_catalog/__init__.py | 32 ++ .../product_catalog/_import_service.py | 142 +++++++ stripe/v2/core/_account.py | 37 +- stripe/v2/core/_account_service.py | 4 +- stripe/v2/core/_account_token.py | 2 +- stripe/v2/core/_account_token_service.py | 12 +- stripe/v2/core/_event.py | 1 + stripe/v2/core/_event_destination.py | 37 +- stripe/v2/core/_event_service.py | 6 +- .../v2/core/accounts/_person_token_service.py | 6 +- tests/test_generated_examples.py | 68 +++ 125 files changed, 4264 insertions(+), 245 deletions(-) create mode 100644 stripe/events/_v2_commerce_product_catalog_imports_failed_event.py create mode 100644 stripe/events/_v2_commerce_product_catalog_imports_processing_event.py create mode 100644 stripe/events/_v2_commerce_product_catalog_imports_succeeded_event.py create mode 100644 stripe/events/_v2_commerce_product_catalog_imports_succeeded_with_errors_event.py create mode 100644 stripe/params/v2/commerce/__init__.py create mode 100644 stripe/params/v2/commerce/product_catalog/__init__.py create mode 100644 stripe/params/v2/commerce/product_catalog/_import_create_params.py create mode 100644 stripe/params/v2/commerce/product_catalog/_import_list_params.py create mode 100644 stripe/params/v2/commerce/product_catalog/_import_retrieve_params.py create mode 100644 stripe/v2/_commerce_service.py create mode 100644 stripe/v2/commerce/__init__.py create mode 100644 stripe/v2/commerce/_product_catalog_import.py create mode 100644 stripe/v2/commerce/_product_catalog_service.py create mode 100644 stripe/v2/commerce/product_catalog/__init__.py create mode 100644 stripe/v2/commerce/product_catalog/_import_service.py diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index da5c58a23..6fae6735a 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -9aa5ee4ed2b929f65b7fbf7c341f938682888500 \ No newline at end of file +d59a1f4bdea3032b8e282d40badc032cb021fc60 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 048a4fc1a..30723023b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2252 \ No newline at end of file +v2277 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index ea14e692a..357c370c0 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -262,6 +262,10 @@ class Capabilities(StripeObject): """ The status of the Billie capability of the account, or whether the account can directly process Billie payments. """ + bizum_payments: Optional[Literal["active", "inactive", "pending"]] + """ + The status of the Bizum capability of the account, or whether the account can directly process Bizum payments. + """ blik_payments: Optional[Literal["active", "inactive", "pending"]] """ The status of the blik payments capability of the account, or whether the account can directly process blik charges. @@ -436,6 +440,10 @@ class Capabilities(StripeObject): """ The status of the Satispay capability of the account, or whether the account can directly process Satispay payments. """ + scalapay_payments: Optional[Literal["active", "inactive", "pending"]] + """ + The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments. + """ sepa_bank_transfer_payments: Optional[ Literal["active", "inactive", "pending"] ] diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 426060069..a2e41e6db 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2026-04-22.dahlia" + CURRENT = "2026-05-27.dahlia" CURRENT_MAJOR = "dahlia" diff --git a/stripe/_balance_settings.py b/stripe/_balance_settings.py index 8ea2c0a32..3d9fc86e5 100644 --- a/stripe/_balance_settings.py +++ b/stripe/_balance_settings.py @@ -27,6 +27,20 @@ class BalanceSettings( class Payments(StripeObject): class Payouts(StripeObject): + class AutomaticTransferRulesByCurrency(StripeObject): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: Optional[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + class Schedule(StripeObject): interval: Optional[ Literal["daily", "manual", "monthly", "weekly"] @@ -53,6 +67,12 @@ class Schedule(StripeObject): The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly. """ + automatic_transfer_rules_by_currency: Optional[ + UntypedStripeObject[List[AutomaticTransferRulesByCurrency]] + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: Optional[UntypedStripeObject[int]] """ The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](https://docs.stripe.com/payouts/minimum-balances-for-automatic-payouts). @@ -69,9 +89,27 @@ class Schedule(StripeObject): """ Whether the funds in this account can be paid out. """ - _inner_class_types = {"schedule": Schedule} + _inner_class_types = { + "automatic_transfer_rules_by_currency": AutomaticTransferRulesByCurrency, + "schedule": Schedule, + } + _inner_class_dicts = ["automatic_transfer_rules_by_currency"] class SettlementTiming(StripeObject): + class StartOfDay(StripeObject): + hour: int + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: int + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: str + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + delay_days: int """ The number of days charge funds are held before becoming available. @@ -80,6 +118,11 @@ class SettlementTiming(StripeObject): """ The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. """ + start_of_day: Optional[StartOfDay] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + _inner_class_types = {"start_of_day": StartOfDay} debit_negative_balances: Optional[bool] """ diff --git a/stripe/_charge.py b/stripe/_charge.py index f346866b6..a3da18b49 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -456,6 +456,12 @@ class Billie(StripeObject): The Billie transaction ID associated with this payment. """ + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -1856,6 +1862,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -1966,7 +1978,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -2048,6 +2063,7 @@ class Zip(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -2083,6 +2099,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] @@ -2114,6 +2131,7 @@ class Zip(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2149,6 +2167,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sofort": Sofort, diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 152b895c6..c2ae3a460 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -218,6 +218,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1289,6 +1292,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1459,6 +1465,7 @@ class Zip(StripeObject): bancontact: Optional[Bancontact] billie: Optional[Billie] billing_details: BillingDetails + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1499,6 +1506,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] sunbit: Optional[Sunbit] @@ -1515,6 +1523,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1551,6 +1560,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -1580,6 +1590,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1615,6 +1626,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "sunbit": Sunbit, diff --git a/stripe/_discount.py b/stripe/_discount.py index 1637edc79..d62b10208 100644 --- a/stripe/_discount.py +++ b/stripe/_discount.py @@ -33,7 +33,7 @@ class Source(StripeObject): checkout_session: Optional[str] """ - The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. + The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode. """ customer: Optional[ExpandableField["Customer"]] """ @@ -53,7 +53,7 @@ class Source(StripeObject): """ id: str """ - The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. + The ID of the discount object. Discounts can't be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. """ invoice: Optional[str] """ diff --git a/stripe/_invoice.py b/stripe/_invoice.py index d18713b37..0fe35d184 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -539,6 +539,7 @@ class LastFinalizationError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -579,6 +580,7 @@ class LastFinalizationError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -1018,6 +1020,7 @@ class Filters(StripeObject): "sepa_debit", "sofort", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -1304,6 +1307,10 @@ class TaxRateDetails(StripeObject): """ The amount, in cents (or local equivalent), that was paid. """ + amount_paid_off_stripe: Optional[int] + """ + Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe. + """ amount_remaining: int """ The difference between amount_due and amount_paid, in cents (or local equivalent). diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index 2854a96ff..2732a0edf 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -108,6 +108,30 @@ class PriceDetails(StripeObject): _field_encodings = {"unit_amount_decimal": "decimal_string"} class ProrationDetails(StripeObject): + class CreditedItems(StripeObject): + class InvoiceLineItemDetails(StripeObject): + invoice: str + """ + The invoice id for the debited line item(s). + """ + invoice_line_items: List[str] + """ + IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration. + """ + + invoice_item: Optional[str] + """ + When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration. + """ + invoice_line_item_details: Optional[InvoiceLineItemDetails] + type: Literal["invoice_item", "invoice_line_items"] + """ + Whether the credit references a pending invoice item or one or more invoice line items on an invoice. + """ + _inner_class_types = { + "invoice_line_item_details": InvoiceLineItemDetails, + } + class DiscountAmount(StripeObject): amount: int """ @@ -118,11 +142,18 @@ class DiscountAmount(StripeObject): The discount that was applied to get this discount amount. """ + credited_items: Optional[CreditedItems] + """ + For a credit proration, links to the debit invoice line items or invoice item that the credit applies to. + """ discount_amounts: List[DiscountAmount] """ Discount amounts applied when the proration was created. """ - _inner_class_types = {"discount_amounts": DiscountAmount} + _inner_class_types = { + "credited_items": CreditedItems, + "discount_amounts": DiscountAmount, + } amount: int """ diff --git a/stripe/_mandate.py b/stripe/_mandate.py index ff1f8b0eb..9f2939192 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -248,6 +248,9 @@ class SepaDebit(StripeObject): The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively. """ + class Twint(StripeObject): + pass + class Upi(StripeObject): amount: Optional[int] """ @@ -289,6 +292,7 @@ class UsBankAccount(StripeObject): pix: Optional[Pix] revolut_pay: Optional[RevolutPay] sepa_debit: Optional[SepaDebit] + twint: Optional[Twint] type: str """ This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method. @@ -313,6 +317,7 @@ class UsBankAccount(StripeObject): "pix": Pix, "revolut_pay": RevolutPay, "sepa_debit": SepaDebit, + "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, } diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py index f887307d6..431f7918f 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -336,6 +336,10 @@ "stripe.v2.billing._meter_event_session", "MeterEventSession", ), + "v2.commerce.product_catalog_import": ( + "stripe.v2.commerce._product_catalog_import", + "ProductCatalogImport", + ), "v2.core.account": ("stripe.v2.core._account", "Account"), "v2.core.account_link": ("stripe.v2.core._account_link", "AccountLink"), "v2.core.account_person": ( diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 0044b007e..9198dae9d 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -416,6 +416,12 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -1267,13 +1273,11 @@ class Address(StripeObject): """ payment_method_category: Optional[str] """ - The Klarna payment method used for this transaction. - Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` """ preferred_locale: Optional[str] """ - Preferred language of the Klarna authorization page that the customer is redirected to. - Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ reader: Optional[str] """ @@ -1342,8 +1346,7 @@ class KrCard(StripeObject): class Link(StripeObject): country: Optional[str] """ - Two-letter ISO code representing the funding source country beneath the Link payment. - You could use this attribute to get a sense of international fees. + Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. """ class MbWay(StripeObject): @@ -1474,9 +1477,7 @@ class P24(StripeObject): """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Przelewy24 directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - Przelewy24 rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. """ class PayByBank(StripeObject): @@ -1614,7 +1615,7 @@ class Card(StripeObject): card: Optional[Card] type: Optional[Literal["card"]] """ - funding type of the underlying payment method. + Funding type of the underlying payment method. """ _inner_class_types = {"card": Card} @@ -1641,6 +1642,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -1749,7 +1756,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -1835,6 +1845,7 @@ class Zip(StripeObject): """ The billing details associated with the method of payment. """ + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1883,6 +1894,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] @@ -1915,6 +1927,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1951,6 +1964,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sofort": Sofort, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 96dff0afc..f4a280aa2 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -121,11 +121,11 @@ class Shipping(StripeObject): """ from_postal_code: Optional[str] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: Optional[str] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ class Tax(StripeObject): @@ -324,6 +324,7 @@ class LastPaymentError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -364,6 +365,7 @@ class LastPaymentError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -509,6 +511,9 @@ class AlipayHandleRedirect(StripeObject): The URL you must redirect your customer to in order to authenticate the payment. """ + class BlikAuthorize(StripeObject): + pass + class BoletoDisplayDetails(StripeObject): expires_at: Optional[int] """ @@ -1440,6 +1445,7 @@ class WechatPayRedirectToIosApp(StripeObject): """ alipay_handle_redirect: Optional[AlipayHandleRedirect] + blik_authorize: Optional[BlikAuthorize] boleto_display_details: Optional[BoletoDisplayDetails] card_await_notification: Optional[CardAwaitNotification] cashapp_handle_redirect_or_display_qr_code: Optional[ @@ -1478,6 +1484,7 @@ class WechatPayRedirectToIosApp(StripeObject): wechat_pay_redirect_to_ios_app: Optional[WechatPayRedirectToIosApp] _inner_class_types = { "alipay_handle_redirect": AlipayHandleRedirect, + "blik_authorize": BlikAuthorize, "boleto_display_details": BoletoDisplayDetails, "card_await_notification": CardAwaitNotification, "cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode, @@ -1710,6 +1717,9 @@ class Billie(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Bizum(StripeObject): + pass + class Blik(StripeObject): setup_future_usage: Optional[Literal["none"]] """ @@ -2513,6 +2523,12 @@ class Satispay(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Scalapay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class SepaDebit(StripeObject): class MandateOptions(StripeObject): reference_prefix: Optional[str] @@ -2574,7 +2590,7 @@ class Swish(StripeObject): """ class Twint(StripeObject): - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2716,6 +2732,7 @@ class Zip(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -2751,6 +2768,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] swish: Optional[Swish] @@ -2770,6 +2788,7 @@ class Zip(StripeObject): "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2805,6 +2824,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "swish": Swish, @@ -2896,16 +2916,36 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class TransferData(StripeObject): + class PaymentData(StripeObject): + description: Optional[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: Optional[UntypedStripeObject[str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + amount: Optional[int] """ The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). """ + description: Optional[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: ExpandableField["Account"] """ The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. """ + metadata: Optional[UntypedStripeObject[str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + payment_data: Optional[PaymentData] + _inner_class_types = {"payment_data": PaymentData} amount: int """ @@ -3008,6 +3048,7 @@ class TransferData(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -3040,6 +3081,7 @@ class TransferData(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -4000,7 +4042,9 @@ def _cls_increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -4043,7 +4087,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -4075,7 +4121,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -4107,7 +4155,9 @@ def increment_authorization( # pyright: ignore[reportGeneralTypeIssues] Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -4150,7 +4200,9 @@ async def _cls_increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -4193,7 +4245,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -4225,7 +4279,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ ... @@ -4257,7 +4313,9 @@ async def increment_authorization_async( # pyright: ignore[reportGeneralTypeIss Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 2370ce4e4..694a3397c 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -604,7 +604,9 @@ def increment_authorization( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", @@ -649,7 +651,9 @@ async def increment_authorization_async( Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. After it's captured, a PaymentIntent can no longer be incremented. - Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + Learn more about incremental authorizations with + [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). """ return cast( "PaymentIntent", diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 652552779..70137d0b6 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -406,6 +406,33 @@ class PaymentIntentData(StripeObject): A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details. """ + class PaymentMethodOptions(StripeObject): + class Card(StripeObject): + class Restrictions(StripeObject): + brands_blocked: List[ + Literal[ + "american_express", + "discover_global_network", + "mastercard", + "visa", + ] + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + restrictions: Optional[Restrictions] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + _inner_class_types = {"restrictions": Restrictions} + + card: Optional[Card] + """ + Configuration for `card` payment methods. + """ + _inner_class_types = {"card": Card} + class PhoneNumberCollection(StripeObject): enabled: bool """ @@ -844,6 +871,10 @@ class TransferData(StripeObject): """ Configuration for collecting a payment method during checkout. Defaults to `always`. """ + payment_method_options: Optional[PaymentMethodOptions] + """ + Payment-method-specific configuration. + """ payment_method_types: Optional[ List[ Literal[ @@ -855,6 +886,7 @@ class TransferData(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1178,6 +1210,7 @@ async def retrieve_async( "name_collection": NameCollection, "optional_items": OptionalItem, "payment_intent_data": PaymentIntentData, + "payment_method_options": PaymentMethodOptions, "phone_number_collection": PhoneNumberCollection, "restrictions": Restrictions, "shipping_address_collection": ShippingAddressCollection, diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 9d98d72d0..3039ea29c 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -169,6 +169,9 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + pass + class Blik(StripeObject): pass @@ -1264,6 +1267,9 @@ class SamsungPay(StripeObject): class Satispay(StripeObject): pass + class Scalapay(StripeObject): + pass + class SepaDebit(StripeObject): class GeneratedFrom(StripeObject): charge: Optional[ExpandableField["Charge"]] @@ -1434,6 +1440,7 @@ class Zip(StripeObject): bancontact: Optional[Bancontact] billie: Optional[Billie] billing_details: BillingDetails + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1499,6 +1506,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] sunbit: Optional[Sunbit] @@ -1515,6 +1523,7 @@ class Zip(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -1551,6 +1560,7 @@ class Zip(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -2029,6 +2039,7 @@ async def retrieve_async( "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -2066,6 +2077,7 @@ async def retrieve_async( "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "sunbit": Sunbit, diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index 3297cf42a..ea9e8083b 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -292,6 +292,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Bizum(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class Blik(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1084,6 +1106,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Scalapay(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class SepaDebit(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1301,6 +1345,7 @@ class DisplayPreference(StripeObject): bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1361,6 +1406,7 @@ class DisplayPreference(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] sunbit: Optional[Sunbit] @@ -1519,6 +1565,7 @@ async def retrieve_async( "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1555,6 +1602,7 @@ async def retrieve_async( "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "sunbit": Sunbit, diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index a62cce12a..21bf46a29 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -432,6 +432,12 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class Bizum(StripeObject): + transaction_id: Optional[str] + """ + The Bizum transaction ID associated with this payment. + """ + class Blik(StripeObject): buyer_id: Optional[str] """ @@ -1283,13 +1289,11 @@ class Address(StripeObject): """ payment_method_category: Optional[str] """ - The Klarna payment method used for this transaction. - Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` """ preferred_locale: Optional[str] """ - Preferred language of the Klarna authorization page that the customer is redirected to. - Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ reader: Optional[str] """ @@ -1358,8 +1362,7 @@ class KrCard(StripeObject): class Link(StripeObject): country: Optional[str] """ - Two-letter ISO code representing the funding source country beneath the Link payment. - You could use this attribute to get a sense of international fees. + Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. """ class MbWay(StripeObject): @@ -1490,9 +1493,7 @@ class P24(StripeObject): """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by Przelewy24 directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - Przelewy24 rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. """ class PayByBank(StripeObject): @@ -1630,7 +1631,7 @@ class Card(StripeObject): card: Optional[Card] type: Optional[Literal["card"]] """ - funding type of the underlying payment method. + Funding type of the underlying payment method. """ _inner_class_types = {"card": Card} @@ -1657,6 +1658,12 @@ class Satispay(StripeObject): The Satispay transaction ID associated with this payment. """ + class Scalapay(StripeObject): + transaction_id: Optional[str] + """ + The Scalapay transaction ID associated with this payment. + """ + class SepaCreditTransfer(StripeObject): bank_name: Optional[str] """ @@ -1765,7 +1772,10 @@ class Swish(StripeObject): """ class Twint(StripeObject): - pass + mandate: Optional[str] + """ + ID of the multi use Mandate generated by the PaymentIntent + """ class Upi(StripeObject): vpa: Optional[str] @@ -1851,6 +1861,7 @@ class Zip(StripeObject): """ The billing details associated with the method of payment. """ + bizum: Optional[Bizum] blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] @@ -1899,6 +1910,7 @@ class Zip(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] @@ -1931,6 +1943,7 @@ class Zip(StripeObject): "bancontact": Bancontact, "billie": Billie, "billing_details": BillingDetails, + "bizum": Bizum, "blik": Blik, "boleto": Boleto, "card": Card, @@ -1967,6 +1980,7 @@ class Zip(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sofort": Sofort, diff --git a/stripe/_refund.py b/stripe/_refund.py index 0be8002d5..cc6373e05 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -212,6 +212,9 @@ class Pix(StripeObject): class Revolut(StripeObject): pass + class Scalapay(StripeObject): + pass + class Sofort(StripeObject): pass @@ -286,6 +289,7 @@ class Zip(StripeObject): paypal: Optional[Paypal] pix: Optional[Pix] revolut: Optional[Revolut] + scalapay: Optional[Scalapay] sofort: Optional[Sofort] swish: Optional[Swish] th_bank_transfer: Optional[ThBankTransfer] @@ -326,6 +330,7 @@ class Zip(StripeObject): "paypal": Paypal, "pix": Pix, "revolut": Revolut, + "scalapay": Scalapay, "sofort": Sofort, "swish": Swish, "th_bank_transfer": ThBankTransfer, diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index 20f0161be..5c6ac3fa9 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -409,6 +409,9 @@ class Sofort(StripeObject): (if supported) at the time of authorization or settlement. They cannot be set or mutated. """ + class Twint(StripeObject): + pass + class Upi(StripeObject): pass @@ -437,6 +440,7 @@ class UsBankAccount(StripeObject): revolut_pay: Optional[RevolutPay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] + twint: Optional[Twint] type: str """ The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method. @@ -466,6 +470,7 @@ class UsBankAccount(StripeObject): "revolut_pay": RevolutPay, "sepa_debit": SepaDebit, "sofort": Sofort, + "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, } @@ -605,6 +610,7 @@ class SetupError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -645,6 +651,7 @@ class SetupError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index a57a67487..2f9486ae6 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -220,6 +220,7 @@ class LastSetupError(StripeObject): "payment_method_invalid_parameter", "payment_method_invalid_parameter_testmode", "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", "payment_method_microdeposit_verification_amounts_invalid", "payment_method_microdeposit_verification_amounts_mismatch", "payment_method_microdeposit_verification_attempts_exceeded", @@ -260,6 +261,7 @@ class LastSetupError(StripeObject): "setup_intent_unexpected_state", "shipping_address_invalid", "shipping_calculation_failed", + "siret_invalid", "sku_inactive", "state_unsupported", "status_transition_invalid", @@ -387,6 +389,9 @@ class ManagedPayments(StripeObject): """ class NextAction(StripeObject): + class BlikAuthorize(StripeObject): + pass + class CashappHandleRedirectOrDisplayQrCode(StripeObject): class QrCode(StripeObject): expires_at: int @@ -481,6 +486,7 @@ class VerifyWithMicrodeposits(StripeObject): The type of the microdeposit sent to the customer. Used to distinguish between different verification methods. """ + blik_authorize: Optional[BlikAuthorize] cashapp_handle_redirect_or_display_qr_code: Optional[ CashappHandleRedirectOrDisplayQrCode ] @@ -499,6 +505,7 @@ class VerifyWithMicrodeposits(StripeObject): """ verify_with_microdeposits: Optional[VerifyWithMicrodeposits] _inner_class_types = { + "blik_authorize": BlikAuthorize, "cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode, "pix_display_qr_code": PixDisplayQrCode, "redirect_to_url": RedirectToUrl, @@ -568,6 +575,9 @@ class MandateOptions(StripeObject): mandate_options: Optional[MandateOptions] _inner_class_types = {"mandate_options": MandateOptions} + class Bizum(StripeObject): + pass + class Card(StripeObject): class MandateOptions(StripeObject): amount: int @@ -863,6 +873,7 @@ class MandateOptions(StripeObject): acss_debit: Optional[AcssDebit] amazon_pay: Optional[AmazonPay] bacs_debit: Optional[BacsDebit] + bizum: Optional[Bizum] card: Optional[Card] card_present: Optional[CardPresent] klarna: Optional[Klarna] @@ -877,6 +888,7 @@ class MandateOptions(StripeObject): "acss_debit": AcssDebit, "amazon_pay": AmazonPay, "bacs_debit": BacsDebit, + "bizum": Bizum, "card": Card, "card_present": CardPresent, "klarna": Klarna, @@ -948,6 +960,7 @@ class MandateOptions(StripeObject): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -980,6 +993,7 @@ class MandateOptions(StripeObject): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 07bc2c8bb..a66720d4f 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -31,6 +31,7 @@ from stripe._discount import Discount from stripe._invoice import Invoice from stripe._payment_method import PaymentMethod + from stripe._price import Price from stripe._setup_intent import SetupIntent from stripe._source import Source from stripe._subscription_item import SubscriptionItem @@ -148,6 +149,60 @@ class Flexible(StripeObject): """ _inner_class_types = {"flexible": Flexible} + class BillingSchedule(StripeObject): + class AppliesTo(StripeObject): + price: Optional[ExpandableField["Price"]] + """ + The billing schedule will apply to the subscription item with the given price ID. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + class BillUntil(StripeObject): + class Duration(StripeObject): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: Optional[int] + """ + The multiplier applied to the interval. + """ + + computed_timestamp: int + """ + The timestamp the billing schedule will apply until. + """ + duration: Optional[Duration] + """ + Specifies the billing period. + """ + timestamp: Optional[int] + """ + If specified, the billing schedule will apply until the specified timestamp. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + _inner_class_types = {"duration": Duration} + + applies_to: Optional[List[AppliesTo]] + """ + Specifies which subscription items the billing schedule applies to. + """ + bill_until: BillUntil + """ + Specifies the end of billing period. + """ + key: str + """ + Unique identifier for the billing schedule. + """ + _inner_class_types = {"applies_to": AppliesTo, "bill_until": BillUntil} + class BillingThresholds(StripeObject): amount_gte: Optional[int] """ @@ -552,6 +607,7 @@ class Filters(StripeObject): "sepa_debit", "sofort", "swish", + "twint", "upi", "us_bank_account", "wechat_pay", @@ -584,10 +640,22 @@ class PendingUpdate(StripeObject): """ If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. """ + discount: Optional["Discount"] + """ + The pending subscription-level discount that will be applied when the pending update is applied. + """ + discounts: Optional[List[ExpandableField["Discount"]]] + """ + The discounts that will be applied to the subscription when the pending update is applied. Use `expand[]=discounts` to expand each discount. + """ expires_at: int """ The point after which the changes reflected by this update will be discarded and no longer applied. """ + metadata: Optional[UntypedStripeObject[str]] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ subscription_items: Optional[List["SubscriptionItem"]] """ List of subscription items, each with an attached plan, that will be set if the update is applied. @@ -653,6 +721,10 @@ class EndBehavior(StripeObject): """ The billing mode of the subscription. """ + billing_schedules: List[BillingSchedule] + """ + Billing schedules for this subscription. + """ billing_thresholds: Optional[BillingThresholds] """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period @@ -842,7 +914,7 @@ def _cls_cancel( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -868,7 +940,7 @@ def cancel( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -881,7 +953,7 @@ def cancel( self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -894,7 +966,7 @@ def cancel( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -918,7 +990,7 @@ async def _cls_cancel_async( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -944,7 +1016,7 @@ async def cancel_async( **params: Unpack["SubscriptionCancelParams"], ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -957,7 +1029,7 @@ async def cancel_async( self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -970,7 +1042,7 @@ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionCancelParams"] ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -1380,7 +1452,7 @@ def _cls_resume( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1399,7 +1471,7 @@ def resume( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1408,7 +1480,7 @@ def resume( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1417,7 +1489,7 @@ def resume( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1435,7 +1507,7 @@ async def _cls_resume_async( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1454,7 +1526,7 @@ async def resume_async( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1463,7 +1535,7 @@ async def resume_async( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ ... @@ -1472,7 +1544,7 @@ async def resume_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -1551,6 +1623,7 @@ async def search_auto_paging_iter_async( "automatic_tax": AutomaticTax, "billing_cycle_anchor_config": BillingCycleAnchorConfig, "billing_mode": BillingMode, + "billing_schedules": BillingSchedule, "billing_thresholds": BillingThresholds, "cancellation_details": CancellationDetails, "invoice_settings": InvoiceSettings, diff --git a/stripe/_subscription_item.py b/stripe/_subscription_item.py index 9c92f6d78..782500154 100644 --- a/stripe/_subscription_item.py +++ b/stripe/_subscription_item.py @@ -52,6 +52,10 @@ class BillingThresholds(StripeObject): Usage threshold that triggers the subscription to create an invoice """ + billed_until: Optional[int] + """ + The time period the subscription item has been billed for. + """ billing_thresholds: Optional[BillingThresholds] """ Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 7ee787105..2f738738d 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -246,6 +246,10 @@ class Start(StripeObject): start: Start _inner_class_types = {"end": End, "start": Start} + discountable: Optional[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: List[Discount] """ The stackable discounts that will be applied to the item. diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 1f57420d2..f52f3f673 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -46,7 +46,7 @@ def cancel( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -74,7 +74,7 @@ async def cancel_async( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. @@ -462,7 +462,7 @@ def resume( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", @@ -484,7 +484,7 @@ async def resume_async( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). """ return cast( "Subscription", diff --git a/stripe/_v2_services.py b/stripe/_v2_services.py index ebc1434ae..49316d6ae 100644 --- a/stripe/_v2_services.py +++ b/stripe/_v2_services.py @@ -6,16 +6,19 @@ if TYPE_CHECKING: from stripe.v2._billing_service import BillingService + from stripe.v2._commerce_service import CommerceService from stripe.v2._core_service import CoreService _subservices = { "billing": ["stripe.v2._billing_service", "BillingService"], + "commerce": ["stripe.v2._commerce_service", "CommerceService"], "core": ["stripe.v2._core_service", "CoreService"], } class V2Services(StripeService): billing: "BillingService" + commerce: "CommerceService" core: "CoreService" def __init__(self, requestor): diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 3af1b05f0..be7819d7b 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -268,7 +268,7 @@ class PaymentMethodReuseAgreement(StripeObject): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: Optional[Literal["none", "required"]] """ @@ -992,7 +992,7 @@ class Restrictions(StripeObject): ] ] """ - Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. """ capture_method: Optional[Literal["manual"]] @@ -1541,6 +1541,12 @@ class Satispay(StripeObject): Controls when the funds will be captured from the customer's account. """ + class Scalapay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class SepaDebit(StripeObject): class MandateOptions(StripeObject): reference_prefix: Optional[str] @@ -1586,7 +1592,7 @@ class Swish(StripeObject): """ class Twint(StripeObject): - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1729,6 +1735,7 @@ class Filters(StripeObject): revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] + scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] swish: Optional[Swish] @@ -1773,6 +1780,7 @@ class Filters(StripeObject): "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, + "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, "swish": Swish, @@ -2280,8 +2288,8 @@ class Link(StripeObject): """ client_secret: Optional[str] """ - The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout. - For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. + The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. For `ui_mode: embedded_page`, the client secret is to be used when initializing Stripe.js embedded checkout. + For `ui_mode: elements`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. """ collected_information: Optional[CollectedInformation] """ @@ -2495,11 +2503,11 @@ class Link(StripeObject): """ redirect_on_completion: Optional[Literal["always", "if_required", "never"]] """ - This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. """ return_url: Optional[str] """ - Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. + Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. """ saved_payment_method_options: Optional[SavedPaymentMethodOptions] """ @@ -2555,7 +2563,7 @@ class Link(StripeObject): """ url: Optional[str] """ - The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.` + The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted_page`. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.` This value is only present when the session is active. """ wallet_options: Optional[WalletOptions] diff --git a/stripe/events/__init__.py b/stripe/events/__init__.py index 50728badb..18de34fa3 100644 --- a/stripe/events/__init__.py +++ b/stripe/events/__init__.py @@ -21,6 +21,22 @@ V1BillingMeterNoMeterFoundEvent as V1BillingMeterNoMeterFoundEvent, V1BillingMeterNoMeterFoundEventNotification as V1BillingMeterNoMeterFoundEventNotification, ) + from stripe.events._v2_commerce_product_catalog_imports_failed_event import ( + V2CommerceProductCatalogImportsFailedEvent as V2CommerceProductCatalogImportsFailedEvent, + V2CommerceProductCatalogImportsFailedEventNotification as V2CommerceProductCatalogImportsFailedEventNotification, + ) + from stripe.events._v2_commerce_product_catalog_imports_processing_event import ( + V2CommerceProductCatalogImportsProcessingEvent as V2CommerceProductCatalogImportsProcessingEvent, + V2CommerceProductCatalogImportsProcessingEventNotification as V2CommerceProductCatalogImportsProcessingEventNotification, + ) + from stripe.events._v2_commerce_product_catalog_imports_succeeded_event import ( + V2CommerceProductCatalogImportsSucceededEvent as V2CommerceProductCatalogImportsSucceededEvent, + V2CommerceProductCatalogImportsSucceededEventNotification as V2CommerceProductCatalogImportsSucceededEventNotification, + ) + from stripe.events._v2_commerce_product_catalog_imports_succeeded_with_errors_event import ( + V2CommerceProductCatalogImportsSucceededWithErrorsEvent as V2CommerceProductCatalogImportsSucceededWithErrorsEvent, + V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification as V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification, + ) from stripe.events._v2_core_account_closed_event import ( V2CoreAccountClosedEvent as V2CoreAccountClosedEvent, V2CoreAccountClosedEventNotification as V2CoreAccountClosedEventNotification, @@ -113,6 +129,38 @@ "stripe.events._v1_billing_meter_no_meter_found_event", False, ), + "V2CommerceProductCatalogImportsFailedEvent": ( + "stripe.events._v2_commerce_product_catalog_imports_failed_event", + False, + ), + "V2CommerceProductCatalogImportsFailedEventNotification": ( + "stripe.events._v2_commerce_product_catalog_imports_failed_event", + False, + ), + "V2CommerceProductCatalogImportsProcessingEvent": ( + "stripe.events._v2_commerce_product_catalog_imports_processing_event", + False, + ), + "V2CommerceProductCatalogImportsProcessingEventNotification": ( + "stripe.events._v2_commerce_product_catalog_imports_processing_event", + False, + ), + "V2CommerceProductCatalogImportsSucceededEvent": ( + "stripe.events._v2_commerce_product_catalog_imports_succeeded_event", + False, + ), + "V2CommerceProductCatalogImportsSucceededEventNotification": ( + "stripe.events._v2_commerce_product_catalog_imports_succeeded_event", + False, + ), + "V2CommerceProductCatalogImportsSucceededWithErrorsEvent": ( + "stripe.events._v2_commerce_product_catalog_imports_succeeded_with_errors_event", + False, + ), + "V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification": ( + "stripe.events._v2_commerce_product_catalog_imports_succeeded_with_errors_event", + False, + ), "V2CoreAccountClosedEvent": ( "stripe.events._v2_core_account_closed_event", False, diff --git a/stripe/events/_event_classes.py b/stripe/events/_event_classes.py index 6540425ff..50ffa7ed6 100644 --- a/stripe/events/_event_classes.py +++ b/stripe/events/_event_classes.py @@ -13,6 +13,18 @@ from stripe.events._v1_billing_meter_no_meter_found_event import ( V1BillingMeterNoMeterFoundEventNotification, ) + from stripe.events._v2_commerce_product_catalog_imports_failed_event import ( + V2CommerceProductCatalogImportsFailedEventNotification, + ) + from stripe.events._v2_commerce_product_catalog_imports_processing_event import ( + V2CommerceProductCatalogImportsProcessingEventNotification, + ) + from stripe.events._v2_commerce_product_catalog_imports_succeeded_event import ( + V2CommerceProductCatalogImportsSucceededEventNotification, + ) + from stripe.events._v2_commerce_product_catalog_imports_succeeded_with_errors_event import ( + V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification, + ) from stripe.events._v2_core_account_closed_event import ( V2CoreAccountClosedEventNotification, ) @@ -78,6 +90,22 @@ "stripe.events._v1_billing_meter_no_meter_found_event", "V1BillingMeterNoMeterFoundEvent", ), + "v2.commerce.product_catalog.imports.failed": ( + "stripe.events._v2_commerce_product_catalog_imports_failed_event", + "V2CommerceProductCatalogImportsFailedEvent", + ), + "v2.commerce.product_catalog.imports.processing": ( + "stripe.events._v2_commerce_product_catalog_imports_processing_event", + "V2CommerceProductCatalogImportsProcessingEvent", + ), + "v2.commerce.product_catalog.imports.succeeded": ( + "stripe.events._v2_commerce_product_catalog_imports_succeeded_event", + "V2CommerceProductCatalogImportsSucceededEvent", + ), + "v2.commerce.product_catalog.imports.succeeded_with_errors": ( + "stripe.events._v2_commerce_product_catalog_imports_succeeded_with_errors_event", + "V2CommerceProductCatalogImportsSucceededWithErrorsEvent", + ), "v2.core.account.closed": ( "stripe.events._v2_core_account_closed_event", "V2CoreAccountClosedEvent", @@ -173,6 +201,22 @@ def get_v2_event_class(type_: str): "stripe.events._v1_billing_meter_no_meter_found_event", "V1BillingMeterNoMeterFoundEventNotification", ), + "v2.commerce.product_catalog.imports.failed": ( + "stripe.events._v2_commerce_product_catalog_imports_failed_event", + "V2CommerceProductCatalogImportsFailedEventNotification", + ), + "v2.commerce.product_catalog.imports.processing": ( + "stripe.events._v2_commerce_product_catalog_imports_processing_event", + "V2CommerceProductCatalogImportsProcessingEventNotification", + ), + "v2.commerce.product_catalog.imports.succeeded": ( + "stripe.events._v2_commerce_product_catalog_imports_succeeded_event", + "V2CommerceProductCatalogImportsSucceededEventNotification", + ), + "v2.commerce.product_catalog.imports.succeeded_with_errors": ( + "stripe.events._v2_commerce_product_catalog_imports_succeeded_with_errors_event", + "V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification", + ), "v2.core.account.closed": ( "stripe.events._v2_core_account_closed_event", "V2CoreAccountClosedEventNotification", @@ -262,6 +306,10 @@ def get_v2_event_notification_class(type_: str): ALL_EVENT_NOTIFICATIONS = Union[ "V1BillingMeterErrorReportTriggeredEventNotification", "V1BillingMeterNoMeterFoundEventNotification", + "V2CommerceProductCatalogImportsFailedEventNotification", + "V2CommerceProductCatalogImportsProcessingEventNotification", + "V2CommerceProductCatalogImportsSucceededEventNotification", + "V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification", "V2CoreAccountClosedEventNotification", "V2CoreAccountCreatedEventNotification", "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification", diff --git a/stripe/events/_v1_billing_meter_error_report_triggered_event.py b/stripe/events/_v1_billing_meter_error_report_triggered_event.py index 4162d1af4..1005073d5 100644 --- a/stripe/events/_v1_billing_meter_error_report_triggered_event.py +++ b/stripe/events/_v1_billing_meter_error_report_triggered_event.py @@ -107,6 +107,7 @@ class Request(StripeObject): "meter_event_dimension_count_too_high", "meter_event_invalid_value", "meter_event_no_customer_defined", + "meter_event_value_too_many_digits", "missing_dimension_payload_keys", "no_meter", "timestamp_in_future", diff --git a/stripe/events/_v1_billing_meter_no_meter_found_event.py b/stripe/events/_v1_billing_meter_no_meter_found_event.py index 32b79f0e6..9e4363394 100644 --- a/stripe/events/_v1_billing_meter_no_meter_found_event.py +++ b/stripe/events/_v1_billing_meter_no_meter_found_event.py @@ -60,6 +60,7 @@ class Request(StripeObject): "meter_event_dimension_count_too_high", "meter_event_invalid_value", "meter_event_no_customer_defined", + "meter_event_value_too_many_digits", "missing_dimension_payload_keys", "no_meter", "timestamp_in_future", diff --git a/stripe/events/_v2_commerce_product_catalog_imports_failed_event.py b/stripe/events/_v2_commerce_product_catalog_imports_failed_event.py new file mode 100644 index 000000000..94c429c27 --- /dev/null +++ b/stripe/events/_v2_commerce_product_catalog_imports_failed_event.py @@ -0,0 +1,117 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from stripe._util import get_api_mode +from stripe.v2.core._event import Event, EventNotification, RelatedObject +from typing import Any, Dict, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._stripe_client import StripeClient + from stripe.v2.commerce._product_catalog_import import ProductCatalogImport + + +class V2CommerceProductCatalogImportsFailedEventNotification( + EventNotification +): + LOOKUP_TYPE = "v2.commerce.product_catalog.imports.failed" + type: Literal["v2.commerce.product_catalog.imports.failed"] + related_object: RelatedObject + + def __init__( + self, parsed_body: Dict[str, Any], client: "StripeClient" + ) -> None: + super().__init__( + parsed_body, + client, + ) + self.related_object = RelatedObject(parsed_body["related_object"]) + + @override + def fetch_event(self) -> "V2CommerceProductCatalogImportsFailedEvent": + return cast( + "V2CommerceProductCatalogImportsFailedEvent", + super().fetch_event(), + ) + + def fetch_related_object(self) -> "ProductCatalogImport": + response = self._client.raw_request( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ProductCatalogImport", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CommerceProductCatalogImportsFailedEvent": + return cast( + "V2CommerceProductCatalogImportsFailedEvent", + await super().fetch_event_async(), + ) + + async def fetch_related_object_async(self) -> "ProductCatalogImport": + response = await self._client.raw_request_async( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ProductCatalogImport", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + +class V2CommerceProductCatalogImportsFailedEvent(Event): + LOOKUP_TYPE = "v2.commerce.product_catalog.imports.failed" + type: Literal["v2.commerce.product_catalog.imports.failed"] + + class RelatedObject(StripeObject): + id: str + """ + Unique identifier for the object relevant to the event. + """ + type: str + """ + Type of the object relevant to the event. + """ + url: str + """ + URL to retrieve the resource. + """ + + related_object: RelatedObject + """ + Object containing the reference to API resource relevant to the event + """ + + def fetch_related_object(self) -> "ProductCatalogImport": + """ + Retrieves the related object from the API. Makes an API request on every call. + """ + return cast( + "ProductCatalogImport", + self._requestor.request( + "get", + self.related_object.url, + base_address="api", + options={ + "stripe_context": self.context, + "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, + }, + ), + ) diff --git a/stripe/events/_v2_commerce_product_catalog_imports_processing_event.py b/stripe/events/_v2_commerce_product_catalog_imports_processing_event.py new file mode 100644 index 000000000..195c2bad5 --- /dev/null +++ b/stripe/events/_v2_commerce_product_catalog_imports_processing_event.py @@ -0,0 +1,117 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from stripe._util import get_api_mode +from stripe.v2.core._event import Event, EventNotification, RelatedObject +from typing import Any, Dict, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._stripe_client import StripeClient + from stripe.v2.commerce._product_catalog_import import ProductCatalogImport + + +class V2CommerceProductCatalogImportsProcessingEventNotification( + EventNotification, +): + LOOKUP_TYPE = "v2.commerce.product_catalog.imports.processing" + type: Literal["v2.commerce.product_catalog.imports.processing"] + related_object: RelatedObject + + def __init__( + self, parsed_body: Dict[str, Any], client: "StripeClient" + ) -> None: + super().__init__( + parsed_body, + client, + ) + self.related_object = RelatedObject(parsed_body["related_object"]) + + @override + def fetch_event(self) -> "V2CommerceProductCatalogImportsProcessingEvent": + return cast( + "V2CommerceProductCatalogImportsProcessingEvent", + super().fetch_event(), + ) + + def fetch_related_object(self) -> "ProductCatalogImport": + response = self._client.raw_request( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ProductCatalogImport", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CommerceProductCatalogImportsProcessingEvent": + return cast( + "V2CommerceProductCatalogImportsProcessingEvent", + await super().fetch_event_async(), + ) + + async def fetch_related_object_async(self) -> "ProductCatalogImport": + response = await self._client.raw_request_async( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ProductCatalogImport", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + +class V2CommerceProductCatalogImportsProcessingEvent(Event): + LOOKUP_TYPE = "v2.commerce.product_catalog.imports.processing" + type: Literal["v2.commerce.product_catalog.imports.processing"] + + class RelatedObject(StripeObject): + id: str + """ + Unique identifier for the object relevant to the event. + """ + type: str + """ + Type of the object relevant to the event. + """ + url: str + """ + URL to retrieve the resource. + """ + + related_object: RelatedObject + """ + Object containing the reference to API resource relevant to the event + """ + + def fetch_related_object(self) -> "ProductCatalogImport": + """ + Retrieves the related object from the API. Makes an API request on every call. + """ + return cast( + "ProductCatalogImport", + self._requestor.request( + "get", + self.related_object.url, + base_address="api", + options={ + "stripe_context": self.context, + "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, + }, + ), + ) diff --git a/stripe/events/_v2_commerce_product_catalog_imports_succeeded_event.py b/stripe/events/_v2_commerce_product_catalog_imports_succeeded_event.py new file mode 100644 index 000000000..ddafcdcdd --- /dev/null +++ b/stripe/events/_v2_commerce_product_catalog_imports_succeeded_event.py @@ -0,0 +1,117 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from stripe._util import get_api_mode +from stripe.v2.core._event import Event, EventNotification, RelatedObject +from typing import Any, Dict, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._stripe_client import StripeClient + from stripe.v2.commerce._product_catalog_import import ProductCatalogImport + + +class V2CommerceProductCatalogImportsSucceededEventNotification( + EventNotification, +): + LOOKUP_TYPE = "v2.commerce.product_catalog.imports.succeeded" + type: Literal["v2.commerce.product_catalog.imports.succeeded"] + related_object: RelatedObject + + def __init__( + self, parsed_body: Dict[str, Any], client: "StripeClient" + ) -> None: + super().__init__( + parsed_body, + client, + ) + self.related_object = RelatedObject(parsed_body["related_object"]) + + @override + def fetch_event(self) -> "V2CommerceProductCatalogImportsSucceededEvent": + return cast( + "V2CommerceProductCatalogImportsSucceededEvent", + super().fetch_event(), + ) + + def fetch_related_object(self) -> "ProductCatalogImport": + response = self._client.raw_request( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ProductCatalogImport", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CommerceProductCatalogImportsSucceededEvent": + return cast( + "V2CommerceProductCatalogImportsSucceededEvent", + await super().fetch_event_async(), + ) + + async def fetch_related_object_async(self) -> "ProductCatalogImport": + response = await self._client.raw_request_async( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ProductCatalogImport", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + +class V2CommerceProductCatalogImportsSucceededEvent(Event): + LOOKUP_TYPE = "v2.commerce.product_catalog.imports.succeeded" + type: Literal["v2.commerce.product_catalog.imports.succeeded"] + + class RelatedObject(StripeObject): + id: str + """ + Unique identifier for the object relevant to the event. + """ + type: str + """ + Type of the object relevant to the event. + """ + url: str + """ + URL to retrieve the resource. + """ + + related_object: RelatedObject + """ + Object containing the reference to API resource relevant to the event + """ + + def fetch_related_object(self) -> "ProductCatalogImport": + """ + Retrieves the related object from the API. Makes an API request on every call. + """ + return cast( + "ProductCatalogImport", + self._requestor.request( + "get", + self.related_object.url, + base_address="api", + options={ + "stripe_context": self.context, + "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, + }, + ), + ) diff --git a/stripe/events/_v2_commerce_product_catalog_imports_succeeded_with_errors_event.py b/stripe/events/_v2_commerce_product_catalog_imports_succeeded_with_errors_event.py new file mode 100644 index 000000000..fb53a3833 --- /dev/null +++ b/stripe/events/_v2_commerce_product_catalog_imports_succeeded_with_errors_event.py @@ -0,0 +1,119 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from stripe._util import get_api_mode +from stripe.v2.core._event import Event, EventNotification, RelatedObject +from typing import Any, Dict, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._stripe_client import StripeClient + from stripe.v2.commerce._product_catalog_import import ProductCatalogImport + + +class V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification( + EventNotification, +): + LOOKUP_TYPE = "v2.commerce.product_catalog.imports.succeeded_with_errors" + type: Literal["v2.commerce.product_catalog.imports.succeeded_with_errors"] + related_object: RelatedObject + + def __init__( + self, parsed_body: Dict[str, Any], client: "StripeClient" + ) -> None: + super().__init__( + parsed_body, + client, + ) + self.related_object = RelatedObject(parsed_body["related_object"]) + + @override + def fetch_event( + self, + ) -> "V2CommerceProductCatalogImportsSucceededWithErrorsEvent": + return cast( + "V2CommerceProductCatalogImportsSucceededWithErrorsEvent", + super().fetch_event(), + ) + + def fetch_related_object(self) -> "ProductCatalogImport": + response = self._client.raw_request( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ProductCatalogImport", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CommerceProductCatalogImportsSucceededWithErrorsEvent": + return cast( + "V2CommerceProductCatalogImportsSucceededWithErrorsEvent", + await super().fetch_event_async(), + ) + + async def fetch_related_object_async(self) -> "ProductCatalogImport": + response = await self._client.raw_request_async( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ProductCatalogImport", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + +class V2CommerceProductCatalogImportsSucceededWithErrorsEvent(Event): + LOOKUP_TYPE = "v2.commerce.product_catalog.imports.succeeded_with_errors" + type: Literal["v2.commerce.product_catalog.imports.succeeded_with_errors"] + + class RelatedObject(StripeObject): + id: str + """ + Unique identifier for the object relevant to the event. + """ + type: str + """ + Type of the object relevant to the event. + """ + url: str + """ + URL to retrieve the resource. + """ + + related_object: RelatedObject + """ + Object containing the reference to API resource relevant to the event + """ + + def fetch_related_object(self) -> "ProductCatalogImport": + """ + Retrieves the related object from the API. Makes an API request on every call. + """ + return cast( + "ProductCatalogImport", + self._requestor.request( + "get", + self.related_object.url, + base_address="api", + options={ + "stripe_context": self.context, + "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, + }, + ), + ) diff --git a/stripe/issuing/_dispute.py b/stripe/issuing/_dispute.py index 6b644332e..ecf081c47 100644 --- a/stripe/issuing/_dispute.py +++ b/stripe/issuing/_dispute.py @@ -331,7 +331,7 @@ class Treasury(StripeObject): """ treasury: Optional[Treasury] """ - [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts + [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts) """ @classmethod diff --git a/stripe/issuing/_personalization_design.py b/stripe/issuing/_personalization_design.py index 08d8fd75f..8c5ca1476 100644 --- a/stripe/issuing/_personalization_design.py +++ b/stripe/issuing/_personalization_design.py @@ -115,7 +115,7 @@ class RejectionReasons(StripeObject): card_logo: Optional[ExpandableField["File"]] """ - The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. + The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale. """ carrier_text: Optional[CarrierText] """ diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index a7a0c1961..e7bf7eff8 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -60,6 +60,7 @@ AccountCreateParamsCapabilitiesBancontactPayments as AccountCreateParamsCapabilitiesBancontactPayments, AccountCreateParamsCapabilitiesBankTransferPayments as AccountCreateParamsCapabilitiesBankTransferPayments, AccountCreateParamsCapabilitiesBilliePayments as AccountCreateParamsCapabilitiesBilliePayments, + AccountCreateParamsCapabilitiesBizumPayments as AccountCreateParamsCapabilitiesBizumPayments, AccountCreateParamsCapabilitiesBlikPayments as AccountCreateParamsCapabilitiesBlikPayments, AccountCreateParamsCapabilitiesBoletoPayments as AccountCreateParamsCapabilitiesBoletoPayments, AccountCreateParamsCapabilitiesCardIssuing as AccountCreateParamsCapabilitiesCardIssuing, @@ -99,6 +100,7 @@ AccountCreateParamsCapabilitiesRevolutPayPayments as AccountCreateParamsCapabilitiesRevolutPayPayments, AccountCreateParamsCapabilitiesSamsungPayPayments as AccountCreateParamsCapabilitiesSamsungPayPayments, AccountCreateParamsCapabilitiesSatispayPayments as AccountCreateParamsCapabilitiesSatispayPayments, + AccountCreateParamsCapabilitiesScalapayPayments as AccountCreateParamsCapabilitiesScalapayPayments, AccountCreateParamsCapabilitiesSepaBankTransferPayments as AccountCreateParamsCapabilitiesSepaBankTransferPayments, AccountCreateParamsCapabilitiesSepaDebitPayments as AccountCreateParamsCapabilitiesSepaDebitPayments, AccountCreateParamsCapabilitiesSofortPayments as AccountCreateParamsCapabilitiesSofortPayments, @@ -406,6 +408,7 @@ AccountUpdateParamsCapabilitiesBancontactPayments as AccountUpdateParamsCapabilitiesBancontactPayments, AccountUpdateParamsCapabilitiesBankTransferPayments as AccountUpdateParamsCapabilitiesBankTransferPayments, AccountUpdateParamsCapabilitiesBilliePayments as AccountUpdateParamsCapabilitiesBilliePayments, + AccountUpdateParamsCapabilitiesBizumPayments as AccountUpdateParamsCapabilitiesBizumPayments, AccountUpdateParamsCapabilitiesBlikPayments as AccountUpdateParamsCapabilitiesBlikPayments, AccountUpdateParamsCapabilitiesBoletoPayments as AccountUpdateParamsCapabilitiesBoletoPayments, AccountUpdateParamsCapabilitiesCardIssuing as AccountUpdateParamsCapabilitiesCardIssuing, @@ -445,6 +448,7 @@ AccountUpdateParamsCapabilitiesRevolutPayPayments as AccountUpdateParamsCapabilitiesRevolutPayPayments, AccountUpdateParamsCapabilitiesSamsungPayPayments as AccountUpdateParamsCapabilitiesSamsungPayPayments, AccountUpdateParamsCapabilitiesSatispayPayments as AccountUpdateParamsCapabilitiesSatispayPayments, + AccountUpdateParamsCapabilitiesScalapayPayments as AccountUpdateParamsCapabilitiesScalapayPayments, AccountUpdateParamsCapabilitiesSepaBankTransferPayments as AccountUpdateParamsCapabilitiesSepaBankTransferPayments, AccountUpdateParamsCapabilitiesSepaDebitPayments as AccountUpdateParamsCapabilitiesSepaDebitPayments, AccountUpdateParamsCapabilitiesSofortPayments as AccountUpdateParamsCapabilitiesSofortPayments, @@ -562,8 +566,10 @@ BalanceSettingsModifyParams as BalanceSettingsModifyParams, BalanceSettingsModifyParamsPayments as BalanceSettingsModifyParamsPayments, BalanceSettingsModifyParamsPaymentsPayouts as BalanceSettingsModifyParamsPaymentsPayouts, + BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency as BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency, BalanceSettingsModifyParamsPaymentsPayoutsSchedule as BalanceSettingsModifyParamsPaymentsPayoutsSchedule, BalanceSettingsModifyParamsPaymentsSettlementTiming as BalanceSettingsModifyParamsPaymentsSettlementTiming, + BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay as BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay, ) from stripe.params._balance_settings_retrieve_params import ( BalanceSettingsRetrieveParams as BalanceSettingsRetrieveParams, @@ -572,8 +578,10 @@ BalanceSettingsUpdateParams as BalanceSettingsUpdateParams, BalanceSettingsUpdateParamsPayments as BalanceSettingsUpdateParamsPayments, BalanceSettingsUpdateParamsPaymentsPayouts as BalanceSettingsUpdateParamsPaymentsPayouts, + BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency as BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency, BalanceSettingsUpdateParamsPaymentsPayoutsSchedule as BalanceSettingsUpdateParamsPaymentsPayoutsSchedule, BalanceSettingsUpdateParamsPaymentsSettlementTiming as BalanceSettingsUpdateParamsPaymentsSettlementTiming, + BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay as BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay, ) from stripe.params._balance_transaction_list_params import ( BalanceTransactionListParams as BalanceTransactionListParams, @@ -643,6 +651,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress, + ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, @@ -678,6 +687,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay, ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, + ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataSunbit as ConfirmationTokenCreateParamsPaymentMethodDataSunbit, @@ -1160,6 +1170,10 @@ InvoiceCreatePreviewParamsSubscriptionDetails as InvoiceCreatePreviewParamsSubscriptionDetails, InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode as InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode, InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible as InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule as InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration, InvoiceCreatePreviewParamsSubscriptionDetailsItem as InvoiceCreatePreviewParamsSubscriptionDetailsItem, InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds as InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds, InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount as InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount, @@ -1428,6 +1442,7 @@ PaymentIntentConfirmParamsPaymentMethodDataBillie as PaymentIntentConfirmParamsPaymentMethodDataBillie, PaymentIntentConfirmParamsPaymentMethodDataBillingDetails as PaymentIntentConfirmParamsPaymentMethodDataBillingDetails, PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentConfirmParamsPaymentMethodDataBizum as PaymentIntentConfirmParamsPaymentMethodDataBizum, PaymentIntentConfirmParamsPaymentMethodDataBlik as PaymentIntentConfirmParamsPaymentMethodDataBlik, PaymentIntentConfirmParamsPaymentMethodDataBoleto as PaymentIntentConfirmParamsPaymentMethodDataBoleto, PaymentIntentConfirmParamsPaymentMethodDataCashapp as PaymentIntentConfirmParamsPaymentMethodDataCashapp, @@ -1463,6 +1478,7 @@ PaymentIntentConfirmParamsPaymentMethodDataRevolutPay as PaymentIntentConfirmParamsPaymentMethodDataRevolutPay, PaymentIntentConfirmParamsPaymentMethodDataSamsungPay as PaymentIntentConfirmParamsPaymentMethodDataSamsungPay, PaymentIntentConfirmParamsPaymentMethodDataSatispay as PaymentIntentConfirmParamsPaymentMethodDataSatispay, + PaymentIntentConfirmParamsPaymentMethodDataScalapay as PaymentIntentConfirmParamsPaymentMethodDataScalapay, PaymentIntentConfirmParamsPaymentMethodDataSepaDebit as PaymentIntentConfirmParamsPaymentMethodDataSepaDebit, PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort, PaymentIntentConfirmParamsPaymentMethodDataSunbit as PaymentIntentConfirmParamsPaymentMethodDataSunbit, @@ -1486,6 +1502,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsBancontact as PaymentIntentConfirmParamsPaymentMethodOptionsBancontact, PaymentIntentConfirmParamsPaymentMethodOptionsBillie as PaymentIntentConfirmParamsPaymentMethodOptionsBillie, + PaymentIntentConfirmParamsPaymentMethodOptionsBizum as PaymentIntentConfirmParamsPaymentMethodOptionsBizum, PaymentIntentConfirmParamsPaymentMethodOptionsBlik as PaymentIntentConfirmParamsPaymentMethodOptionsBlik, PaymentIntentConfirmParamsPaymentMethodOptionsBoleto as PaymentIntentConfirmParamsPaymentMethodOptionsBoleto, PaymentIntentConfirmParamsPaymentMethodOptionsCard as PaymentIntentConfirmParamsPaymentMethodOptionsCard, @@ -1535,6 +1552,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay as PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay, PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay as PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay, PaymentIntentConfirmParamsPaymentMethodOptionsSatispay as PaymentIntentConfirmParamsPaymentMethodOptionsSatispay, + PaymentIntentConfirmParamsPaymentMethodOptionsScalapay as PaymentIntentConfirmParamsPaymentMethodOptionsScalapay, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsSofort as PaymentIntentConfirmParamsPaymentMethodOptionsSofort, @@ -1587,6 +1605,7 @@ PaymentIntentCreateParamsPaymentMethodDataBillie as PaymentIntentCreateParamsPaymentMethodDataBillie, PaymentIntentCreateParamsPaymentMethodDataBillingDetails as PaymentIntentCreateParamsPaymentMethodDataBillingDetails, PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentCreateParamsPaymentMethodDataBizum as PaymentIntentCreateParamsPaymentMethodDataBizum, PaymentIntentCreateParamsPaymentMethodDataBlik as PaymentIntentCreateParamsPaymentMethodDataBlik, PaymentIntentCreateParamsPaymentMethodDataBoleto as PaymentIntentCreateParamsPaymentMethodDataBoleto, PaymentIntentCreateParamsPaymentMethodDataCashapp as PaymentIntentCreateParamsPaymentMethodDataCashapp, @@ -1622,6 +1641,7 @@ PaymentIntentCreateParamsPaymentMethodDataRevolutPay as PaymentIntentCreateParamsPaymentMethodDataRevolutPay, PaymentIntentCreateParamsPaymentMethodDataSamsungPay as PaymentIntentCreateParamsPaymentMethodDataSamsungPay, PaymentIntentCreateParamsPaymentMethodDataSatispay as PaymentIntentCreateParamsPaymentMethodDataSatispay, + PaymentIntentCreateParamsPaymentMethodDataScalapay as PaymentIntentCreateParamsPaymentMethodDataScalapay, PaymentIntentCreateParamsPaymentMethodDataSepaDebit as PaymentIntentCreateParamsPaymentMethodDataSepaDebit, PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort, PaymentIntentCreateParamsPaymentMethodDataSunbit as PaymentIntentCreateParamsPaymentMethodDataSunbit, @@ -1645,6 +1665,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsBancontact as PaymentIntentCreateParamsPaymentMethodOptionsBancontact, PaymentIntentCreateParamsPaymentMethodOptionsBillie as PaymentIntentCreateParamsPaymentMethodOptionsBillie, + PaymentIntentCreateParamsPaymentMethodOptionsBizum as PaymentIntentCreateParamsPaymentMethodOptionsBizum, PaymentIntentCreateParamsPaymentMethodOptionsBlik as PaymentIntentCreateParamsPaymentMethodOptionsBlik, PaymentIntentCreateParamsPaymentMethodOptionsBoleto as PaymentIntentCreateParamsPaymentMethodOptionsBoleto, PaymentIntentCreateParamsPaymentMethodOptionsCard as PaymentIntentCreateParamsPaymentMethodOptionsCard, @@ -1694,6 +1715,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay as PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay, PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay as PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay, PaymentIntentCreateParamsPaymentMethodOptionsSatispay as PaymentIntentCreateParamsPaymentMethodOptionsSatispay, + PaymentIntentCreateParamsPaymentMethodOptionsScalapay as PaymentIntentCreateParamsPaymentMethodOptionsScalapay, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsSofort as PaymentIntentCreateParamsPaymentMethodOptionsSofort, @@ -1712,6 +1734,7 @@ PaymentIntentCreateParamsShipping as PaymentIntentCreateParamsShipping, PaymentIntentCreateParamsShippingAddress as PaymentIntentCreateParamsShippingAddress, PaymentIntentCreateParamsTransferData as PaymentIntentCreateParamsTransferData, + PaymentIntentCreateParamsTransferDataPaymentData as PaymentIntentCreateParamsTransferDataPaymentData, ) from stripe.params._payment_intent_increment_authorization_params import ( PaymentIntentIncrementAuthorizationParams as PaymentIntentIncrementAuthorizationParams, @@ -1767,6 +1790,7 @@ PaymentIntentModifyParamsPaymentMethodDataBillie as PaymentIntentModifyParamsPaymentMethodDataBillie, PaymentIntentModifyParamsPaymentMethodDataBillingDetails as PaymentIntentModifyParamsPaymentMethodDataBillingDetails, PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentModifyParamsPaymentMethodDataBizum as PaymentIntentModifyParamsPaymentMethodDataBizum, PaymentIntentModifyParamsPaymentMethodDataBlik as PaymentIntentModifyParamsPaymentMethodDataBlik, PaymentIntentModifyParamsPaymentMethodDataBoleto as PaymentIntentModifyParamsPaymentMethodDataBoleto, PaymentIntentModifyParamsPaymentMethodDataCashapp as PaymentIntentModifyParamsPaymentMethodDataCashapp, @@ -1802,6 +1826,7 @@ PaymentIntentModifyParamsPaymentMethodDataRevolutPay as PaymentIntentModifyParamsPaymentMethodDataRevolutPay, PaymentIntentModifyParamsPaymentMethodDataSamsungPay as PaymentIntentModifyParamsPaymentMethodDataSamsungPay, PaymentIntentModifyParamsPaymentMethodDataSatispay as PaymentIntentModifyParamsPaymentMethodDataSatispay, + PaymentIntentModifyParamsPaymentMethodDataScalapay as PaymentIntentModifyParamsPaymentMethodDataScalapay, PaymentIntentModifyParamsPaymentMethodDataSepaDebit as PaymentIntentModifyParamsPaymentMethodDataSepaDebit, PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort, PaymentIntentModifyParamsPaymentMethodDataSunbit as PaymentIntentModifyParamsPaymentMethodDataSunbit, @@ -1825,6 +1850,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsBancontact as PaymentIntentModifyParamsPaymentMethodOptionsBancontact, PaymentIntentModifyParamsPaymentMethodOptionsBillie as PaymentIntentModifyParamsPaymentMethodOptionsBillie, + PaymentIntentModifyParamsPaymentMethodOptionsBizum as PaymentIntentModifyParamsPaymentMethodOptionsBizum, PaymentIntentModifyParamsPaymentMethodOptionsBlik as PaymentIntentModifyParamsPaymentMethodOptionsBlik, PaymentIntentModifyParamsPaymentMethodOptionsBoleto as PaymentIntentModifyParamsPaymentMethodOptionsBoleto, PaymentIntentModifyParamsPaymentMethodOptionsCard as PaymentIntentModifyParamsPaymentMethodOptionsCard, @@ -1874,6 +1900,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay as PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay, PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay as PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay, PaymentIntentModifyParamsPaymentMethodOptionsSatispay as PaymentIntentModifyParamsPaymentMethodOptionsSatispay, + PaymentIntentModifyParamsPaymentMethodOptionsScalapay as PaymentIntentModifyParamsPaymentMethodOptionsScalapay, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsSofort as PaymentIntentModifyParamsPaymentMethodOptionsSofort, @@ -1891,6 +1918,7 @@ PaymentIntentModifyParamsShipping as PaymentIntentModifyParamsShipping, PaymentIntentModifyParamsShippingAddress as PaymentIntentModifyParamsShippingAddress, PaymentIntentModifyParamsTransferData as PaymentIntentModifyParamsTransferData, + PaymentIntentModifyParamsTransferDataPaymentData as PaymentIntentModifyParamsTransferDataPaymentData, ) from stripe.params._payment_intent_retrieve_params import ( PaymentIntentRetrieveParams as PaymentIntentRetrieveParams, @@ -1927,6 +1955,7 @@ PaymentIntentUpdateParamsPaymentMethodDataBillie as PaymentIntentUpdateParamsPaymentMethodDataBillie, PaymentIntentUpdateParamsPaymentMethodDataBillingDetails as PaymentIntentUpdateParamsPaymentMethodDataBillingDetails, PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress as PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress, + PaymentIntentUpdateParamsPaymentMethodDataBizum as PaymentIntentUpdateParamsPaymentMethodDataBizum, PaymentIntentUpdateParamsPaymentMethodDataBlik as PaymentIntentUpdateParamsPaymentMethodDataBlik, PaymentIntentUpdateParamsPaymentMethodDataBoleto as PaymentIntentUpdateParamsPaymentMethodDataBoleto, PaymentIntentUpdateParamsPaymentMethodDataCashapp as PaymentIntentUpdateParamsPaymentMethodDataCashapp, @@ -1962,6 +1991,7 @@ PaymentIntentUpdateParamsPaymentMethodDataRevolutPay as PaymentIntentUpdateParamsPaymentMethodDataRevolutPay, PaymentIntentUpdateParamsPaymentMethodDataSamsungPay as PaymentIntentUpdateParamsPaymentMethodDataSamsungPay, PaymentIntentUpdateParamsPaymentMethodDataSatispay as PaymentIntentUpdateParamsPaymentMethodDataSatispay, + PaymentIntentUpdateParamsPaymentMethodDataScalapay as PaymentIntentUpdateParamsPaymentMethodDataScalapay, PaymentIntentUpdateParamsPaymentMethodDataSepaDebit as PaymentIntentUpdateParamsPaymentMethodDataSepaDebit, PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort, PaymentIntentUpdateParamsPaymentMethodDataSunbit as PaymentIntentUpdateParamsPaymentMethodDataSunbit, @@ -1985,6 +2015,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsBancontact as PaymentIntentUpdateParamsPaymentMethodOptionsBancontact, PaymentIntentUpdateParamsPaymentMethodOptionsBillie as PaymentIntentUpdateParamsPaymentMethodOptionsBillie, + PaymentIntentUpdateParamsPaymentMethodOptionsBizum as PaymentIntentUpdateParamsPaymentMethodOptionsBizum, PaymentIntentUpdateParamsPaymentMethodOptionsBlik as PaymentIntentUpdateParamsPaymentMethodOptionsBlik, PaymentIntentUpdateParamsPaymentMethodOptionsBoleto as PaymentIntentUpdateParamsPaymentMethodOptionsBoleto, PaymentIntentUpdateParamsPaymentMethodOptionsCard as PaymentIntentUpdateParamsPaymentMethodOptionsCard, @@ -2034,6 +2065,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay as PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay, PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay as PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay, PaymentIntentUpdateParamsPaymentMethodOptionsSatispay as PaymentIntentUpdateParamsPaymentMethodOptionsSatispay, + PaymentIntentUpdateParamsPaymentMethodOptionsScalapay as PaymentIntentUpdateParamsPaymentMethodOptionsScalapay, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsSofort as PaymentIntentUpdateParamsPaymentMethodOptionsSofort, @@ -2051,6 +2083,7 @@ PaymentIntentUpdateParamsShipping as PaymentIntentUpdateParamsShipping, PaymentIntentUpdateParamsShippingAddress as PaymentIntentUpdateParamsShippingAddress, PaymentIntentUpdateParamsTransferData as PaymentIntentUpdateParamsTransferData, + PaymentIntentUpdateParamsTransferDataPaymentData as PaymentIntentUpdateParamsTransferDataPaymentData, ) from stripe.params._payment_intent_verify_microdeposits_params import ( PaymentIntentVerifyMicrodepositsParams as PaymentIntentVerifyMicrodepositsParams, @@ -2092,6 +2125,9 @@ PaymentLinkCreateParamsOptionalItem as PaymentLinkCreateParamsOptionalItem, PaymentLinkCreateParamsOptionalItemAdjustableQuantity as PaymentLinkCreateParamsOptionalItemAdjustableQuantity, PaymentLinkCreateParamsPaymentIntentData as PaymentLinkCreateParamsPaymentIntentData, + PaymentLinkCreateParamsPaymentMethodOptions as PaymentLinkCreateParamsPaymentMethodOptions, + PaymentLinkCreateParamsPaymentMethodOptionsCard as PaymentLinkCreateParamsPaymentMethodOptionsCard, + PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions as PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions, PaymentLinkCreateParamsPhoneNumberCollection as PaymentLinkCreateParamsPhoneNumberCollection, PaymentLinkCreateParamsRestrictions as PaymentLinkCreateParamsRestrictions, PaymentLinkCreateParamsRestrictionsCompletedSessions as PaymentLinkCreateParamsRestrictionsCompletedSessions, @@ -2145,6 +2181,9 @@ PaymentLinkModifyParamsOptionalItem as PaymentLinkModifyParamsOptionalItem, PaymentLinkModifyParamsOptionalItemAdjustableQuantity as PaymentLinkModifyParamsOptionalItemAdjustableQuantity, PaymentLinkModifyParamsPaymentIntentData as PaymentLinkModifyParamsPaymentIntentData, + PaymentLinkModifyParamsPaymentMethodOptions as PaymentLinkModifyParamsPaymentMethodOptions, + PaymentLinkModifyParamsPaymentMethodOptionsCard as PaymentLinkModifyParamsPaymentMethodOptionsCard, + PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions as PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions, PaymentLinkModifyParamsPhoneNumberCollection as PaymentLinkModifyParamsPhoneNumberCollection, PaymentLinkModifyParamsRestrictions as PaymentLinkModifyParamsRestrictions, PaymentLinkModifyParamsRestrictionsCompletedSessions as PaymentLinkModifyParamsRestrictionsCompletedSessions, @@ -2190,6 +2229,9 @@ PaymentLinkUpdateParamsOptionalItem as PaymentLinkUpdateParamsOptionalItem, PaymentLinkUpdateParamsOptionalItemAdjustableQuantity as PaymentLinkUpdateParamsOptionalItemAdjustableQuantity, PaymentLinkUpdateParamsPaymentIntentData as PaymentLinkUpdateParamsPaymentIntentData, + PaymentLinkUpdateParamsPaymentMethodOptions as PaymentLinkUpdateParamsPaymentMethodOptions, + PaymentLinkUpdateParamsPaymentMethodOptionsCard as PaymentLinkUpdateParamsPaymentMethodOptionsCard, + PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions as PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions, PaymentLinkUpdateParamsPhoneNumberCollection as PaymentLinkUpdateParamsPhoneNumberCollection, PaymentLinkUpdateParamsRestrictions as PaymentLinkUpdateParamsRestrictions, PaymentLinkUpdateParamsRestrictionsCompletedSessions as PaymentLinkUpdateParamsRestrictionsCompletedSessions, @@ -2230,6 +2272,8 @@ PaymentMethodConfigurationCreateParamsBancontactDisplayPreference as PaymentMethodConfigurationCreateParamsBancontactDisplayPreference, PaymentMethodConfigurationCreateParamsBillie as PaymentMethodConfigurationCreateParamsBillie, PaymentMethodConfigurationCreateParamsBillieDisplayPreference as PaymentMethodConfigurationCreateParamsBillieDisplayPreference, + PaymentMethodConfigurationCreateParamsBizum as PaymentMethodConfigurationCreateParamsBizum, + PaymentMethodConfigurationCreateParamsBizumDisplayPreference as PaymentMethodConfigurationCreateParamsBizumDisplayPreference, PaymentMethodConfigurationCreateParamsBlik as PaymentMethodConfigurationCreateParamsBlik, PaymentMethodConfigurationCreateParamsBlikDisplayPreference as PaymentMethodConfigurationCreateParamsBlikDisplayPreference, PaymentMethodConfigurationCreateParamsBoleto as PaymentMethodConfigurationCreateParamsBoleto, @@ -2304,6 +2348,8 @@ PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference as PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference, PaymentMethodConfigurationCreateParamsSatispay as PaymentMethodConfigurationCreateParamsSatispay, PaymentMethodConfigurationCreateParamsSatispayDisplayPreference as PaymentMethodConfigurationCreateParamsSatispayDisplayPreference, + PaymentMethodConfigurationCreateParamsScalapay as PaymentMethodConfigurationCreateParamsScalapay, + PaymentMethodConfigurationCreateParamsScalapayDisplayPreference as PaymentMethodConfigurationCreateParamsScalapayDisplayPreference, PaymentMethodConfigurationCreateParamsSepaDebit as PaymentMethodConfigurationCreateParamsSepaDebit, PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference, PaymentMethodConfigurationCreateParamsSofort as PaymentMethodConfigurationCreateParamsSofort, @@ -2352,6 +2398,8 @@ PaymentMethodConfigurationModifyParamsBancontactDisplayPreference as PaymentMethodConfigurationModifyParamsBancontactDisplayPreference, PaymentMethodConfigurationModifyParamsBillie as PaymentMethodConfigurationModifyParamsBillie, PaymentMethodConfigurationModifyParamsBillieDisplayPreference as PaymentMethodConfigurationModifyParamsBillieDisplayPreference, + PaymentMethodConfigurationModifyParamsBizum as PaymentMethodConfigurationModifyParamsBizum, + PaymentMethodConfigurationModifyParamsBizumDisplayPreference as PaymentMethodConfigurationModifyParamsBizumDisplayPreference, PaymentMethodConfigurationModifyParamsBlik as PaymentMethodConfigurationModifyParamsBlik, PaymentMethodConfigurationModifyParamsBlikDisplayPreference as PaymentMethodConfigurationModifyParamsBlikDisplayPreference, PaymentMethodConfigurationModifyParamsBoleto as PaymentMethodConfigurationModifyParamsBoleto, @@ -2426,6 +2474,8 @@ PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference as PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference, PaymentMethodConfigurationModifyParamsSatispay as PaymentMethodConfigurationModifyParamsSatispay, PaymentMethodConfigurationModifyParamsSatispayDisplayPreference as PaymentMethodConfigurationModifyParamsSatispayDisplayPreference, + PaymentMethodConfigurationModifyParamsScalapay as PaymentMethodConfigurationModifyParamsScalapay, + PaymentMethodConfigurationModifyParamsScalapayDisplayPreference as PaymentMethodConfigurationModifyParamsScalapayDisplayPreference, PaymentMethodConfigurationModifyParamsSepaDebit as PaymentMethodConfigurationModifyParamsSepaDebit, PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference as PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference, PaymentMethodConfigurationModifyParamsSofort as PaymentMethodConfigurationModifyParamsSofort, @@ -2474,6 +2524,8 @@ PaymentMethodConfigurationUpdateParamsBancontactDisplayPreference as PaymentMethodConfigurationUpdateParamsBancontactDisplayPreference, PaymentMethodConfigurationUpdateParamsBillie as PaymentMethodConfigurationUpdateParamsBillie, PaymentMethodConfigurationUpdateParamsBillieDisplayPreference as PaymentMethodConfigurationUpdateParamsBillieDisplayPreference, + PaymentMethodConfigurationUpdateParamsBizum as PaymentMethodConfigurationUpdateParamsBizum, + PaymentMethodConfigurationUpdateParamsBizumDisplayPreference as PaymentMethodConfigurationUpdateParamsBizumDisplayPreference, PaymentMethodConfigurationUpdateParamsBlik as PaymentMethodConfigurationUpdateParamsBlik, PaymentMethodConfigurationUpdateParamsBlikDisplayPreference as PaymentMethodConfigurationUpdateParamsBlikDisplayPreference, PaymentMethodConfigurationUpdateParamsBoleto as PaymentMethodConfigurationUpdateParamsBoleto, @@ -2548,6 +2600,8 @@ PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference as PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference, PaymentMethodConfigurationUpdateParamsSatispay as PaymentMethodConfigurationUpdateParamsSatispay, PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference as PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference, + PaymentMethodConfigurationUpdateParamsScalapay as PaymentMethodConfigurationUpdateParamsScalapay, + PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference as PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference, PaymentMethodConfigurationUpdateParamsSepaDebit as PaymentMethodConfigurationUpdateParamsSepaDebit, PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference, PaymentMethodConfigurationUpdateParamsSofort as PaymentMethodConfigurationUpdateParamsSofort, @@ -2581,6 +2635,7 @@ PaymentMethodCreateParamsBillie as PaymentMethodCreateParamsBillie, PaymentMethodCreateParamsBillingDetails as PaymentMethodCreateParamsBillingDetails, PaymentMethodCreateParamsBillingDetailsAddress as PaymentMethodCreateParamsBillingDetailsAddress, + PaymentMethodCreateParamsBizum as PaymentMethodCreateParamsBizum, PaymentMethodCreateParamsBlik as PaymentMethodCreateParamsBlik, PaymentMethodCreateParamsBoleto as PaymentMethodCreateParamsBoleto, PaymentMethodCreateParamsCard as PaymentMethodCreateParamsCard, @@ -2619,6 +2674,7 @@ PaymentMethodCreateParamsRevolutPay as PaymentMethodCreateParamsRevolutPay, PaymentMethodCreateParamsSamsungPay as PaymentMethodCreateParamsSamsungPay, PaymentMethodCreateParamsSatispay as PaymentMethodCreateParamsSatispay, + PaymentMethodCreateParamsScalapay as PaymentMethodCreateParamsScalapay, PaymentMethodCreateParamsSepaDebit as PaymentMethodCreateParamsSepaDebit, PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort, PaymentMethodCreateParamsSunbit as PaymentMethodCreateParamsSunbit, @@ -3019,6 +3075,7 @@ SetupIntentConfirmParamsPaymentMethodDataBillie as SetupIntentConfirmParamsPaymentMethodDataBillie, SetupIntentConfirmParamsPaymentMethodDataBillingDetails as SetupIntentConfirmParamsPaymentMethodDataBillingDetails, SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress as SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentConfirmParamsPaymentMethodDataBizum as SetupIntentConfirmParamsPaymentMethodDataBizum, SetupIntentConfirmParamsPaymentMethodDataBlik as SetupIntentConfirmParamsPaymentMethodDataBlik, SetupIntentConfirmParamsPaymentMethodDataBoleto as SetupIntentConfirmParamsPaymentMethodDataBoleto, SetupIntentConfirmParamsPaymentMethodDataCashapp as SetupIntentConfirmParamsPaymentMethodDataCashapp, @@ -3054,6 +3111,7 @@ SetupIntentConfirmParamsPaymentMethodDataRevolutPay as SetupIntentConfirmParamsPaymentMethodDataRevolutPay, SetupIntentConfirmParamsPaymentMethodDataSamsungPay as SetupIntentConfirmParamsPaymentMethodDataSamsungPay, SetupIntentConfirmParamsPaymentMethodDataSatispay as SetupIntentConfirmParamsPaymentMethodDataSatispay, + SetupIntentConfirmParamsPaymentMethodDataScalapay as SetupIntentConfirmParamsPaymentMethodDataScalapay, SetupIntentConfirmParamsPaymentMethodDataSepaDebit as SetupIntentConfirmParamsPaymentMethodDataSepaDebit, SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort, SetupIntentConfirmParamsPaymentMethodDataSunbit as SetupIntentConfirmParamsPaymentMethodDataSunbit, @@ -3070,6 +3128,7 @@ SetupIntentConfirmParamsPaymentMethodOptionsAmazonPay as SetupIntentConfirmParamsPaymentMethodOptionsAmazonPay, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentConfirmParamsPaymentMethodOptionsBizum as SetupIntentConfirmParamsPaymentMethodOptionsBizum, SetupIntentConfirmParamsPaymentMethodOptionsCard as SetupIntentConfirmParamsPaymentMethodOptionsCard, SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions, SetupIntentConfirmParamsPaymentMethodOptionsCardPresent as SetupIntentConfirmParamsPaymentMethodOptionsCardPresent, @@ -3116,6 +3175,7 @@ SetupIntentCreateParamsPaymentMethodDataBillie as SetupIntentCreateParamsPaymentMethodDataBillie, SetupIntentCreateParamsPaymentMethodDataBillingDetails as SetupIntentCreateParamsPaymentMethodDataBillingDetails, SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress as SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentCreateParamsPaymentMethodDataBizum as SetupIntentCreateParamsPaymentMethodDataBizum, SetupIntentCreateParamsPaymentMethodDataBlik as SetupIntentCreateParamsPaymentMethodDataBlik, SetupIntentCreateParamsPaymentMethodDataBoleto as SetupIntentCreateParamsPaymentMethodDataBoleto, SetupIntentCreateParamsPaymentMethodDataCashapp as SetupIntentCreateParamsPaymentMethodDataCashapp, @@ -3151,6 +3211,7 @@ SetupIntentCreateParamsPaymentMethodDataRevolutPay as SetupIntentCreateParamsPaymentMethodDataRevolutPay, SetupIntentCreateParamsPaymentMethodDataSamsungPay as SetupIntentCreateParamsPaymentMethodDataSamsungPay, SetupIntentCreateParamsPaymentMethodDataSatispay as SetupIntentCreateParamsPaymentMethodDataSatispay, + SetupIntentCreateParamsPaymentMethodDataScalapay as SetupIntentCreateParamsPaymentMethodDataScalapay, SetupIntentCreateParamsPaymentMethodDataSepaDebit as SetupIntentCreateParamsPaymentMethodDataSepaDebit, SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort, SetupIntentCreateParamsPaymentMethodDataSunbit as SetupIntentCreateParamsPaymentMethodDataSunbit, @@ -3167,6 +3228,7 @@ SetupIntentCreateParamsPaymentMethodOptionsAmazonPay as SetupIntentCreateParamsPaymentMethodOptionsAmazonPay, SetupIntentCreateParamsPaymentMethodOptionsBacsDebit as SetupIntentCreateParamsPaymentMethodOptionsBacsDebit, SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentCreateParamsPaymentMethodOptionsBizum as SetupIntentCreateParamsPaymentMethodOptionsBizum, SetupIntentCreateParamsPaymentMethodOptionsCard as SetupIntentCreateParamsPaymentMethodOptionsCard, SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentCreateParamsPaymentMethodOptionsCardPresent as SetupIntentCreateParamsPaymentMethodOptionsCardPresent, @@ -3213,6 +3275,7 @@ SetupIntentModifyParamsPaymentMethodDataBillie as SetupIntentModifyParamsPaymentMethodDataBillie, SetupIntentModifyParamsPaymentMethodDataBillingDetails as SetupIntentModifyParamsPaymentMethodDataBillingDetails, SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress as SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentModifyParamsPaymentMethodDataBizum as SetupIntentModifyParamsPaymentMethodDataBizum, SetupIntentModifyParamsPaymentMethodDataBlik as SetupIntentModifyParamsPaymentMethodDataBlik, SetupIntentModifyParamsPaymentMethodDataBoleto as SetupIntentModifyParamsPaymentMethodDataBoleto, SetupIntentModifyParamsPaymentMethodDataCashapp as SetupIntentModifyParamsPaymentMethodDataCashapp, @@ -3248,6 +3311,7 @@ SetupIntentModifyParamsPaymentMethodDataRevolutPay as SetupIntentModifyParamsPaymentMethodDataRevolutPay, SetupIntentModifyParamsPaymentMethodDataSamsungPay as SetupIntentModifyParamsPaymentMethodDataSamsungPay, SetupIntentModifyParamsPaymentMethodDataSatispay as SetupIntentModifyParamsPaymentMethodDataSatispay, + SetupIntentModifyParamsPaymentMethodDataScalapay as SetupIntentModifyParamsPaymentMethodDataScalapay, SetupIntentModifyParamsPaymentMethodDataSepaDebit as SetupIntentModifyParamsPaymentMethodDataSepaDebit, SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort, SetupIntentModifyParamsPaymentMethodDataSunbit as SetupIntentModifyParamsPaymentMethodDataSunbit, @@ -3264,6 +3328,7 @@ SetupIntentModifyParamsPaymentMethodOptionsAmazonPay as SetupIntentModifyParamsPaymentMethodOptionsAmazonPay, SetupIntentModifyParamsPaymentMethodOptionsBacsDebit as SetupIntentModifyParamsPaymentMethodOptionsBacsDebit, SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentModifyParamsPaymentMethodOptionsBizum as SetupIntentModifyParamsPaymentMethodOptionsBizum, SetupIntentModifyParamsPaymentMethodOptionsCard as SetupIntentModifyParamsPaymentMethodOptionsCard, SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions, SetupIntentModifyParamsPaymentMethodOptionsCardPresent as SetupIntentModifyParamsPaymentMethodOptionsCardPresent, @@ -3308,6 +3373,7 @@ SetupIntentUpdateParamsPaymentMethodDataBillie as SetupIntentUpdateParamsPaymentMethodDataBillie, SetupIntentUpdateParamsPaymentMethodDataBillingDetails as SetupIntentUpdateParamsPaymentMethodDataBillingDetails, SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress as SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress, + SetupIntentUpdateParamsPaymentMethodDataBizum as SetupIntentUpdateParamsPaymentMethodDataBizum, SetupIntentUpdateParamsPaymentMethodDataBlik as SetupIntentUpdateParamsPaymentMethodDataBlik, SetupIntentUpdateParamsPaymentMethodDataBoleto as SetupIntentUpdateParamsPaymentMethodDataBoleto, SetupIntentUpdateParamsPaymentMethodDataCashapp as SetupIntentUpdateParamsPaymentMethodDataCashapp, @@ -3343,6 +3409,7 @@ SetupIntentUpdateParamsPaymentMethodDataRevolutPay as SetupIntentUpdateParamsPaymentMethodDataRevolutPay, SetupIntentUpdateParamsPaymentMethodDataSamsungPay as SetupIntentUpdateParamsPaymentMethodDataSamsungPay, SetupIntentUpdateParamsPaymentMethodDataSatispay as SetupIntentUpdateParamsPaymentMethodDataSatispay, + SetupIntentUpdateParamsPaymentMethodDataScalapay as SetupIntentUpdateParamsPaymentMethodDataScalapay, SetupIntentUpdateParamsPaymentMethodDataSepaDebit as SetupIntentUpdateParamsPaymentMethodDataSepaDebit, SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort, SetupIntentUpdateParamsPaymentMethodDataSunbit as SetupIntentUpdateParamsPaymentMethodDataSunbit, @@ -3359,6 +3426,7 @@ SetupIntentUpdateParamsPaymentMethodOptionsAmazonPay as SetupIntentUpdateParamsPaymentMethodOptionsAmazonPay, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, + SetupIntentUpdateParamsPaymentMethodOptionsBizum as SetupIntentUpdateParamsPaymentMethodOptionsBizum, SetupIntentUpdateParamsPaymentMethodOptionsCard as SetupIntentUpdateParamsPaymentMethodOptionsCard, SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentUpdateParamsPaymentMethodOptionsCardPresent as SetupIntentUpdateParamsPaymentMethodOptionsCardPresent, @@ -3486,6 +3554,10 @@ SubscriptionCreateParamsBillingCycleAnchorConfig as SubscriptionCreateParamsBillingCycleAnchorConfig, SubscriptionCreateParamsBillingMode as SubscriptionCreateParamsBillingMode, SubscriptionCreateParamsBillingModeFlexible as SubscriptionCreateParamsBillingModeFlexible, + SubscriptionCreateParamsBillingSchedule as SubscriptionCreateParamsBillingSchedule, + SubscriptionCreateParamsBillingScheduleAppliesTo as SubscriptionCreateParamsBillingScheduleAppliesTo, + SubscriptionCreateParamsBillingScheduleBillUntil as SubscriptionCreateParamsBillingScheduleBillUntil, + SubscriptionCreateParamsBillingScheduleBillUntilDuration as SubscriptionCreateParamsBillingScheduleBillUntilDuration, SubscriptionCreateParamsBillingThresholds as SubscriptionCreateParamsBillingThresholds, SubscriptionCreateParamsDiscount as SubscriptionCreateParamsDiscount, SubscriptionCreateParamsInvoiceSettings as SubscriptionCreateParamsInvoiceSettings, @@ -3576,6 +3648,10 @@ SubscriptionModifyParamsAddInvoiceItemPriceData as SubscriptionModifyParamsAddInvoiceItemPriceData, SubscriptionModifyParamsAutomaticTax as SubscriptionModifyParamsAutomaticTax, SubscriptionModifyParamsAutomaticTaxLiability as SubscriptionModifyParamsAutomaticTaxLiability, + SubscriptionModifyParamsBillingSchedule as SubscriptionModifyParamsBillingSchedule, + SubscriptionModifyParamsBillingScheduleAppliesTo as SubscriptionModifyParamsBillingScheduleAppliesTo, + SubscriptionModifyParamsBillingScheduleBillUntil as SubscriptionModifyParamsBillingScheduleBillUntil, + SubscriptionModifyParamsBillingScheduleBillUntilDuration as SubscriptionModifyParamsBillingScheduleBillUntilDuration, SubscriptionModifyParamsBillingThresholds as SubscriptionModifyParamsBillingThresholds, SubscriptionModifyParamsCancellationDetails as SubscriptionModifyParamsCancellationDetails, SubscriptionModifyParamsDiscount as SubscriptionModifyParamsDiscount, @@ -3740,6 +3816,10 @@ SubscriptionUpdateParamsAddInvoiceItemPriceData as SubscriptionUpdateParamsAddInvoiceItemPriceData, SubscriptionUpdateParamsAutomaticTax as SubscriptionUpdateParamsAutomaticTax, SubscriptionUpdateParamsAutomaticTaxLiability as SubscriptionUpdateParamsAutomaticTaxLiability, + SubscriptionUpdateParamsBillingSchedule as SubscriptionUpdateParamsBillingSchedule, + SubscriptionUpdateParamsBillingScheduleAppliesTo as SubscriptionUpdateParamsBillingScheduleAppliesTo, + SubscriptionUpdateParamsBillingScheduleBillUntil as SubscriptionUpdateParamsBillingScheduleBillUntil, + SubscriptionUpdateParamsBillingScheduleBillUntilDuration as SubscriptionUpdateParamsBillingScheduleBillUntilDuration, SubscriptionUpdateParamsBillingThresholds as SubscriptionUpdateParamsBillingThresholds, SubscriptionUpdateParamsCancellationDetails as SubscriptionUpdateParamsCancellationDetails, SubscriptionUpdateParamsDiscount as SubscriptionUpdateParamsDiscount, @@ -4063,6 +4143,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesBizumPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesBlikPayments": ( "stripe.params._account_create_params", False, @@ -4219,6 +4303,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesScalapayPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesSepaBankTransferPayments": ( "stripe.params._account_create_params", False, @@ -5167,6 +5255,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesBizumPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesBlikPayments": ( "stripe.params._account_update_params", False, @@ -5323,6 +5415,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesScalapayPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesSepaBankTransferPayments": ( "stripe.params._account_update_params", False, @@ -5649,6 +5745,10 @@ "stripe.params._balance_settings_modify_params", False, ), + "BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency": ( + "stripe.params._balance_settings_modify_params", + False, + ), "BalanceSettingsModifyParamsPaymentsPayoutsSchedule": ( "stripe.params._balance_settings_modify_params", False, @@ -5657,6 +5757,10 @@ "stripe.params._balance_settings_modify_params", False, ), + "BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay": ( + "stripe.params._balance_settings_modify_params", + False, + ), "BalanceSettingsRetrieveParams": ( "stripe.params._balance_settings_retrieve_params", False, @@ -5673,6 +5777,10 @@ "stripe.params._balance_settings_update_params", False, ), + "BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency": ( + "stripe.params._balance_settings_update_params", + False, + ), "BalanceSettingsUpdateParamsPaymentsPayoutsSchedule": ( "stripe.params._balance_settings_update_params", False, @@ -5681,6 +5789,10 @@ "stripe.params._balance_settings_update_params", False, ), + "BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay": ( + "stripe.params._balance_settings_update_params", + False, + ), "BalanceTransactionListParams": ( "stripe.params._balance_transaction_list_params", False, @@ -5818,6 +5930,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataBizum": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBlik": ( "stripe.params._confirmation_token_create_params", False, @@ -5958,6 +6074,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._confirmation_token_create_params", False, @@ -7038,6 +7158,22 @@ "stripe.params._invoice_create_preview_params", False, ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration": ( + "stripe.params._invoice_create_preview_params", + False, + ), "InvoiceCreatePreviewParamsSubscriptionDetailsItem": ( "stripe.params._invoice_create_preview_params", False, @@ -7792,6 +7928,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_confirm_params", False, @@ -7932,6 +8072,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -8024,6 +8168,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_confirm_params", False, @@ -8220,6 +8368,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -8420,6 +8572,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_create_params", False, @@ -8560,6 +8716,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_create_params", False, @@ -8652,6 +8812,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_create_params", False, @@ -8848,6 +9012,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_create_params", False, @@ -8920,6 +9088,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentIncrementAuthorizationParams": ( "stripe.params._payment_intent_increment_authorization_params", False, @@ -9108,6 +9280,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_modify_params", False, @@ -9248,6 +9424,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -9340,6 +9520,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_modify_params", False, @@ -9536,6 +9720,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -9604,6 +9792,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentRetrieveParams": ( "stripe.params._payment_intent_retrieve_params", False, @@ -9724,6 +9916,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataBizum": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataBlik": ( "stripe.params._payment_intent_update_params", False, @@ -9864,6 +10060,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataScalapay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit": ( "stripe.params._payment_intent_update_params", False, @@ -9956,6 +10156,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsBizum": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsBlik": ( "stripe.params._payment_intent_update_params", False, @@ -10152,6 +10356,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsScalapay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params._payment_intent_update_params", False, @@ -10220,6 +10428,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsTransferDataPaymentData": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentVerifyMicrodepositsParams": ( "stripe.params._payment_intent_verify_microdeposits_params", False, @@ -10368,6 +10580,18 @@ "stripe.params._payment_link_create_params", False, ), + "PaymentLinkCreateParamsPaymentMethodOptions": ( + "stripe.params._payment_link_create_params", + False, + ), + "PaymentLinkCreateParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_create_params", + False, + ), + "PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_create_params", + False, + ), "PaymentLinkCreateParamsPhoneNumberCollection": ( "stripe.params._payment_link_create_params", False, @@ -10548,6 +10772,18 @@ "stripe.params._payment_link_modify_params", False, ), + "PaymentLinkModifyParamsPaymentMethodOptions": ( + "stripe.params._payment_link_modify_params", + False, + ), + "PaymentLinkModifyParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_modify_params", + False, + ), + "PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_modify_params", + False, + ), "PaymentLinkModifyParamsPhoneNumberCollection": ( "stripe.params._payment_link_modify_params", False, @@ -10712,6 +10948,18 @@ "stripe.params._payment_link_update_params", False, ), + "PaymentLinkUpdateParamsPaymentMethodOptions": ( + "stripe.params._payment_link_update_params", + False, + ), + "PaymentLinkUpdateParamsPaymentMethodOptionsCard": ( + "stripe.params._payment_link_update_params", + False, + ), + "PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions": ( + "stripe.params._payment_link_update_params", + False, + ), "PaymentLinkUpdateParamsPhoneNumberCollection": ( "stripe.params._payment_link_update_params", False, @@ -10856,6 +11104,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsBizum": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsBlik": ( "stripe.params._payment_method_configuration_create_params", False, @@ -11152,6 +11408,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsScalapay": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsSepaDebit": ( "stripe.params._payment_method_configuration_create_params", False, @@ -11328,6 +11592,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsBizum": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsBlik": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -11624,6 +11896,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsScalapay": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsSepaDebit": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -11800,6 +12080,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsBizum": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsBizumDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsBlik": ( "stripe.params._payment_method_configuration_update_params", False, @@ -12096,6 +12384,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsScalapay": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsSepaDebit": ( "stripe.params._payment_method_configuration_update_params", False, @@ -12220,6 +12516,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsBizum": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsBlik": ( "stripe.params._payment_method_create_params", False, @@ -12372,6 +12672,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsScalapay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsSepaDebit": ( "stripe.params._payment_method_create_params", False, @@ -13120,6 +13424,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_confirm_params", False, @@ -13260,6 +13568,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_confirm_params", False, @@ -13324,6 +13636,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_confirm_params", False, @@ -13500,6 +13816,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_create_params", False, @@ -13640,6 +13960,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_create_params", False, @@ -13704,6 +14028,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_create_params", False, @@ -13872,6 +14200,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_modify_params", False, @@ -14012,6 +14344,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_modify_params", False, @@ -14076,6 +14412,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_modify_params", False, @@ -14236,6 +14576,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataBizum": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataBlik": ( "stripe.params._setup_intent_update_params", False, @@ -14376,6 +14720,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataScalapay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataSepaDebit": ( "stripe.params._setup_intent_update_params", False, @@ -14440,6 +14788,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodOptionsBizum": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_update_params", False, @@ -14793,6 +15145,22 @@ "stripe.params._subscription_create_params", False, ), + "SubscriptionCreateParamsBillingSchedule": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsBillingScheduleAppliesTo": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsBillingScheduleBillUntil": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsBillingScheduleBillUntilDuration": ( + "stripe.params._subscription_create_params", + False, + ), "SubscriptionCreateParamsBillingThresholds": ( "stripe.params._subscription_create_params", False, @@ -15073,6 +15441,22 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsBillingSchedule": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsBillingScheduleAppliesTo": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsBillingScheduleBillUntil": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsBillingScheduleBillUntilDuration": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsBillingThresholds": ( "stripe.params._subscription_modify_params", False, @@ -15641,6 +16025,22 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsBillingSchedule": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsBillingScheduleAppliesTo": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsBillingScheduleBillUntil": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsBillingScheduleBillUntilDuration": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsBillingThresholds": ( "stripe.params._subscription_update_params", False, diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 325208805..be5e3f9e0 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -281,6 +281,10 @@ class AccountCreateParamsCapabilities(TypedDict): """ The billie_payments capability. """ + bizum_payments: NotRequired["AccountCreateParamsCapabilitiesBizumPayments"] + """ + The bizum_payments capability. + """ blik_payments: NotRequired["AccountCreateParamsCapabilitiesBlikPayments"] """ The blik_payments capability. @@ -489,6 +493,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The satispay_payments capability. """ + scalapay_payments: NotRequired[ + "AccountCreateParamsCapabilitiesScalapayPayments" + ] + """ + The scalapay_payments capability. + """ sepa_bank_transfer_payments: NotRequired[ "AccountCreateParamsCapabilitiesSepaBankTransferPayments" ] @@ -640,6 +650,13 @@ class AccountCreateParamsCapabilitiesBilliePayments(TypedDict): """ +class AccountCreateParamsCapabilitiesBizumPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountCreateParamsCapabilitiesBlikPayments(TypedDict): requested: NotRequired[bool] """ @@ -913,6 +930,13 @@ class AccountCreateParamsCapabilitiesSatispayPayments(TypedDict): """ +class AccountCreateParamsCapabilitiesScalapayPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountCreateParamsCapabilitiesSepaBankTransferPayments(TypedDict): requested: NotRequired[bool] """ diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index 884c0417d..2e0a7d6e4 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -268,6 +268,10 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The billie_payments capability. """ + bizum_payments: NotRequired["AccountUpdateParamsCapabilitiesBizumPayments"] + """ + The bizum_payments capability. + """ blik_payments: NotRequired["AccountUpdateParamsCapabilitiesBlikPayments"] """ The blik_payments capability. @@ -476,6 +480,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The satispay_payments capability. """ + scalapay_payments: NotRequired[ + "AccountUpdateParamsCapabilitiesScalapayPayments" + ] + """ + The scalapay_payments capability. + """ sepa_bank_transfer_payments: NotRequired[ "AccountUpdateParamsCapabilitiesSepaBankTransferPayments" ] @@ -627,6 +637,13 @@ class AccountUpdateParamsCapabilitiesBilliePayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesBizumPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountUpdateParamsCapabilitiesBlikPayments(TypedDict): requested: NotRequired[bool] """ @@ -900,6 +917,13 @@ class AccountUpdateParamsCapabilitiesSatispayPayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesScalapayPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountUpdateParamsCapabilitiesSepaBankTransferPayments(TypedDict): requested: NotRequired[bool] """ diff --git a/stripe/params/_balance_settings_modify_params.py b/stripe/params/_balance_settings_modify_params.py index b29845675..92adc1c0f 100644 --- a/stripe/params/_balance_settings_modify_params.py +++ b/stripe/params/_balance_settings_modify_params.py @@ -35,6 +35,12 @@ class BalanceSettingsModifyParamsPayments(TypedDict): class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict): + automatic_transfer_rules_by_currency: NotRequired[ + "Literal['']|Dict[str, Union[Literal[''], List[BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]|UntypedStripeObject[Union[Literal[''], List[BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]" + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: NotRequired[ "Literal['']|Dict[str, Union[Literal[''], int]]|UntypedStripeObject[Union[Literal[''], int]]" ] @@ -51,6 +57,23 @@ class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict): """ +class BalanceSettingsModifyParamsPaymentsPayoutsAutomaticTransferRulesByCurrency( + TypedDict, +): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: NotRequired[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + + class BalanceSettingsModifyParamsPaymentsPayoutsSchedule(TypedDict): interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]] """ @@ -73,3 +96,24 @@ class BalanceSettingsModifyParamsPaymentsSettlementTiming(TypedDict): """ Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](https://docs.stripe.com/connect/manage-payout-schedule). """ + start_of_day: NotRequired[ + "Literal['']|BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay" + ] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + + +class BalanceSettingsModifyParamsPaymentsSettlementTimingStartOfDay(TypedDict): + hour: NotRequired[int] + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: NotRequired[int] + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: NotRequired[str] + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ diff --git a/stripe/params/_balance_settings_update_params.py b/stripe/params/_balance_settings_update_params.py index af7de3215..c10275d06 100644 --- a/stripe/params/_balance_settings_update_params.py +++ b/stripe/params/_balance_settings_update_params.py @@ -34,6 +34,12 @@ class BalanceSettingsUpdateParamsPayments(TypedDict): class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): + automatic_transfer_rules_by_currency: NotRequired[ + "Literal['']|Dict[str, Union[Literal[''], List[BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]|UntypedStripeObject[Union[Literal[''], List[BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency]]]" + ] + """ + Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + """ minimum_balance_by_currency: NotRequired[ "Literal['']|Dict[str, Union[Literal[''], int]]|UntypedStripeObject[Union[Literal[''], int]]" ] @@ -50,6 +56,23 @@ class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): """ +class BalanceSettingsUpdateParamsPaymentsPayoutsAutomaticTransferRulesByCurrency( + TypedDict, +): + payout_method: str + """ + The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + """ + transfer_up_to_amount: NotRequired[int] + """ + The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + """ + type: Literal["transfer_all", "transfer_up_to_amount"] + """ + The type of automatic transfer rule. + """ + + class BalanceSettingsUpdateParamsPaymentsPayoutsSchedule(TypedDict): interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]] """ @@ -72,3 +95,24 @@ class BalanceSettingsUpdateParamsPaymentsSettlementTiming(TypedDict): """ Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](https://docs.stripe.com/connect/manage-payout-schedule). """ + start_of_day: NotRequired[ + "Literal['']|BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay" + ] + """ + Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation. + """ + + +class BalanceSettingsUpdateParamsPaymentsSettlementTimingStartOfDay(TypedDict): + hour: NotRequired[int] + """ + Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ + minutes: NotRequired[int] + """ + Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + """ + timezone: NotRequired[str] + """ + Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs). + """ diff --git a/stripe/params/_charge_create_params.py b/stripe/params/_charge_create_params.py index b2a13998a..6d5b58deb 100644 --- a/stripe/params/_charge_create_params.py +++ b/stripe/params/_charge_create_params.py @@ -156,6 +156,10 @@ class ChargeCreateParamsTransferData(TypedDict): """ The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: str """ ID of an existing, connected Stripe account. diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index 8fb039209..b1d21fb89 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -106,6 +106,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -184,7 +188,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMbWay"] """ @@ -282,6 +286,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit" ] @@ -315,6 +325,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -347,6 +358,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -503,6 +515,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class ConfirmationTokenCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -819,6 +835,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py index dedcc2412..b733bf134 100644 --- a/stripe/params/_customer_list_payment_methods_params.py +++ b/stripe/params/_customer_list_payment_methods_params.py @@ -38,6 +38,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -72,6 +73,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py index 32e4f640e..6c7227348 100644 --- a/stripe/params/_customer_payment_method_list_params.py +++ b/stripe/params/_customer_payment_method_list_params.py @@ -37,6 +37,7 @@ class CustomerPaymentMethodListParams(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -71,6 +72,7 @@ class CustomerPaymentMethodListParams(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index f8c6298e7..f95675082 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -229,7 +229,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index c3fb7f196..6b92ce798 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -632,6 +632,10 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhase(TypedDict): class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List[ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount" @@ -977,8 +981,14 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict): """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. """ + billing_schedules: NotRequired[ + "Literal['']|List[InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule]" + ] + """ + Sets the billing schedules for the subscription. + """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -1047,6 +1057,72 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible( """ +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule(TypedDict): + applies_to: NotRequired[ + List[ + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo" + ] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_until: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil" + ] + """ + The end date for the billing schedule. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo( + TypedDict, +): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil( + TypedDict, +): + duration: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration" + ] + """ + Specifies the billing period. + """ + timestamp: NotRequired[int] + """ + The end date of the billing schedule. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + + class InvoiceCreatePreviewParamsSubscriptionDetailsItem(TypedDict): billing_thresholds: NotRequired[ "Literal['']|InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds" diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index c625f75c7..c1ec68ac0 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -196,7 +196,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index 3850c95c9..c5f9d2eb9 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -195,7 +195,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/params/_payment_intent_capture_params.py b/stripe/params/_payment_intent_capture_params.py index 34a08289f..98fa8f708 100644 --- a/stripe/params/_payment_intent_capture_params.py +++ b/stripe/params/_payment_intent_capture_params.py @@ -237,11 +237,11 @@ class PaymentIntentCaptureParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index a96df9d88..a0c63009b 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -34,7 +34,7 @@ class PaymentIntentConfirmParams(RequestOptions): Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication). """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -56,7 +56,7 @@ class PaymentIntentConfirmParams(RequestOptions): ] off_session: NotRequired["bool|Literal['one_off', 'recurring']"] """ - Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). + Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). """ payment_details: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentDetails" @@ -302,11 +302,11 @@ class PaymentIntentConfirmParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ @@ -467,6 +467,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -535,7 +539,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataMbWay"] """ @@ -633,6 +637,12 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit" ] @@ -666,6 +676,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -698,6 +709,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -852,6 +864,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentConfirmParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataBlik(TypedDict): pass @@ -1168,6 +1184,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentConfirmParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1314,6 +1334,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBlik" ] @@ -1420,7 +1446,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMbWay" @@ -1524,6 +1550,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit" ] @@ -1827,6 +1859,10 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -3030,6 +3066,17 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -3109,7 +3156,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentConfirmParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 19f566827..d8be7545b 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -86,6 +86,7 @@ class PaymentIntentCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -118,6 +119,7 @@ class PaymentIntentCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -157,7 +159,7 @@ class PaymentIntentCreateParams(RequestOptions): """ off_session: NotRequired["bool|Literal['one_off', 'recurring']"] """ - Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). + Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). """ on_behalf_of: NotRequired[str] """ @@ -425,11 +427,11 @@ class PaymentIntentCreateParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ @@ -601,6 +603,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -669,7 +675,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMbWay"] """ @@ -765,6 +771,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataSepaDebit" ] @@ -798,6 +808,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -830,6 +841,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -984,6 +996,10 @@ class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -1300,6 +1316,10 @@ class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1446,6 +1466,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBlik" ] @@ -1552,7 +1578,7 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMbWay" @@ -1656,6 +1682,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit" ] @@ -1957,6 +1989,10 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -3156,6 +3192,17 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -3235,7 +3282,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentCreateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3495,6 +3542,10 @@ class PaymentIntentCreateParamsTransferData(TypedDict): [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount) might be a better fit for your integration. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ destination: str """ If specified, successful charges will be attributed to the destination @@ -3502,3 +3553,28 @@ class PaymentIntentCreateParamsTransferData(TypedDict): to the destination account. The ID of the resulting transfer will be returned on the successful charge's `transfer` field. """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + payment_data: NotRequired[ + "PaymentIntentCreateParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentCreateParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ diff --git a/stripe/params/_payment_intent_increment_authorization_params.py b/stripe/params/_payment_intent_increment_authorization_params.py index e5803cab1..478364bff 100644 --- a/stripe/params/_payment_intent_increment_authorization_params.py +++ b/stripe/params/_payment_intent_increment_authorization_params.py @@ -243,11 +243,11 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsShipping( """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index c9636e1e6..c4169ca30 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -52,7 +52,7 @@ class PaymentIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -322,11 +322,11 @@ class PaymentIntentModifyParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ @@ -438,6 +438,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -506,7 +510,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentModifyParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentModifyParamsPaymentMethodDataMbWay"] """ @@ -602,6 +606,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataSepaDebit" ] @@ -635,6 +643,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -667,6 +676,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -821,6 +831,10 @@ class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentModifyParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataBlik(TypedDict): pass @@ -1137,6 +1151,10 @@ class PaymentIntentModifyParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentModifyParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1283,6 +1301,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBlik" ] @@ -1389,7 +1413,7 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMbWay" @@ -1493,6 +1517,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit" ] @@ -1794,6 +1824,10 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -2993,6 +3027,17 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -3072,7 +3117,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentModifyParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3319,3 +3364,32 @@ class PaymentIntentModifyParamsTransferData(TypedDict): """ The amount that will be transferred automatically when a charge succeeds. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + payment_data: NotRequired[ + "PaymentIntentModifyParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentModifyParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index 9bab2d5ab..b2305f084 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -51,7 +51,7 @@ class PaymentIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -321,11 +321,11 @@ class PaymentIntentUpdateParamsAmountDetailsShipping(TypedDict): """ from_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ to_postal_code: NotRequired["Literal['']|str"] """ - If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. """ @@ -437,6 +437,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -505,7 +509,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ link: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataMbWay"] """ @@ -601,6 +605,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit" ] @@ -634,6 +642,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -666,6 +675,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -820,6 +830,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress( """ +class PaymentIntentUpdateParamsPaymentMethodDataBizum(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataBlik(TypedDict): pass @@ -1136,6 +1150,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): pass +class PaymentIntentUpdateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1282,6 +1300,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. """ + bizum: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBizum" + ] + """ + If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + """ blik: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBlik" ] @@ -1388,7 +1412,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsLink" ] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mb_way: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMbWay" @@ -1492,6 +1516,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. """ + scalapay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsScalapay" + ] + """ + If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + """ sepa_debit: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit" ] @@ -1793,6 +1823,10 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): code: NotRequired[str] """ @@ -2992,6 +3026,17 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -3071,7 +3116,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSwish(TypedDict): class PaymentIntentUpdateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -3318,3 +3363,32 @@ class PaymentIntentUpdateParamsTransferData(TypedDict): """ The amount that will be transferred automatically when a charge succeeds. """ + description: NotRequired[str] + """ + An arbitrary string attached to the transfer. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + payment_data: NotRequired[ + "PaymentIntentUpdateParamsTransferDataPaymentData" + ] + """ + The data with which to populate the destination payment. + """ + + +class PaymentIntentUpdateParamsTransferDataPaymentData(TypedDict): + description: NotRequired[str] + """ + An arbitrary string attached to the destination payment. Often useful for displaying to users. + """ + metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index b2747a033..0b975c6cb 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -104,6 +104,9 @@ class PaymentLinkCreateParams(RequestOptions): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). """ + payment_method_options: NotRequired[ + "PaymentLinkCreateParamsPaymentMethodOptions" + ] payment_method_types: NotRequired[ List[ Literal[ @@ -115,6 +118,7 @@ class PaymentLinkCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -264,7 +268,7 @@ class PaymentLinkCreateParamsConsentCollection(TypedDict): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: NotRequired[Literal["none", "required"]] """ @@ -743,6 +747,38 @@ class PaymentLinkCreateParamsPaymentIntentData(TypedDict): """ +class PaymentLinkCreateParamsPaymentMethodOptions(TypedDict): + card: NotRequired["PaymentLinkCreateParamsPaymentMethodOptionsCard"] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkCreateParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + List[ + Literal[ + "american_express", + "discover_global_network", + "mastercard", + "visa", + ] + ] + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkCreateParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py index 884ea67df..3fd8a899c 100644 --- a/stripe/params/_payment_link_modify_params.py +++ b/stripe/params/_payment_link_modify_params.py @@ -89,8 +89,14 @@ class PaymentLinkModifyParams(RequestOptions): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). """ + payment_method_options: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptions" + ] + """ + Payment-method-specific configuration. + """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). @@ -546,6 +552,33 @@ class PaymentLinkModifyParamsPaymentIntentData(TypedDict): """ +class PaymentLinkModifyParamsPaymentMethodOptions(TypedDict): + card: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptionsCard" + ] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkModifyParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "Literal['']|PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkModifyParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + "Literal['']|List[Literal['american_express', 'discover_global_network', 'mastercard', 'visa']]" + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkModifyParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py index 25fde04bb..54254f40b 100644 --- a/stripe/params/_payment_link_update_params.py +++ b/stripe/params/_payment_link_update_params.py @@ -88,8 +88,14 @@ class PaymentLinkUpdateParams(TypedDict): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). """ + payment_method_options: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptions" + ] + """ + Payment-method-specific configuration. + """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). @@ -545,6 +551,33 @@ class PaymentLinkUpdateParamsPaymentIntentData(TypedDict): """ +class PaymentLinkUpdateParamsPaymentMethodOptions(TypedDict): + card: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptionsCard" + ] + """ + Configuration for `card` payment methods. + """ + + +class PaymentLinkUpdateParamsPaymentMethodOptionsCard(TypedDict): + restrictions: NotRequired[ + "Literal['']|PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions" + ] + """ + Restrictions to apply to the card payment method. For example, you can block specific card brands. + """ + + +class PaymentLinkUpdateParamsPaymentMethodOptionsCardRestrictions(TypedDict): + brands_blocked: NotRequired[ + "Literal['']|List[Literal['american_express', 'discover_global_network', 'mastercard', 'visa']]" + ] + """ + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + """ + + class PaymentLinkUpdateParamsPhoneNumberCollection(TypedDict): enabled: bool """ diff --git a/stripe/params/_payment_method_configuration_create_params.py b/stripe/params/_payment_method_configuration_create_params.py index eba0d81e2..200f76569 100644 --- a/stripe/params/_payment_method_configuration_create_params.py +++ b/stripe/params/_payment_method_configuration_create_params.py @@ -60,6 +60,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationCreateParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationCreateParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -232,6 +236,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationCreateParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationCreateParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -480,6 +488,22 @@ class PaymentMethodConfigurationCreateParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationCreateParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsBlikDisplayPreference" @@ -1108,6 +1132,24 @@ class PaymentMethodConfigurationCreateParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationCreateParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_list_params.py b/stripe/params/_payment_method_configuration_list_params.py index 260d38878..cc2bce98b 100644 --- a/stripe/params/_payment_method_configuration_list_params.py +++ b/stripe/params/_payment_method_configuration_list_params.py @@ -6,6 +6,10 @@ class PaymentMethodConfigurationListParams(RequestOptions): + active: NotRequired[bool] + """ + Whether the configuration is active. + """ application: NotRequired["Literal['']|str"] """ The Connect application to filter by. diff --git a/stripe/params/_payment_method_configuration_modify_params.py b/stripe/params/_payment_method_configuration_modify_params.py index 87151caf4..90f8a3b66 100644 --- a/stripe/params/_payment_method_configuration_modify_params.py +++ b/stripe/params/_payment_method_configuration_modify_params.py @@ -64,6 +64,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationModifyParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationModifyParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -232,6 +236,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationModifyParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationModifyParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -480,6 +488,22 @@ class PaymentMethodConfigurationModifyParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationModifyParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsBlikDisplayPreference" @@ -1108,6 +1132,24 @@ class PaymentMethodConfigurationModifyParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationModifyParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_update_params.py b/stripe/params/_payment_method_configuration_update_params.py index 239cac6e0..044fe5bf8 100644 --- a/stripe/params/_payment_method_configuration_update_params.py +++ b/stripe/params/_payment_method_configuration_update_params.py @@ -63,6 +63,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + bizum: NotRequired["PaymentMethodConfigurationUpdateParamsBizum"] + """ + To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + """ blik: NotRequired["PaymentMethodConfigurationUpdateParamsBlik"] """ BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. @@ -231,6 +235,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. """ + scalapay: NotRequired["PaymentMethodConfigurationUpdateParamsScalapay"] + """ + Scalapay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ sepa_debit: NotRequired["PaymentMethodConfigurationUpdateParamsSepaDebit"] """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. @@ -479,6 +487,22 @@ class PaymentMethodConfigurationUpdateParamsBillieDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationUpdateParamsBizum(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsBizumDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsBizumDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsBlik(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsBlikDisplayPreference" @@ -1107,6 +1131,24 @@ class PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference( """ +class PaymentMethodConfigurationUpdateParamsScalapay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference( + TypedDict, +): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsSepaDebit(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference" diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 177ffa5d7..bed5bfdb9 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -55,6 +55,10 @@ class PaymentMethodCreateParams(RequestOptions): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["PaymentMethodCreateParamsBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["PaymentMethodCreateParamsBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -133,7 +137,7 @@ class PaymentMethodCreateParams(RequestOptions): """ link: NotRequired["PaymentMethodCreateParamsLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["PaymentMethodCreateParamsMbWay"] """ @@ -215,6 +219,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["PaymentMethodCreateParamsScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired["PaymentMethodCreateParamsSepaDebit"] """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. @@ -247,6 +255,7 @@ class PaymentMethodCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -281,6 +290,7 @@ class PaymentMethodCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -430,6 +440,10 @@ class PaymentMethodCreateParamsBillingDetailsAddress(TypedDict): """ +class PaymentMethodCreateParamsBizum(TypedDict): + pass + + class PaymentMethodCreateParamsBlik(TypedDict): pass @@ -787,6 +801,10 @@ class PaymentMethodCreateParamsSatispay(TypedDict): pass +class PaymentMethodCreateParamsScalapay(TypedDict): + pass + + class PaymentMethodCreateParamsSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py index 0a3ecbbf6..88fe74935 100644 --- a/stripe/params/_payment_method_list_params.py +++ b/stripe/params/_payment_method_list_params.py @@ -46,6 +46,7 @@ class PaymentMethodListParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -80,6 +81,7 @@ class PaymentMethodListParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", diff --git a/stripe/params/_payout_create_params.py b/stripe/params/_payout_create_params.py index d4ddff0ea..d97efb1ef 100644 --- a/stripe/params/_payout_create_params.py +++ b/stripe/params/_payout_create_params.py @@ -45,5 +45,5 @@ class PayoutCreateParams(RequestOptions): """ statement_descriptor: NotRequired[str] """ - A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. + A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. For US ACH payouts, this maps to the ACH Company Entry Description field, which the NACHA standard limits to 10 characters. Stripe truncates descriptors longer than 10 characters for US ACH payouts. """ diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index e7e4e3154..b4a90c0d9 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -159,6 +159,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentConfirmParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentConfirmParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -225,7 +229,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentConfirmParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentConfirmParamsPaymentMethodDataMbWay"] """ @@ -319,6 +323,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentConfirmParamsPaymentMethodDataSepaDebit" ] @@ -352,6 +360,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -384,6 +393,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -538,6 +548,10 @@ class SetupIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ +class SetupIntentConfirmParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataBlik(TypedDict): pass @@ -854,6 +868,10 @@ class SetupIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -958,6 +976,10 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -974,7 +996,7 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsPaypal"] """ @@ -1074,6 +1096,10 @@ class SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index 32daeb603..6fb00af9b 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -58,6 +58,7 @@ class SetupIntentCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -90,6 +91,7 @@ class SetupIntentCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -293,6 +295,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -359,7 +365,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentCreateParamsPaymentMethodDataMbWay"] """ @@ -449,6 +455,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentCreateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentCreateParamsPaymentMethodDataSepaDebit" ] @@ -482,6 +492,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -514,6 +525,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -666,6 +678,10 @@ class SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -982,6 +998,10 @@ class SetupIntentCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -1086,6 +1106,10 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1102,7 +1126,7 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsPaypal"] """ @@ -1202,6 +1226,10 @@ class SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index bbbf21ae7..d8e028871 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -30,7 +30,7 @@ class SetupIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -141,6 +141,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentModifyParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentModifyParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -207,7 +211,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentModifyParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentModifyParamsPaymentMethodDataMbWay"] """ @@ -297,6 +301,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentModifyParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentModifyParamsPaymentMethodDataSepaDebit" ] @@ -330,6 +338,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -362,6 +371,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -514,6 +524,10 @@ class SetupIntentModifyParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataBlik(TypedDict): pass @@ -830,6 +844,10 @@ class SetupIntentModifyParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -934,6 +952,10 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -950,7 +972,7 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsPaypal"] """ @@ -1050,6 +1072,10 @@ class SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index a483715a9..63dae872e 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -29,7 +29,7 @@ class SetupIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -140,6 +140,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["SetupIntentUpdateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["SetupIntentUpdateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -206,7 +210,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ link: NotRequired["SetupIntentUpdateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["SetupIntentUpdateParamsPaymentMethodDataMbWay"] """ @@ -296,6 +300,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataScalapay"] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "SetupIntentUpdateParamsPaymentMethodDataSepaDebit" ] @@ -329,6 +337,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -361,6 +370,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -513,6 +523,10 @@ class SetupIntentUpdateParamsPaymentMethodDataBillingDetailsAddress(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataBizum(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataBlik(TypedDict): pass @@ -829,6 +843,10 @@ class SetupIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ @@ -933,6 +951,10 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. """ + bizum: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsBizum"] + """ + If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + """ card: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -949,7 +971,7 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). """ paypal: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsPaypal"] """ @@ -1049,6 +1071,10 @@ class SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions( """ +class SetupIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index 1ba8dcab2..b2daef377 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -40,13 +40,21 @@ class SubscriptionCreateParams(RequestOptions): """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. """ + billing_schedules: NotRequired[ + List["SubscriptionCreateParamsBillingSchedule"] + ] + """ + Sets the billing schedules for the subscription. + """ billing_thresholds: NotRequired[ "Literal['']|SubscriptionCreateParamsBillingThresholds" ] """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ - cancel_at: NotRequired["int|Literal['max_period_end', 'min_period_end']"] + cancel_at: NotRequired[ + "int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" + ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. """ @@ -133,17 +141,7 @@ class SubscriptionCreateParams(RequestOptions): ] ] """ - Only applies to subscriptions with `collection_method=charge_automatically`. - - Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription's invoice, such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state. - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/upgrades#2019-03-14) to learn more. - - `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription. - - Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. + Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. """ payment_settings: NotRequired["SubscriptionCreateParamsPaymentSettings"] """ @@ -184,6 +182,10 @@ class SubscriptionCreateParams(RequestOptions): class SubscriptionCreateParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionCreateParamsAddInvoiceItemDiscount"] ] @@ -350,6 +352,62 @@ class SubscriptionCreateParamsBillingModeFlexible(TypedDict): """ +class SubscriptionCreateParamsBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["SubscriptionCreateParamsBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_until: "SubscriptionCreateParamsBillingScheduleBillUntil" + """ + The end date for the billing schedule. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class SubscriptionCreateParamsBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class SubscriptionCreateParamsBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "SubscriptionCreateParamsBillingScheduleBillUntilDuration" + ] + """ + Specifies the billing period. + """ + timestamp: NotRequired[int] + """ + The end date of the billing schedule. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + + +class SubscriptionCreateParamsBillingScheduleBillUntilDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + + class SubscriptionCreateParamsBillingThresholds(TypedDict): amount_gte: NotRequired[int] """ @@ -505,7 +563,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_subscription_item_create_params.py b/stripe/params/_subscription_item_create_params.py index 99826b1e4..43251242d 100644 --- a/stripe/params/_subscription_item_create_params.py +++ b/stripe/params/_subscription_item_create_params.py @@ -37,13 +37,7 @@ class SubscriptionItemCreateParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_item_delete_params.py b/stripe/params/_subscription_item_delete_params.py index 82aea8fea..e675cf8a1 100644 --- a/stripe/params/_subscription_item_delete_params.py +++ b/stripe/params/_subscription_item_delete_params.py @@ -18,13 +18,7 @@ class SubscriptionItemDeleteParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/params/_subscription_item_modify_params.py b/stripe/params/_subscription_item_modify_params.py index 9fb55eb2b..0f61710fc 100644 --- a/stripe/params/_subscription_item_modify_params.py +++ b/stripe/params/_subscription_item_modify_params.py @@ -43,13 +43,7 @@ class SubscriptionItemModifyParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_item_update_params.py b/stripe/params/_subscription_item_update_params.py index c6b5a26ba..a9b7d48fb 100644 --- a/stripe/params/_subscription_item_update_params.py +++ b/stripe/params/_subscription_item_update_params.py @@ -42,13 +42,7 @@ class SubscriptionItemUpdateParams(TypedDict): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ plan: NotRequired[str] """ diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index b34f00d1c..7b8512126 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -26,6 +26,12 @@ class SubscriptionModifyParams(RequestOptions): """ Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ + billing_schedules: NotRequired[ + "Literal['']|List[SubscriptionModifyParamsBillingSchedule]" + ] + """ + Sets the billing schedules for the subscription. + """ billing_thresholds: NotRequired[ "Literal['']|SubscriptionModifyParamsBillingThresholds" ] @@ -33,7 +39,7 @@ class SubscriptionModifyParams(RequestOptions): Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -78,7 +84,7 @@ class SubscriptionModifyParams(RequestOptions): "Literal['']|List[SubscriptionModifyParamsDiscount]" ] """ - The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. """ expand: NotRequired[List[str]] """ @@ -121,13 +127,7 @@ class SubscriptionModifyParams(RequestOptions): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ payment_settings: NotRequired["SubscriptionModifyParamsPaymentSettings"] """ @@ -170,6 +170,10 @@ class SubscriptionModifyParams(RequestOptions): class SubscriptionModifyParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionModifyParamsAddInvoiceItemDiscount"] ] @@ -295,6 +299,62 @@ class SubscriptionModifyParamsAutomaticTaxLiability(TypedDict): """ +class SubscriptionModifyParamsBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["SubscriptionModifyParamsBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_until: NotRequired["SubscriptionModifyParamsBillingScheduleBillUntil"] + """ + The end date for the billing schedule. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class SubscriptionModifyParamsBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class SubscriptionModifyParamsBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "SubscriptionModifyParamsBillingScheduleBillUntilDuration" + ] + """ + Specifies the billing period. + """ + timestamp: NotRequired[int] + """ + The end date of the billing schedule. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + + +class SubscriptionModifyParamsBillingScheduleBillUntilDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + + class SubscriptionModifyParamsBillingThresholds(TypedDict): amount_gte: NotRequired[int] """ @@ -488,7 +548,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_subscription_schedule_create_params.py b/stripe/params/_subscription_schedule_create_params.py index f86559956..cf914b417 100644 --- a/stripe/params/_subscription_schedule_create_params.py +++ b/stripe/params/_subscription_schedule_create_params.py @@ -313,6 +313,10 @@ class SubscriptionScheduleCreateParamsPhase(TypedDict): class SubscriptionScheduleCreateParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_schedule_modify_params.py b/stripe/params/_subscription_schedule_modify_params.py index 8c98581c8..66a91725d 100644 --- a/stripe/params/_subscription_schedule_modify_params.py +++ b/stripe/params/_subscription_schedule_modify_params.py @@ -283,6 +283,10 @@ class SubscriptionScheduleModifyParamsPhase(TypedDict): class SubscriptionScheduleModifyParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_schedule_update_params.py b/stripe/params/_subscription_schedule_update_params.py index b4fad43c1..02f0c4903 100644 --- a/stripe/params/_subscription_schedule_update_params.py +++ b/stripe/params/_subscription_schedule_update_params.py @@ -282,6 +282,10 @@ class SubscriptionScheduleUpdateParamsPhase(TypedDict): class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount"] ] diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index b42611ed2..e67522480 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -25,6 +25,12 @@ class SubscriptionUpdateParams(TypedDict): """ Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ + billing_schedules: NotRequired[ + "Literal['']|List[SubscriptionUpdateParamsBillingSchedule]" + ] + """ + Sets the billing schedules for the subscription. + """ billing_thresholds: NotRequired[ "Literal['']|SubscriptionUpdateParamsBillingThresholds" ] @@ -32,7 +38,7 @@ class SubscriptionUpdateParams(TypedDict): Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. """ cancel_at: NotRequired[ - "Literal['']|int|Literal['max_period_end', 'min_period_end']" + "Literal['']|int|Literal['max_billed_until', 'max_period_end', 'min_period_end']" ] """ A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -77,7 +83,7 @@ class SubscriptionUpdateParams(TypedDict): "Literal['']|List[SubscriptionUpdateParamsDiscount]" ] """ - The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. """ expand: NotRequired[List[str]] """ @@ -120,13 +126,7 @@ class SubscriptionUpdateParams(TypedDict): ] ] """ - Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - - Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - - Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - - Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. """ payment_settings: NotRequired["SubscriptionUpdateParamsPaymentSettings"] """ @@ -169,6 +169,10 @@ class SubscriptionUpdateParams(TypedDict): class SubscriptionUpdateParamsAddInvoiceItem(TypedDict): + discountable: NotRequired[bool] + """ + Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + """ discounts: NotRequired[ List["SubscriptionUpdateParamsAddInvoiceItemDiscount"] ] @@ -294,6 +298,62 @@ class SubscriptionUpdateParamsAutomaticTaxLiability(TypedDict): """ +class SubscriptionUpdateParamsBillingSchedule(TypedDict): + applies_to: NotRequired[ + List["SubscriptionUpdateParamsBillingScheduleAppliesTo"] + ] + """ + Configure billing schedule differently for individual subscription items. + """ + bill_until: NotRequired["SubscriptionUpdateParamsBillingScheduleBillUntil"] + """ + The end date for the billing schedule. + """ + key: NotRequired[str] + """ + Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + """ + + +class SubscriptionUpdateParamsBillingScheduleAppliesTo(TypedDict): + price: NotRequired[str] + """ + The ID of the price object. + """ + type: Literal["price"] + """ + Controls which subscription items the billing schedule applies to. + """ + + +class SubscriptionUpdateParamsBillingScheduleBillUntil(TypedDict): + duration: NotRequired[ + "SubscriptionUpdateParamsBillingScheduleBillUntilDuration" + ] + """ + Specifies the billing period. + """ + timestamp: NotRequired[int] + """ + The end date of the billing schedule. + """ + type: Literal["duration", "timestamp"] + """ + Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + """ + + +class SubscriptionUpdateParamsBillingScheduleBillUntilDuration(TypedDict): + interval: Literal["day", "month", "week", "year"] + """ + Specifies billing duration. Either `day`, `week`, `month` or `year`. + """ + interval_count: NotRequired[int] + """ + The multiplier applied to the interval. + """ + + class SubscriptionUpdateParamsBillingThresholds(TypedDict): amount_gte: NotRequired[int] """ @@ -487,7 +547,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 2988c0b2b..589cb7af2 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -132,6 +132,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2026-02-25.clover", "2026-03-25.dahlia", "2026-04-22.dahlia", + "2026-05-27.dahlia", ] ] """ diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index 23d56fe84..649df0707 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -101,6 +101,7 @@ SessionCreateParamsPaymentMethodOptionsRevolutPay as SessionCreateParamsPaymentMethodOptionsRevolutPay, SessionCreateParamsPaymentMethodOptionsSamsungPay as SessionCreateParamsPaymentMethodOptionsSamsungPay, SessionCreateParamsPaymentMethodOptionsSatispay as SessionCreateParamsPaymentMethodOptionsSatispay, + SessionCreateParamsPaymentMethodOptionsScalapay as SessionCreateParamsPaymentMethodOptionsScalapay, SessionCreateParamsPaymentMethodOptionsSepaDebit as SessionCreateParamsPaymentMethodOptionsSepaDebit, SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort, @@ -576,6 +577,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsScalapay": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsSepaDebit": ( "stripe.params.checkout._session_create_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index 81d58f3b0..be27f5726 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -14,7 +14,7 @@ class SessionCreateParams(RequestOptions): """ after_expiration: NotRequired["SessionCreateParamsAfterExpiration"] """ - Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`. + Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `elements`. """ allow_promotion_codes: NotRequired[bool] """ @@ -30,11 +30,11 @@ class SessionCreateParams(RequestOptions): """ branding_settings: NotRequired["SessionCreateParamsBrandingSettings"] """ - The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `custom`. + The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `elements`. """ cancel_url: NotRequired[str] """ - If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`. + If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded_page` or `elements`. """ client_reference_id: NotRequired[str] """ @@ -117,6 +117,7 @@ class SessionCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -149,6 +150,7 @@ class SessionCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -272,7 +274,7 @@ class SessionCreateParams(RequestOptions): """ origin_context: NotRequired[Literal["mobile_app", "web"]] """ - Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`. + Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `elements`. """ payment_intent_data: NotRequired["SessionCreateParamsPaymentIntentData"] """ @@ -314,6 +316,7 @@ class SessionCreateParams(RequestOptions): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "card", @@ -347,6 +350,7 @@ class SessionCreateParams(RequestOptions): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -391,12 +395,12 @@ class SessionCreateParams(RequestOptions): Literal["always", "if_required", "never"] ] """ - This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. """ return_url: NotRequired[str] """ The URL to redirect your customer back to after they authenticate or cancel their payment on the - payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom` + payment method's app or site. This parameter is required if `ui_mode` is `embedded_page` or `elements` and redirect-based payment methods are enabled on the session. """ saved_payment_method_options: NotRequired[ @@ -427,7 +431,7 @@ class SessionCreateParams(RequestOptions): to customize relevant text on the page, such as the submit button. `submit_type` can only be specified on Checkout Sessions in `payment` or `subscription` mode. If blank or `auto`, `pay` is used. - You can't set this parameter if `ui_mode` is `custom`. + You can't set this parameter if `ui_mode` is `elements`. """ subscription_data: NotRequired["SessionCreateParamsSubscriptionData"] """ @@ -437,7 +441,7 @@ class SessionCreateParams(RequestOptions): """ The URL to which Stripe should send customers when payment or setup is complete. - This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use + This parameter is not allowed if ui_mode is `embedded_page` or `elements`. If you'd like to use information from the successful Checkout Session on your page, read the guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page). """ @@ -449,7 +453,7 @@ class SessionCreateParams(RequestOptions): Literal["elements", "embedded_page", "form", "hosted_page"] ] """ - The UI mode of the Session. Defaults to `hosted`. + The UI mode of the Session. Defaults to `hosted_page`. """ wallet_options: NotRequired["SessionCreateParamsWalletOptions"] """ @@ -584,7 +588,7 @@ class SessionCreateParamsConsentCollection(TypedDict): """ If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication - from the merchant depending on the customer's locale. Only available to US merchants. + from the merchant depending on the customer's locale. Only available to US merchants and US customers. """ terms_of_service: NotRequired[Literal["none", "required"]] """ @@ -1203,7 +1207,7 @@ class SessionCreateParamsPaymentMethodData(TypedDict): class SessionCreateParamsPaymentMethodOptions(TypedDict): acss_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsAcssDebit"] """ - contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`. + contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `elements`. """ affirm: NotRequired["SessionCreateParamsPaymentMethodOptionsAffirm"] """ @@ -1311,7 +1315,7 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ link: NotRequired["SessionCreateParamsPaymentMethodOptionsLink"] """ - contains details about the Link payment method options. + contains details about the Link payment method options (Link is also known as Onelink in the UK). """ mobilepay: NotRequired["SessionCreateParamsPaymentMethodOptionsMobilepay"] """ @@ -1377,6 +1381,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Satispay payment method options. """ + scalapay: NotRequired["SessionCreateParamsPaymentMethodOptionsScalapay"] + """ + contains details about the Scalapay payment method options. + """ sepa_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsSepaDebit"] """ contains details about the Sepa Debit payment method options. @@ -1715,7 +1723,7 @@ class SessionCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict): ] ] """ - Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. """ @@ -2334,6 +2342,13 @@ class SessionCreateParamsPaymentMethodOptionsSatispay(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsScalapay(TypedDict): + capture_method: NotRequired[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + + class SessionCreateParamsPaymentMethodOptionsSepaDebit(TypedDict): mandate_options: NotRequired[ "SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions" @@ -2389,7 +2404,7 @@ class SessionCreateParamsPaymentMethodOptionsSwish(TypedDict): class SessionCreateParamsPaymentMethodOptionsTwint(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired[Literal["none", "off_session"]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2930,7 +2945,7 @@ class SessionCreateParamsSubscriptionData(TypedDict): """ billing_cycle_anchor: NotRequired[int] """ - A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`. + A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`. """ billing_mode: NotRequired["SessionCreateParamsSubscriptionDataBillingMode"] """ @@ -3084,7 +3099,7 @@ class SessionCreateParamsTaxIdCollection(TypedDict): class SessionCreateParamsWalletOptions(TypedDict): link: NotRequired["SessionCreateParamsWalletOptionsLink"] """ - contains details about the Link wallet options. + contains details about the Link wallet options (Link is also known as Onelink in the UK). """ diff --git a/stripe/params/terminal/__init__.py b/stripe/params/terminal/__init__.py index 0e4fff399..a6b541217 100644 --- a/stripe/params/terminal/__init__.py +++ b/stripe/params/terminal/__init__.py @@ -35,7 +35,11 @@ ConfigurationCreateParamsTippingSek as ConfigurationCreateParamsTippingSek, ConfigurationCreateParamsTippingSgd as ConfigurationCreateParamsTippingSgd, ConfigurationCreateParamsTippingUsd as ConfigurationCreateParamsTippingUsd, + ConfigurationCreateParamsVerifoneM425 as ConfigurationCreateParamsVerifoneM425, ConfigurationCreateParamsVerifoneP400 as ConfigurationCreateParamsVerifoneP400, + ConfigurationCreateParamsVerifoneP630 as ConfigurationCreateParamsVerifoneP630, + ConfigurationCreateParamsVerifoneUx700 as ConfigurationCreateParamsVerifoneUx700, + ConfigurationCreateParamsVerifoneV660p as ConfigurationCreateParamsVerifoneV660p, ConfigurationCreateParamsWifi as ConfigurationCreateParamsWifi, ConfigurationCreateParamsWifiEnterpriseEapPeap as ConfigurationCreateParamsWifiEnterpriseEapPeap, ConfigurationCreateParamsWifiEnterpriseEapTls as ConfigurationCreateParamsWifiEnterpriseEapTls, @@ -78,7 +82,11 @@ ConfigurationModifyParamsTippingSek as ConfigurationModifyParamsTippingSek, ConfigurationModifyParamsTippingSgd as ConfigurationModifyParamsTippingSgd, ConfigurationModifyParamsTippingUsd as ConfigurationModifyParamsTippingUsd, + ConfigurationModifyParamsVerifoneM425 as ConfigurationModifyParamsVerifoneM425, ConfigurationModifyParamsVerifoneP400 as ConfigurationModifyParamsVerifoneP400, + ConfigurationModifyParamsVerifoneP630 as ConfigurationModifyParamsVerifoneP630, + ConfigurationModifyParamsVerifoneUx700 as ConfigurationModifyParamsVerifoneUx700, + ConfigurationModifyParamsVerifoneV660p as ConfigurationModifyParamsVerifoneV660p, ConfigurationModifyParamsWifi as ConfigurationModifyParamsWifi, ConfigurationModifyParamsWifiEnterpriseEapPeap as ConfigurationModifyParamsWifiEnterpriseEapPeap, ConfigurationModifyParamsWifiEnterpriseEapTls as ConfigurationModifyParamsWifiEnterpriseEapTls, @@ -118,7 +126,11 @@ ConfigurationUpdateParamsTippingSek as ConfigurationUpdateParamsTippingSek, ConfigurationUpdateParamsTippingSgd as ConfigurationUpdateParamsTippingSgd, ConfigurationUpdateParamsTippingUsd as ConfigurationUpdateParamsTippingUsd, + ConfigurationUpdateParamsVerifoneM425 as ConfigurationUpdateParamsVerifoneM425, ConfigurationUpdateParamsVerifoneP400 as ConfigurationUpdateParamsVerifoneP400, + ConfigurationUpdateParamsVerifoneP630 as ConfigurationUpdateParamsVerifoneP630, + ConfigurationUpdateParamsVerifoneUx700 as ConfigurationUpdateParamsVerifoneUx700, + ConfigurationUpdateParamsVerifoneV660p as ConfigurationUpdateParamsVerifoneV660p, ConfigurationUpdateParamsWifi as ConfigurationUpdateParamsWifi, ConfigurationUpdateParamsWifiEnterpriseEapPeap as ConfigurationUpdateParamsWifiEnterpriseEapPeap, ConfigurationUpdateParamsWifiEnterpriseEapTls as ConfigurationUpdateParamsWifiEnterpriseEapTls, @@ -350,10 +362,26 @@ "stripe.params.terminal._configuration_create_params", False, ), + "ConfigurationCreateParamsVerifoneM425": ( + "stripe.params.terminal._configuration_create_params", + False, + ), "ConfigurationCreateParamsVerifoneP400": ( "stripe.params.terminal._configuration_create_params", False, ), + "ConfigurationCreateParamsVerifoneP630": ( + "stripe.params.terminal._configuration_create_params", + False, + ), + "ConfigurationCreateParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_create_params", + False, + ), + "ConfigurationCreateParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_create_params", + False, + ), "ConfigurationCreateParamsWifi": ( "stripe.params.terminal._configuration_create_params", False, @@ -498,10 +526,26 @@ "stripe.params.terminal._configuration_modify_params", False, ), + "ConfigurationModifyParamsVerifoneM425": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), "ConfigurationModifyParamsVerifoneP400": ( "stripe.params.terminal._configuration_modify_params", False, ), + "ConfigurationModifyParamsVerifoneP630": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), + "ConfigurationModifyParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), + "ConfigurationModifyParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_modify_params", + False, + ), "ConfigurationModifyParamsWifi": ( "stripe.params.terminal._configuration_modify_params", False, @@ -642,10 +686,26 @@ "stripe.params.terminal._configuration_update_params", False, ), + "ConfigurationUpdateParamsVerifoneM425": ( + "stripe.params.terminal._configuration_update_params", + False, + ), "ConfigurationUpdateParamsVerifoneP400": ( "stripe.params.terminal._configuration_update_params", False, ), + "ConfigurationUpdateParamsVerifoneP630": ( + "stripe.params.terminal._configuration_update_params", + False, + ), + "ConfigurationUpdateParamsVerifoneUx700": ( + "stripe.params.terminal._configuration_update_params", + False, + ), + "ConfigurationUpdateParamsVerifoneV660p": ( + "stripe.params.terminal._configuration_update_params", + False, + ), "ConfigurationUpdateParamsWifi": ( "stripe.params.terminal._configuration_update_params", False, diff --git a/stripe/params/terminal/_configuration_create_params.py b/stripe/params/terminal/_configuration_create_params.py index 7c3d3d215..e9e748924 100644 --- a/stripe/params/terminal/_configuration_create_params.py +++ b/stripe/params/terminal/_configuration_create_params.py @@ -46,10 +46,26 @@ class ConfigurationCreateParams(RequestOptions): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired["ConfigurationCreateParamsVerifoneM425"] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired["ConfigurationCreateParamsVerifoneP400"] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired["ConfigurationCreateParamsVerifoneP630"] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired["ConfigurationCreateParamsVerifoneUx700"] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired["ConfigurationCreateParamsVerifoneV660p"] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationCreateParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -511,6 +527,13 @@ class ConfigurationCreateParamsTippingUsd(TypedDict): """ +class ConfigurationCreateParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationCreateParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -518,6 +541,27 @@ class ConfigurationCreateParamsVerifoneP400(TypedDict): """ +class ConfigurationCreateParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationCreateParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationCreateParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationCreateParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationCreateParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_configuration_modify_params.py b/stripe/params/terminal/_configuration_modify_params.py index a6993430e..60d8efb42 100644 --- a/stripe/params/terminal/_configuration_modify_params.py +++ b/stripe/params/terminal/_configuration_modify_params.py @@ -52,12 +52,36 @@ class ConfigurationModifyParams(RequestOptions): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneM425" + ] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired[ "Literal['']|ConfigurationModifyParamsVerifoneP400" ] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneP630" + ] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneUx700" + ] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired[ + "Literal['']|ConfigurationModifyParamsVerifoneV660p" + ] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationModifyParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -519,6 +543,13 @@ class ConfigurationModifyParamsTippingUsd(TypedDict): """ +class ConfigurationModifyParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationModifyParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -526,6 +557,27 @@ class ConfigurationModifyParamsVerifoneP400(TypedDict): """ +class ConfigurationModifyParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationModifyParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationModifyParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationModifyParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationModifyParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_configuration_update_params.py b/stripe/params/terminal/_configuration_update_params.py index 6dc96a26d..e03929938 100644 --- a/stripe/params/terminal/_configuration_update_params.py +++ b/stripe/params/terminal/_configuration_update_params.py @@ -51,12 +51,36 @@ class ConfigurationUpdateParams(TypedDict): """ Tipping configurations for readers that support on-reader tips. """ + verifone_m425: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneM425" + ] + """ + An object containing device type specific settings for Verifone M425 readers. + """ verifone_p400: NotRequired[ "Literal['']|ConfigurationUpdateParamsVerifoneP400" ] """ An object containing device type specific settings for Verifone P400 readers. """ + verifone_p630: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneP630" + ] + """ + An object containing device type specific settings for Verifone P630 readers. + """ + verifone_ux700: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneUx700" + ] + """ + An object containing device type specific settings for Verifone UX700 readers. + """ + verifone_v660p: NotRequired[ + "Literal['']|ConfigurationUpdateParamsVerifoneV660p" + ] + """ + An object containing device type specific settings for Verifone V660p readers. + """ wifi: NotRequired["Literal['']|ConfigurationUpdateParamsWifi"] """ Configurations for connecting to a WiFi network. @@ -518,6 +542,13 @@ class ConfigurationUpdateParamsTippingUsd(TypedDict): """ +class ConfigurationUpdateParamsVerifoneM425(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationUpdateParamsVerifoneP400(TypedDict): splashscreen: NotRequired["Literal['']|str"] """ @@ -525,6 +556,27 @@ class ConfigurationUpdateParamsVerifoneP400(TypedDict): """ +class ConfigurationUpdateParamsVerifoneP630(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationUpdateParamsVerifoneUx700(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + +class ConfigurationUpdateParamsVerifoneV660p(TypedDict): + splashscreen: NotRequired["Literal['']|str"] + """ + A File ID representing an image you want to display on the reader. + """ + + class ConfigurationUpdateParamsWifi(TypedDict): enterprise_eap_peap: NotRequired[ "ConfigurationUpdateParamsWifiEnterpriseEapPeap" diff --git a/stripe/params/terminal/_reader_list_params.py b/stripe/params/terminal/_reader_list_params.py index e39cb2d36..cef8d2c9f 100644 --- a/stripe/params/terminal/_reader_list_params.py +++ b/stripe/params/terminal/_reader_list_params.py @@ -14,11 +14,19 @@ class ReaderListParams(RequestOptions): "mobile_phone_reader", "simulated_stripe_s700", "simulated_stripe_s710", + "simulated_verifone_m425", + "simulated_verifone_p630", + "simulated_verifone_ux700", + "simulated_verifone_v660p", "simulated_wisepos_e", "stripe_m2", "stripe_s700", "stripe_s710", "verifone_P400", + "verifone_m425", + "verifone_p630", + "verifone_ux700", + "verifone_v660p", ] ] """ diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py index 05b77550c..ad5a16626 100644 --- a/stripe/params/test_helpers/__init__.py +++ b/stripe/params/test_helpers/__init__.py @@ -24,6 +24,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails, ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress as ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress, + ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, @@ -59,6 +60,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay, ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, + ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataSunbit as ConfirmationTokenCreateParamsPaymentMethodDataSunbit, @@ -159,6 +161,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataBizum": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBlik": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -299,6 +305,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": ( "stripe.params.test_helpers._confirmation_token_create_params", False, diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 9d6a4cf02..0b2945124 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -105,6 +105,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ + bizum: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBizum"] + """ + If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + """ blik: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBlik"] """ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. @@ -183,7 +187,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ link: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataLink"] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). """ mb_way: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMbWay"] """ @@ -281,6 +285,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ + scalapay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataScalapay" + ] + """ + If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + """ sepa_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit" ] @@ -314,6 +324,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bacs_debit", "bancontact", "billie", + "bizum", "blik", "boleto", "cashapp", @@ -346,6 +357,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "revolut_pay", "samsung_pay", "satispay", + "scalapay", "sepa_debit", "sofort", "sunbit", @@ -502,6 +514,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress( """ +class ConfirmationTokenCreateParamsPaymentMethodDataBizum(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict): pass @@ -818,6 +834,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSatispay(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataScalapay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict): iban: str """ diff --git a/stripe/params/test_helpers/_test_clock_create_params.py b/stripe/params/test_helpers/_test_clock_create_params.py index 9375ca502..c52e78948 100644 --- a/stripe/params/test_helpers/_test_clock_create_params.py +++ b/stripe/params/test_helpers/_test_clock_create_params.py @@ -6,6 +6,10 @@ class TestClockCreateParams(RequestOptions): + customer: NotRequired[str] + """ + Existing customer this test clock will be attached to. Once attached, customers can't be removed from a test clock. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. diff --git a/stripe/params/v2/billing/_meter_event_adjustment_create_params.py b/stripe/params/v2/billing/_meter_event_adjustment_create_params.py index ee1dd55e6..b39cc81f2 100644 --- a/stripe/params/v2/billing/_meter_event_adjustment_create_params.py +++ b/stripe/params/v2/billing/_meter_event_adjustment_create_params.py @@ -14,12 +14,12 @@ class MeterEventAdjustmentCreateParams(TypedDict): """ type: Literal["cancel"] """ - Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + Specifies the type of cancellation. Currently supports canceling a single event. """ class MeterEventAdjustmentCreateParamsCancel(TypedDict): identifier: str """ - Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. """ diff --git a/stripe/params/v2/commerce/__init__.py b/stripe/params/v2/commerce/__init__.py new file mode 100644 index 000000000..69b7a23f3 --- /dev/null +++ b/stripe/params/v2/commerce/__init__.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.params.v2.commerce import product_catalog as product_catalog + +# name -> (import_target, is_submodule) +_import_map = { + "product_catalog": ("stripe.params.v2.commerce.product_catalog", True), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/params/v2/commerce/product_catalog/__init__.py b/stripe/params/v2/commerce/product_catalog/__init__.py new file mode 100644 index 000000000..6f1e2545d --- /dev/null +++ b/stripe/params/v2/commerce/product_catalog/__init__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.params.v2.commerce.product_catalog._import_create_params import ( + ImportCreateParams as ImportCreateParams, + ) + from stripe.params.v2.commerce.product_catalog._import_list_params import ( + ImportListParams as ImportListParams, + ) + from stripe.params.v2.commerce.product_catalog._import_retrieve_params import ( + ImportRetrieveParams as ImportRetrieveParams, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "ImportCreateParams": ( + "stripe.params.v2.commerce.product_catalog._import_create_params", + False, + ), + "ImportListParams": ( + "stripe.params.v2.commerce.product_catalog._import_list_params", + False, + ), + "ImportRetrieveParams": ( + "stripe.params.v2.commerce.product_catalog._import_retrieve_params", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/params/v2/commerce/product_catalog/_import_create_params.py b/stripe/params/v2/commerce/product_catalog/_import_create_params.py new file mode 100644 index 000000000..8549de060 --- /dev/null +++ b/stripe/params/v2/commerce/product_catalog/_import_create_params.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import UntypedStripeObject +from typing import Dict +from typing_extensions import Literal, TypedDict + + +class ImportCreateParams(TypedDict): + feed_type: Literal["inventory", "pricing", "product"] + """ + The type of catalog data to import. + """ + metadata: "Dict[str, str]|UntypedStripeObject[str]" + """ + Additional information about the import in a structured format. + """ + mode: Literal["replace", "upsert"] + """ + The strategy for handling existing catalog data during import. + """ diff --git a/stripe/params/v2/commerce/product_catalog/_import_list_params.py b/stripe/params/v2/commerce/product_catalog/_import_list_params.py new file mode 100644 index 000000000..fecbc23da --- /dev/null +++ b/stripe/params/v2/commerce/product_catalog/_import_list_params.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import Literal, NotRequired, TypedDict + + +class ImportListParams(TypedDict): + created: NotRequired[str] + """ + Filter for objects created at the specified timestamp. + Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + """ + created_gt: NotRequired[str] + """ + Filter for objects created after the specified timestamp. + Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + """ + created_gte: NotRequired[str] + """ + Filter for objects created on or after the specified timestamp. + Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + """ + created_lt: NotRequired[str] + """ + Filter for objects created before the specified timestamp. + Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + """ + created_lte: NotRequired[str] + """ + Filter for objects created on or before the specified timestamp. + Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + """ + feed_type: NotRequired[Literal["inventory", "pricing", "product"]] + """ + Filter by the type of feed data being imported. + """ + limit: NotRequired[int] + """ + The maximum number of results per page. + """ + status: NotRequired[ + Literal[ + "awaiting_upload", + "failed", + "processing", + "succeeded", + "succeeded_with_errors", + ] + ] + """ + Filter by import status. + """ diff --git a/stripe/params/v2/commerce/product_catalog/_import_retrieve_params.py b/stripe/params/v2/commerce/product_catalog/_import_retrieve_params.py new file mode 100644 index 000000000..d49d1d1f8 --- /dev/null +++ b/stripe/params/v2/commerce/product_catalog/_import_retrieve_params.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import TypedDict + + +class ImportRetrieveParams(TypedDict): + pass diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index ab9fca8eb..36afb616d 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -109,7 +109,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, @@ -179,7 +181,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, @@ -317,7 +321,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, @@ -352,6 +358,7 @@ from stripe.params.v2.core._event_destination_create_params import ( EventDestinationCreateParams as EventDestinationCreateParams, EventDestinationCreateParamsAmazonEventbridge as EventDestinationCreateParamsAmazonEventbridge, + EventDestinationCreateParamsAzureEventGrid as EventDestinationCreateParamsAzureEventGrid, EventDestinationCreateParamsWebhookEndpoint as EventDestinationCreateParamsWebhookEndpoint, ) from stripe.params.v2.core._event_destination_delete_params import ( @@ -791,10 +798,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, @@ -1036,10 +1051,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, @@ -1572,10 +1595,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, @@ -1704,6 +1735,10 @@ "stripe.params.v2.core._event_destination_create_params", False, ), + "EventDestinationCreateParamsAzureEventGrid": ( + "stripe.params.v2.core._event_destination_create_params", + False, + ), "EventDestinationCreateParamsWebhookEndpoint": ( "stripe.params.v2.core._event_destination_create_params", False, diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py index cbcccc4eb..305d2168f 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] """ @@ -65,7 +65,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"] """ @@ -1343,7 +1343,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"] """ @@ -1805,12 +1805,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, ): @@ -1818,12 +1833,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] """ @@ -2116,7 +2146,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 2e29ffd7e..eab36f9df 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] """ @@ -343,7 +343,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" @@ -477,12 +477,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, ): @@ -490,12 +505,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] """ @@ -800,7 +830,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 5314c0ad9..823fb6ba5 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] """ @@ -128,7 +128,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" @@ -1365,7 +1365,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"] """ @@ -1737,7 +1737,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" @@ -1871,12 +1871,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, ): @@ -1884,12 +1899,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] """ @@ -2182,7 +2212,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/_event_destination_create_params.py b/stripe/params/v2/core/_event_destination_create_params.py index c8bae9b0a..6ac47e438 100644 --- a/stripe/params/v2/core/_event_destination_create_params.py +++ b/stripe/params/v2/core/_event_destination_create_params.py @@ -12,6 +12,10 @@ class EventDestinationCreateParams(TypedDict): """ Amazon EventBridge configuration. """ + azure_event_grid: NotRequired["EventDestinationCreateParamsAzureEventGrid"] + """ + Azure Event Grid configuration. + """ description: NotRequired[str] """ An optional description of what the event destination is used for. @@ -52,7 +56,7 @@ class EventDestinationCreateParams(TypedDict): """ If using the snapshot event payload, the API version events are rendered as. """ - type: Literal["amazon_eventbridge", "webhook_endpoint"] + type: Literal["amazon_eventbridge", "azure_event_grid", "webhook_endpoint"] """ Event destination type. """ @@ -75,6 +79,21 @@ class EventDestinationCreateParamsAmazonEventbridge(TypedDict): """ +class EventDestinationCreateParamsAzureEventGrid(TypedDict): + azure_region: str + """ + The Azure region. + """ + azure_resource_group_name: str + """ + The name of the Azure resource group. + """ + azure_subscription_id: str + """ + The Azure subscription ID. + """ + + class EventDestinationCreateParamsWebhookEndpoint(TypedDict): url: str """ diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index 99b9ab19a..b171f87bf 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -515,7 +515,7 @@ class FraudulentPayment(StripeObject): """ recommended_action: Literal["block", "continue"] """ - Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block` and `continue`. + Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. """ signals: Signals """ diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py index 09065bd32..da6d22f83 100644 --- a/stripe/terminal/_configuration.py +++ b/stripe/terminal/_configuration.py @@ -431,12 +431,36 @@ class Usd(StripeObject): "usd": Usd, } + class VerifoneM425(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + class VerifoneP400(StripeObject): splashscreen: Optional[ExpandableField["File"]] """ A File ID representing an image to display on the reader """ + class VerifoneP630(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + + class VerifoneUx700(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + + class VerifoneV660p(StripeObject): + splashscreen: Optional[ExpandableField["File"]] + """ + A File ID representing an image to display on the reader + """ + class Wifi(StripeObject): class EnterpriseEapPeap(StripeObject): ca_certificate_file: Optional[str] @@ -535,7 +559,11 @@ class PersonalPsk(StripeObject): stripe_s700: Optional[StripeS700] stripe_s710: Optional[StripeS710] tipping: Optional[Tipping] + verifone_m425: Optional[VerifoneM425] verifone_p400: Optional[VerifoneP400] + verifone_p630: Optional[VerifoneP630] + verifone_ux700: Optional[VerifoneUx700] + verifone_v660p: Optional[VerifoneV660p] wifi: Optional[Wifi] @classmethod @@ -773,6 +801,10 @@ async def retrieve_async( "stripe_s700": StripeS700, "stripe_s710": StripeS710, "tipping": Tipping, + "verifone_m425": VerifoneM425, "verifone_p400": VerifoneP400, + "verifone_p630": VerifoneP630, + "verifone_ux700": VerifoneUx700, + "verifone_v660p": VerifoneV660p, "wifi": Wifi, } diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index f2e19e4c9..2b734969b 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -9,15 +9,19 @@ from stripe._test_helpers import APIResourceTestHelpers from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import class_method_variant, sanitize_id -from typing import ClassVar, List, Optional, cast, overload +from typing import ClassVar, List, Optional, Union, cast, overload from typing_extensions import Literal, Type, Unpack, TYPE_CHECKING if TYPE_CHECKING: + from stripe._account import Account + from stripe._bank_account import BankAccount + from stripe._card import Card from stripe._charge import Charge from stripe._payment_intent import PaymentIntent from stripe._payment_method import PaymentMethod from stripe._refund import Refund from stripe._setup_intent import SetupIntent + from stripe._source import Source from stripe.params.terminal._reader_cancel_action_params import ( ReaderCancelActionParams, ) @@ -76,6 +80,301 @@ class Reader( OBJECT_NAME: ClassVar[Literal["terminal.reader"]] = "terminal.reader" class Action(StripeObject): + class ApiError(StripeObject): + advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one. + """ + charge: Optional[str] + """ + For card errors, the ID of the failed charge. + """ + code: Optional[ + Literal[ + "account_closed", + "account_country_invalid_address", + "account_error_country_change_requires_additional_steps", + "account_information_mismatch", + "account_invalid", + "account_number_invalid", + "account_token_required_for_v2_account", + "acss_debit_session_incomplete", + "action_blocked", + "alipay_upgrade_required", + "amount_too_large", + "amount_too_small", + "api_key_expired", + "application_fees_not_allowed", + "approval_required", + "authentication_required", + "balance_insufficient", + "balance_invalid_parameter", + "bank_account_bad_routing_numbers", + "bank_account_declined", + "bank_account_exists", + "bank_account_restricted", + "bank_account_unusable", + "bank_account_unverified", + "bank_account_verification_failed", + "billing_invalid_mandate", + "bitcoin_upgrade_required", + "capture_charge_authorization_expired", + "capture_unauthorized_payment", + "card_decline_rate_limit_exceeded", + "card_declined", + "cardholder_phone_number_required", + "charge_already_captured", + "charge_already_refunded", + "charge_disputed", + "charge_exceeds_source_limit", + "charge_exceeds_transaction_limit", + "charge_expired_for_capture", + "charge_invalid_parameter", + "charge_not_refundable", + "clearing_code_unsupported", + "country_code_invalid", + "country_unsupported", + "coupon_expired", + "customer_max_payment_methods", + "customer_max_subscriptions", + "customer_session_expired", + "customer_tax_location_invalid", + "debit_not_authorized", + "email_invalid", + "expired_card", + "financial_connections_account_inactive", + "financial_connections_account_pending_account_numbers", + "financial_connections_account_unavailable_account_numbers", + "financial_connections_no_successful_transaction_refresh", + "forwarding_api_inactive", + "forwarding_api_invalid_parameter", + "forwarding_api_retryable_upstream_error", + "forwarding_api_upstream_connection_error", + "forwarding_api_upstream_connection_timeout", + "forwarding_api_upstream_error", + "idempotency_key_in_use", + "incorrect_address", + "incorrect_cvc", + "incorrect_number", + "incorrect_zip", + "india_recurring_payment_mandate_canceled", + "instant_payouts_config_disabled", + "instant_payouts_currency_disabled", + "instant_payouts_limit_exceeded", + "instant_payouts_unsupported", + "insufficient_funds", + "intent_invalid_state", + "intent_verification_method_missing", + "invalid_card_type", + "invalid_characters", + "invalid_charge_amount", + "invalid_cvc", + "invalid_expiry_month", + "invalid_expiry_year", + "invalid_mandate_reference_prefix_format", + "invalid_number", + "invalid_source_usage", + "invalid_tax_location", + "invoice_no_customer_line_items", + "invoice_no_payment_method_types", + "invoice_no_subscription_line_items", + "invoice_not_editable", + "invoice_on_behalf_of_not_editable", + "invoice_payment_intent_requires_action", + "invoice_upcoming_none", + "livemode_mismatch", + "lock_timeout", + "missing", + "no_account", + "not_allowed_on_standard_account", + "out_of_inventory", + "ownership_declaration_not_allowed", + "parameter_invalid_empty", + "parameter_invalid_integer", + "parameter_invalid_string_blank", + "parameter_invalid_string_empty", + "parameter_missing", + "parameter_unknown", + "parameters_exclusive", + "payment_intent_action_required", + "payment_intent_authentication_failure", + "payment_intent_incompatible_payment_method", + "payment_intent_invalid_parameter", + "payment_intent_konbini_rejected_confirmation_number", + "payment_intent_mandate_invalid", + "payment_intent_payment_attempt_expired", + "payment_intent_payment_attempt_failed", + "payment_intent_rate_limit_exceeded", + "payment_intent_unexpected_state", + "payment_method_bank_account_already_verified", + "payment_method_bank_account_blocked", + "payment_method_billing_details_address_missing", + "payment_method_configuration_failures", + "payment_method_currency_mismatch", + "payment_method_customer_decline", + "payment_method_invalid_parameter", + "payment_method_invalid_parameter_testmode", + "payment_method_microdeposit_failed", + "payment_method_microdeposit_processing_error", + "payment_method_microdeposit_verification_amounts_invalid", + "payment_method_microdeposit_verification_amounts_mismatch", + "payment_method_microdeposit_verification_attempts_exceeded", + "payment_method_microdeposit_verification_descriptor_code_mismatch", + "payment_method_microdeposit_verification_timeout", + "payment_method_not_available", + "payment_method_provider_decline", + "payment_method_provider_timeout", + "payment_method_unactivated", + "payment_method_unexpected_state", + "payment_method_unsupported_type", + "payout_reconciliation_not_ready", + "payouts_limit_exceeded", + "payouts_not_allowed", + "platform_account_required", + "platform_api_key_expired", + "postal_code_invalid", + "processing_error", + "product_inactive", + "progressive_onboarding_limit_exceeded", + "rate_limit", + "refer_to_customer", + "refund_disputed_payment", + "request_blocked", + "resource_already_exists", + "resource_missing", + "return_intent_already_processed", + "routing_number_invalid", + "secret_key_required", + "sepa_unsupported_account", + "service_period_coupon_with_metered_tiered_item_unsupported", + "setup_attempt_failed", + "setup_intent_authentication_failure", + "setup_intent_invalid_parameter", + "setup_intent_mandate_invalid", + "setup_intent_mobile_wallet_unsupported", + "setup_intent_setup_attempt_expired", + "setup_intent_unexpected_state", + "shipping_address_invalid", + "shipping_calculation_failed", + "siret_invalid", + "sku_inactive", + "state_unsupported", + "status_transition_invalid", + "storer_capability_missing", + "storer_capability_not_active", + "stripe_tax_inactive", + "tax_id_invalid", + "tax_id_prohibited", + "taxes_calculation_failed", + "terminal_location_country_unsupported", + "terminal_reader_busy", + "terminal_reader_hardware_fault", + "terminal_reader_invalid_location_for_activation", + "terminal_reader_invalid_location_for_payment", + "terminal_reader_offline", + "terminal_reader_timeout", + "testmode_charges_only", + "tls_version_unsupported", + "token_already_used", + "token_card_network_invalid", + "token_in_use", + "transfer_source_balance_parameters_mismatch", + "transfers_not_allowed", + "url_invalid", + ] + ] + """ + For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported. + """ + decline_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one. + """ + doc_url: Optional[str] + """ + A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported. + """ + message: Optional[str] + """ + A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + """ + network_advice_code: Optional[str] + """ + For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + """ + network_decline_code: Optional[str] + """ + For payments declined by the network, an alphanumeric code which indicates the reason the payment failed. + """ + param: Optional[str] + """ + If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. + """ + payment_intent: Optional["PaymentIntent"] + """ + A PaymentIntent guides you through the process of collecting a payment from your customer. + We recommend that you create exactly one PaymentIntent for each order or + customer session in your system. You can reference the PaymentIntent later to + see the history of payment attempts for a particular session. + + A PaymentIntent transitions through + [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle) + throughout its lifetime as it interfaces with Stripe.js to perform + authentication flows and ultimately creates at most one successful charge. + + Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents) + """ + payment_method: Optional["PaymentMethod"] + """ + PaymentMethod objects represent your customer's payment instruments. + You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to + Customer objects to store instrument details for future payments. + + Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). + """ + payment_method_type: Optional[str] + """ + If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. + """ + request_log_url: Optional[str] + """ + A URL to the request log entry in your dashboard. + """ + setup_intent: Optional["SetupIntent"] + """ + A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. + For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment. + Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow. + + Create a SetupIntent when you're ready to collect your customer's payment credentials. + Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. + The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides + you through the setup process. + + Successful SetupIntents result in payment credentials that are optimized for future payments. + For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through + [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection + to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents). + If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer), + it automatically attaches the resulting payment method to that Customer after successful setup. + We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on + PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods. + + By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. + + Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) + """ + source: Optional[Union["Account", "BankAccount", "Card", "Source"]] + type: Literal[ + "api_error", + "card_error", + "idempotency_error", + "invalid_request_error", + ] + """ + The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` + """ + class CollectInputs(StripeObject): class Input(StripeObject): class CustomText(StripeObject): @@ -302,6 +601,35 @@ class ConfirmConfig(StripeObject): """ _inner_class_types = {"confirm_config": ConfirmConfig} + class PrintContent(StripeObject): + class Image(StripeObject): + created_at: int + """ + Creation time of the object (in seconds since the Unix epoch). + """ + filename: str + """ + The original name of the uploaded file (e.g. `receipt.png`). + """ + size: int + """ + The size (in bytes) of the uploaded file. + """ + type: str + """ + The format of the uploaded file. + """ + + image: Optional[Image] + """ + Metadata of an uploaded file + """ + type: Literal["image"] + """ + The type of content to print. Currently supports `image`. + """ + _inner_class_types = {"image": Image} + class ProcessPaymentIntent(StripeObject): class ProcessConfig(StripeObject): class Tipping(StripeObject): @@ -450,6 +778,10 @@ class LineItem(StripeObject): """ _inner_class_types = {"cart": Cart} + api_error: Optional[ApiError] + """ + The reader action failed due to an [API error](https://docs.stripe.com/api/errors). Only present when `status` is `failed` and the underlying failure was an API error. Avoid parsing the `message` field for programmatic logic; use `type` or `code` instead. The `message` field is for display to humans only and may be updated at anytime. Requires [reader version](https://docs.stripe.com/terminal/readers/stripe-reader-s700-s710#reader-software-version) 2.42 or later. Readers on older versions always return null. + """ collect_inputs: Optional[CollectInputs] """ Represents a reader action to collect customer inputs @@ -470,6 +802,10 @@ class LineItem(StripeObject): """ Detailed failure message, only set if status is `failed`. """ + print_content: Optional[PrintContent] + """ + Represents a reader action to print content + """ process_payment_intent: Optional[ProcessPaymentIntent] """ Represents a reader action to process a payment intent @@ -494,6 +830,7 @@ class LineItem(StripeObject): "collect_inputs", "collect_payment_method", "confirm_payment_intent", + "print_content", "process_payment_intent", "process_setup_intent", "refund_payment", @@ -503,9 +840,11 @@ class LineItem(StripeObject): Type of action performed by the reader. """ _inner_class_types = { + "api_error": ApiError, "collect_inputs": CollectInputs, "collect_payment_method": CollectPaymentMethod, "confirm_payment_intent": ConfirmPaymentIntent, + "print_content": PrintContent, "process_payment_intent": ProcessPaymentIntent, "process_setup_intent": ProcessSetupIntent, "refund_payment": RefundPayment, @@ -531,11 +870,19 @@ class LineItem(StripeObject): "mobile_phone_reader", "simulated_stripe_s700", "simulated_stripe_s710", + "simulated_verifone_m425", + "simulated_verifone_p630", + "simulated_verifone_ux700", + "simulated_verifone_v660p", "simulated_wisepos_e", "stripe_m2", "stripe_s700", "stripe_s710", "verifone_P400", + "verifone_m425", + "verifone_p630", + "verifone_ux700", + "verifone_v660p", ] """ Device type of the reader. diff --git a/stripe/v2/__init__.py b/stripe/v2/__init__.py index 687530791..3eb03dfd8 100644 --- a/stripe/v2/__init__.py +++ b/stripe/v2/__init__.py @@ -7,16 +7,23 @@ from importlib import import_module if TYPE_CHECKING: - from stripe.v2 import billing as billing, core as core + from stripe.v2 import ( + billing as billing, + commerce as commerce, + core as core, + ) 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._deleted_object import DeletedObject as DeletedObject # name -> (import_target, is_submodule) _import_map = { "billing": ("stripe.v2.billing", True), + "commerce": ("stripe.v2.commerce", True), "core": ("stripe.v2.core", True), "BillingService": ("stripe.v2._billing_service", False), + "CommerceService": ("stripe.v2._commerce_service", False), "CoreService": ("stripe.v2._core_service", False), "DeletedObject": ("stripe.v2._deleted_object", False), } diff --git a/stripe/v2/_commerce_service.py b/stripe/v2/_commerce_service.py new file mode 100644 index 000000000..cc40db470 --- /dev/null +++ b/stripe/v2/_commerce_service.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.v2.commerce._product_catalog_service import ( + ProductCatalogService, + ) + +_subservices = { + "product_catalog": [ + "stripe.v2.commerce._product_catalog_service", + "ProductCatalogService", + ], +} + + +class CommerceService(StripeService): + product_catalog: "ProductCatalogService" + + def __init__(self, requestor): + super().__init__(requestor) + + def __getattr__(self, name): + try: + import_from, service = _subservices[name] + service_class = getattr( + import_module(import_from), + service, + ) + setattr( + self, + name, + service_class(self._requestor), + ) + return getattr(self, name) + except KeyError: + raise AttributeError() diff --git a/stripe/v2/billing/_meter_event_adjustment.py b/stripe/v2/billing/_meter_event_adjustment.py index 603e75d50..a8bdf3068 100644 --- a/stripe/v2/billing/_meter_event_adjustment.py +++ b/stripe/v2/billing/_meter_event_adjustment.py @@ -17,7 +17,7 @@ class MeterEventAdjustment(StripeObject): class Cancel(StripeObject): identifier: str """ - Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. """ cancel: Cancel @@ -34,7 +34,7 @@ class Cancel(StripeObject): """ id: str """ - The unique id of this meter event adjustment. + The unique ID of this meter event adjustment. """ livemode: bool """ @@ -50,6 +50,6 @@ class Cancel(StripeObject): """ type: Literal["cancel"] """ - Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + Open Enum. Specifies the type of cancellation. Currently supports canceling a single event. """ _inner_class_types = {"cancel": Cancel} diff --git a/stripe/v2/billing/_meter_event_session.py b/stripe/v2/billing/_meter_event_session.py index 90364bb1a..86fb237f1 100644 --- a/stripe/v2/billing/_meter_event_session.py +++ b/stripe/v2/billing/_meter_event_session.py @@ -15,7 +15,7 @@ class MeterEventSession(StripeObject): ) authentication_token: str """ - The authentication token for this session. Use this token when calling the + The authentication token for this session. Use this token when calling the high-throughput meter event API. """ created: str @@ -24,11 +24,11 @@ class MeterEventSession(StripeObject): """ expires_at: str """ - The time at which this session will expire. + The time at which this session expires. """ id: str """ - The unique id of this auth session. + The unique ID of this auth session. """ livemode: bool """ diff --git a/stripe/v2/billing/_meter_event_session_service.py b/stripe/v2/billing/_meter_event_session_service.py index 5bf06cd0b..348939f69 100644 --- a/stripe/v2/billing/_meter_event_session_service.py +++ b/stripe/v2/billing/_meter_event_session_service.py @@ -19,7 +19,7 @@ def create( options: Optional["RequestOptions"] = None, ) -> "MeterEventSession": """ - Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires. + Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you need to create a new meter event session when your token expires. """ return cast( "MeterEventSession", @@ -38,7 +38,7 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "MeterEventSession": """ - Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires. + Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you need to create a new meter event session when your token expires. """ return cast( "MeterEventSession", diff --git a/stripe/v2/commerce/__init__.py b/stripe/v2/commerce/__init__.py new file mode 100644 index 000000000..fc4dea39e --- /dev/null +++ b/stripe/v2/commerce/__init__.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.v2.commerce import product_catalog as product_catalog + from stripe.v2.commerce._product_catalog_import import ( + ProductCatalogImport as ProductCatalogImport, + ) + from stripe.v2.commerce._product_catalog_service import ( + ProductCatalogService as ProductCatalogService, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "product_catalog": ("stripe.v2.commerce.product_catalog", True), + "ProductCatalogImport": ( + "stripe.v2.commerce._product_catalog_import", + False, + ), + "ProductCatalogService": ( + "stripe.v2.commerce._product_catalog_service", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/v2/commerce/_product_catalog_import.py b/stripe/v2/commerce/_product_catalog_import.py new file mode 100644 index 000000000..3e48b840e --- /dev/null +++ b/stripe/v2/commerce/_product_catalog_import.py @@ -0,0 +1,204 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject, UntypedStripeObject +from typing import ClassVar, List, Optional +from typing_extensions import Literal + + +class ProductCatalogImport(StripeObject): + """ + The ProductCatalogImport object tracks the long-running background process that handles uploading, processing and validation. + """ + + OBJECT_NAME: ClassVar[Literal["v2.commerce.product_catalog_import"]] = ( + "v2.commerce.product_catalog_import" + ) + + class StatusDetails(StripeObject): + class AwaitingUpload(StripeObject): + class UploadUrl(StripeObject): + expires_at: str + """ + The timestamp when the upload URL expires. + """ + url: str + """ + The pre-signed URL for uploading the catalog file. + """ + + upload_url: UploadUrl + """ + The pre-signed URL information for uploading the catalog file. + """ + _inner_class_types = {"upload_url": UploadUrl} + + class Failed(StripeObject): + code: Literal["file_not_found", "internal_error", "invalid_file"] + """ + The error code for this product catalog processing failure. + """ + failure_message: str + """ + A message explaining why the import failed. + """ + type: Literal["cannot_proceed", "transient_failure"] + """ + The error type for this product catalog processing failure. + """ + + class Processing(StripeObject): + error_count: int + """ + The number of records that failed to process so far. + """ + success_count: int + """ + The number of records processed so far. + """ + _field_encodings = { + "error_count": "int64_string", + "success_count": "int64_string", + } + + class Succeeded(StripeObject): + success_count: int + """ + The total number of records processed. + """ + _field_encodings = {"success_count": "int64_string"} + + class SucceededWithErrors(StripeObject): + class ErrorFile(StripeObject): + class DownloadUrl(StripeObject): + expires_at: str + """ + The timestamp when the download URL expires. + """ + url: str + """ + The pre-signed URL for downloading the error file. + """ + + content_type: str + """ + The MIME type of the error file. + """ + download_url: DownloadUrl + """ + The pre-signed URL information for downloading the error file. + """ + size: int + """ + The size of the error file in bytes. + """ + _inner_class_types = {"download_url": DownloadUrl} + _field_encodings = {"size": "int64_string"} + + class Sample(StripeObject): + error_message: str + """ + A description of what went wrong with this record. + """ + field: str + """ + The name of the field that caused the error. + """ + id: str + """ + The identifier of the record that failed to process. + """ + row: int + """ + The row number in the import file where the error occurred. + """ + _field_encodings = {"row": "int64_string"} + + error_count: int + """ + The total number of records that failed to process. + """ + error_file: ErrorFile + """ + A file containing details about all errors that occurred. + """ + samples: List[Sample] + """ + A sample of errors that occurred during processing. + """ + success_count: int + """ + The total number of records processed. + """ + _inner_class_types = {"error_file": ErrorFile, "samples": Sample} + _field_encodings = { + "error_count": "int64_string", + "success_count": "int64_string", + } + + awaiting_upload: Optional[AwaitingUpload] + """ + Details when the import is awaiting file upload. + """ + failed: Optional[Failed] + """ + Details when the import didn't complete. + """ + processing: Optional[Processing] + """ + Details when the import is processing. + """ + succeeded: Optional[Succeeded] + """ + Details when the import has succeeded. + """ + succeeded_with_errors: Optional[SucceededWithErrors] + """ + Details when the import completed but some records failed to process. + """ + _inner_class_types = { + "awaiting_upload": AwaitingUpload, + "failed": Failed, + "processing": Processing, + "succeeded": Succeeded, + "succeeded_with_errors": SucceededWithErrors, + } + + created: str + """ + The time this ProductCatalogImport was created. + """ + feed_type: Literal["inventory", "pricing", "product"] + """ + The type of feed data being imported into the product catalog. + """ + id: str + """ + The unique identifier for this ProductCatalogImport. + """ + livemode: bool + """ + Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + """ + metadata: UntypedStripeObject[str] + """ + Additional information about the object in a structured format. + """ + object: Literal["v2.commerce.product_catalog_import"] + """ + String representing the object's type. Objects of the same type share the same value of the object field. + """ + status: Literal[ + "awaiting_upload", + "failed", + "processing", + "succeeded", + "succeeded_with_errors", + ] + """ + The current status of this ProductCatalogImport. + """ + status_details: Optional[StatusDetails] + """ + Details about the current import status. + """ + _inner_class_types = {"status_details": StatusDetails} diff --git a/stripe/v2/commerce/_product_catalog_service.py b/stripe/v2/commerce/_product_catalog_service.py new file mode 100644 index 000000000..9c9c4e0b9 --- /dev/null +++ b/stripe/v2/commerce/_product_catalog_service.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.v2.commerce.product_catalog._import_service import ( + ImportService, + ) + +_subservices = { + "imports": [ + "stripe.v2.commerce.product_catalog._import_service", + "ImportService", + ], +} + + +class ProductCatalogService(StripeService): + imports: "ImportService" + + def __init__(self, requestor): + super().__init__(requestor) + + def __getattr__(self, name): + try: + import_from, service = _subservices[name] + service_class = getattr( + import_module(import_from), + service, + ) + setattr( + self, + name, + service_class(self._requestor), + ) + return getattr(self, name) + except KeyError: + raise AttributeError() diff --git a/stripe/v2/commerce/product_catalog/__init__.py b/stripe/v2/commerce/product_catalog/__init__.py new file mode 100644 index 000000000..bad6e9107 --- /dev/null +++ b/stripe/v2/commerce/product_catalog/__init__.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.v2.commerce.product_catalog._import_service import ( + ImportService as ImportService, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "ImportService": ( + "stripe.v2.commerce.product_catalog._import_service", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/v2/commerce/product_catalog/_import_service.py b/stripe/v2/commerce/product_catalog/_import_service.py new file mode 100644 index 000000000..cc5f28bcd --- /dev/null +++ b/stripe/v2/commerce/product_catalog/_import_service.py @@ -0,0 +1,142 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._request_options import RequestOptions + from stripe.params.v2.commerce.product_catalog._import_create_params import ( + ImportCreateParams, + ) + from stripe.params.v2.commerce.product_catalog._import_list_params import ( + ImportListParams, + ) + from stripe.params.v2.commerce.product_catalog._import_retrieve_params import ( + ImportRetrieveParams, + ) + from stripe.v2._list_object import ListObject + from stripe.v2.commerce._product_catalog_import import ProductCatalogImport + + +class ImportService(StripeService): + def list( + self, + params: Optional["ImportListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[ProductCatalogImport]": + """ + Returns a list of ProductCatalogImport objects. + """ + return cast( + "ListObject[ProductCatalogImport]", + self._request( + "get", + "/v2/commerce/product_catalog/imports", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: Optional["ImportListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[ProductCatalogImport]": + """ + Returns a list of ProductCatalogImport objects. + """ + return cast( + "ListObject[ProductCatalogImport]", + await self._request_async( + "get", + "/v2/commerce/product_catalog/imports", + base_address="api", + params=params, + options=options, + ), + ) + + def create( + self, + params: "ImportCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "ProductCatalogImport": + """ + Creates a ProductCatalogImport. + """ + return cast( + "ProductCatalogImport", + self._request( + "post", + "/v2/commerce/product_catalog/imports", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "ImportCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "ProductCatalogImport": + """ + Creates a ProductCatalogImport. + """ + return cast( + "ProductCatalogImport", + await self._request_async( + "post", + "/v2/commerce/product_catalog/imports", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + id: str, + params: Optional["ImportRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ProductCatalogImport": + """ + Retrieves a ProductCatalogImport by ID. + """ + return cast( + "ProductCatalogImport", + self._request( + "get", + "/v2/commerce/product_catalog/imports/{id}".format( + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + params: Optional["ImportRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ProductCatalogImport": + """ + Retrieves a ProductCatalogImport by ID. + """ + return cast( + "ProductCatalogImport", + await self._request_async( + "get", + "/v2/commerce/product_catalog/imports/{id}".format( + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index 5ec385884..6e4cbcde7 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] """ @@ -2284,7 +2283,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] """ @@ -2982,24 +2981,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 @@ -3865,7 +3886,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] """ @@ -3952,7 +3973,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] """ @@ -4260,7 +4281,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..6b84908dd 100644 --- a/stripe/v2/core/_event.py +++ b/stripe/v2/core/_event.py @@ -17,6 +17,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" diff --git a/stripe/v2/core/_event_destination.py b/stripe/v2/core/_event_destination.py index f366e8ed4..b61edab49 100644 --- a/stripe/v2/core/_event_destination.py +++ b/stripe/v2/core/_event_destination.py @@ -30,9 +30,37 @@ class AmazonEventbridge(StripeObject): The state of the AWS event source. """ + class AzureEventGrid(StripeObject): + azure_partner_topic_name: str + """ + The name of the Azure partner topic. + """ + azure_partner_topic_status: Literal[ + "activated", "deleted", "never_activated", "unknown" + ] + """ + The status of the Azure partner topic. + """ + azure_region: str + """ + The Azure region. + """ + azure_resource_group_name: str + """ + The name of the Azure resource group. + """ + azure_subscription_id: str + """ + The Azure subscription ID. + """ + class StatusDetails(StripeObject): class Disabled(StripeObject): - reason: Literal["no_aws_event_source_exists", "user"] + reason: Literal[ + "no_aws_event_source_exists", + "no_azure_partner_topic_exists", + "user", + ] """ Reason event destination has been disabled. """ @@ -57,6 +85,10 @@ class WebhookEndpoint(StripeObject): """ Amazon EventBridge configuration. """ + azure_event_grid: Optional[AzureEventGrid] + """ + Azure Event Grid configuration. + """ created: str """ Time at which the object was created. @@ -113,7 +145,7 @@ class WebhookEndpoint(StripeObject): """ Additional information about event destination status. """ - type: Literal["amazon_eventbridge", "webhook_endpoint"] + type: Literal["amazon_eventbridge", "azure_event_grid", "webhook_endpoint"] """ Event destination type. """ @@ -127,6 +159,7 @@ class WebhookEndpoint(StripeObject): """ _inner_class_types = { "amazon_eventbridge": AmazonEventbridge, + "azure_event_grid": AzureEventGrid, "status_details": StatusDetails, "webhook_endpoint": WebhookEndpoint, } 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/core/accounts/_person_token_service.py b/stripe/v2/core/accounts/_person_token_service.py index 0868da342..66d9498e8 100644 --- a/stripe/v2/core/accounts/_person_token_service.py +++ b/stripe/v2/core/accounts/_person_token_service.py @@ -24,7 +24,8 @@ def create( options: Optional["RequestOptions"] = None, ) -> "AccountPersonToken": """ - Creates a Person Token associated with an Account. + Creates a single-use token that represents the details for a person. Use this when you create or update persons associated with an Account v2. Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + You can only create person tokens with your application's publishable key and in live mode. You can use your application's secret key to create person tokens only in test mode. """ return cast( "AccountPersonToken", @@ -46,7 +47,8 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "AccountPersonToken": """ - Creates a Person Token associated with an Account. + Creates a single-use token that represents the details for a person. Use this when you create or update persons associated with an Account v2. Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + You can only create person tokens with your application's publishable key and in live mode. You can use your application's secret key to create person tokens only in test mode. """ return cast( "AccountPersonToken", diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 13ed4502c..68ba9136b 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -43576,6 +43576,74 @@ def test_v2_billing_meter_event_stream_post_service( is_json=True, ) + def test_v2_commerce_product_catalog_import_get_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/commerce/product_catalog/imports", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.commerce.product_catalog.imports.list() + http_client_mock.assert_requested( + "get", + path="/v2/commerce/product_catalog/imports", + query_string="", + api_base="https://api.stripe.com", + ) + + def test_v2_commerce_product_catalog_import_post_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "post", + "/v2/commerce/product_catalog/imports", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.commerce.product_catalog.imports.create( + { + "feed_type": "pricing", + "metadata": {"key": "metadata"}, + "mode": "upsert", + } + ) + http_client_mock.assert_requested( + "post", + path="/v2/commerce/product_catalog/imports", + query_string="", + api_base="https://api.stripe.com", + post_data='{"feed_type":"pricing","metadata":{"key":"metadata"},"mode":"upsert"}', + is_json=True, + ) + + def test_v2_commerce_product_catalog_import_get_2_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/commerce/product_catalog/imports/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.commerce.product_catalog.imports.retrieve("id_123") + http_client_mock.assert_requested( + "get", + path="/v2/commerce/product_catalog/imports/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + def test_v2_core_account_get_service( self, http_client_mock: HTTPClientMock ) -> None: From 6c0388fcdde34eb928f69d48f9895c43b75091da Mon Sep 17 00:00:00 2001 From: Michael Broshi Date: Wed, 27 May 2026 16:30:40 -0400 Subject: [PATCH 02/13] Bump version to 15.2.0 --- CHANGELOG.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++ VERSION | 2 +- pyproject.toml | 2 +- stripe/_version.py | 2 +- 4 files changed, 58 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index edaca3353..d2a6e257a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,58 @@ +## 15.2.0 - 2026-05-27 +This release changes the pinned API version to 2026-05-27.dahlia. + +* [#1816](https://github.com/stripe/stripe-python/pull/1816) Update generated code + * Add support for new resource `v2.commerce.ProductCatalogImport` + * Add support for `create` and `retrieve` methods on resource `v2.commerce.ProductCatalogImport` + * Add support for `bizum_payments` and `scalapay_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` + * Add support for `automatic_transfer_rules_by_currency` on `BalanceSettings.Payment.Payout` and `BalanceSettingsModifyParamsPaymentPayout` + * Add support for `start_of_day` on `BalanceSettings.Payment.SettlementTiming` and `BalanceSettingsModifyParamsPaymentSettlementTiming` + * Add support for `description` on `ChargeCreateParamsTransferDatum`, `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, and `PaymentIntentModifyParamsTransferDatum` + * Add support for `bizum` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodOption`, `SetupIntentModifyParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodOption` + * Add support for `scalapay` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `Refund.DestinationDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodDatum`, and `checkout.SessionCreateParamsPaymentMethodOption` + * Add support for `mandate` on `Charge.PaymentMethodDetail.Twint`, `PaymentAttemptRecord.PaymentMethodDetail.Twint`, and `PaymentRecord.PaymentMethodDetail.Twint` + * Add support for new values `bizum` and `scalapay` on enums `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, `SetupIntentModifyParams.excluded_payment_method_types`, and `checkout.SessionCreateParams.excluded_payment_method_types` + * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionTwint.setup_future_usage`, `PaymentIntentCreateParamsPaymentMethodOptionTwint.setup_future_usage`, `PaymentIntentModifyParamsPaymentMethodOptionTwint.setup_future_usage`, and `checkout.SessionCreateParamsPaymentMethodOptionTwint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` + * Add support for new values `bizum` and `scalapay` on enum `checkout.SessionCreateParams.payment_method_types` + * ⚠️ Change type of `Checkout.Session.PaymentMethodOption.Twint.setup_future_usage` and `PaymentIntent.PaymentMethodOption.Twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` + * Add support for new values `bizum` and `scalapay` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` + * ⚠️ Add support for new values `bizum` and `scalapay` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` + * Add support for new values `bizum` and `scalapay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for `credited_items` on `InvoiceItem.ProrationDetail` + * Add support for new value `twint` on enums `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` + * Add support for `discountable` on `InvoiceCreatePreviewParamsScheduleDetailPhaseAddInvoiceItem`, `SubscriptionCreateParamsAddInvoiceItem`, `SubscriptionModifyParamsAddInvoiceItem`, `SubscriptionSchedule.Phase.AddInvoiceItem`, `SubscriptionScheduleCreateParamsPhaseAddInvoiceItem`, and `SubscriptionScheduleModifyParamsPhaseAddInvoiceItem` + * Add support for `billing_schedules` on `InvoiceCreatePreviewParamsSubscriptionDetail`, `SubscriptionCreateParams`, `SubscriptionModifyParams`, and `Subscription` + * Add support for new value `max_billed_until` on enums `InvoiceCreatePreviewParamsSubscriptionDetail.cancel_at`, `SubscriptionCreateParams.cancel_at`, and `SubscriptionModifyParams.cancel_at` + * Add support for `amount_paid_off_stripe` on `Invoice` + * ⚠️ Add support for new value `twint` on enums `Invoice.PaymentSetting.payment_method_types` and `Subscription.PaymentSetting.payment_method_types` + * Add support for `twint` on `Mandate.PaymentMethodDetail` and `SetupAttempt.PaymentMethodDetail` + * Add support for `metadata` on `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, `PaymentIntentModifyParamsTransferDatum`, and `Subscription.PendingUpdate` + * Add support for `payment_data` on `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, and `PaymentIntentModifyParamsTransferDatum` + * ⚠️ Add support for new values `bizum` and `scalapay` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` + * Add support for `blik_authorize` on `PaymentIntent.NextAction` and `SetupIntent.NextAction` + * Add support for `payment_method_options` on `PaymentLinkCreateParams`, `PaymentLinkModifyParams`, and `PaymentLink` + * Add support for new value `bizum` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkModifyParams.payment_method_types` + * ⚠️ Add support for new value `bizum` on enum `PaymentLink.payment_method_types` + * Add support for `active` on `PaymentMethodConfigurationListParams` + * Add support for `billed_until` on `SubscriptionItem` + * Add support for `discount` and `discounts` on `Subscription.PendingUpdate` + * Add support for `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on `Terminal.Configuration`, `terminal.ConfigurationCreateParams`, and `terminal.ConfigurationModifyParams` + * Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `terminal.ReaderListParams.device_type` + * Add support for `api_error` and `print_content` on `Terminal.Reader.Action` + * ⚠️ Add support for new value `print_content` on enum `Terminal.Reader.Action.type` + * ⚠️ Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `Terminal.Reader.device_type` + * Add support for `customer` on `test_helpers.TestClockCreateParams` + * Add support for new value `2026-05-27.dahlia` on enum `WebhookEndpointCreateParams.api_version` + * Add support for `signer` on `V2.Core.Account.Identity.BusinessDetail.Document.ProofOfRegistration`, `V2.Core.Account.Identity.BusinessDetail.Document.ProofOfUltimateBeneficialOwnership`, `v2.core.AccountCreateParamsIdentityBusinessDetailDocumentProofOfRegistration`, `v2.core.AccountCreateParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership`, `v2.core.AccountModifyParamsIdentityBusinessDetailDocumentProofOfRegistration`, `v2.core.AccountModifyParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailDocumentProofOfRegistration`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership` + * Add support for `azure_event_grid` on `V2.Core.EventDestination` and `v2.core.EventDestinationCreateParams` + * ⚠️ Add support for new value `no_azure_partner_topic_exists` on enum `V2.Core.EventDestination.StatusDetail.Disabled.reason` + * ⚠️ Add support for new value `azure_event_grid` on enum `V2.Core.EventDestination.type` + * Add support for new value `azure_event_grid` on enum `v2.core.EventDestinationCreateParams.type` + * ⚠️ Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.Reason.ErrorType.code` and `EventsV1BillingMeterNoMeterFoundEvent.Reason.ErrorType.code` + * Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `v2.commerce.ProductCatalogImport` + * Add support for error codes `payment_method_microdeposit_processing_error` and `siret_invalid` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` +* [#1813](https://github.com/stripe/stripe-python/pull/1813) Emit warning when `stripe-notify` header is present in response + ## 15.1.0 - 2026-04-23 This release changes the pinned API version to 2026-04-22.dahlia. diff --git a/VERSION b/VERSION index d14dfbac3..6c43fc8ae 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -15.1.0 +15.2.0 diff --git a/pyproject.toml b/pyproject.toml index ff6c7b0e0..eab5f672b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stripe" -version = "15.1.0" +version = "15.2.0" readme = "README.md" description = "Python bindings for the Stripe API" authors = [{ name = "Stripe", email = "support@stripe.com" }] diff --git a/stripe/_version.py b/stripe/_version.py index 6692d3f85..cfa8f793e 100644 --- a/stripe/_version.py +++ b/stripe/_version.py @@ -1 +1 @@ -VERSION = "15.1.0" +VERSION = "15.2.0" From 33931ac959436192a7706f043513da3d353ce031 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Mon, 1 Jun 2026 11:30:35 -0700 Subject: [PATCH 03/13] Only typecheck against a single version (#1814) * bump typecheck range in CI * fix typechecking --- .github/workflows/ci.yml | 16 +++++++--------- justfile | 6 +++--- stripe/_http_client.py | 7 +------ 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f99a88e5..f2d78f82c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: - name: Set up Python 3 uses: actions/setup-python@v4 with: - python-version: "3.10" - - name: check examples w/ mypy (against python@3.10) + python-version: "3.13" + - name: check examples w/ mypy (against python@3.13) run: just typecheck-examples # skip deps on all these since mypy installed everything - name: check linting @@ -42,13 +42,11 @@ jobs: run: just --no-deps format-check # pyright depends on node, which it handles and installs for itself as needed # we _could_ run setup-node to make it available for it if we're having reliability problems - - name: check types (all Python versions) - run: | - set -eox - - for minor in {6..12}; do - just --no-deps typecheck $minor - done + - name: check types + # only check against a modern version- unit tests will catch syntax errors on older versions + # this isn't user facing, this is just checking that our code is internally consistent + # e.g. a bug here wouldn't cause user CI to fail since the issue is internal to our codebase + run: just --no-deps typecheck build: name: Build diff --git a/justfile b/justfile index 24ae601b1..330172ff0 100644 --- a/justfile +++ b/justfile @@ -27,10 +27,10 @@ test-one test_name: install-test-deps lint: install-dev-deps python -m flake8 --show-source stripe tests -# verify types. optional argument to test as of a specific minor python version (e.g. `8` to test `python 3.8`); otherwise uses current version -typecheck minor_py_version="": install-test-deps install-dev-deps +# verify types using current python version +typecheck: install-test-deps install-dev-deps # suppress version update warnings - PYRIGHT_PYTHON_IGNORE_WARNINGS=1 pyright {{ if minor_py_version == "" { "" } else { "--pythonversion 3." + minor_py_version } }} + PYRIGHT_PYTHON_IGNORE_WARNINGS=1 pyright # ⭐ format all code format: install-dev-deps diff --git a/stripe/_http_client.py b/stripe/_http_client.py index 4fb246523..b09b4984f 100644 --- a/stripe/_http_client.py +++ b/stripe/_http_client.py @@ -149,7 +149,7 @@ def __init__( self._verify_ssl_certs = verify_ssl_certs if proxy: if isinstance(proxy, str): - proxy = {"http": proxy, "https": proxy} + proxy = HTTPClient._Proxy(http=proxy, https=proxy) if not isinstance(proxy, dict): # pyright: ignore[reportUnnecessaryIsInstance] raise ValueError( "Proxy(ies) must be specified as either a string " @@ -899,11 +899,6 @@ def close(self): pass -class _Proxy(TypedDict): - http: Optional["ParseResult"] - https: Optional["ParseResult"] - - class PycurlClient(HTTPClient): class _ParsedProxy(TypedDict, total=False): http: Optional["ParseResult"] From 2d39c3bc3ed3bcc07c1eb5516458ce63096d9984 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Fri, 5 Jun 2026 14:31:30 -0700 Subject: [PATCH 04/13] Disable trim_trailing_whitespace for CHANGELOG.md (#1822) Committed-By-Agent: claude Co-authored-by: Claude Opus 4.6 (1M context) --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.editorconfig b/.editorconfig index 1c32a5e4c..108bfbbff 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,3 +15,6 @@ indent_size = 2 [Makefile] indent_style = tab + +[CHANGELOG.md] +trim_trailing_whitespace = false From 42db177ce3777b27135554cd09a4d59256a84d3b Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Fri, 5 Jun 2026 15:18:58 -0700 Subject: [PATCH 05/13] Add Changelog section to PR template (#1823) Committed-By-Agent: claude Co-authored-by: Claude Opus 4.6 (1M context) --- .github/pull_request_template.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 312540b61..4e1cbb2de 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -9,3 +9,15 @@ List out the key changes made in this PR, e.g. ### See Also + +## Changelog + From a5536454ca270b0a0857c65f2cb9d0b636ce8bba Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 5 Jun 2026 15:45:26 -0700 Subject: [PATCH 06/13] Add source field to user-agent header (#1825) --- stripe/_api_requestor.py | 19 +++++++++++++++++++ tests/test_api_requestor.py | 31 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py index 10bdebdcc..514c8ba82 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -1,7 +1,10 @@ from io import BytesIO, IOBase +import functools +import hashlib import json import os import platform +import socket from typing import ( Any, AsyncIterable, @@ -72,6 +75,19 @@ _default_proxy: Optional[str] = None +@functools.lru_cache(maxsize=None) +def _get_uname_hash() -> Optional[str]: + try: + parts: List[str] = list(platform.uname()) + try: + parts.append(socket.gethostname()) + except Exception: + pass + return hashlib.md5(" ".join(parts).encode()).hexdigest() + except Exception: + return None + + def _maybe_emit_stripe_notice(rheaders: Mapping[str, str]) -> None: notice = rheaders.get("Stripe-Notice") if notice: @@ -525,6 +541,9 @@ def request_headers( "lang": "python", "httplib": self._get_http_client().name, } + uname_hash = _get_uname_hash() + if uname_hash is not None: + ua["source"] = uname_hash attr_funcs: List[Tuple[str, Callable[[], str]]] = [ ("lang_version", platform.python_version), ] diff --git a/tests/test_api_requestor.py b/tests/test_api_requestor.py index ff3530359..326be0bb9 100644 --- a/tests/test_api_requestor.py +++ b/tests/test_api_requestor.py @@ -1,5 +1,6 @@ import datetime import json +import re import tempfile import uuid from collections import OrderedDict @@ -788,6 +789,36 @@ def fail(): last_call.get_raw_header("X-Stripe-Client-User-Agent") ) + def test_source_field_is_md5_hex(self, requestor, http_client_mock): + http_client_mock.stub_request( + "get", path=self.v1_path, rbody="{}", rcode=200 + ) + requestor.request("get", self.v1_path, {}, base_address="api") + + last_call = http_client_mock.get_last_call() + client_ua = json.loads( + last_call.get_raw_header("X-Stripe-Client-User-Agent") + ) + assert "source" in client_ua + assert re.fullmatch(r"[0-9a-f]{32}", client_ua["source"]) + + def test_source_field_absent_when_uname_fails( + self, requestor, mocker, http_client_mock + ): + http_client_mock.stub_request( + "get", path=self.v1_path, rbody="{}", rcode=200 + ) + mocker.patch( + "stripe._api_requestor._get_uname_hash", return_value=None + ) + requestor.request("get", self.v1_path, {}, base_address="api") + + last_call = http_client_mock.get_last_call() + client_ua = json.loads( + last_call.get_raw_header("X-Stripe-Client-User-Agent") + ) + assert "source" not in client_ua + def test_uses_given_idempotency_key(self, requestor, http_client_mock): method = "post" http_client_mock.stub_request( From 36e43ba1d8304d25eba0623367ace415224c5b30 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Mon, 8 Jun 2026 10:20:26 -0700 Subject: [PATCH 07/13] docs: clarify private preview SDK access in README (#1826) Committed-By-Agent: claude --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab1ba4ce0..11c828eb6 100644 --- a/README.md +++ b/README.md @@ -280,7 +280,7 @@ stripe.add_beta_version("feature_beta", "v3") ### Private Preview SDKs -Stripe has features in the [private preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `aX` suffix like `12.2.0a2`. These are invite-only features. Once invited, you can install the private preview SDKs by following the same instructions as for the [public preview SDKs](https://github.com/stripe/stripe-python?tab=readme-ov-file#public-preview-sdks) above and replacing the suffix `b` with `a` in package versions. +Stripe has features in the [private preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `aX` suffix like `12.2.0a2`. You can install the private preview SDKs by following the same instructions as for the [public preview SDKs](https://github.com/stripe/stripe-python?tab=readme-ov-file#public-preview-sdks) above and replacing the suffix `b` with `a` in package versions. Note that access to specific private preview API features may require separate approval. ### Custom requests From 1eab0455197eb5d86f858120d062c3984a429b96 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 12 Jun 2026 15:40:56 -0700 Subject: [PATCH 08/13] Bump version to 15.2.1 --- CHANGELOG.md | 3 +++ VERSION | 2 +- pyproject.toml | 2 +- stripe/_version.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2a6e257a..e98df0c9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 15.2.1 - 2026-06-12 +* [#1825](https://github.com/stripe/stripe-python/pull/1825) Add "source" field to user-agent header + ## 15.2.0 - 2026-05-27 This release changes the pinned API version to 2026-05-27.dahlia. diff --git a/VERSION b/VERSION index 6c43fc8ae..2054e837b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -15.2.0 +15.2.1 diff --git a/pyproject.toml b/pyproject.toml index eab5f672b..3cbbb8110 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stripe" -version = "15.2.0" +version = "15.2.1" readme = "README.md" description = "Python bindings for the Stripe API" authors = [{ name = "Stripe", email = "support@stripe.com" }] diff --git a/stripe/_version.py b/stripe/_version.py index cfa8f793e..6472ba8b2 100644 --- a/stripe/_version.py +++ b/stripe/_version.py @@ -1 +1 @@ -VERSION = "15.2.0" +VERSION = "15.2.1" From a8fcb6913bd4abbe777a1944a126bdf5da36ec87 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Fri, 12 Jun 2026 16:49:18 -0700 Subject: [PATCH 09/13] Remove retired manual API tests covered by generated examples (#1829) Committed-By-Agent: claude Co-authored-by: Claude Sonnet 4.6 --- .../billing_portal/test_configuration.py | 53 --------- .../billing_portal/test_session.py | 17 --- tests/api_resources/checkout/test_session.py | 49 -------- .../identity/test_verification_report.py | 26 ----- .../identity/test_verification_session.py | 108 ------------------ .../issuing/test_authorization.py | 84 -------------- tests/api_resources/issuing/test_card.py | 51 --------- .../api_resources/issuing/test_cardholder.py | 64 ----------- tests/api_resources/issuing/test_dispute.py | 46 -------- .../api_resources/issuing/test_transaction.py | 44 ------- .../radar/test_early_fraud_warning.py | 21 ---- tests/api_resources/radar/test_value_list.py | 64 ----------- .../radar/test_value_list_item.py | 47 -------- .../reporting/test_report_run.py | 33 ------ .../reporting/test_report_type.py | 21 ---- .../sigma/test_scheduled_query_run.py | 21 ---- .../terminal/test_connection_token.py | 13 --- tests/api_resources/terminal/test_location.py | 75 ------------ tests/api_resources/terminal/test_reader.py | 80 ------------- tests/api_resources/test_account_link.py | 13 --- tests/api_resources/test_apple_pay_domain.py | 39 ------- tests/api_resources/test_application_fee.py | 54 --------- tests/api_resources/test_balance.py | 8 -- .../api_resources/test_balance_transaction.py | 21 ---- tests/api_resources/test_country_spec.py | 19 --- tests/api_resources/test_coupon.py | 67 ----------- tests/api_resources/test_credit_note.py | 79 ------------- tests/api_resources/test_dispute.py | 55 --------- tests/api_resources/test_event.py | 19 --- tests/api_resources/test_exchange_rate.py | 19 --- tests/api_resources/test_file_link.py | 45 -------- tests/api_resources/test_invoice_item.py | 66 ----------- tests/api_resources/test_mandate.py | 13 --- tests/api_resources/test_payment_intent.py | 98 ---------------- tests/api_resources/test_payment_method.py | 87 -------------- tests/api_resources/test_payout.py | 77 ------------- tests/api_resources/test_plan.py | 70 ------------ tests/api_resources/test_price.py | 54 --------- tests/api_resources/test_product.py | 62 ---------- tests/api_resources/test_refund.py | 47 -------- tests/api_resources/test_review.py | 34 ------ tests/api_resources/test_setup_attempt.py | 13 --- tests/api_resources/test_setup_intent.py | 81 ------------- .../api_resources/test_source_transaction.py | 16 --- tests/api_resources/test_subscription.py | 75 ------------ tests/api_resources/test_subscription_item.py | 70 ------------ .../test_subscription_schedule.py | 85 -------------- tests/api_resources/test_tax_code.py | 19 --- tests/api_resources/test_tax_rate.py | 51 --------- tests/api_resources/test_topup.py | 70 ------------ tests/api_resources/test_transfer.py | 96 ---------------- tests/api_resources/test_webhook_endpoint.py | 68 ----------- 52 files changed, 2607 deletions(-) delete mode 100644 tests/api_resources/billing_portal/test_configuration.py delete mode 100644 tests/api_resources/billing_portal/test_session.py delete mode 100644 tests/api_resources/checkout/test_session.py delete mode 100644 tests/api_resources/identity/test_verification_report.py delete mode 100644 tests/api_resources/identity/test_verification_session.py delete mode 100644 tests/api_resources/issuing/test_authorization.py delete mode 100644 tests/api_resources/issuing/test_card.py delete mode 100644 tests/api_resources/issuing/test_cardholder.py delete mode 100644 tests/api_resources/issuing/test_dispute.py delete mode 100644 tests/api_resources/issuing/test_transaction.py delete mode 100644 tests/api_resources/radar/test_early_fraud_warning.py delete mode 100644 tests/api_resources/radar/test_value_list.py delete mode 100644 tests/api_resources/radar/test_value_list_item.py delete mode 100644 tests/api_resources/reporting/test_report_run.py delete mode 100644 tests/api_resources/reporting/test_report_type.py delete mode 100644 tests/api_resources/sigma/test_scheduled_query_run.py delete mode 100644 tests/api_resources/terminal/test_connection_token.py delete mode 100644 tests/api_resources/terminal/test_location.py delete mode 100644 tests/api_resources/terminal/test_reader.py delete mode 100644 tests/api_resources/test_account_link.py delete mode 100644 tests/api_resources/test_apple_pay_domain.py delete mode 100644 tests/api_resources/test_application_fee.py delete mode 100644 tests/api_resources/test_balance.py delete mode 100644 tests/api_resources/test_balance_transaction.py delete mode 100644 tests/api_resources/test_country_spec.py delete mode 100644 tests/api_resources/test_coupon.py delete mode 100644 tests/api_resources/test_credit_note.py delete mode 100644 tests/api_resources/test_dispute.py delete mode 100644 tests/api_resources/test_event.py delete mode 100644 tests/api_resources/test_exchange_rate.py delete mode 100644 tests/api_resources/test_file_link.py delete mode 100644 tests/api_resources/test_invoice_item.py delete mode 100644 tests/api_resources/test_mandate.py delete mode 100644 tests/api_resources/test_payment_intent.py delete mode 100644 tests/api_resources/test_payment_method.py delete mode 100644 tests/api_resources/test_payout.py delete mode 100644 tests/api_resources/test_plan.py delete mode 100644 tests/api_resources/test_price.py delete mode 100644 tests/api_resources/test_product.py delete mode 100644 tests/api_resources/test_refund.py delete mode 100644 tests/api_resources/test_review.py delete mode 100644 tests/api_resources/test_setup_attempt.py delete mode 100644 tests/api_resources/test_setup_intent.py delete mode 100644 tests/api_resources/test_source_transaction.py delete mode 100644 tests/api_resources/test_subscription.py delete mode 100644 tests/api_resources/test_subscription_item.py delete mode 100644 tests/api_resources/test_subscription_schedule.py delete mode 100644 tests/api_resources/test_tax_code.py delete mode 100644 tests/api_resources/test_tax_rate.py delete mode 100644 tests/api_resources/test_topup.py delete mode 100644 tests/api_resources/test_transfer.py delete mode 100644 tests/api_resources/test_webhook_endpoint.py diff --git a/tests/api_resources/billing_portal/test_configuration.py b/tests/api_resources/billing_portal/test_configuration.py deleted file mode 100644 index 691a1e43f..000000000 --- a/tests/api_resources/billing_portal/test_configuration.py +++ /dev/null @@ -1,53 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "bpc_123" - - -class TestConfiguration(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.billing_portal.Configuration.create( - business_profile={ - "privacy_policy_url": "https://example.com/privacy", - "terms_of_service_url": "https://example.com/tos", - }, - features={ - "customer_update": { - "allowed_updates": ["address"], - "enabled": True, - } - }, - ) - http_client_mock.assert_requested( - "post", - path="/v1/billing_portal/configurations", - post_data="business_profile[privacy_policy_url]=https://example.com/privacy&business_profile[terms_of_service_url]=https://example.com/tos&features[customer_update][allowed_updates][0]=address&features[customer_update][enabled]=true", - ) - assert isinstance(resource, stripe.billing_portal.Configuration) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.billing_portal.Configuration.retrieve( - TEST_RESOURCE_ID - ) - http_client_mock.assert_requested( - "get", - path="/v1/billing_portal/configurations/%s" % (TEST_RESOURCE_ID), - ) - assert isinstance(resource, stripe.billing_portal.Configuration) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.billing_portal.Configuration.modify(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/billing_portal/configurations/%s" % (TEST_RESOURCE_ID), - ) - assert isinstance(resource, stripe.billing_portal.Configuration) - - def test_is_listable(self, http_client_mock): - resource = stripe.billing_portal.Configuration.list() - http_client_mock.assert_requested( - "get", path="/v1/billing_portal/configurations" - ) - assert isinstance( - resource.data[0], stripe.billing_portal.Configuration - ) diff --git a/tests/api_resources/billing_portal/test_session.py b/tests/api_resources/billing_portal/test_session.py deleted file mode 100644 index b1d61a1d1..000000000 --- a/tests/api_resources/billing_portal/test_session.py +++ /dev/null @@ -1,17 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "pts_123" - - -class TestSession(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.billing_portal.Session.create( - customer="cus_123", return_url="https://stripe.com/return" - ) - http_client_mock.assert_requested( - "post", - path="/v1/billing_portal/sessions", - post_data="customer=cus_123&return_url=https://stripe.com/return", - ) - assert isinstance(resource, stripe.billing_portal.Session) diff --git a/tests/api_resources/checkout/test_session.py b/tests/api_resources/checkout/test_session.py deleted file mode 100644 index d49ad902a..000000000 --- a/tests/api_resources/checkout/test_session.py +++ /dev/null @@ -1,49 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "cs_123" - - -class TestSession(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.checkout.Session.create( - cancel_url="https://stripe.com/cancel", - client_reference_id="1234", - line_items=[ - { - "amount": 123, - "currency": "usd", - "description": "item 1", - "images": ["https://stripe.com/img1"], - "name": "name", - "quantity": 2, - } - ], - payment_intent_data={"receipt_email": "test@stripe.com"}, - payment_method_types=["card"], - success_url="https://stripe.com/success", - ) - http_client_mock.assert_requested( - "post", - path="/v1/checkout/sessions", - post_data="cancel_url=https://stripe.com/cancel&client_reference_id=1234&line_items[0][amount]=123&line_items[0][currency]=usd&line_items[0][description]=item+1&line_items[0][images][0]=https://stripe.com/img1&line_items[0][name]=name&line_items[0][quantity]=2&payment_intent_data[receipt_email]=test@stripe.com&payment_method_types[0]=card&success_url=https://stripe.com/success", - ) - assert isinstance(resource, stripe.checkout.Session) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.checkout.Session.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/checkout/sessions/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.checkout.Session) - - -class TestSessionLineItems(object): - def test_is_listable(self, http_client_mock): - resources = stripe.checkout.Session.list_line_items(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", - path="/v1/checkout/sessions/%s/line_items" % TEST_RESOURCE_ID, - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.LineItem) diff --git a/tests/api_resources/identity/test_verification_report.py b/tests/api_resources/identity/test_verification_report.py deleted file mode 100644 index ddec8d142..000000000 --- a/tests/api_resources/identity/test_verification_report.py +++ /dev/null @@ -1,26 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "vs_123" - - -class TestVerificationReport(object): - def test_is_listable(self, http_client_mock): - resources = stripe.identity.VerificationReport.list() - http_client_mock.assert_requested( - "get", path="/v1/identity/verification_reports" - ) - assert isinstance(resources.data, list) - assert isinstance( - resources.data[0], stripe.identity.VerificationReport - ) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.identity.VerificationReport.retrieve( - TEST_RESOURCE_ID - ) - http_client_mock.assert_requested( - "get", - path="/v1/identity/verification_reports/%s" % TEST_RESOURCE_ID, - ) - assert isinstance(resource, stripe.identity.VerificationReport) diff --git a/tests/api_resources/identity/test_verification_session.py b/tests/api_resources/identity/test_verification_session.py deleted file mode 100644 index ad7b8163d..000000000 --- a/tests/api_resources/identity/test_verification_session.py +++ /dev/null @@ -1,108 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "vs_123" - - -class TestVerificationSession(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.identity.VerificationSession.create(type="id_number") - http_client_mock.assert_requested( - "post", - path="/v1/identity/verification_sessions", - post_data="type=id_number", - ) - assert isinstance(resource, stripe.identity.VerificationSession) - - def test_is_listable(self, http_client_mock): - resources = stripe.identity.VerificationSession.list() - http_client_mock.assert_requested( - "get", path="/v1/identity/verification_sessions" - ) - assert isinstance(resources.data, list) - assert isinstance( - resources.data[0], stripe.identity.VerificationSession - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.identity.VerificationSession.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/identity/verification_sessions/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.identity.VerificationSession) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.identity.VerificationSession.retrieve( - TEST_RESOURCE_ID - ) - http_client_mock.assert_requested( - "get", - path="/v1/identity/verification_sessions/%s" % TEST_RESOURCE_ID, - ) - assert isinstance(resource, stripe.identity.VerificationSession) - - def test_is_saveable(self, http_client_mock): - resource = stripe.identity.VerificationSession.retrieve( - TEST_RESOURCE_ID - ) - resource.metadata["key"] = "value" - verification_session = resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/identity/verification_sessions/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.identity.VerificationSession) - assert resource is verification_session - - def test_can_cancel(self, http_client_mock): - resource = stripe.identity.VerificationSession.retrieve( - TEST_RESOURCE_ID - ) - verification_session = resource.cancel() - http_client_mock.assert_requested( - "post", - path="/v1/identity/verification_sessions/%s/cancel" - % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.identity.VerificationSession) - assert resource is verification_session - - def test_can_cancel_classmethod(self, http_client_mock): - resource = stripe.identity.VerificationSession.cancel(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/identity/verification_sessions/%s/cancel" - % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.identity.VerificationSession) - - def test_can_redact(self, http_client_mock): - resource = stripe.identity.VerificationSession.retrieve( - TEST_RESOURCE_ID - ) - verification_session = resource.redact() - http_client_mock.assert_requested( - "post", - path="/v1/identity/verification_sessions/%s/redact" - % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.identity.VerificationSession) - assert resource is verification_session - - def test_can_redact_classmethod(self, http_client_mock): - resource = stripe.identity.VerificationSession.redact(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/identity/verification_sessions/%s/redact" - % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.identity.VerificationSession) diff --git a/tests/api_resources/issuing/test_authorization.py b/tests/api_resources/issuing/test_authorization.py deleted file mode 100644 index c3f07d3e8..000000000 --- a/tests/api_resources/issuing/test_authorization.py +++ /dev/null @@ -1,84 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "iauth_123" - - -class TestAuthorization(object): - def test_is_listable(self, http_client_mock): - resources = stripe.issuing.Authorization.list() - http_client_mock.assert_requested( - "get", path="/v1/issuing/authorizations" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.issuing.Authorization) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.issuing.Authorization.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/authorizations/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.issuing.Authorization) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.issuing.Authorization.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/issuing/authorizations/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.issuing.Authorization) - - def test_is_saveable(self, http_client_mock): - resource = stripe.issuing.Authorization.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - authorization = resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/issuing/authorizations/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.issuing.Authorization) - assert resource is authorization - - def test_can_approve(self, http_client_mock): - resource = stripe.issuing.Authorization.retrieve(TEST_RESOURCE_ID) - authorization = resource.approve() - http_client_mock.assert_requested( - "post", - path="/v1/issuing/authorizations/%s/approve" % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.issuing.Authorization) - assert resource is authorization - - def test_can_approve_classmethod(self, http_client_mock): - resource = stripe.issuing.Authorization.approve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/authorizations/%s/approve" % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.issuing.Authorization) - - def test_can_decline(self, http_client_mock): - resource = stripe.issuing.Authorization.retrieve(TEST_RESOURCE_ID) - authorization = resource.decline() - http_client_mock.assert_requested( - "post", - path="/v1/issuing/authorizations/%s/decline" % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.issuing.Authorization) - assert resource is authorization - - def test_can_decline_classmethod(self, http_client_mock): - resource = stripe.issuing.Authorization.decline(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/authorizations/%s/decline" % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.issuing.Authorization) diff --git a/tests/api_resources/issuing/test_card.py b/tests/api_resources/issuing/test_card.py deleted file mode 100644 index b9a27fe79..000000000 --- a/tests/api_resources/issuing/test_card.py +++ /dev/null @@ -1,51 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "ic_123" - - -class TestCard(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.issuing.Card.create(currency="usd", type="physical") - http_client_mock.assert_requested( - "post", - path="/v1/issuing/cards", - post_data="currency=usd&type=physical", - ) - assert isinstance(resource, stripe.issuing.Card) - - def test_is_listable(self, http_client_mock): - resources = stripe.issuing.Card.list() - http_client_mock.assert_requested("get", path="/v1/issuing/cards") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.issuing.Card) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.issuing.Card.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/cards/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.issuing.Card) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.issuing.Card.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/issuing/cards/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.issuing.Card) - - def test_is_saveable(self, http_client_mock): - resource = stripe.issuing.Card.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - card = resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/issuing/cards/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.issuing.Card) - assert resource is card diff --git a/tests/api_resources/issuing/test_cardholder.py b/tests/api_resources/issuing/test_cardholder.py deleted file mode 100644 index 26577aa25..000000000 --- a/tests/api_resources/issuing/test_cardholder.py +++ /dev/null @@ -1,64 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "ich_123" - - -class TestCardholder(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.issuing.Cardholder.create( - billing={ - "address": { - "city": "city", - "country": "US", - "line1": "line1", - "postal_code": "postal_code", - } - }, - name="Jenny Rosen", - type="individual", - ) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/cardholders", - post_data="billing[address][city]=city&billing[address][country]=US&billing[address][line1]=line1&billing[address][postal_code]=postal_code&name=Jenny+Rosen&type=individual", - ) - assert isinstance(resource, stripe.issuing.Cardholder) - - def test_is_listable(self, http_client_mock): - resources = stripe.issuing.Cardholder.list() - http_client_mock.assert_requested( - "get", path="/v1/issuing/cardholders" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.issuing.Cardholder) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.issuing.Cardholder.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/cardholders/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.issuing.Cardholder) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.issuing.Cardholder.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/issuing/cardholders/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.issuing.Cardholder) - - def test_is_saveable(self, http_client_mock): - resource = stripe.issuing.Cardholder.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - cardholder = resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/issuing/cardholders/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.issuing.Cardholder) - assert resource is cardholder diff --git a/tests/api_resources/issuing/test_dispute.py b/tests/api_resources/issuing/test_dispute.py deleted file mode 100644 index 2e6259ff2..000000000 --- a/tests/api_resources/issuing/test_dispute.py +++ /dev/null @@ -1,46 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "idp_123" - - -class TestDispute(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.issuing.Dispute.create(transaction="ipi_123") - http_client_mock.assert_requested( - "post", - path="/v1/issuing/disputes", - post_data="transaction=ipi_123", - ) - assert isinstance(resource, stripe.issuing.Dispute) - - def test_is_listable(self, http_client_mock): - resources = stripe.issuing.Dispute.list() - http_client_mock.assert_requested("get", path="/v1/issuing/disputes") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.issuing.Dispute) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.issuing.Dispute.modify(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/disputes/%s" % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.issuing.Dispute) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.issuing.Dispute.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/issuing/disputes/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.issuing.Dispute) - - def test_is_submittable(self, http_client_mock): - resource = stripe.issuing.Dispute.submit(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/disputes/%s/submit" % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.issuing.Dispute) diff --git a/tests/api_resources/issuing/test_transaction.py b/tests/api_resources/issuing/test_transaction.py deleted file mode 100644 index 5dfe319bb..000000000 --- a/tests/api_resources/issuing/test_transaction.py +++ /dev/null @@ -1,44 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "ipi_123" - - -class TestTransaction(object): - def test_is_listable(self, http_client_mock): - resources = stripe.issuing.Transaction.list() - http_client_mock.assert_requested( - "get", path="/v1/issuing/transactions" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.issuing.Transaction) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.issuing.Transaction.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/issuing/transactions/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.issuing.Transaction) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.issuing.Transaction.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/issuing/transactions/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.issuing.Transaction) - - def test_is_saveable(self, http_client_mock): - resource = stripe.issuing.Transaction.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - transaction = resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/issuing/transactions/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.issuing.Transaction) - assert resource is transaction diff --git a/tests/api_resources/radar/test_early_fraud_warning.py b/tests/api_resources/radar/test_early_fraud_warning.py deleted file mode 100644 index cf36e06cd..000000000 --- a/tests/api_resources/radar/test_early_fraud_warning.py +++ /dev/null @@ -1,21 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "issfr_123" - - -class TestEarlyFraudWarning(object): - def test_is_listable(self, http_client_mock): - resources = stripe.radar.EarlyFraudWarning.list() - http_client_mock.assert_requested( - "get", path="/v1/radar/early_fraud_warnings" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.radar.EarlyFraudWarning) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.radar.EarlyFraudWarning.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/radar/early_fraud_warnings/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.radar.EarlyFraudWarning) diff --git a/tests/api_resources/radar/test_value_list.py b/tests/api_resources/radar/test_value_list.py deleted file mode 100644 index 75dca7fe2..000000000 --- a/tests/api_resources/radar/test_value_list.py +++ /dev/null @@ -1,64 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "rsl_123" - - -class TestValueList(object): - def test_is_listable(self, http_client_mock): - resources = stripe.radar.ValueList.list() - http_client_mock.assert_requested("get", path="/v1/radar/value_lists") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.radar.ValueList) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.radar.ValueList.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/radar/value_lists/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.radar.ValueList) - - def test_is_creatable(self, http_client_mock): - resource = stripe.radar.ValueList.create(alias="alias", name="name") - http_client_mock.assert_requested( - "post", - path="/v1/radar/value_lists", - post_data="alias=alias&name=name", - ) - assert isinstance(resource, stripe.radar.ValueList) - - def test_is_saveable(self, http_client_mock): - resource = stripe.radar.ValueList.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/radar/value_lists/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.radar.ValueList.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/radar/value_lists/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.radar.ValueList) - - def test_is_deletable(self, http_client_mock): - resource = stripe.radar.ValueList.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/radar/value_lists/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.radar.ValueList.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/radar/value_lists/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/radar/test_value_list_item.py b/tests/api_resources/radar/test_value_list_item.py deleted file mode 100644 index 5ccc64511..000000000 --- a/tests/api_resources/radar/test_value_list_item.py +++ /dev/null @@ -1,47 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "rsli_123" - - -class TestValueListItem(object): - def test_is_listable(self, http_client_mock): - resources = stripe.radar.ValueListItem.list(value_list="rsl_123") - http_client_mock.assert_requested( - "get", path="/v1/radar/value_list_items" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.radar.ValueListItem) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.radar.ValueListItem.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/radar/value_list_items/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.radar.ValueListItem) - - def test_is_creatable(self, http_client_mock): - resource = stripe.radar.ValueListItem.create( - value_list="rsl_123", value="value" - ) - http_client_mock.assert_requested( - "post", - path="/v1/radar/value_list_items", - post_data="value_list=rsl_123&value=value", - ) - assert isinstance(resource, stripe.radar.ValueListItem) - - def test_is_deletable(self, http_client_mock): - resource = stripe.radar.ValueListItem.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/radar/value_list_items/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.radar.ValueListItem.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/radar/value_list_items/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/reporting/test_report_run.py b/tests/api_resources/reporting/test_report_run.py deleted file mode 100644 index 0634e9fa9..000000000 --- a/tests/api_resources/reporting/test_report_run.py +++ /dev/null @@ -1,33 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "frr_123" - - -class TestReportRun(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.reporting.ReportRun.create( - parameters={"connected_account": "acct_123"}, - report_type="activity.summary.1", - ) - http_client_mock.assert_requested( - "post", - path="/v1/reporting/report_runs", - post_data="parameters[connected_account]=acct_123&report_type=activity.summary.1", - ) - assert isinstance(resource, stripe.reporting.ReportRun) - - def test_is_listable(self, http_client_mock): - resources = stripe.reporting.ReportRun.list() - http_client_mock.assert_requested( - "get", path="/v1/reporting/report_runs" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.reporting.ReportRun) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.reporting.ReportRun.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/reporting/report_runs/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.reporting.ReportRun) diff --git a/tests/api_resources/reporting/test_report_type.py b/tests/api_resources/reporting/test_report_type.py deleted file mode 100644 index e71396538..000000000 --- a/tests/api_resources/reporting/test_report_type.py +++ /dev/null @@ -1,21 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "activity.summary.1" - - -class TestReportType(object): - def test_is_listable(self, http_client_mock): - resources = stripe.reporting.ReportType.list() - http_client_mock.assert_requested( - "get", path="/v1/reporting/report_types" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.reporting.ReportType) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.reporting.ReportType.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/reporting/report_types/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.reporting.ReportType) diff --git a/tests/api_resources/sigma/test_scheduled_query_run.py b/tests/api_resources/sigma/test_scheduled_query_run.py deleted file mode 100644 index 4b18d4f79..000000000 --- a/tests/api_resources/sigma/test_scheduled_query_run.py +++ /dev/null @@ -1,21 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "sqr_123" - - -class TestTransaction(object): - def test_is_listable(self, http_client_mock): - resources = stripe.sigma.ScheduledQueryRun.list() - http_client_mock.assert_requested( - "get", path="/v1/sigma/scheduled_query_runs" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.sigma.ScheduledQueryRun) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.sigma.ScheduledQueryRun.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/sigma/scheduled_query_runs/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.sigma.ScheduledQueryRun) diff --git a/tests/api_resources/terminal/test_connection_token.py b/tests/api_resources/terminal/test_connection_token.py deleted file mode 100644 index 3925d0354..000000000 --- a/tests/api_resources/terminal/test_connection_token.py +++ /dev/null @@ -1,13 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "rdr_123" - - -class TestConnectionToken(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.terminal.ConnectionToken.create() - http_client_mock.assert_requested( - "post", path="/v1/terminal/connection_tokens", post_data="" - ) - assert isinstance(resource, stripe.terminal.ConnectionToken) diff --git a/tests/api_resources/terminal/test_location.py b/tests/api_resources/terminal/test_location.py deleted file mode 100644 index 1d33fa60d..000000000 --- a/tests/api_resources/terminal/test_location.py +++ /dev/null @@ -1,75 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "loc_123" - - -class TestLocation(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.terminal.Location.create( - display_name="name", - address={ - "line1": "line1", - "country": "US", - "state": "CA", - "postal_code": "12345", - "city": "San Francisco", - }, - ) - http_client_mock.assert_requested( - "post", - path="/v1/terminal/locations", - post_data="display_name=name&address[city]=San+Francisco&address[country]=US&address[line1]=line1&address[postal_code]=12345&address[state]=CA", - ) - assert isinstance(resource, stripe.terminal.Location) - - def test_is_listable(self, http_client_mock): - resources = stripe.terminal.Location.list() - http_client_mock.assert_requested("get", path="/v1/terminal/locations") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.terminal.Location) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.terminal.Location.modify( - TEST_RESOURCE_ID, display_name="new-name" - ) - http_client_mock.assert_requested( - "post", - path="/v1/terminal/locations/%s" % TEST_RESOURCE_ID, - post_data="display_name=new-name", - ) - assert isinstance(resource, stripe.terminal.Location) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.terminal.Location.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/terminal/locations/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.terminal.Location) - - def test_is_saveable(self, http_client_mock): - resource = stripe.terminal.Location.retrieve(TEST_RESOURCE_ID) - resource.display_name = "new-name" - location = resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/terminal/locations/%s" % TEST_RESOURCE_ID, - post_data="display_name=new-name", - ) - assert isinstance(resource, stripe.terminal.Location) - assert resource is location - - def test_is_deletable(self, http_client_mock): - resource = stripe.terminal.Location.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/terminal/locations/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.terminal.Location.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/terminal/locations/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/terminal/test_reader.py b/tests/api_resources/terminal/test_reader.py deleted file mode 100644 index 486ba38e0..000000000 --- a/tests/api_resources/terminal/test_reader.py +++ /dev/null @@ -1,80 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "rdr_123" - - -class TestReader(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.terminal.Reader.create( - registration_code="a-b-c", label="name" - ) - http_client_mock.assert_requested( - "post", - path="/v1/terminal/readers", - post_data="label=name®istration_code=a-b-c", - ) - assert isinstance(resource, stripe.terminal.Reader) - - def test_is_listable(self, http_client_mock): - resources = stripe.terminal.Reader.list() - http_client_mock.assert_requested("get", path="/v1/terminal/readers") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.terminal.Reader) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.terminal.Reader.modify( - TEST_RESOURCE_ID, label="new-name" - ) - http_client_mock.assert_requested( - "post", - path="/v1/terminal/readers/%s" % TEST_RESOURCE_ID, - post_data="label=new-name", - ) - assert isinstance(resource, stripe.terminal.Reader) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.terminal.Reader.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/terminal/readers/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.terminal.Reader) - - def test_is_saveable(self, http_client_mock): - resource = stripe.terminal.Reader.retrieve(TEST_RESOURCE_ID) - resource.label = "new-name" - reader = resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/terminal/readers/%s" % TEST_RESOURCE_ID, - post_data="label=new-name", - ) - assert isinstance(resource, stripe.terminal.Reader) - assert resource is reader - - def test_is_deletable(self, http_client_mock): - resource = stripe.terminal.Reader.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/terminal/readers/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.terminal.Reader.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/terminal/readers/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_present_payment_method(self, http_client_mock): - resource = stripe.terminal.Reader.TestHelpers.present_payment_method( - TEST_RESOURCE_ID - ) - http_client_mock.assert_requested( - "post", - path="/v1/test_helpers/terminal/readers/%s/present_payment_method" - % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.terminal.Reader) diff --git a/tests/api_resources/test_account_link.py b/tests/api_resources/test_account_link.py deleted file mode 100644 index fdb97925e..000000000 --- a/tests/api_resources/test_account_link.py +++ /dev/null @@ -1,13 +0,0 @@ -import stripe - - -class TestAccountLink(object): - def test_is_creatable(self, http_client_mock): - resource = stripe.AccountLink.create( - account="acct_123", - refresh_url="https://stripe.com/failure", - return_url="https://stripe.com/success", - type="account_onboarding", - ) - http_client_mock.assert_requested("post", path="/v1/account_links") - assert isinstance(resource, stripe.AccountLink) diff --git a/tests/api_resources/test_apple_pay_domain.py b/tests/api_resources/test_apple_pay_domain.py deleted file mode 100644 index 1996e2f8d..000000000 --- a/tests/api_resources/test_apple_pay_domain.py +++ /dev/null @@ -1,39 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "apwc_123" - - -class TestApplePayDomain(object): - def test_is_listable(self, http_client_mock): - resources = stripe.ApplePayDomain.list() - http_client_mock.assert_requested("get", path="/v1/apple_pay/domains") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.ApplePayDomain) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.ApplePayDomain.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/apple_pay/domains/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.ApplePayDomain) - - def test_is_creatable(self, http_client_mock): - resource = stripe.ApplePayDomain.create(domain_name="test.com") - http_client_mock.assert_requested("post", path="/v1/apple_pay/domains") - assert isinstance(resource, stripe.ApplePayDomain) - - def test_is_deletable(self, http_client_mock): - resource = stripe.ApplePayDomain.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/apple_pay/domains/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.ApplePayDomain.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/apple_pay/domains/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/test_application_fee.py b/tests/api_resources/test_application_fee.py deleted file mode 100644 index 01492c6ec..000000000 --- a/tests/api_resources/test_application_fee.py +++ /dev/null @@ -1,54 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "fee_123" -TEST_FEEREFUND_ID = "fr_123" - - -class TestApplicationFee(object): - def test_is_listable(self, http_client_mock): - resources = stripe.ApplicationFee.list() - http_client_mock.assert_requested("get", path="/v1/application_fees") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.ApplicationFee) - - -class TestApplicationFeeRefunds(object): - def test_is_listable(self, http_client_mock): - resources = stripe.ApplicationFee.list_refunds(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/application_fees/%s/refunds" % TEST_RESOURCE_ID - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.ApplicationFeeRefund) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.ApplicationFee.retrieve_refund( - TEST_RESOURCE_ID, TEST_FEEREFUND_ID - ) - http_client_mock.assert_requested( - "get", - path="/v1/application_fees/%s/refunds/%s" - % (TEST_RESOURCE_ID, TEST_FEEREFUND_ID), - ) - assert isinstance(resource, stripe.ApplicationFeeRefund) - - def test_is_creatable(self, http_client_mock): - resource = stripe.ApplicationFee.create_refund( - TEST_RESOURCE_ID, amount=100 - ) - http_client_mock.assert_requested( - "post", path="/v1/application_fees/%s/refunds" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.ApplicationFeeRefund) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.ApplicationFee.modify_refund( - TEST_RESOURCE_ID, TEST_FEEREFUND_ID, metadata={"foo": "bar"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/application_fees/%s/refunds/%s" - % (TEST_RESOURCE_ID, TEST_FEEREFUND_ID), - ) - assert isinstance(resource, stripe.ApplicationFeeRefund) diff --git a/tests/api_resources/test_balance.py b/tests/api_resources/test_balance.py deleted file mode 100644 index f56dc3a87..000000000 --- a/tests/api_resources/test_balance.py +++ /dev/null @@ -1,8 +0,0 @@ -import stripe - - -class TestBalance(object): - def test_is_retrievable(self, http_client_mock): - resource = stripe.Balance.retrieve() - http_client_mock.assert_requested("get", path="/v1/balance") - assert isinstance(resource, stripe.Balance) diff --git a/tests/api_resources/test_balance_transaction.py b/tests/api_resources/test_balance_transaction.py deleted file mode 100644 index 46e1ca7df..000000000 --- a/tests/api_resources/test_balance_transaction.py +++ /dev/null @@ -1,21 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "txn_123" - - -class TestBalanceTransaction(object): - def test_is_listable(self, http_client_mock): - resources = stripe.BalanceTransaction.list() - http_client_mock.assert_requested( - "get", path="/v1/balance_transactions" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.BalanceTransaction) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.BalanceTransaction.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/balance_transactions/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.BalanceTransaction) diff --git a/tests/api_resources/test_country_spec.py b/tests/api_resources/test_country_spec.py deleted file mode 100644 index 314034d19..000000000 --- a/tests/api_resources/test_country_spec.py +++ /dev/null @@ -1,19 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "US" - - -class TestCountrySpec(object): - def test_is_listable(self, http_client_mock): - resources = stripe.CountrySpec.list() - http_client_mock.assert_requested("get", path="/v1/country_specs") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.CountrySpec) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.CountrySpec.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/country_specs/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.CountrySpec) diff --git a/tests/api_resources/test_coupon.py b/tests/api_resources/test_coupon.py deleted file mode 100644 index 99e18eae1..000000000 --- a/tests/api_resources/test_coupon.py +++ /dev/null @@ -1,67 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "250FF" - - -class TestCoupon(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Coupon.list() - http_client_mock.assert_requested("get", path="/v1/coupons") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Coupon) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Coupon.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/coupons/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Coupon) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Coupon.create( - percent_off=25, - duration="repeating", - duration_in_months=3, - id="250FF", - ) - http_client_mock.assert_requested( - "post", - path="/v1/coupons", - post_data="duration=repeating&duration_in_months=3&id=250FF&percent_off=25", - ) - assert isinstance(resource, stripe.Coupon) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Coupon.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/coupons/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Coupon.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", path="/v1/coupons/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Coupon) - - def test_is_deletable(self, http_client_mock): - resource = stripe.Coupon.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/coupons/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.Coupon.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/coupons/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/test_credit_note.py b/tests/api_resources/test_credit_note.py deleted file mode 100644 index c4ee7df8b..000000000 --- a/tests/api_resources/test_credit_note.py +++ /dev/null @@ -1,79 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "cn_123" - - -class TestCreditNote(object): - def test_is_listable(self, http_client_mock): - resources = stripe.CreditNote.list() - http_client_mock.assert_requested("get", path="/v1/credit_notes") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.CreditNote) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.CreditNote.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/credit_notes/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.CreditNote) - - def test_is_creatable(self, http_client_mock): - resource = stripe.CreditNote.create( - amount=100, invoice="in_123", reason="duplicate" - ) - http_client_mock.assert_requested( - "post", - path="/v1/credit_notes", - post_data="amount=100&invoice=in_123&reason=duplicate", - ) - assert isinstance(resource, stripe.CreditNote) - - def test_is_saveable(self, http_client_mock): - resource = stripe.CreditNote.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/credit_notes/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.CreditNote.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/credit_notes/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.CreditNote) - - def test_can_preview(self, http_client_mock): - resource = stripe.CreditNote.preview(invoice="in_123", amount=500) - http_client_mock.assert_requested( - "get", - path="/v1/credit_notes/preview", - query_string="amount=500&invoice=in_123", - ) - assert isinstance(resource, stripe.CreditNote) - - def test_can_void_credit_note(self, http_client_mock): - resource = stripe.CreditNote.retrieve(TEST_RESOURCE_ID) - resource = resource.void_credit_note() - http_client_mock.assert_requested( - "post", - path="/v1/credit_notes/%s/void" % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.CreditNote) - - def test_can_void_credit_note_classmethod(self, http_client_mock): - resource = stripe.CreditNote.void_credit_note(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/credit_notes/%s/void" % TEST_RESOURCE_ID, - post_data="", - ) - assert isinstance(resource, stripe.CreditNote) diff --git a/tests/api_resources/test_dispute.py b/tests/api_resources/test_dispute.py deleted file mode 100644 index 9c1e66e43..000000000 --- a/tests/api_resources/test_dispute.py +++ /dev/null @@ -1,55 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "dp_123" - - -class TestDispute(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Dispute.list() - http_client_mock.assert_requested("get", path="/v1/disputes") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Dispute) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Dispute.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/disputes/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Dispute) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Dispute.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/disputes/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Dispute.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/disputes/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Dispute) - - def test_can_close(self, http_client_mock): - resource = stripe.Dispute.retrieve(TEST_RESOURCE_ID) - resource.close() - http_client_mock.assert_requested( - "post", path="/v1/disputes/%s/close" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Dispute) - - def test_can_close_classmethod(self, http_client_mock): - resource = stripe.Dispute.close(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/disputes/%s/close" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Dispute) diff --git a/tests/api_resources/test_event.py b/tests/api_resources/test_event.py deleted file mode 100644 index d82763840..000000000 --- a/tests/api_resources/test_event.py +++ /dev/null @@ -1,19 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "evt_123" - - -class TestEvent(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Event.list() - http_client_mock.assert_requested("get", path="/v1/events") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Event) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Event.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/events/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Event) diff --git a/tests/api_resources/test_exchange_rate.py b/tests/api_resources/test_exchange_rate.py deleted file mode 100644 index 77133648d..000000000 --- a/tests/api_resources/test_exchange_rate.py +++ /dev/null @@ -1,19 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "usd" - - -class TestExchangeRate(object): - def test_is_listable(self, http_client_mock): - resources = stripe.ExchangeRate.list() - http_client_mock.assert_requested("get", path="/v1/exchange_rates") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.ExchangeRate) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.ExchangeRate.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/exchange_rates/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.ExchangeRate) diff --git a/tests/api_resources/test_file_link.py b/tests/api_resources/test_file_link.py deleted file mode 100644 index 1644b799c..000000000 --- a/tests/api_resources/test_file_link.py +++ /dev/null @@ -1,45 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "link_123" - - -class TestFileLink(object): - def test_is_listable(self, http_client_mock): - resources = stripe.FileLink.list() - http_client_mock.assert_requested("get", path="/v1/file_links") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.FileLink) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.FileLink.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/file_links/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.FileLink) - - def test_is_creatable(self, http_client_mock): - resource = stripe.FileLink.create(file="file_123") - http_client_mock.assert_requested("post", path="/v1/file_links") - assert isinstance(resource, stripe.FileLink) - - def test_is_saveable(self, http_client_mock): - resource = stripe.FileLink.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/file_links/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.FileLink.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/file_links/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.FileLink) diff --git a/tests/api_resources/test_invoice_item.py b/tests/api_resources/test_invoice_item.py deleted file mode 100644 index 0ffb1f0a1..000000000 --- a/tests/api_resources/test_invoice_item.py +++ /dev/null @@ -1,66 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "ii_123" - - -class TestInvoiceItem(object): - def test_is_listable(self, http_client_mock): - resources = stripe.InvoiceItem.list() - http_client_mock.assert_requested("get", path="/v1/invoiceitems") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.InvoiceItem) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.InvoiceItem.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/invoiceitems/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.InvoiceItem) - - def test_is_creatable(self, http_client_mock): - resource = stripe.InvoiceItem.create( - customer="cus_123", amount=123, currency="usd" - ) - http_client_mock.assert_requested( - "post", - path="/v1/invoiceitems", - post_data="customer=cus_123&amount=123¤cy=usd", - ) - assert isinstance(resource, stripe.InvoiceItem) - - def test_is_saveable(self, http_client_mock): - resource = stripe.InvoiceItem.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/invoiceitems/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_can_delete(self, http_client_mock): - resource = stripe.InvoiceItem.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/invoiceitems/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_is_modifiable(self, http_client_mock): - resource = stripe.InvoiceItem.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/invoiceitems/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.InvoiceItem) - - def test_is_deletable(self, http_client_mock): - resource = stripe.InvoiceItem.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/invoiceitems/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/test_mandate.py b/tests/api_resources/test_mandate.py deleted file mode 100644 index f7a7f6146..000000000 --- a/tests/api_resources/test_mandate.py +++ /dev/null @@ -1,13 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "mandate_123" - - -class TestMandateSchedule(object): - def test_is_retrievable(self, http_client_mock): - resource = stripe.Mandate.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/mandates/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Mandate) diff --git a/tests/api_resources/test_payment_intent.py b/tests/api_resources/test_payment_intent.py deleted file mode 100644 index 38493b698..000000000 --- a/tests/api_resources/test_payment_intent.py +++ /dev/null @@ -1,98 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "pi_123" - - -class TestPaymentIntent(object): - def test_is_listable(self, http_client_mock): - resources = stripe.PaymentIntent.list() - http_client_mock.assert_requested("get", path="/v1/payment_intents") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.PaymentIntent) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/payment_intents/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_is_creatable(self, http_client_mock): - resource = stripe.PaymentIntent.create( - amount="1234", currency="amount", payment_method_types=["card"] - ) - http_client_mock.assert_requested( - "post", - path="/v1/payment_intents", - post_data="amount=1234¤cy=amount&payment_method_types[0]=card", - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.PaymentIntent.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/payment_intents/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_is_saveable(self, http_client_mock): - resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID) - - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/payment_intents/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_can_cancel(self, http_client_mock): - resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID) - resource.cancel() - http_client_mock.assert_requested( - "post", path="/v1/payment_intents/%s/cancel" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_can_cancel_classmethod(self, http_client_mock): - resource = stripe.PaymentIntent.cancel(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/payment_intents/%s/cancel" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_can_capture(self, http_client_mock): - resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID) - resource.capture() - http_client_mock.assert_requested( - "post", path="/v1/payment_intents/%s/capture" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_can_capture_classmethod(self, http_client_mock): - resource = stripe.PaymentIntent.capture(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/payment_intents/%s/capture" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_can_confirm(self, http_client_mock): - resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID) - resource.confirm() - http_client_mock.assert_requested( - "post", path="/v1/payment_intents/%s/confirm" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentIntent) - - def test_can_confirm_classmethod(self, http_client_mock): - resource = stripe.PaymentIntent.confirm(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/payment_intents/%s/confirm" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentIntent) diff --git a/tests/api_resources/test_payment_method.py b/tests/api_resources/test_payment_method.py deleted file mode 100644 index 12efe3c83..000000000 --- a/tests/api_resources/test_payment_method.py +++ /dev/null @@ -1,87 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "pm_123" - - -class TestPaymentMethod(object): - def test_is_listable(self, http_client_mock): - resources = stripe.PaymentMethod.list(customer="cus_123", type="card") - http_client_mock.assert_requested("get", path="/v1/payment_methods") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.PaymentMethod) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.PaymentMethod.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/payment_methods/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentMethod) - - def test_is_creatable(self, http_client_mock): - resource = stripe.PaymentMethod.create( - type="card", card={"token": "tok_123"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/payment_methods", - post_data="type=card&card[token]=tok_123", - ) - assert isinstance(resource, stripe.PaymentMethod) - - def test_is_saveable(self, http_client_mock): - resource = stripe.PaymentMethod.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/payment_methods/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.PaymentMethod.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/payment_methods/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.PaymentMethod) - - def test_can_attach(self, http_client_mock): - resource = stripe.PaymentMethod.retrieve(TEST_RESOURCE_ID) - resource = resource.attach(customer="cus_123") - http_client_mock.assert_requested( - "post", - path="/v1/payment_methods/%s/attach" % TEST_RESOURCE_ID, - post_data="customer=cus_123", - ) - assert isinstance(resource, stripe.PaymentMethod) - - def test_can_attach_classmethod(self, http_client_mock): - resource = stripe.PaymentMethod.attach( - TEST_RESOURCE_ID, customer="cus_123" - ) - http_client_mock.assert_requested( - "post", - path="/v1/payment_methods/%s/attach" % TEST_RESOURCE_ID, - post_data="customer=cus_123", - ) - assert isinstance(resource, stripe.PaymentMethod) - - def test_can_detach(self, http_client_mock): - resource = stripe.PaymentMethod.retrieve(TEST_RESOURCE_ID) - resource = resource.detach() - http_client_mock.assert_requested( - "post", path="/v1/payment_methods/%s/detach" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentMethod) - - def test_can_detach_classmethod(self, http_client_mock): - resource = stripe.PaymentMethod.detach(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/payment_methods/%s/detach" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.PaymentMethod) diff --git a/tests/api_resources/test_payout.py b/tests/api_resources/test_payout.py deleted file mode 100644 index 95e4f415f..000000000 --- a/tests/api_resources/test_payout.py +++ /dev/null @@ -1,77 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "po_123" - - -class TestPayout(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Payout.list() - http_client_mock.assert_requested("get", path="/v1/payouts") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Payout) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Payout.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/payouts/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Payout) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Payout.create(amount=100, currency="usd") - http_client_mock.assert_requested( - "post", path="/v1/payouts", post_data="amount=100¤cy=usd" - ) - assert isinstance(resource, stripe.Payout) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Payout.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/payouts/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Payout.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/payouts/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Payout) - - def test_can_cancel(self, http_client_mock): - payout = stripe.Payout.retrieve(TEST_RESOURCE_ID) - resource = payout.cancel() - http_client_mock.assert_requested( - "post", path="/v1/payouts/%s/cancel" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Payout) - - def test_can_cancel_classmethod(self, http_client_mock): - resource = stripe.Payout.cancel(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/payouts/%s/cancel" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Payout) - - def test_can_reverse(self, http_client_mock): - payout = stripe.Payout.retrieve(TEST_RESOURCE_ID) - resource = payout.reverse() - http_client_mock.assert_requested( - "post", path="/v1/payouts/%s/reverse" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Payout) - - def test_can_reverse_classmethod(self, http_client_mock): - resource = stripe.Payout.reverse(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/payouts/%s/reverse" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Payout) diff --git a/tests/api_resources/test_plan.py b/tests/api_resources/test_plan.py deleted file mode 100644 index 58039deb2..000000000 --- a/tests/api_resources/test_plan.py +++ /dev/null @@ -1,70 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "250FF" - - -class TestPlan(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Plan.list() - http_client_mock.assert_requested("get", path="/v1/plans") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Plan) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Plan.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/plans/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Plan) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Plan.create( - amount=100, - currency="usd", - id="plan_id", - interval="month", - nickname="plan_nickname", - ) - http_client_mock.assert_requested( - "post", - path="/v1/plans", - post_data="amount=100¤cy=usd&id=plan_id&interval=month&nickname=plan_nickname", - ) - assert isinstance(resource, stripe.Plan) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Plan.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/plans/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Plan.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/plans/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Plan) - - def test_is_deletable(self, http_client_mock): - resource = stripe.Plan.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/plans/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.Plan.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/plans/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/test_price.py b/tests/api_resources/test_price.py deleted file mode 100644 index a0c35fc8f..000000000 --- a/tests/api_resources/test_price.py +++ /dev/null @@ -1,54 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "price_123" - - -class TestPrice(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Price.list() - http_client_mock.assert_requested("get", path="/v1/prices") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Price) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Price.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/prices/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Price) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Price.create( - unit_amount=1000, - currency="usd", - recurring={"interval": "month"}, - product_data={"name": "price_nickname"}, - ) - http_client_mock.assert_requested( - "post", - path="/v1/prices", - post_data="unit_amount=1000¤cy=usd&recurring[interval]=month&product_data[name]=price_nickname", - ) - assert isinstance(resource, stripe.Price) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Price.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/prices/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Price.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/prices/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Price) diff --git a/tests/api_resources/test_product.py b/tests/api_resources/test_product.py deleted file mode 100644 index 071b33c53..000000000 --- a/tests/api_resources/test_product.py +++ /dev/null @@ -1,62 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "prod_123" - - -class TestProduct(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Product.list() - http_client_mock.assert_requested("get", path="/v1/products") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Product) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Product.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/products/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Product) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Product.create(name="NAME") - http_client_mock.assert_requested( - "post", path="/v1/products", post_data="name=NAME" - ) - assert isinstance(resource, stripe.Product) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Product.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/products/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Product.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/products/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Product) - - def test_is_deletable(self, http_client_mock): - resource = stripe.Product.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/products/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.Product.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/products/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/test_refund.py b/tests/api_resources/test_refund.py deleted file mode 100644 index 179dcb577..000000000 --- a/tests/api_resources/test_refund.py +++ /dev/null @@ -1,47 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "re_123" - - -class TestRefund(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Refund.list() - http_client_mock.assert_requested("get", path="/v1/refunds") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Refund) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Refund.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/refunds/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Refund) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Refund.create(charge="ch_123") - http_client_mock.assert_requested( - "post", path="/v1/refunds", post_data="charge=ch_123" - ) - assert isinstance(resource, stripe.Refund) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Refund.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/refunds/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Refund.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/refunds/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Refund) diff --git a/tests/api_resources/test_review.py b/tests/api_resources/test_review.py deleted file mode 100644 index e7b46257d..000000000 --- a/tests/api_resources/test_review.py +++ /dev/null @@ -1,34 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "prv_123" - - -class TestReview(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Review.list() - http_client_mock.assert_requested("get", path="/v1/reviews") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Review) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Review.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/reviews/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Review) - - def test_can_approve(self, http_client_mock): - resource = stripe.Review.retrieve(TEST_RESOURCE_ID) - resource.approve() - http_client_mock.assert_requested( - "post", path="/v1/reviews/%s/approve" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Review) - - def test_can_approve_classmethod(self, http_client_mock): - resource = stripe.Review.approve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/reviews/%s/approve" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Review) diff --git a/tests/api_resources/test_setup_attempt.py b/tests/api_resources/test_setup_attempt.py deleted file mode 100644 index 3c4261f88..000000000 --- a/tests/api_resources/test_setup_attempt.py +++ /dev/null @@ -1,13 +0,0 @@ -import stripe - - -class TestSetupAttempt(object): - def test_is_listable(self, http_client_mock): - resources = stripe.SetupAttempt.list(setup_intent="seti_123") - http_client_mock.assert_requested( - "get", - path="/v1/setup_attempts", - query_string="setup_intent=seti_123", - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.SetupAttempt) diff --git a/tests/api_resources/test_setup_intent.py b/tests/api_resources/test_setup_intent.py deleted file mode 100644 index 3b13ac3f9..000000000 --- a/tests/api_resources/test_setup_intent.py +++ /dev/null @@ -1,81 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "seti_123" - - -class TestSetupIntent(object): - def test_is_listable(self, http_client_mock): - resources = stripe.SetupIntent.list() - http_client_mock.assert_requested("get", path="/v1/setup_intents") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.SetupIntent) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.SetupIntent.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/setup_intents/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.SetupIntent) - - def test_is_creatable(self, http_client_mock): - resource = stripe.SetupIntent.create(payment_method_types=["card"]) - http_client_mock.assert_requested( - "post", - path="/v1/setup_intents", - post_data="payment_method_types[0]=card", - ) - assert isinstance(resource, stripe.SetupIntent) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.SetupIntent.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/setup_intents/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.SetupIntent) - - def test_is_saveable(self, http_client_mock): - resource = stripe.SetupIntent.retrieve(TEST_RESOURCE_ID) - - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/setup_intents/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.SetupIntent) - - def test_can_cancel(self, http_client_mock): - resource = stripe.SetupIntent.retrieve(TEST_RESOURCE_ID) - resource.cancel() - http_client_mock.assert_requested( - "post", path="/v1/setup_intents/%s/cancel" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.SetupIntent) - - def test_can_cancel_classmethod(self, http_client_mock): - resource = stripe.SetupIntent.cancel(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/setup_intents/%s/cancel" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.SetupIntent) - - def test_can_confirm(self, http_client_mock): - resource = stripe.SetupIntent.retrieve(TEST_RESOURCE_ID) - resource.confirm() - http_client_mock.assert_requested( - "post", path="/v1/setup_intents/%s/confirm" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.SetupIntent) - - def test_can_confirm_classmethod(self, http_client_mock): - resource = stripe.SetupIntent.confirm(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/setup_intents/%s/confirm" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.SetupIntent) diff --git a/tests/api_resources/test_source_transaction.py b/tests/api_resources/test_source_transaction.py deleted file mode 100644 index 5191c061b..000000000 --- a/tests/api_resources/test_source_transaction.py +++ /dev/null @@ -1,16 +0,0 @@ -import stripe - - -class TestSourceTransaction(object): - def test_is_listable(self, http_client_mock): - source = stripe.Source.construct_from( - {"id": "src_123", "object": "source"}, stripe.api_key - ) - source_transactions = source.list_source_transactions() - http_client_mock.assert_requested( - "get", path="/v1/sources/src_123/source_transactions" - ) - assert isinstance(source_transactions.data, list) - assert isinstance( - source_transactions.data[0], stripe.SourceTransaction - ) diff --git a/tests/api_resources/test_subscription.py b/tests/api_resources/test_subscription.py deleted file mode 100644 index e178e75cc..000000000 --- a/tests/api_resources/test_subscription.py +++ /dev/null @@ -1,75 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "sub_123" - - -class TestSubscription(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Subscription.list() - http_client_mock.assert_requested("get", path="/v1/subscriptions") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Subscription) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Subscription.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/subscriptions/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Subscription) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Subscription.create(customer="cus_123") - http_client_mock.assert_requested( - "post", path="/v1/subscriptions", post_data="customer=cus_123" - ) - assert isinstance(resource, stripe.Subscription) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Subscription.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/subscriptions/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Subscription.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/subscriptions/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Subscription) - - def test_is_deletable(self, http_client_mock): - resource = stripe.Subscription.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/subscriptions/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Subscription) - - def test_can_delete(self, http_client_mock): - resource = stripe.Subscription.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/subscriptions/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Subscription) - - def test_can_delete_discount(self, http_client_mock): - sub = stripe.Subscription.retrieve(TEST_RESOURCE_ID) - sub.delete_discount() - http_client_mock.assert_requested( - "delete", path="/v1/subscriptions/%s/discount" % sub.id - ) - - def test_can_delete_discount_classmethod(self, http_client_mock): - stripe.Subscription.delete_discount(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/subscriptions/%s/discount" % TEST_RESOURCE_ID - ) diff --git a/tests/api_resources/test_subscription_item.py b/tests/api_resources/test_subscription_item.py deleted file mode 100644 index 0f96c02db..000000000 --- a/tests/api_resources/test_subscription_item.py +++ /dev/null @@ -1,70 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "si_123" - - -class TestSubscriptionItem(object): - def test_is_listable(self, http_client_mock): - resources = stripe.SubscriptionItem.list(subscription="sub_123") - http_client_mock.assert_requested( - "get", - path="/v1/subscription_items", - query_string="subscription=sub_123", - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.SubscriptionItem) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.SubscriptionItem.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/subscription_items/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.SubscriptionItem) - - def test_is_creatable(self, http_client_mock): - resource = stripe.SubscriptionItem.create( - price="price_123", subscription="sub_123" - ) - http_client_mock.assert_requested( - "post", - path="/v1/subscription_items", - post_data="price=price_123&subscription=sub_123", - ) - assert isinstance(resource, stripe.SubscriptionItem) - - def test_is_saveable(self, http_client_mock): - resource = stripe.SubscriptionItem.retrieve(TEST_RESOURCE_ID) - resource.price = "price_123" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/subscription_items/%s" % TEST_RESOURCE_ID, - post_data="price=price_123", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.SubscriptionItem.modify( - TEST_RESOURCE_ID, price="price_123" - ) - http_client_mock.assert_requested( - "post", - path="/v1/subscription_items/%s" % TEST_RESOURCE_ID, - post_data="price=price_123", - ) - assert isinstance(resource, stripe.SubscriptionItem) - - def test_is_deletable(self, http_client_mock): - resource = stripe.SubscriptionItem.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/subscription_items/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.SubscriptionItem.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/subscription_items/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True diff --git a/tests/api_resources/test_subscription_schedule.py b/tests/api_resources/test_subscription_schedule.py deleted file mode 100644 index 20268bc26..000000000 --- a/tests/api_resources/test_subscription_schedule.py +++ /dev/null @@ -1,85 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "sub_sched_123" - - -class TestSubscriptionScheduleSchedule(object): - def test_is_listable(self, http_client_mock): - resources = stripe.SubscriptionSchedule.list() - http_client_mock.assert_requested( - "get", path="/v1/subscription_schedules" - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.SubscriptionSchedule) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.SubscriptionSchedule.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/subscription_schedules/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.SubscriptionSchedule) - - def test_is_creatable(self, http_client_mock): - resource = stripe.SubscriptionSchedule.create(customer="cus_123") - http_client_mock.assert_requested( - "post", - path="/v1/subscription_schedules", - post_data="customer=cus_123", - ) - assert isinstance(resource, stripe.SubscriptionSchedule) - - def test_is_saveable(self, http_client_mock): - resource = stripe.SubscriptionSchedule.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/subscription_schedules/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.SubscriptionSchedule.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/subscription_schedules/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.SubscriptionSchedule) - - def test_can_cancel(self, http_client_mock): - resource = stripe.SubscriptionSchedule.retrieve(TEST_RESOURCE_ID) - resource = resource.cancel() - http_client_mock.assert_requested( - "post", - path="/v1/subscription_schedules/%s/cancel" % TEST_RESOURCE_ID, - ) - assert isinstance(resource, stripe.SubscriptionSchedule) - - def test_can_cancel_classmethod(self, http_client_mock): - resource = stripe.SubscriptionSchedule.cancel(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/subscription_schedules/%s/cancel" % TEST_RESOURCE_ID, - ) - assert isinstance(resource, stripe.SubscriptionSchedule) - - def test_can_release(self, http_client_mock): - resource = stripe.SubscriptionSchedule.retrieve(TEST_RESOURCE_ID) - resource = resource.release() - http_client_mock.assert_requested( - "post", - path="/v1/subscription_schedules/%s/release" % TEST_RESOURCE_ID, - ) - assert isinstance(resource, stripe.SubscriptionSchedule) - - def test_can_release_classmethod(self, http_client_mock): - resource = stripe.SubscriptionSchedule.release(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", - path="/v1/subscription_schedules/%s/release" % TEST_RESOURCE_ID, - ) - assert isinstance(resource, stripe.SubscriptionSchedule) diff --git a/tests/api_resources/test_tax_code.py b/tests/api_resources/test_tax_code.py deleted file mode 100644 index b267001b4..000000000 --- a/tests/api_resources/test_tax_code.py +++ /dev/null @@ -1,19 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "txcd_123" - - -class TestTaxCode(object): - def test_is_listable(self, http_client_mock): - resources = stripe.TaxCode.list() - http_client_mock.assert_requested("get", path="/v1/tax_codes") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.TaxCode) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.TaxCode.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/tax_codes/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.TaxCode) diff --git a/tests/api_resources/test_tax_rate.py b/tests/api_resources/test_tax_rate.py deleted file mode 100644 index c8113078d..000000000 --- a/tests/api_resources/test_tax_rate.py +++ /dev/null @@ -1,51 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "txr_123" - - -class TestTaxRate(object): - def test_is_listable(self, http_client_mock): - resources = stripe.TaxRate.list() - http_client_mock.assert_requested("get", path="/v1/tax_rates") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.TaxRate) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.TaxRate.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/tax_rates/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.TaxRate) - - def test_is_creatable(self, http_client_mock): - resource = stripe.TaxRate.create( - display_name="name", inclusive=False, percentage=10.15 - ) - http_client_mock.assert_requested( - "post", - path="/v1/tax_rates", - post_data="display_name=name&inclusive=false&percentage=10.15", - ) - assert isinstance(resource, stripe.TaxRate) - - def test_is_saveable(self, http_client_mock): - resource = stripe.TaxRate.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/tax_rates/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.TaxRate.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/tax_rates/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.TaxRate) diff --git a/tests/api_resources/test_topup.py b/tests/api_resources/test_topup.py deleted file mode 100644 index 10938d232..000000000 --- a/tests/api_resources/test_topup.py +++ /dev/null @@ -1,70 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "tu_123" - - -class TestTopup(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Topup.list() - http_client_mock.assert_requested("get", path="/v1/topups") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Topup) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Topup.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/topups/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Topup) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Topup.create( - amount=100, - currency="usd", - source="src_123", - description="description", - statement_descriptor="statement descriptor", - ) - http_client_mock.assert_requested( - "post", - path="/v1/topups", - post_data="amount=100¤cy=usd&description=description&source=src_123&statement_descriptor=statement+descriptor", - ) - assert isinstance(resource, stripe.Topup) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Topup.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/topups/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Topup.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/topups/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Topup) - - def test_can_cancel(self, http_client_mock): - resource = stripe.Topup.retrieve(TEST_RESOURCE_ID) - resource = resource.cancel() - http_client_mock.assert_requested( - "post", path="/v1/topups/%s/cancel" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Topup) - - def test_can_cancel_classmethod(self, http_client_mock): - resource = stripe.Topup.cancel(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "post", path="/v1/topups/%s/cancel" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Topup) diff --git a/tests/api_resources/test_transfer.py b/tests/api_resources/test_transfer.py deleted file mode 100644 index 9883b04b9..000000000 --- a/tests/api_resources/test_transfer.py +++ /dev/null @@ -1,96 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "tr_123" -TEST_REVERSAL_ID = "trr_123" - - -class TestTransfer(object): - def test_is_listable(self, http_client_mock): - resources = stripe.Transfer.list() - http_client_mock.assert_requested("get", path="/v1/transfers") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Transfer) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Transfer.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/transfers/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.Transfer) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Transfer.create( - amount=100, currency="usd", destination="acct_123" - ) - http_client_mock.assert_requested( - "post", - path="/v1/transfers", - post_data="amount=100¤cy=usd&destination=acct_123", - ) - assert isinstance(resource, stripe.Transfer) - - def test_is_saveable(self, http_client_mock): - resource = stripe.Transfer.retrieve(TEST_RESOURCE_ID) - resource.metadata["key"] = "value" - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/transfers/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Transfer.modify( - TEST_RESOURCE_ID, metadata={"key": "value"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/transfers/%s" % TEST_RESOURCE_ID, - post_data="metadata[key]=value", - ) - assert isinstance(resource, stripe.Transfer) - - -class TestTransferReversals: - def test_is_listable(self, http_client_mock): - resources = stripe.Transfer.list_reversals(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/transfers/%s/reversals" % TEST_RESOURCE_ID - ) - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.Reversal) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.Transfer.retrieve_reversal( - TEST_RESOURCE_ID, TEST_REVERSAL_ID - ) - http_client_mock.assert_requested( - "get", - path="/v1/transfers/%s/reversals/%s" - % (TEST_RESOURCE_ID, TEST_REVERSAL_ID), - ) - assert isinstance(resource, stripe.Reversal) - - def test_is_creatable(self, http_client_mock): - resource = stripe.Transfer.create_reversal( - TEST_RESOURCE_ID, amount=100 - ) - http_client_mock.assert_requested( - "post", - path="/v1/transfers/%s/reversals" % TEST_RESOURCE_ID, - post_data="amount=100", - ) - assert isinstance(resource, stripe.Reversal) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.Transfer.modify_reversal( - TEST_RESOURCE_ID, TEST_REVERSAL_ID, metadata={"foo": "bar"} - ) - http_client_mock.assert_requested( - "post", - path="/v1/transfers/%s/reversals/%s" - % (TEST_RESOURCE_ID, TEST_REVERSAL_ID), - post_data="metadata[foo]=bar", - ) - assert isinstance(resource, stripe.Reversal) diff --git a/tests/api_resources/test_webhook_endpoint.py b/tests/api_resources/test_webhook_endpoint.py deleted file mode 100644 index 05749a023..000000000 --- a/tests/api_resources/test_webhook_endpoint.py +++ /dev/null @@ -1,68 +0,0 @@ -import stripe - - -TEST_RESOURCE_ID = "we_123" - - -class TestWebhookEndpoint(object): - def test_is_listable(self, http_client_mock): - resources = stripe.WebhookEndpoint.list() - http_client_mock.assert_requested("get", path="/v1/webhook_endpoints") - assert isinstance(resources.data, list) - assert isinstance(resources.data[0], stripe.WebhookEndpoint) - - def test_is_retrievable(self, http_client_mock): - resource = stripe.WebhookEndpoint.retrieve(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "get", path="/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID - ) - assert isinstance(resource, stripe.WebhookEndpoint) - - def test_is_creatable(self, http_client_mock): - resource = stripe.WebhookEndpoint.create( - enabled_events=["charge.succeeded"], url="https://stripe.com" - ) - http_client_mock.assert_requested( - "post", - path="/v1/webhook_endpoints", - post_data="enabled_events[0]=charge.succeeded&url=https://stripe.com", - ) - assert isinstance(resource, stripe.WebhookEndpoint) - - def test_is_saveable(self, http_client_mock): - resource = stripe.WebhookEndpoint.retrieve(TEST_RESOURCE_ID) - resource.enabled_events = ["charge.succeeded"] - resource.save() - http_client_mock.assert_requested( - "post", - path="/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID, - post_data="enabled_events[0]=charge.succeeded", - ) - - def test_is_modifiable(self, http_client_mock): - resource = stripe.WebhookEndpoint.modify( - TEST_RESOURCE_ID, - enabled_events=["charge.succeeded"], - url="https://stripe.com", - ) - http_client_mock.assert_requested( - "post", - path="/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID, - post_data="enabled_events[0]=charge.succeeded&url=https://stripe.com", - ) - assert isinstance(resource, stripe.WebhookEndpoint) - - def test_is_deletable(self, http_client_mock): - resource = stripe.WebhookEndpoint.retrieve(TEST_RESOURCE_ID) - resource.delete() - http_client_mock.assert_requested( - "delete", path="/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True - - def test_can_delete(self, http_client_mock): - resource = stripe.WebhookEndpoint.delete(TEST_RESOURCE_ID) - http_client_mock.assert_requested( - "delete", path="/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID - ) - assert resource.deleted is True From 3f0f83494bb4c8db3436e5bdbe045c16cdf7bca4 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Mon, 15 Jun 2026 19:29:18 -0700 Subject: [PATCH 10/13] Upgrade CI runner from ubuntu-22.04 to ubuntu-24.04 (#1830) --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2d78f82c..30e06bc18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,10 +73,7 @@ jobs: path: dist/ test: - # Specific ubuntu version to support python 3.7 testing - # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 for list of supported versions - # move to ubuntu-latest when we drop 3.7 - runs-on: ubuntu-22.04 + runs-on: "ubuntu-24.04" permissions: contents: read strategy: From 4280756589793409d9431e36b69524d5b393968d Mon Sep 17 00:00:00 2001 From: David Brownman Date: Tue, 16 Jun 2026 12:35:47 -0700 Subject: [PATCH 11/13] Add PR disclaimer to README (#1831) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 11c828eb6..0f2b8c940 100644 --- a/README.md +++ b/README.md @@ -354,6 +354,9 @@ New features and bug fixes are released on the latest major version of the Strip ## Development +> [!WARNING] +> External contributions to this repo from first-time contributors are currently on hiatus. If you'd like to see a change made to the package, please open an issue. + [Contribution guidelines for this project](CONTRIBUTING.md) The test suite depends on [stripe-mock], so make sure to fetch and run it from a From 9106b4aa725c944ed8af494cd03b9fae00c9bc87 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 23:03:39 +0000 Subject: [PATCH 12/13] Update generated code for v2323 and 1f0a7866ce5b5e12153c09a04349f91486b17d95 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_event_notification_handler.py | 76 +- stripe/events/__init__.py | 72 +- stripe/events/_event_classes.py | 72 +- ...erchant_capability_status_updated_event.py | 1 + ...anager_capability_status_updated_event.py} | 57 +- ...figuration_money_manager_updated_event.py} | 20 +- .../_v2_core_account_link_returned_event.py | 4 +- ...ent_outbound_payment_under_review_event.py | 119 ++ ...nt_outbound_transfer_under_review_event.py | 119 ++ .../product_catalog/_import_create_params.py | 2 +- .../product_catalog/_import_list_params.py | 4 +- stripe/params/v2/core/__init__.py | 304 ++-- .../params/v2/core/_account_close_params.py | 2 +- .../params/v2/core/_account_create_params.py | 384 +++-- .../v2/core/_account_link_create_params.py | 4 +- stripe/params/v2/core/_account_list_params.py | 2 +- .../v2/core/_account_retrieve_params.py | 2 +- .../v2/core/_account_token_create_params.py | 6 +- .../params/v2/core/_account_update_params.py | 408 +++-- .../v2/core/_batch_job_create_params.py | 7 +- .../_financial_account_list_params.py | 5 +- stripe/v2/commerce/_product_catalog_import.py | 6 +- stripe/v2/core/_account.py | 1324 +++++++++++------ stripe/v2/core/_account_link.py | 16 +- stripe/v2/core/_batch_job.py | 4 - .../v2/money_management/_financial_address.py | 8 +- .../v2/money_management/_outbound_payment.py | 21 +- .../v2/money_management/_outbound_transfer.py | 20 +- .../v2/money_management/_received_credit.py | 4 + stripe/v2/money_management/_received_debit.py | 1 + tests/test_generated_examples.py | 32 +- 33 files changed, 2191 insertions(+), 919 deletions(-) rename stripe/events/{_v2_core_account_including_configuration_storer_capability_status_updated_event.py => _v2_core_account_including_configuration_money_manager_capability_status_updated_event.py} (69%) rename stripe/events/{_v2_core_account_including_configuration_storer_updated_event.py => _v2_core_account_including_configuration_money_manager_updated_event.py} (80%) create mode 100644 stripe/events/_v2_money_management_outbound_payment_under_review_event.py create mode 100644 stripe/events/_v2_money_management_outbound_transfer_under_review_event.py diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index e938a2698..756ace11d 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -1e427d0b4093ca9018df7be18ce359c4f7f97a2d \ No newline at end of file +1f0a7866ce5b5e12153c09a04349f91486b17d95 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 14a4abeb1..c22138244 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2314 \ No newline at end of file +v2323 \ No newline at end of file diff --git a/stripe/_event_notification_handler.py b/stripe/_event_notification_handler.py index 1ff1e9abc..34d8bcce1 100644 --- a/stripe/_event_notification_handler.py +++ b/stripe/_event_notification_handler.py @@ -48,18 +48,18 @@ from stripe.events._v2_core_account_including_configuration_merchant_updated_event import ( V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification, ) + from stripe.events._v2_core_account_including_configuration_money_manager_capability_status_updated_event import ( + V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification, + ) + from stripe.events._v2_core_account_including_configuration_money_manager_updated_event import ( + V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification, + ) from stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event import ( V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification, ) from stripe.events._v2_core_account_including_configuration_recipient_updated_event import ( V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification, ) - from stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event import ( - V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification, - ) - from stripe.events._v2_core_account_including_configuration_storer_updated_event import ( - V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification, - ) from stripe.events._v2_core_account_including_defaults_updated_event import ( V2CoreAccountIncludingDefaultsUpdatedEventNotification, ) @@ -192,6 +192,9 @@ from stripe.events._v2_money_management_outbound_payment_returned_event import ( V2MoneyManagementOutboundPaymentReturnedEventNotification, ) + from stripe.events._v2_money_management_outbound_payment_under_review_event import ( + V2MoneyManagementOutboundPaymentUnderReviewEventNotification, + ) from stripe.events._v2_money_management_outbound_payment_updated_event import ( V2MoneyManagementOutboundPaymentUpdatedEventNotification, ) @@ -210,6 +213,9 @@ from stripe.events._v2_money_management_outbound_transfer_returned_event import ( V2MoneyManagementOutboundTransferReturnedEventNotification, ) + from stripe.events._v2_money_management_outbound_transfer_under_review_event import ( + V2MoneyManagementOutboundTransferUnderReviewEventNotification, + ) from stripe.events._v2_money_management_outbound_transfer_updated_event import ( V2MoneyManagementOutboundTransferUpdatedEventNotification, ) @@ -516,54 +522,54 @@ def on_v2_core_account_including_configuration_merchant_updated( ) return func - def on_v2_core_account_including_configuration_recipient_capability_status_updated( + def on_v2_core_account_including_configuration_money_manager_capability_status_updated( self, - func: "Callable[[V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification, StripeClient], None]", + func: "Callable[[V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification, StripeClient], None]", ): """ - Registers a callback for the `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent` (`v2.core.account[configuration.recipient].capability_status_updated`) event notification. + Registers a callback for the `V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent` (`v2.core.account[configuration.money_manager].capability_status_updated`) event notification. """ self._register( - "v2.core.account[configuration.recipient].capability_status_updated", + "v2.core.account[configuration.money_manager].capability_status_updated", func, ) return func - def on_v2_core_account_including_configuration_recipient_updated( + def on_v2_core_account_including_configuration_money_manager_updated( self, - func: "Callable[[V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification, StripeClient], None]", + func: "Callable[[V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification, StripeClient], None]", ): """ - Registers a callback for the `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent` (`v2.core.account[configuration.recipient].updated`) event notification. + Registers a callback for the `V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent` (`v2.core.account[configuration.money_manager].updated`) event notification. """ self._register( - "v2.core.account[configuration.recipient].updated", + "v2.core.account[configuration.money_manager].updated", func, ) return func - def on_v2_core_account_including_configuration_storer_capability_status_updated( + def on_v2_core_account_including_configuration_recipient_capability_status_updated( self, - func: "Callable[[V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification, StripeClient], None]", + func: "Callable[[V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification, StripeClient], None]", ): """ - Registers a callback for the `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` (`v2.core.account[configuration.storer].capability_status_updated`) event notification. + Registers a callback for the `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent` (`v2.core.account[configuration.recipient].capability_status_updated`) event notification. """ self._register( - "v2.core.account[configuration.storer].capability_status_updated", + "v2.core.account[configuration.recipient].capability_status_updated", func, ) return func - def on_v2_core_account_including_configuration_storer_updated( + def on_v2_core_account_including_configuration_recipient_updated( self, - func: "Callable[[V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification, StripeClient], None]", + func: "Callable[[V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification, StripeClient], None]", ): """ - Registers a callback for the `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` (`v2.core.account[configuration.storer].updated`) event notification. + Registers a callback for the `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent` (`v2.core.account[configuration.recipient].updated`) event notification. """ self._register( - "v2.core.account[configuration.storer].updated", + "v2.core.account[configuration.recipient].updated", func, ) return func @@ -1140,6 +1146,19 @@ def on_v2_money_management_outbound_payment_returned( ) return func + def on_v2_money_management_outbound_payment_under_review( + self, + func: "Callable[[V2MoneyManagementOutboundPaymentUnderReviewEventNotification, StripeClient], None]", + ): + """ + Registers a callback for the `V2MoneyManagementOutboundPaymentUnderReviewEvent` (`v2.money_management.outbound_payment.under_review`) event notification. + """ + self._register( + "v2.money_management.outbound_payment.under_review", + func, + ) + return func + def on_v2_money_management_outbound_payment_updated( self, func: "Callable[[V2MoneyManagementOutboundPaymentUpdatedEventNotification, StripeClient], None]", @@ -1218,6 +1237,19 @@ def on_v2_money_management_outbound_transfer_returned( ) return func + def on_v2_money_management_outbound_transfer_under_review( + self, + func: "Callable[[V2MoneyManagementOutboundTransferUnderReviewEventNotification, StripeClient], None]", + ): + """ + Registers a callback for the `V2MoneyManagementOutboundTransferUnderReviewEvent` (`v2.money_management.outbound_transfer.under_review`) event notification. + """ + self._register( + "v2.money_management.outbound_transfer.under_review", + func, + ) + return func + def on_v2_money_management_outbound_transfer_updated( self, func: "Callable[[V2MoneyManagementOutboundTransferUpdatedEventNotification, StripeClient], None]", diff --git a/stripe/events/__init__.py b/stripe/events/__init__.py index 9237614f6..081db688a 100644 --- a/stripe/events/__init__.py +++ b/stripe/events/__init__.py @@ -63,6 +63,14 @@ V2CoreAccountIncludingConfigurationMerchantUpdatedEvent as V2CoreAccountIncludingConfigurationMerchantUpdatedEvent, V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification as V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification, ) + from stripe.events._v2_core_account_including_configuration_money_manager_capability_status_updated_event import ( + V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent, + V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification, + ) + from stripe.events._v2_core_account_including_configuration_money_manager_updated_event import ( + V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent as V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent, + V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification as V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification, + ) from stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event import ( V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent, V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification, @@ -71,14 +79,6 @@ V2CoreAccountIncludingConfigurationRecipientUpdatedEvent as V2CoreAccountIncludingConfigurationRecipientUpdatedEvent, V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification as V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification, ) - from stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event import ( - V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent, - V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification, - ) - from stripe.events._v2_core_account_including_configuration_storer_updated_event import ( - V2CoreAccountIncludingConfigurationStorerUpdatedEvent as V2CoreAccountIncludingConfigurationStorerUpdatedEvent, - V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification as V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification, - ) from stripe.events._v2_core_account_including_defaults_updated_event import ( V2CoreAccountIncludingDefaultsUpdatedEvent as V2CoreAccountIncludingDefaultsUpdatedEvent, V2CoreAccountIncludingDefaultsUpdatedEventNotification as V2CoreAccountIncludingDefaultsUpdatedEventNotification, @@ -255,6 +255,10 @@ V2MoneyManagementOutboundPaymentReturnedEvent as V2MoneyManagementOutboundPaymentReturnedEvent, V2MoneyManagementOutboundPaymentReturnedEventNotification as V2MoneyManagementOutboundPaymentReturnedEventNotification, ) + from stripe.events._v2_money_management_outbound_payment_under_review_event import ( + V2MoneyManagementOutboundPaymentUnderReviewEvent as V2MoneyManagementOutboundPaymentUnderReviewEvent, + V2MoneyManagementOutboundPaymentUnderReviewEventNotification as V2MoneyManagementOutboundPaymentUnderReviewEventNotification, + ) from stripe.events._v2_money_management_outbound_payment_updated_event import ( V2MoneyManagementOutboundPaymentUpdatedEvent as V2MoneyManagementOutboundPaymentUpdatedEvent, V2MoneyManagementOutboundPaymentUpdatedEventNotification as V2MoneyManagementOutboundPaymentUpdatedEventNotification, @@ -279,6 +283,10 @@ V2MoneyManagementOutboundTransferReturnedEvent as V2MoneyManagementOutboundTransferReturnedEvent, V2MoneyManagementOutboundTransferReturnedEventNotification as V2MoneyManagementOutboundTransferReturnedEventNotification, ) + from stripe.events._v2_money_management_outbound_transfer_under_review_event import ( + V2MoneyManagementOutboundTransferUnderReviewEvent as V2MoneyManagementOutboundTransferUnderReviewEvent, + V2MoneyManagementOutboundTransferUnderReviewEventNotification as V2MoneyManagementOutboundTransferUnderReviewEventNotification, + ) from stripe.events._v2_money_management_outbound_transfer_updated_event import ( V2MoneyManagementOutboundTransferUpdatedEvent as V2MoneyManagementOutboundTransferUpdatedEvent, V2MoneyManagementOutboundTransferUpdatedEventNotification as V2MoneyManagementOutboundTransferUpdatedEventNotification, @@ -451,36 +459,36 @@ "stripe.events._v2_core_account_including_configuration_merchant_updated_event", False, ), - "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent": ( - "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event", + "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent": ( + "stripe.events._v2_core_account_including_configuration_money_manager_capability_status_updated_event", False, ), - "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification": ( - "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event", + "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification": ( + "stripe.events._v2_core_account_including_configuration_money_manager_capability_status_updated_event", False, ), - "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent": ( - "stripe.events._v2_core_account_including_configuration_recipient_updated_event", + "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent": ( + "stripe.events._v2_core_account_including_configuration_money_manager_updated_event", False, ), - "V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification": ( - "stripe.events._v2_core_account_including_configuration_recipient_updated_event", + "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification": ( + "stripe.events._v2_core_account_including_configuration_money_manager_updated_event", False, ), - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent": ( - "stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event", + "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent": ( + "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event", False, ), - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification": ( - "stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event", + "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification": ( + "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event", False, ), - "V2CoreAccountIncludingConfigurationStorerUpdatedEvent": ( - "stripe.events._v2_core_account_including_configuration_storer_updated_event", + "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent": ( + "stripe.events._v2_core_account_including_configuration_recipient_updated_event", False, ), - "V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification": ( - "stripe.events._v2_core_account_including_configuration_storer_updated_event", + "V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification": ( + "stripe.events._v2_core_account_including_configuration_recipient_updated_event", False, ), "V2CoreAccountIncludingDefaultsUpdatedEvent": ( @@ -835,6 +843,14 @@ "stripe.events._v2_money_management_outbound_payment_returned_event", False, ), + "V2MoneyManagementOutboundPaymentUnderReviewEvent": ( + "stripe.events._v2_money_management_outbound_payment_under_review_event", + False, + ), + "V2MoneyManagementOutboundPaymentUnderReviewEventNotification": ( + "stripe.events._v2_money_management_outbound_payment_under_review_event", + False, + ), "V2MoneyManagementOutboundPaymentUpdatedEvent": ( "stripe.events._v2_money_management_outbound_payment_updated_event", False, @@ -883,6 +899,14 @@ "stripe.events._v2_money_management_outbound_transfer_returned_event", False, ), + "V2MoneyManagementOutboundTransferUnderReviewEvent": ( + "stripe.events._v2_money_management_outbound_transfer_under_review_event", + False, + ), + "V2MoneyManagementOutboundTransferUnderReviewEventNotification": ( + "stripe.events._v2_money_management_outbound_transfer_under_review_event", + False, + ), "V2MoneyManagementOutboundTransferUpdatedEvent": ( "stripe.events._v2_money_management_outbound_transfer_updated_event", False, diff --git a/stripe/events/_event_classes.py b/stripe/events/_event_classes.py index f54d6ee4e..8b879f757 100644 --- a/stripe/events/_event_classes.py +++ b/stripe/events/_event_classes.py @@ -43,18 +43,18 @@ from stripe.events._v2_core_account_including_configuration_merchant_updated_event import ( V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification, ) + from stripe.events._v2_core_account_including_configuration_money_manager_capability_status_updated_event import ( + V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification, + ) + from stripe.events._v2_core_account_including_configuration_money_manager_updated_event import ( + V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification, + ) from stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event import ( V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification, ) from stripe.events._v2_core_account_including_configuration_recipient_updated_event import ( V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification, ) - from stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event import ( - V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification, - ) - from stripe.events._v2_core_account_including_configuration_storer_updated_event import ( - V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification, - ) from stripe.events._v2_core_account_including_defaults_updated_event import ( V2CoreAccountIncludingDefaultsUpdatedEventNotification, ) @@ -187,6 +187,9 @@ from stripe.events._v2_money_management_outbound_payment_returned_event import ( V2MoneyManagementOutboundPaymentReturnedEventNotification, ) + from stripe.events._v2_money_management_outbound_payment_under_review_event import ( + V2MoneyManagementOutboundPaymentUnderReviewEventNotification, + ) from stripe.events._v2_money_management_outbound_payment_updated_event import ( V2MoneyManagementOutboundPaymentUpdatedEventNotification, ) @@ -205,6 +208,9 @@ from stripe.events._v2_money_management_outbound_transfer_returned_event import ( V2MoneyManagementOutboundTransferReturnedEventNotification, ) + from stripe.events._v2_money_management_outbound_transfer_under_review_event import ( + V2MoneyManagementOutboundTransferUnderReviewEventNotification, + ) from stripe.events._v2_money_management_outbound_transfer_updated_event import ( V2MoneyManagementOutboundTransferUpdatedEventNotification, ) @@ -310,6 +316,14 @@ "stripe.events._v2_core_account_including_configuration_merchant_updated_event", "V2CoreAccountIncludingConfigurationMerchantUpdatedEvent", ), + "v2.core.account[configuration.money_manager].capability_status_updated": ( + "stripe.events._v2_core_account_including_configuration_money_manager_capability_status_updated_event", + "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent", + ), + "v2.core.account[configuration.money_manager].updated": ( + "stripe.events._v2_core_account_including_configuration_money_manager_updated_event", + "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent", + ), "v2.core.account[configuration.recipient].capability_status_updated": ( "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event", "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent", @@ -318,14 +332,6 @@ "stripe.events._v2_core_account_including_configuration_recipient_updated_event", "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent", ), - "v2.core.account[configuration.storer].capability_status_updated": ( - "stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event", - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent", - ), - "v2.core.account[configuration.storer].updated": ( - "stripe.events._v2_core_account_including_configuration_storer_updated_event", - "V2CoreAccountIncludingConfigurationStorerUpdatedEvent", - ), "v2.core.account[defaults].updated": ( "stripe.events._v2_core_account_including_defaults_updated_event", "V2CoreAccountIncludingDefaultsUpdatedEvent", @@ -502,6 +508,10 @@ "stripe.events._v2_money_management_outbound_payment_returned_event", "V2MoneyManagementOutboundPaymentReturnedEvent", ), + "v2.money_management.outbound_payment.under_review": ( + "stripe.events._v2_money_management_outbound_payment_under_review_event", + "V2MoneyManagementOutboundPaymentUnderReviewEvent", + ), "v2.money_management.outbound_payment.updated": ( "stripe.events._v2_money_management_outbound_payment_updated_event", "V2MoneyManagementOutboundPaymentUpdatedEvent", @@ -526,6 +536,10 @@ "stripe.events._v2_money_management_outbound_transfer_returned_event", "V2MoneyManagementOutboundTransferReturnedEvent", ), + "v2.money_management.outbound_transfer.under_review": ( + "stripe.events._v2_money_management_outbound_transfer_under_review_event", + "V2MoneyManagementOutboundTransferUnderReviewEvent", + ), "v2.money_management.outbound_transfer.updated": ( "stripe.events._v2_money_management_outbound_transfer_updated_event", "V2MoneyManagementOutboundTransferUpdatedEvent", @@ -661,6 +675,14 @@ def get_v2_event_class(type_: str): "stripe.events._v2_core_account_including_configuration_merchant_updated_event", "V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification", ), + "v2.core.account[configuration.money_manager].capability_status_updated": ( + "stripe.events._v2_core_account_including_configuration_money_manager_capability_status_updated_event", + "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification", + ), + "v2.core.account[configuration.money_manager].updated": ( + "stripe.events._v2_core_account_including_configuration_money_manager_updated_event", + "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification", + ), "v2.core.account[configuration.recipient].capability_status_updated": ( "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event", "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification", @@ -669,14 +691,6 @@ def get_v2_event_class(type_: str): "stripe.events._v2_core_account_including_configuration_recipient_updated_event", "V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification", ), - "v2.core.account[configuration.storer].capability_status_updated": ( - "stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event", - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification", - ), - "v2.core.account[configuration.storer].updated": ( - "stripe.events._v2_core_account_including_configuration_storer_updated_event", - "V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification", - ), "v2.core.account[defaults].updated": ( "stripe.events._v2_core_account_including_defaults_updated_event", "V2CoreAccountIncludingDefaultsUpdatedEventNotification", @@ -853,6 +867,10 @@ def get_v2_event_class(type_: str): "stripe.events._v2_money_management_outbound_payment_returned_event", "V2MoneyManagementOutboundPaymentReturnedEventNotification", ), + "v2.money_management.outbound_payment.under_review": ( + "stripe.events._v2_money_management_outbound_payment_under_review_event", + "V2MoneyManagementOutboundPaymentUnderReviewEventNotification", + ), "v2.money_management.outbound_payment.updated": ( "stripe.events._v2_money_management_outbound_payment_updated_event", "V2MoneyManagementOutboundPaymentUpdatedEventNotification", @@ -877,6 +895,10 @@ def get_v2_event_class(type_: str): "stripe.events._v2_money_management_outbound_transfer_returned_event", "V2MoneyManagementOutboundTransferReturnedEventNotification", ), + "v2.money_management.outbound_transfer.under_review": ( + "stripe.events._v2_money_management_outbound_transfer_under_review_event", + "V2MoneyManagementOutboundTransferUnderReviewEventNotification", + ), "v2.money_management.outbound_transfer.updated": ( "stripe.events._v2_money_management_outbound_transfer_updated_event", "V2MoneyManagementOutboundTransferUpdatedEventNotification", @@ -976,10 +998,10 @@ def get_v2_event_notification_class(type_: str): "V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification", "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification", "V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification", + "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification", + "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification", "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification", "V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification", - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification", - "V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification", "V2CoreAccountIncludingDefaultsUpdatedEventNotification", "V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification", "V2CoreAccountIncludingIdentityUpdatedEventNotification", @@ -1024,12 +1046,14 @@ def get_v2_event_notification_class(type_: str): "V2MoneyManagementOutboundPaymentFailedEventNotification", "V2MoneyManagementOutboundPaymentPostedEventNotification", "V2MoneyManagementOutboundPaymentReturnedEventNotification", + "V2MoneyManagementOutboundPaymentUnderReviewEventNotification", "V2MoneyManagementOutboundPaymentUpdatedEventNotification", "V2MoneyManagementOutboundTransferCanceledEventNotification", "V2MoneyManagementOutboundTransferCreatedEventNotification", "V2MoneyManagementOutboundTransferFailedEventNotification", "V2MoneyManagementOutboundTransferPostedEventNotification", "V2MoneyManagementOutboundTransferReturnedEventNotification", + "V2MoneyManagementOutboundTransferUnderReviewEventNotification", "V2MoneyManagementOutboundTransferUpdatedEventNotification", "V2MoneyManagementPayoutMethodCreatedEventNotification", "V2MoneyManagementPayoutMethodUpdatedEventNotification", diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py index e49fce024..94aeb5f40 100644 --- a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py +++ b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py @@ -140,6 +140,7 @@ class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventDat "samsung_pay_payments", "sepa_bank_transfer_payments", "sepa_debit_payments", + "sunbit_payments", "swish_payments", "twint_payments", "us_bank_transfer_payments", diff --git a/stripe/events/_v2_core_account_including_configuration_storer_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_money_manager_capability_status_updated_event.py similarity index 69% rename from stripe/events/_v2_core_account_including_configuration_storer_capability_status_updated_event.py rename to stripe/events/_v2_core_account_including_configuration_money_manager_capability_status_updated_event.py index 2b2ee4ef5..b76ea3f17 100644 --- a/stripe/events/_v2_core_account_including_configuration_storer_capability_status_updated_event.py +++ b/stripe/events/_v2_core_account_including_configuration_money_manager_capability_status_updated_event.py @@ -14,14 +14,12 @@ from stripe.v2.core._account import Account -class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification( +class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification( EventNotification, ): - LOOKUP_TYPE = ( - "v2.core.account[configuration.storer].capability_status_updated" - ) + LOOKUP_TYPE = "v2.core.account[configuration.money_manager].capability_status_updated" type: Literal[ - "v2.core.account[configuration.storer].capability_status_updated" + "v2.core.account[configuration.money_manager].capability_status_updated" ] related_object: RelatedObject @@ -37,11 +35,9 @@ def __init__( @override def fetch_event( self, - ) -> ( - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent" - ): + ) -> "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent": return cast( - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent", + "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent", super().fetch_event(), ) @@ -64,11 +60,9 @@ def fetch_related_object(self) -> "Account": @override async def fetch_event_async( self, - ) -> ( - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent" - ): + ) -> "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent": return cast( - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent", + "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent", await super().fetch_event_async(), ) @@ -89,26 +83,26 @@ async def fetch_related_object_async(self) -> "Account": ) -class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent( +class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent( Event, ): - LOOKUP_TYPE = ( - "v2.core.account[configuration.storer].capability_status_updated" - ) + LOOKUP_TYPE = "v2.core.account[configuration.money_manager].capability_status_updated" type: Literal[ - "v2.core.account[configuration.storer].capability_status_updated" + "v2.core.account[configuration.money_manager].capability_status_updated" ] - class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData( + class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData( StripeObject, ): updated_capability: Literal[ - "financial_addressses.bank_accounts", - "financial_addressses.crypto_wallets", - "holds_currencies.eur", - "holds_currencies.gbp", - "holds_currencies.usd", - "holds_currencies.usdc", + "business_storage.inbound.eur", + "business_storage.inbound.gbp", + "business_storage.inbound.usd", + "business_storage.inbound.usdc", + "business_storage.outbound.eur", + "business_storage.outbound.gbp", + "business_storage.outbound.usd", + "business_storage.outbound.usdc", "inbound_transfers.bank_accounts", "outbound_payments.bank_accounts", "outbound_payments.cards", @@ -117,14 +111,17 @@ class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData( "outbound_transfers.bank_accounts", "outbound_transfers.crypto_wallets", "outbound_transfers.financial_accounts", + "received_credits.bank_accounts", + "received_credits.crypto_wallets", + "received_debits.bank_accounts", ] """ Open Enum. The capability which had its status updated. """ - data: V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData + data: V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData """ - Data for the v2.core.account[configuration.storer].capability_status_updated event + Data for the v2.core.account[configuration.money_manager].capability_status_updated event """ @classmethod @@ -135,9 +132,7 @@ def _construct_from( last_response: Optional[StripeResponse] = None, requestor: "_APIRequestor", api_mode: ApiMode, - ) -> ( - "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent" - ): + ) -> "V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent": evt = super()._construct_from( values=values, last_response=last_response, @@ -145,7 +140,7 @@ def _construct_from( api_mode=api_mode, ) if hasattr(evt, "data"): - evt.data = V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData._construct_from( + evt.data = V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData._construct_from( values=evt.data, last_response=last_response, requestor=requestor, diff --git a/stripe/events/_v2_core_account_including_configuration_storer_updated_event.py b/stripe/events/_v2_core_account_including_configuration_money_manager_updated_event.py similarity index 80% rename from stripe/events/_v2_core_account_including_configuration_storer_updated_event.py rename to stripe/events/_v2_core_account_including_configuration_money_manager_updated_event.py index 8d860ddc5..83d847050 100644 --- a/stripe/events/_v2_core_account_including_configuration_storer_updated_event.py +++ b/stripe/events/_v2_core_account_including_configuration_money_manager_updated_event.py @@ -11,11 +11,11 @@ from stripe.v2.core._account import Account -class V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification( +class V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification( EventNotification, ): - LOOKUP_TYPE = "v2.core.account[configuration.storer].updated" - type: Literal["v2.core.account[configuration.storer].updated"] + LOOKUP_TYPE = "v2.core.account[configuration.money_manager].updated" + type: Literal["v2.core.account[configuration.money_manager].updated"] related_object: RelatedObject def __init__( @@ -30,9 +30,9 @@ def __init__( @override def fetch_event( self, - ) -> "V2CoreAccountIncludingConfigurationStorerUpdatedEvent": + ) -> "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent": return cast( - "V2CoreAccountIncludingConfigurationStorerUpdatedEvent", + "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent", super().fetch_event(), ) @@ -55,9 +55,9 @@ def fetch_related_object(self) -> "Account": @override async def fetch_event_async( self, - ) -> "V2CoreAccountIncludingConfigurationStorerUpdatedEvent": + ) -> "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent": return cast( - "V2CoreAccountIncludingConfigurationStorerUpdatedEvent", + "V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent", await super().fetch_event_async(), ) @@ -78,9 +78,9 @@ async def fetch_related_object_async(self) -> "Account": ) -class V2CoreAccountIncludingConfigurationStorerUpdatedEvent(Event): - LOOKUP_TYPE = "v2.core.account[configuration.storer].updated" - type: Literal["v2.core.account[configuration.storer].updated"] +class V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent(Event): + LOOKUP_TYPE = "v2.core.account[configuration.money_manager].updated" + type: Literal["v2.core.account[configuration.money_manager].updated"] class RelatedObject(StripeObject): id: str diff --git a/stripe/events/_v2_core_account_link_returned_event.py b/stripe/events/_v2_core_account_link_returned_event.py index adc23900b..c1caac18f 100644 --- a/stripe/events/_v2_core_account_link_returned_event.py +++ b/stripe/events/_v2_core_account_link_returned_event.py @@ -40,7 +40,9 @@ class V2CoreAccountLinkReturnedEventData(StripeObject): The ID of the v2 account. """ configurations: List[ - Literal["customer", "merchant", "recipient", "storer"] + Literal[ + "customer", "merchant", "money_manager", "recipient", "storer" + ] ] """ Configurations on the Account that was onboarded via the account link. diff --git a/stripe/events/_v2_money_management_outbound_payment_under_review_event.py b/stripe/events/_v2_money_management_outbound_payment_under_review_event.py new file mode 100644 index 000000000..1f0af70c3 --- /dev/null +++ b/stripe/events/_v2_money_management_outbound_payment_under_review_event.py @@ -0,0 +1,119 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from stripe._util import get_api_mode +from stripe.v2.core._event import Event, EventNotification, RelatedObject +from typing import Any, Dict, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._stripe_client import StripeClient + from stripe.v2.money_management._outbound_payment import OutboundPayment + + +class V2MoneyManagementOutboundPaymentUnderReviewEventNotification( + EventNotification, +): + LOOKUP_TYPE = "v2.money_management.outbound_payment.under_review" + type: Literal["v2.money_management.outbound_payment.under_review"] + related_object: RelatedObject + + def __init__( + self, parsed_body: Dict[str, Any], client: "StripeClient" + ) -> None: + super().__init__( + parsed_body, + client, + ) + self.related_object = RelatedObject(parsed_body["related_object"]) + + @override + def fetch_event( + self, + ) -> "V2MoneyManagementOutboundPaymentUnderReviewEvent": + return cast( + "V2MoneyManagementOutboundPaymentUnderReviewEvent", + super().fetch_event(), + ) + + def fetch_related_object(self) -> "OutboundPayment": + response = self._client.raw_request( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "OutboundPayment", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2MoneyManagementOutboundPaymentUnderReviewEvent": + return cast( + "V2MoneyManagementOutboundPaymentUnderReviewEvent", + await super().fetch_event_async(), + ) + + async def fetch_related_object_async(self) -> "OutboundPayment": + response = await self._client.raw_request_async( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "OutboundPayment", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + +class V2MoneyManagementOutboundPaymentUnderReviewEvent(Event): + LOOKUP_TYPE = "v2.money_management.outbound_payment.under_review" + type: Literal["v2.money_management.outbound_payment.under_review"] + + class RelatedObject(StripeObject): + id: str + """ + Unique identifier for the object relevant to the event. + """ + type: str + """ + Type of the object relevant to the event. + """ + url: str + """ + URL to retrieve the resource. + """ + + related_object: RelatedObject + """ + Object containing the reference to API resource relevant to the event + """ + + def fetch_related_object(self) -> "OutboundPayment": + """ + Retrieves the related object from the API. Makes an API request on every call. + """ + return cast( + "OutboundPayment", + self._requestor.request( + "get", + self.related_object.url, + base_address="api", + options={ + "stripe_context": self.context, + "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, + }, + ), + ) diff --git a/stripe/events/_v2_money_management_outbound_transfer_under_review_event.py b/stripe/events/_v2_money_management_outbound_transfer_under_review_event.py new file mode 100644 index 000000000..f2b7645eb --- /dev/null +++ b/stripe/events/_v2_money_management_outbound_transfer_under_review_event.py @@ -0,0 +1,119 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from stripe._util import get_api_mode +from stripe.v2.core._event import Event, EventNotification, RelatedObject +from typing import Any, Dict, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._stripe_client import StripeClient + from stripe.v2.money_management._outbound_transfer import OutboundTransfer + + +class V2MoneyManagementOutboundTransferUnderReviewEventNotification( + EventNotification, +): + LOOKUP_TYPE = "v2.money_management.outbound_transfer.under_review" + type: Literal["v2.money_management.outbound_transfer.under_review"] + related_object: RelatedObject + + def __init__( + self, parsed_body: Dict[str, Any], client: "StripeClient" + ) -> None: + super().__init__( + parsed_body, + client, + ) + self.related_object = RelatedObject(parsed_body["related_object"]) + + @override + def fetch_event( + self, + ) -> "V2MoneyManagementOutboundTransferUnderReviewEvent": + return cast( + "V2MoneyManagementOutboundTransferUnderReviewEvent", + super().fetch_event(), + ) + + def fetch_related_object(self) -> "OutboundTransfer": + response = self._client.raw_request( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "OutboundTransfer", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2MoneyManagementOutboundTransferUnderReviewEvent": + return cast( + "V2MoneyManagementOutboundTransferUnderReviewEvent", + await super().fetch_event_async(), + ) + + async def fetch_related_object_async(self) -> "OutboundTransfer": + response = await self._client.raw_request_async( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "OutboundTransfer", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + +class V2MoneyManagementOutboundTransferUnderReviewEvent(Event): + LOOKUP_TYPE = "v2.money_management.outbound_transfer.under_review" + type: Literal["v2.money_management.outbound_transfer.under_review"] + + class RelatedObject(StripeObject): + id: str + """ + Unique identifier for the object relevant to the event. + """ + type: str + """ + Type of the object relevant to the event. + """ + url: str + """ + URL to retrieve the resource. + """ + + related_object: RelatedObject + """ + Object containing the reference to API resource relevant to the event + """ + + def fetch_related_object(self) -> "OutboundTransfer": + """ + Retrieves the related object from the API. Makes an API request on every call. + """ + return cast( + "OutboundTransfer", + self._requestor.request( + "get", + self.related_object.url, + base_address="api", + options={ + "stripe_context": self.context, + "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, + }, + ), + ) diff --git a/stripe/params/v2/commerce/product_catalog/_import_create_params.py b/stripe/params/v2/commerce/product_catalog/_import_create_params.py index 8549de060..a84306f92 100644 --- a/stripe/params/v2/commerce/product_catalog/_import_create_params.py +++ b/stripe/params/v2/commerce/product_catalog/_import_create_params.py @@ -6,7 +6,7 @@ class ImportCreateParams(TypedDict): - feed_type: Literal["inventory", "pricing", "product"] + feed_type: Literal["inventory", "pricing", "product", "promotion"] """ The type of catalog data to import. """ diff --git a/stripe/params/v2/commerce/product_catalog/_import_list_params.py b/stripe/params/v2/commerce/product_catalog/_import_list_params.py index fecbc23da..5833fd5e4 100644 --- a/stripe/params/v2/commerce/product_catalog/_import_list_params.py +++ b/stripe/params/v2/commerce/product_catalog/_import_list_params.py @@ -29,7 +29,9 @@ class ImportListParams(TypedDict): Filter for objects created on or before the specified timestamp. Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. """ - feed_type: NotRequired[Literal["inventory", "pricing", "product"]] + feed_type: NotRequired[ + Literal["inventory", "pricing", "product", "promotion"] + ] """ Filter by the type of feed data being imported. """ diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index d2a12f622..8ce24832e 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -65,6 +65,7 @@ AccountCreateParamsConfigurationMerchantCapabilitiesSamsungPayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSamsungPayPayments, AccountCreateParamsConfigurationMerchantCapabilitiesSepaBankTransferPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSepaBankTransferPayments, AccountCreateParamsConfigurationMerchantCapabilitiesSepaDebitPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSepaDebitPayments, + AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments, AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments, AccountCreateParamsConfigurationMerchantCapabilitiesTwintPayments as AccountCreateParamsConfigurationMerchantCapabilitiesTwintPayments, AccountCreateParamsConfigurationMerchantCapabilitiesUsBankTransferPayments as AccountCreateParamsConfigurationMerchantCapabilitiesUsBankTransferPayments, @@ -82,6 +83,34 @@ AccountCreateParamsConfigurationMerchantStatementDescriptor as AccountCreateParamsConfigurationMerchantStatementDescriptor, AccountCreateParamsConfigurationMerchantSupport as AccountCreateParamsConfigurationMerchantSupport, AccountCreateParamsConfigurationMerchantSupportAddress as AccountCreateParamsConfigurationMerchantSupportAddress, + AccountCreateParamsConfigurationMoneyManager as AccountCreateParamsConfigurationMoneyManager, + AccountCreateParamsConfigurationMoneyManagerCapabilities as AccountCreateParamsConfigurationMoneyManagerCapabilities, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd as AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers as AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts as AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments as AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts as AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards as AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts as AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers as AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts as AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts as AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits as AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts as AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits as AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits, + AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts as AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts, AccountCreateParamsConfigurationRecipient as AccountCreateParamsConfigurationRecipient, AccountCreateParamsConfigurationRecipientCapabilities as AccountCreateParamsConfigurationRecipientCapabilities, AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts as AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts, @@ -90,23 +119,6 @@ AccountCreateParamsConfigurationRecipientCapabilitiesCards as AccountCreateParamsConfigurationRecipientCapabilitiesCards, AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance as AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance, AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers as AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers, - AccountCreateParamsConfigurationStorer as AccountCreateParamsConfigurationStorer, - AccountCreateParamsConfigurationStorerCapabilities as AccountCreateParamsConfigurationStorerCapabilities, - AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses as AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses, - AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts, - AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies, - AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur, - AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp, - AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd, - AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers as AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers, - AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts, - AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments as AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments, - AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts, - AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards as AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards, - AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts as AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts, - AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers as AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers, - AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts, - AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts as AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts, AccountCreateParamsDefaults as AccountCreateParamsDefaults, AccountCreateParamsDefaultsProfile as AccountCreateParamsDefaultsProfile, AccountCreateParamsDefaultsResponsibilities as AccountCreateParamsDefaultsResponsibilities, @@ -118,7 +130,7 @@ AccountCreateParamsIdentityAttestationsRepresentativeDeclaration as AccountCreateParamsIdentityAttestationsRepresentativeDeclaration, AccountCreateParamsIdentityAttestationsTermsOfService as AccountCreateParamsIdentityAttestationsTermsOfService, AccountCreateParamsIdentityAttestationsTermsOfServiceAccount as AccountCreateParamsIdentityAttestationsTermsOfServiceAccount, - AccountCreateParamsIdentityAttestationsTermsOfServiceStorer as AccountCreateParamsIdentityAttestationsTermsOfServiceStorer, + AccountCreateParamsIdentityAttestationsTermsOfServiceMoneyManager as AccountCreateParamsIdentityAttestationsTermsOfServiceMoneyManager, AccountCreateParamsIdentityBusinessDetails as AccountCreateParamsIdentityBusinessDetails, AccountCreateParamsIdentityBusinessDetailsAddress as AccountCreateParamsIdentityBusinessDetailsAddress, AccountCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountCreateParamsIdentityBusinessDetailsAnnualRevenue, @@ -191,7 +203,7 @@ AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration as AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration, AccountTokenCreateParamsIdentityAttestationsTermsOfService as AccountTokenCreateParamsIdentityAttestationsTermsOfService, AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount as AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount, - AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer as AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer, + AccountTokenCreateParamsIdentityAttestationsTermsOfServiceMoneyManager as AccountTokenCreateParamsIdentityAttestationsTermsOfServiceMoneyManager, AccountTokenCreateParamsIdentityBusinessDetails as AccountTokenCreateParamsIdentityBusinessDetails, AccountTokenCreateParamsIdentityBusinessDetailsAddress as AccountTokenCreateParamsIdentityBusinessDetailsAddress, AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue, @@ -300,6 +312,7 @@ AccountUpdateParamsConfigurationMerchantCapabilitiesSamsungPayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSamsungPayPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesSepaBankTransferPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSepaBankTransferPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesSepaDebitPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSepaDebitPayments, + AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesTwintPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesTwintPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesUsBankTransferPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesUsBankTransferPayments, @@ -317,6 +330,34 @@ AccountUpdateParamsConfigurationMerchantStatementDescriptor as AccountUpdateParamsConfigurationMerchantStatementDescriptor, AccountUpdateParamsConfigurationMerchantSupport as AccountUpdateParamsConfigurationMerchantSupport, AccountUpdateParamsConfigurationMerchantSupportAddress as AccountUpdateParamsConfigurationMerchantSupportAddress, + AccountUpdateParamsConfigurationMoneyManager as AccountUpdateParamsConfigurationMoneyManager, + AccountUpdateParamsConfigurationMoneyManagerCapabilities as AccountUpdateParamsConfigurationMoneyManagerCapabilities, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits, + AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts as AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts, AccountUpdateParamsConfigurationRecipient as AccountUpdateParamsConfigurationRecipient, AccountUpdateParamsConfigurationRecipientCapabilities as AccountUpdateParamsConfigurationRecipientCapabilities, AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts as AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts, @@ -325,23 +366,6 @@ AccountUpdateParamsConfigurationRecipientCapabilitiesCards as AccountUpdateParamsConfigurationRecipientCapabilitiesCards, AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance as AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance, AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers as AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers, - AccountUpdateParamsConfigurationStorer as AccountUpdateParamsConfigurationStorer, - AccountUpdateParamsConfigurationStorerCapabilities as AccountUpdateParamsConfigurationStorerCapabilities, - AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses as AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses, - AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts, - AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies, - AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur, - AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp, - AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd, - AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers as AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers, - AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts, - AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments, - AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts, - AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards, - AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts, - AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers, - AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts, - AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts, AccountUpdateParamsDefaults as AccountUpdateParamsDefaults, AccountUpdateParamsDefaultsProfile as AccountUpdateParamsDefaultsProfile, AccountUpdateParamsDefaultsResponsibilities as AccountUpdateParamsDefaultsResponsibilities, @@ -353,8 +377,8 @@ AccountUpdateParamsIdentityAttestationsRepresentativeDeclaration as AccountUpdateParamsIdentityAttestationsRepresentativeDeclaration, AccountUpdateParamsIdentityAttestationsTermsOfService as AccountUpdateParamsIdentityAttestationsTermsOfService, AccountUpdateParamsIdentityAttestationsTermsOfServiceAccount as AccountUpdateParamsIdentityAttestationsTermsOfServiceAccount, - AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer as AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer, - AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer as AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer, + AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager as AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager, + AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager as AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager, AccountUpdateParamsIdentityBusinessDetails as AccountUpdateParamsIdentityBusinessDetails, AccountUpdateParamsIdentityBusinessDetailsAddress as AccountUpdateParamsIdentityBusinessDetailsAddress, AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue as AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue, @@ -682,6 +706,10 @@ "stripe.params.v2.core._account_create_params", False, ), + "AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments": ( + "stripe.params.v2.core._account_create_params", + False, + ), "AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments": ( "stripe.params.v2.core._account_create_params", False, @@ -750,103 +778,147 @@ "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationRecipient": ( + "AccountCreateParamsConfigurationMoneyManager": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationRecipientCapabilities": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilities": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationRecipientCapabilitiesCards": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorer": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilities": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers": ( + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts": ( + "AccountCreateParamsConfigurationRecipient": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationRecipientCapabilities": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal": ( "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts": ( + "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationRecipientCapabilitiesCards": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers": ( "stripe.params.v2.core._account_create_params", False, ), @@ -894,7 +966,7 @@ "stripe.params.v2.core._account_create_params", False, ), - "AccountCreateParamsIdentityAttestationsTermsOfServiceStorer": ( + "AccountCreateParamsIdentityAttestationsTermsOfServiceMoneyManager": ( "stripe.params.v2.core._account_create_params", False, ), @@ -1151,7 +1223,7 @@ "stripe.params.v2.core._account_token_create_params", False, ), - "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer": ( + "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceMoneyManager": ( "stripe.params.v2.core._account_token_create_params", False, ), @@ -1571,6 +1643,10 @@ "stripe.params.v2.core._account_update_params", False, ), + "AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments": ( + "stripe.params.v2.core._account_update_params", + False, + ), "AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments": ( "stripe.params.v2.core._account_update_params", False, @@ -1639,103 +1715,147 @@ "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationRecipient": ( + "AccountUpdateParamsConfigurationMoneyManager": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationRecipientCapabilities": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilities": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationRecipientCapabilitiesCards": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorer": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilities": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers": ( + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts": ( + "AccountUpdateParamsConfigurationRecipient": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationRecipientCapabilities": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts": ( + "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationRecipientCapabilitiesCards": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers": ( "stripe.params.v2.core._account_update_params", False, ), @@ -1783,11 +1903,11 @@ "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer": ( + "AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer": ( + "AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager": ( "stripe.params.v2.core._account_update_params", False, ), diff --git a/stripe/params/v2/core/_account_close_params.py b/stripe/params/v2/core/_account_close_params.py index d9c94dae4..572509b0a 100644 --- a/stripe/params/v2/core/_account_close_params.py +++ b/stripe/params/v2/core/_account_close_params.py @@ -6,7 +6,7 @@ class AccountCloseParams(TypedDict): applied_configurations: NotRequired[ - List[Literal["customer", "merchant", "recipient", "storer"]] + List[Literal["customer", "merchant", "recipient", "money_manager"]] ] """ Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed. diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py index 423705d5a..342ad3f96 100644 --- a/stripe/params/v2/core/_account_create_params.py +++ b/stripe/params/v2/core/_account_create_params.py @@ -46,7 +46,7 @@ class AccountCreateParams(TypedDict): "configuration.customer", "configuration.merchant", "configuration.recipient", - "configuration.storer", + "configuration.money_manager", "defaults", "future_requirements", "identity", @@ -72,13 +72,13 @@ class AccountCreateParamsConfiguration(TypedDict): """ Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. """ - recipient: NotRequired["AccountCreateParamsConfigurationRecipient"] + money_manager: NotRequired["AccountCreateParamsConfigurationMoneyManager"] """ - The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set. + The Money Manager Configuration allows the Account to store and move funds using FinancialAccounts. """ - storer: NotRequired["AccountCreateParamsConfigurationStorer"] + recipient: NotRequired["AccountCreateParamsConfigurationRecipient"] """ - The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts. + The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set. """ @@ -583,6 +583,12 @@ class AccountCreateParamsConfigurationMerchantCapabilities(TypedDict): """ Allow the merchant to process SEPA Direct Debit payments. """ + sunbit_payments: NotRequired[ + "AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments" + ] + """ + Allow the merchant to process Sunbit payments. + """ swish_payments: NotRequired[ "AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments" ] @@ -969,6 +975,15 @@ class AccountCreateParamsConfigurationMerchantCapabilitiesSepaDebitPayments( """ +class AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments( + TypedDict, +): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + class AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments( TypedDict, ): @@ -1190,63 +1205,107 @@ class AccountCreateParamsConfigurationMerchantSupportAddress(TypedDict): """ -class AccountCreateParamsConfigurationRecipient(TypedDict): +class AccountCreateParamsConfigurationMoneyManager(TypedDict): capabilities: NotRequired[ - "AccountCreateParamsConfigurationRecipientCapabilities" + "AccountCreateParamsConfigurationMoneyManagerCapabilities" ] """ - Capabilities to be requested on the Recipient Configuration. + Capabilities to request on the Money Manager Configuration. """ -class AccountCreateParamsConfigurationRecipientCapabilities(TypedDict): - bank_accounts: NotRequired[ - "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts" +class AccountCreateParamsConfigurationMoneyManagerCapabilities(TypedDict): + business_storage: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage" ] """ - Capabilities that enable OutboundPayments to a bank account linked to this Account. + Can send or receive business storage-type funds on Stripe. """ - cards: NotRequired[ - "AccountCreateParamsConfigurationRecipientCapabilitiesCards" + inbound_transfers: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers" ] """ - Capabilities that enable OutboundPayments to a card linked to this Account. + Can pull funds from an external source, owned by yourself, to a FinancialAccount. """ - stripe_balance: NotRequired[ - "AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance" + outbound_payments: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments" ] """ - Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + Can send funds from a FinancialAccount to a destination owned by someone else. + """ + outbound_transfers: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers" + ] + """ + Can send funds from a FinancialAccount to a destination owned by yourself. + """ + received_credits: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits" + ] + """ + Can receive funds into a FinancialAccount. + """ + received_debits: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits" + ] + """ + Can receive debits to a FinancialAccount. """ -class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage( TypedDict, ): - local: NotRequired[ - "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal" + inbound: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound" ] """ - Enables this Account to receive OutboundPayments to linked bank accounts over local networks. + Can receive business storage-type funds on Stripe. """ - wire: NotRequired[ - "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire" + outbound: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound" ] """ - Enables this Account to receive OutboundPayments to linked bank accounts over wire. + Can send business storage-type funds on Stripe. """ -class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound( TypedDict, ): - requested: bool + aud: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud" + ] """ - To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + Can receive business storage-type funds on Stripe in AUD. + """ + cad: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad" + ] + """ + Can receive business storage-type funds on Stripe in CAD. + """ + eur: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur" + ] + """ + Can receive business storage-type funds on Stripe in EUR. + """ + gbp: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp" + ] + """ + Can receive business storage-type funds on Stripe in GBP. + """ + usd: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd" + ] + """ + Can receive business storage-type funds on Stripe in USD. """ -class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud( TypedDict, ): requested: bool @@ -1255,25 +1314,25 @@ class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire( """ -class AccountCreateParamsConfigurationRecipientCapabilitiesCards(TypedDict): +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad( + TypedDict, +): requested: bool """ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur( TypedDict, ): - stripe_transfers: NotRequired[ - "AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers" - ] + requested: bool """ - Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp( TypedDict, ): requested: bool @@ -1282,60 +1341,51 @@ class AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTr """ -class AccountCreateParamsConfigurationStorer(TypedDict): - capabilities: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilities" - ] +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd( + TypedDict, +): + requested: bool """ - Capabilities to request on the Storer Configuration. + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountCreateParamsConfigurationStorerCapabilities(TypedDict): - financial_addresses: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses" +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound( + TypedDict, +): + aud: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud" ] """ - Can provision a financial address to credit/debit a FinancialAccount. + Can send business storage-type funds on Stripe in AUD. """ - holds_currencies: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies" + cad: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad" ] """ - Can hold storage-type funds on Stripe. - """ - inbound_transfers: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers" - ] + Can send business storage-type funds on Stripe in CAD. """ - Can pull funds from an external source, owned by yourself, to a FinancialAccount. - """ - outbound_payments: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments" + eur: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur" ] """ - Can send funds from a FinancialAccount to a destination owned by someone else. + Can send business storage-type funds on Stripe in EUR. """ - outbound_transfers: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers" + gbp: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp" ] """ - Can send funds from a FinancialAccount to a destination owned by yourself. + Can send business storage-type funds on Stripe in GBP. """ - - -class AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses( - TypedDict, -): - bank_accounts: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts" + usd: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd" ] """ - Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. + Can send business storage-type funds on Stripe in USD. """ -class AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud( TypedDict, ): requested: bool @@ -1344,30 +1394,16 @@ class AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAc """ -class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad( TypedDict, ): - eur: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur" - ] - """ - Can hold storage-type funds on Stripe in EUR. - """ - gbp: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp" - ] - """ - Can hold storage-type funds on Stripe in GBP. - """ - usd: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd" - ] + requested: bool """ - Can hold storage-type funds on Stripe in USD. + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur( TypedDict, ): requested: bool @@ -1376,7 +1412,7 @@ class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur( """ -class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp( TypedDict, ): requested: bool @@ -1385,7 +1421,7 @@ class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp( """ -class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd( TypedDict, ): requested: bool @@ -1394,18 +1430,18 @@ class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd( """ -class AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers( TypedDict, ): bank_accounts: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts" + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts" ] """ Can pull funds from an external bank account owned by yourself to a FinancialAccount. """ -class AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts( TypedDict, ): requested: bool @@ -1414,30 +1450,30 @@ class AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAcco """ -class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments( TypedDict, ): bank_accounts: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts" + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts" ] """ Can send funds from a FinancialAccount to a bank account owned by someone else. """ cards: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards" + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards" ] """ Can send funds from a FinancialAccount to a debit card owned by someone else. """ financial_accounts: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts" + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts" ] """ Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. """ -class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts( TypedDict, ): requested: bool @@ -1446,7 +1482,7 @@ class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAcco """ -class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards( TypedDict, ): requested: bool @@ -1455,7 +1491,7 @@ class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards( """ -class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts( TypedDict, ): requested: bool @@ -1464,24 +1500,129 @@ class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancia """ -class AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers( TypedDict, ): bank_accounts: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts" + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts" ] """ Can send funds from a FinancialAccount to a bank account owned by yourself. """ financial_accounts: NotRequired[ - "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts" + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts" ] """ Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. """ -class AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts( +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts( + TypedDict, +): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts( + TypedDict, +): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits( + TypedDict, +): + bank_accounts: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts" + ] + """ + Can receive funds on a bank-account-like financial address (VBAN) to credit a FinancialAccount. + """ + + +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts( + TypedDict, +): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits( + TypedDict, +): + bank_accounts: NotRequired[ + "AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts" + ] + """ + Can receive debits to a FinancialAccount from a bank account. + """ + + +class AccountCreateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts( + TypedDict, +): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountCreateParamsConfigurationRecipient(TypedDict): + capabilities: NotRequired[ + "AccountCreateParamsConfigurationRecipientCapabilities" + ] + """ + Capabilities to be requested on the Recipient Configuration. + """ + + +class AccountCreateParamsConfigurationRecipientCapabilities(TypedDict): + bank_accounts: NotRequired[ + "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts" + ] + """ + Capabilities that enable OutboundPayments to a bank account linked to this Account. + """ + cards: NotRequired[ + "AccountCreateParamsConfigurationRecipientCapabilitiesCards" + ] + """ + Capabilities that enable OutboundPayments to a card linked to this Account. + """ + stripe_balance: NotRequired[ + "AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance" + ] + """ + Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + """ + + +class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts( + TypedDict, +): + local: NotRequired[ + "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal" + ] + """ + Enables this Account to receive OutboundPayments to linked bank accounts over local networks. + """ + wire: NotRequired[ + "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire" + ] + """ + Enables this Account to receive OutboundPayments to linked bank accounts over wire. + """ + + +class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal( TypedDict, ): requested: bool @@ -1490,7 +1631,34 @@ class AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAcc """ -class AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts( +class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire( + TypedDict, +): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountCreateParamsConfigurationRecipientCapabilitiesCards(TypedDict): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance( + TypedDict, +): + stripe_transfers: NotRequired[ + "AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers" + ] + """ + Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + """ + + +class AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers( TypedDict, ): requested: bool @@ -1779,8 +1947,8 @@ class AccountCreateParamsIdentityAttestationsTermsOfService(TypedDict): """ Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance). """ - storer: NotRequired[ - "AccountCreateParamsIdentityAttestationsTermsOfServiceStorer" + money_manager: NotRequired[ + "AccountCreateParamsIdentityAttestationsTermsOfServiceMoneyManager" ] """ Details on the Account's acceptance of Treasury-specific terms of service. @@ -1802,7 +1970,9 @@ class AccountCreateParamsIdentityAttestationsTermsOfServiceAccount(TypedDict): """ -class AccountCreateParamsIdentityAttestationsTermsOfServiceStorer(TypedDict): +class AccountCreateParamsIdentityAttestationsTermsOfServiceMoneyManager( + TypedDict, +): date: str """ The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. diff --git a/stripe/params/v2/core/_account_link_create_params.py b/stripe/params/v2/core/_account_link_create_params.py index 88569189d..5ebc5bd16 100644 --- a/stripe/params/v2/core/_account_link_create_params.py +++ b/stripe/params/v2/core/_account_link_create_params.py @@ -40,7 +40,7 @@ class AccountLinkCreateParamsUseCaseAccountOnboarding(TypedDict): Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. """ configurations: List[ - Literal["customer", "merchant", "recipient", "storer"] + Literal["customer", "merchant", "money_manager", "recipient", "storer"] ] """ Open Enum. A v2/core/account can be configured to enable certain functionality. The configuration param targets the v2/core/account_link to collect information for the specified v2/core/account configuration/s. @@ -76,7 +76,7 @@ class AccountLinkCreateParamsUseCaseAccountUpdate(TypedDict): Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. """ configurations: List[ - Literal["customer", "merchant", "recipient", "storer"] + Literal["customer", "merchant", "money_manager", "recipient", "storer"] ] """ Open Enum. A v2/account can be configured to enable certain functionality. The configuration param targets the v2/account_link to collect information for the specified v2/account configuration/s. diff --git a/stripe/params/v2/core/_account_list_params.py b/stripe/params/v2/core/_account_list_params.py index c09a1326b..371e7a0e8 100644 --- a/stripe/params/v2/core/_account_list_params.py +++ b/stripe/params/v2/core/_account_list_params.py @@ -6,7 +6,7 @@ class AccountListParams(TypedDict): applied_configurations: NotRequired[ - List[Literal["customer", "merchant", "recipient", "storer"]] + List[Literal["customer", "merchant", "recipient", "money_manager"]] ] """ Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have. diff --git a/stripe/params/v2/core/_account_retrieve_params.py b/stripe/params/v2/core/_account_retrieve_params.py index 69080103a..786216c28 100644 --- a/stripe/params/v2/core/_account_retrieve_params.py +++ b/stripe/params/v2/core/_account_retrieve_params.py @@ -11,7 +11,7 @@ class AccountRetrieveParams(TypedDict): "configuration.customer", "configuration.merchant", "configuration.recipient", - "configuration.storer", + "configuration.money_manager", "defaults", "future_requirements", "identity", diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py index 08417d922..c1f8b6767 100644 --- a/stripe/params/v2/core/_account_token_create_params.py +++ b/stripe/params/v2/core/_account_token_create_params.py @@ -140,8 +140,8 @@ class AccountTokenCreateParamsIdentityAttestationsTermsOfService(TypedDict): """ Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. """ - storer: NotRequired[ - "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer" + money_manager: NotRequired[ + "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceMoneyManager" ] """ Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe. @@ -157,7 +157,7 @@ class AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount( """ -class AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer( +class AccountTokenCreateParamsIdentityAttestationsTermsOfServiceMoneyManager( TypedDict, ): shown_and_accepted: NotRequired[bool] diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py index df6fc991c..59c4a01d9 100644 --- a/stripe/params/v2/core/_account_update_params.py +++ b/stripe/params/v2/core/_account_update_params.py @@ -46,7 +46,7 @@ class AccountUpdateParams(TypedDict): "configuration.customer", "configuration.merchant", "configuration.recipient", - "configuration.storer", + "configuration.money_manager", "defaults", "future_requirements", "identity", @@ -74,13 +74,13 @@ class AccountUpdateParamsConfiguration(TypedDict): """ Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. """ - recipient: NotRequired["AccountUpdateParamsConfigurationRecipient"] + money_manager: NotRequired["AccountUpdateParamsConfigurationMoneyManager"] """ - The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set. + The Money Manager Configuration allows the Account to store and move funds using FinancialAccounts. """ - storer: NotRequired["AccountUpdateParamsConfigurationStorer"] + recipient: NotRequired["AccountUpdateParamsConfigurationRecipient"] """ - The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts. + The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set. """ @@ -601,6 +601,12 @@ class AccountUpdateParamsConfigurationMerchantCapabilities(TypedDict): """ Allow the merchant to process SEPA Direct Debit payments. """ + sunbit_payments: NotRequired[ + "AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments" + ] + """ + Allow the merchant to process Sunbit payments. + """ swish_payments: NotRequired[ "AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments" ] @@ -987,6 +993,15 @@ class AccountUpdateParamsConfigurationMerchantCapabilitiesSepaDebitPayments( """ +class AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + class AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments( TypedDict, ): @@ -1208,71 +1223,111 @@ class AccountUpdateParamsConfigurationMerchantSupportAddress(TypedDict): """ -class AccountUpdateParamsConfigurationRecipient(TypedDict): +class AccountUpdateParamsConfigurationMoneyManager(TypedDict): applied: NotRequired[bool] """ Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. """ capabilities: NotRequired[ - "AccountUpdateParamsConfigurationRecipientCapabilities" + "AccountUpdateParamsConfigurationMoneyManagerCapabilities" ] """ - Capabilities to request on the Recipient Configuration. - """ - default_outbound_destination: NotRequired[str] - """ - The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). + Capabilities to request on the Money Manager Configuration. """ -class AccountUpdateParamsConfigurationRecipientCapabilities(TypedDict): - bank_accounts: NotRequired[ - "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts" +class AccountUpdateParamsConfigurationMoneyManagerCapabilities(TypedDict): + business_storage: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage" ] """ - Capabilities that enable OutboundPayments to a bank account linked to this Account. + Can send or receive business storage-type funds on Stripe. """ - cards: NotRequired[ - "AccountUpdateParamsConfigurationRecipientCapabilitiesCards" + inbound_transfers: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers" ] """ - Capability that enable OutboundPayments to a debit card linked to this Account. + Can pull funds from an external source, owned by yourself, to a FinancialAccount. """ - stripe_balance: NotRequired[ - "AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance" + outbound_payments: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments" ] """ - Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + Can send funds from a FinancialAccount to a destination owned by someone else. + """ + outbound_transfers: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers" + ] + """ + Can send funds from a FinancialAccount to a destination owned by yourself. + """ + received_credits: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits" + ] + """ + Can receive funds on a financial address to credit a FinancialAccount. + """ + received_debits: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits" + ] + """ + Can receive debits to a FinancialAccount. """ -class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorage( TypedDict, ): - local: NotRequired[ - "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal" + inbound: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound" ] """ - Enables this Account to receive OutboundPayments to linked bank accounts over local networks. + Can receive business storage-type funds on Stripe. """ - wire: NotRequired[ - "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire" + outbound: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound" ] """ - Enables this Account to receive OutboundPayments to linked bank accounts over wire. + Can send business storage-type funds on Stripe. """ -class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInbound( TypedDict, ): - requested: NotRequired[bool] + aud: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud" + ] """ - To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + Can receive business storage-type funds on Stripe in AUD. + """ + cad: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad" + ] + """ + Can receive business storage-type funds on Stripe in CAD. + """ + eur: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur" + ] + """ + Can receive business storage-type funds on Stripe in EUR. + """ + gbp: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp" + ] + """ + Can receive business storage-type funds on Stripe in GBP. + """ + usd: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd" + ] + """ + Can receive business storage-type funds on Stripe in USD. """ -class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud( TypedDict, ): requested: NotRequired[bool] @@ -1281,25 +1336,25 @@ class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire( """ -class AccountUpdateParamsConfigurationRecipientCapabilitiesCards(TypedDict): +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad( + TypedDict, +): requested: NotRequired[bool] """ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur( TypedDict, ): - stripe_transfers: NotRequired[ - "AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers" - ] + requested: NotRequired[bool] """ - Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp( TypedDict, ): requested: NotRequired[bool] @@ -1308,64 +1363,51 @@ class AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTr """ -class AccountUpdateParamsConfigurationStorer(TypedDict): - applied: NotRequired[bool] - """ - Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. - """ - capabilities: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilities" - ] +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd( + TypedDict, +): + requested: NotRequired[bool] """ - Capabilities to request on the Storer Configuration. + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountUpdateParamsConfigurationStorerCapabilities(TypedDict): - financial_addresses: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses" - ] - """ - Can provision a financial address to credit/debit a FinancialAccount. - """ - holds_currencies: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies" +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound( + TypedDict, +): + aud: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud" ] """ - Can hold storage-type funds on Stripe. + Can send business storage-type funds on Stripe in AUD. """ - inbound_transfers: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers" + cad: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad" ] """ - Can pull funds from an external source, owned by yourself, to a FinancialAccount. + Can send business storage-type funds on Stripe in CAD. """ - outbound_payments: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments" + eur: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur" ] """ - Can send funds from a FinancialAccount to a destination owned by someone else. + Can send business storage-type funds on Stripe in EUR. """ - outbound_transfers: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers" + gbp: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp" ] """ - Can send funds from a FinancialAccount to a destination owned by yourself. + Can send business storage-type funds on Stripe in GBP. """ - - -class AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses( - TypedDict, -): - bank_accounts: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts" + usd: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd" ] """ - Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. + Can send business storage-type funds on Stripe in USD. """ -class AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud( TypedDict, ): requested: NotRequired[bool] @@ -1374,30 +1416,16 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAc """ -class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad( TypedDict, ): - eur: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur" - ] - """ - Can hold storage-type funds on Stripe in EUR. - """ - gbp: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp" - ] - """ - Can hold storage-type funds on Stripe in GBP. - """ - usd: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd" - ] + requested: NotRequired[bool] """ - Can hold storage-type funds on Stripe in USD. + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur( TypedDict, ): requested: NotRequired[bool] @@ -1406,7 +1434,7 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur( """ -class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp( TypedDict, ): requested: NotRequired[bool] @@ -1415,7 +1443,7 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp( """ -class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd( TypedDict, ): requested: NotRequired[bool] @@ -1424,18 +1452,18 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd( """ -class AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfers( TypedDict, ): bank_accounts: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts" + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts" ] """ Can pull funds from an external bank account owned by yourself to a FinancialAccount. """ -class AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts( TypedDict, ): requested: NotRequired[bool] @@ -1444,30 +1472,30 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAcco """ -class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPayments( TypedDict, ): bank_accounts: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts" + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts" ] """ Can send funds from a FinancialAccount to a bank account owned by someone else. """ cards: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards" + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards" ] """ Can send funds from a FinancialAccount to a debit card owned by someone else. """ financial_accounts: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts" + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts" ] """ Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. """ -class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts( TypedDict, ): requested: NotRequired[bool] @@ -1476,7 +1504,7 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAcco """ -class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards( TypedDict, ): requested: NotRequired[bool] @@ -1485,7 +1513,7 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards( """ -class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts( TypedDict, ): requested: NotRequired[bool] @@ -1494,33 +1522,173 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancia """ -class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfers( TypedDict, ): bank_accounts: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts" + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts" ] """ Can send funds from a FinancialAccount to a bank account owned by yourself. """ financial_accounts: NotRequired[ - "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts" + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts" ] """ Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. """ -class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts( +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCredits( + TypedDict, +): + bank_accounts: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts" + ] + """ + Can receive funds on a bank-account-like financial address (VBAN) to credit a FinancialAccount. + """ + + +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebits( + TypedDict, +): + bank_accounts: NotRequired[ + "AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts" + ] + """ + Can receive debits to a FinancialAccount from a bank account. + """ + + +class AccountUpdateParamsConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountUpdateParamsConfigurationRecipient(TypedDict): + applied: NotRequired[bool] + """ + Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. + """ + capabilities: NotRequired[ + "AccountUpdateParamsConfigurationRecipientCapabilities" + ] + """ + Capabilities to request on the Recipient Configuration. + """ + default_outbound_destination: NotRequired[str] + """ + The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). + """ + + +class AccountUpdateParamsConfigurationRecipientCapabilities(TypedDict): + bank_accounts: NotRequired[ + "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts" + ] + """ + Capabilities that enable OutboundPayments to a bank account linked to this Account. + """ + cards: NotRequired[ + "AccountUpdateParamsConfigurationRecipientCapabilitiesCards" + ] + """ + Capability that enable OutboundPayments to a debit card linked to this Account. + """ + stripe_balance: NotRequired[ + "AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance" + ] + """ + Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + """ + + +class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts( TypedDict, ): + local: NotRequired[ + "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal" + ] + """ + Enables this Account to receive OutboundPayments to linked bank accounts over local networks. + """ + wire: NotRequired[ + "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire" + ] + """ + Enables this Account to receive OutboundPayments to linked bank accounts over wire. + """ + + +class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + +class AccountUpdateParamsConfigurationRecipientCapabilitiesCards(TypedDict): requested: NotRequired[bool] """ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. """ -class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts( +class AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance( + TypedDict, +): + stripe_transfers: NotRequired[ + "AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers" + ] + """ + Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + """ + + +class AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers( TypedDict, ): requested: NotRequired[bool] @@ -1809,14 +1977,14 @@ class AccountUpdateParamsIdentityAttestationsTermsOfService(TypedDict): """ Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance). """ - crypto_storer: NotRequired[ - "AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer" + crypto_money_manager: NotRequired[ + "AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager" ] """ - Details on the Account's acceptance of Crypto-storer-specific terms of service. + Details on the Account's acceptance of Crypto-specific terms of service. """ - storer: NotRequired[ - "AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer" + money_manager: NotRequired[ + "AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager" ] """ Details on the Account's acceptance of Treasury-specific terms of service. @@ -1838,7 +2006,7 @@ class AccountUpdateParamsIdentityAttestationsTermsOfServiceAccount(TypedDict): """ -class AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer( +class AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager( TypedDict, ): date: NotRequired[str] @@ -1855,7 +2023,9 @@ class AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer( """ -class AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer(TypedDict): +class AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager( + TypedDict, +): date: NotRequired[str] """ The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. diff --git a/stripe/params/v2/core/_batch_job_create_params.py b/stripe/params/v2/core/_batch_job_create_params.py index 98cdefc57..69a84dd5a 100644 --- a/stripe/params/v2/core/_batch_job_create_params.py +++ b/stripe/params/v2/core/_batch_job_create_params.py @@ -10,12 +10,7 @@ class BatchJobCreateParams(TypedDict): """ The endpoint configuration for the batch job. """ - maximum_rps: NotRequired[int] - """ - Optional field that allows the user to control how fast they want this batch job to run. - Gives them a control over the number of webhooks they receive. - """ - metadata: "Dict[str, str]|UntypedStripeObject[str]" + metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ The metadata of the `batch_job`. """ diff --git a/stripe/params/v2/money_management/_financial_account_list_params.py b/stripe/params/v2/money_management/_financial_account_list_params.py index 95949bc87..0048fea1e 100644 --- a/stripe/params/v2/money_management/_financial_account_list_params.py +++ b/stripe/params/v2/money_management/_financial_account_list_params.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +from typing import List from typing_extensions import Literal, NotRequired, TypedDict @@ -8,7 +9,7 @@ class FinancialAccountListParams(TypedDict): """ The page limit. """ - status: NotRequired[Literal["closed", "open", "pending"]] + statuses: NotRequired[List[Literal["closed", "open", "pending"]]] """ - The status of the FinancialAccount to filter by. By default, closed FinancialAccounts are not returned. + Filter for FinancialAccount `status`. By default, closed FinancialAccounts are not returned. """ diff --git a/stripe/v2/commerce/_product_catalog_import.py b/stripe/v2/commerce/_product_catalog_import.py index 3e48b840e..3f4229c32 100644 --- a/stripe/v2/commerce/_product_catalog_import.py +++ b/stripe/v2/commerce/_product_catalog_import.py @@ -167,7 +167,7 @@ class Sample(StripeObject): """ The time this ProductCatalogImport was created. """ - feed_type: Literal["inventory", "pricing", "product"] + feed_type: Literal["inventory", "pricing", "product", "promotion"] """ The type of feed data being imported into the product catalog. """ @@ -183,6 +183,10 @@ class Sample(StripeObject): """ Additional information about the object in a structured format. """ + mode: Literal["replace", "upsert"] + """ + The import strategy for handling existing catalog data. + """ object: Literal["v2.commerce.product_catalog_import"] """ String representing the object's type. Objects of the same type share the same value of the object field. diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index 16d793aa6..05c79d0c0 100644 --- a/stripe/v2/core/_account.py +++ b/stripe/v2/core/_account.py @@ -1618,6 +1618,39 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"payouts": Payouts} + class SunbitPayments(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", "no_resolution", "provide_info" + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", "pending", "restricted", "unsupported" + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = {"status_details": StatusDetail} + class SwishPayments(StripeObject): class StatusDetail(StripeObject): code: Literal[ @@ -1914,6 +1947,10 @@ class StatusDetail(StripeObject): """ Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). """ + sunbit_payments: Optional[SunbitPayments] + """ + Allow the merchant to process Sunbit payments. + """ swish_payments: Optional[SwishPayments] """ Allow the merchant to process Swish payments. @@ -1972,6 +2009,7 @@ class StatusDetail(StripeObject): "sepa_bank_transfer_payments": SepaBankTransferPayments, "sepa_debit_payments": SepaDebitPayments, "stripe_balance": StripeBalance, + "sunbit_payments": SunbitPayments, "swish_payments": SwishPayments, "twint_payments": TwintPayments, "us_bank_transfer_payments": UsBankTransferPayments, @@ -2201,10 +2239,482 @@ class Address(StripeObject): "support": Support, } - class Recipient(StripeObject): + class MoneyManager(StripeObject): class Capabilities(StripeObject): - class BankAccounts(StripeObject): - class Local(StripeObject): + class BusinessStorage(StripeObject): + class Inbound(StripeObject): + class Aud(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + class Cad(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + class Eur(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + class Gbp(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + class Usd(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + aud: Optional[Aud] + """ + Can receive business storage-type funds on Stripe in AUD. + """ + cad: Optional[Cad] + """ + Can receive business storage-type funds on Stripe in CAD. + """ + eur: Optional[Eur] + """ + Can receive business storage-type funds on Stripe in EUR. + """ + gbp: Optional[Gbp] + """ + Can receive business storage-type funds on Stripe in GBP. + """ + usd: Optional[Usd] + """ + Can receive business storage-type funds on Stripe in USD. + """ + _inner_class_types = { + "aud": Aud, + "cad": Cad, + "eur": Eur, + "gbp": Gbp, + "usd": Usd, + } + + class Outbound(StripeObject): + class Aud(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + class Cad(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + class Eur(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + class Gbp(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + class Usd(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", + "pending", + "restricted", + "unsupported", + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = { + "status_details": StatusDetail, + } + + aud: Optional[Aud] + """ + Can send business storage-type funds on Stripe in AUD. + """ + cad: Optional[Cad] + """ + Can send business storage-type funds on Stripe in CAD. + """ + eur: Optional[Eur] + """ + Can send business storage-type funds on Stripe in EUR. + """ + gbp: Optional[Gbp] + """ + Can send business storage-type funds on Stripe in GBP. + """ + usd: Optional[Usd] + """ + Can send business storage-type funds on Stripe in USD. + """ + _inner_class_types = { + "aud": Aud, + "cad": Cad, + "eur": Eur, + "gbp": Gbp, + "usd": Usd, + } + + inbound: Optional[Inbound] + """ + Can receive business storage-type funds on Stripe. + """ + outbound: Optional[Outbound] + """ + Can send business storage-type funds on Stripe. + """ + _inner_class_types = { + "inbound": Inbound, + "outbound": Outbound, + } + + class InboundTransfers(StripeObject): + class BankAccounts(StripeObject): class StatusDetail(StripeObject): code: Literal[ "determining_status", @@ -2239,7 +2749,14 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} - class Wire(StripeObject): + bank_accounts: Optional[BankAccounts] + """ + Can pull funds into a FinancialAccount from an external bank account owned by the user. + """ + _inner_class_types = {"bank_accounts": BankAccounts} + + class OutboundPayments(StripeObject): + class BankAccounts(StripeObject): class StatusDetail(StripeObject): code: Literal[ "determining_status", @@ -2274,51 +2791,96 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} - local: Optional[Local] - """ - Enables this Account to receive OutboundPayments to linked bank accounts over local networks. - """ - wire: Optional[Wire] - """ - Enables this Account to receive OutboundPayments to linked bank accounts over wire. - """ - _inner_class_types = {"local": Local, "wire": Wire} + class Cards(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ - class Cards(StripeObject): - class StatusDetail(StripeObject): - code: Literal[ - "determining_status", - "requirements_past_due", - "requirements_pending_verification", - "restricted_other", - "unsupported_business", - "unsupported_country", - "unsupported_entity_type", + status: Literal[ + "active", "pending", "restricted", "unsupported" ] """ - Machine-readable code explaining the reason for the Capability to be in its current status. + The status of the Capability. """ - resolution: Literal[ - "contact_stripe", "no_resolution", "provide_info" + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = {"status_details": StatusDetail} + + class FinancialAccounts(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", "pending", "restricted", "unsupported" ] """ - Machine-readable code explaining how to make the Capability active. + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. """ + _inner_class_types = {"status_details": StatusDetail} - status: Literal[ - "active", "pending", "restricted", "unsupported" - ] + bank_accounts: Optional[BankAccounts] """ - The status of the Capability. + Can send funds from a FinancialAccount to a bank account owned by a different entity. """ - status_details: List[StatusDetail] + cards: Optional[Cards] """ - Additional details about the capability's status. This value is empty when `status` is `active`. + Can send funds from a FinancialAccount to a debit card owned by a different entity. """ - _inner_class_types = {"status_details": StatusDetail} + financial_accounts: Optional[FinancialAccounts] + """ + Can send funds from a FinancialAccount to a FinancialAccount owned by a different entity. + """ + _inner_class_types = { + "bank_accounts": BankAccounts, + "cards": Cards, + "financial_accounts": FinancialAccounts, + } - class StripeBalance(StripeObject): - class Payouts(StripeObject): + class OutboundTransfers(StripeObject): + class BankAccounts(StripeObject): class StatusDetail(StripeObject): code: Literal[ "determining_status", @@ -2353,7 +2915,7 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} - class StripeTransfers(StripeObject): + class FinancialAccounts(StripeObject): class StatusDetail(StripeObject): code: Literal[ "determining_status", @@ -2388,194 +2950,20 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} - payouts: Optional[Payouts] + bank_accounts: Optional[BankAccounts] """ - Enables this Account to complete payouts from their Stripe Balance (/v1/balance). + Can send funds from a FinancialAccount to a bank account belonging to the same user. """ - stripe_transfers: Optional[StripeTransfers] + financial_accounts: Optional[FinancialAccounts] """ - Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + Can send funds from a FinancialAccount to another FinancialAccount belonging to the same user. """ _inner_class_types = { - "payouts": Payouts, - "stripe_transfers": StripeTransfers, + "bank_accounts": BankAccounts, + "financial_accounts": FinancialAccounts, } - bank_accounts: Optional[BankAccounts] - """ - Capabilities that enable OutboundPayments to a bank account linked to this Account. - """ - cards: Optional[Cards] - """ - Enables this Account to receive OutboundPayments to a linked debit card. - """ - stripe_balance: Optional[StripeBalance] - """ - Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). - """ - _inner_class_types = { - "bank_accounts": BankAccounts, - "cards": Cards, - "stripe_balance": StripeBalance, - } - - class DefaultOutboundDestination(StripeObject): - id: str - """ - The payout method ID of the default outbound destination. - """ - type: Literal[ - "ae_bank_account", - "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", - "card", - "ca_bank_account", - "ch_bank_account", - "ci_bank_account", - "cl_bank_account", - "cn_bank_account", - "co_bank_account", - "crypto_wallet", - "cr_bank_account", - "cy_bank_account", - "cz_bank_account", - "de_bank_account", - "dk_bank_account", - "do_bank_account", - "dz_bank_account", - "ec_bank_account", - "ee_bank_account", - "eg_bank_account", - "es_bank_account", - "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", - "ie_bank_account", - "il_bank_account", - "in_bank_account", - "is_bank_account", - "it_bank_account", - "jm_bank_account", - "jo_bank_account", - "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", - "lt_bank_account", - "lu_bank_account", - "lv_bank_account", - "ma_bank_account", - "mc_bank_account", - "md_bank_account", - "mg_bank_account", - "mk_bank_account", - "mn_bank_account", - "mo_bank_account", - "mt_bank_account", - "mu_bank_account", - "mx_bank_account", - "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", - "om_bank_account", - "pa_bank_account", - "pe_bank_account", - "ph_bank_account", - "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", - "tn_bank_account", - "tr_bank_account", - "tt_bank_account", - "tw_bank_account", - "tz_bank_account", - "us_bank_account", - "uy_bank_account", - "uz_bank_account", - "vn_bank_account", - "za_bank_account", - ] - """ - Closed Enum. The payout method type of the default outbound destination. - """ - - applied: bool - """ - Indicates whether the recipient configuration is active. You can deactivate or reactivate the recipient configuration by updating this property. Deactivating the configuration by setting this value to false unrequest all capabilities within the configuration. It will not delete any of the configuration's other properties. - """ - capabilities: Optional[Capabilities] - """ - Capabilities that have been requested on the Recipient Configuration. - """ - default_outbound_destination: Optional[DefaultOutboundDestination] - """ - The payout method to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through the dashboard or APIs. - """ - _inner_class_types = { - "capabilities": Capabilities, - "default_outbound_destination": DefaultOutboundDestination, - } - - class Storer(StripeObject): - class Capabilities(StripeObject): - class FinancialAddresses(StripeObject): + class ReceivedCredits(StripeObject): class BankAccounts(StripeObject): class StatusDetail(StripeObject): code: Literal[ @@ -2613,131 +3001,11 @@ class StatusDetail(StripeObject): bank_accounts: Optional[BankAccounts] """ - Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount. + Can receive credits to a bank-account like financial address to credit a FinancialAccount. """ _inner_class_types = {"bank_accounts": BankAccounts} - class HoldsCurrencies(StripeObject): - class Eur(StripeObject): - class StatusDetail(StripeObject): - code: Literal[ - "determining_status", - "requirements_past_due", - "requirements_pending_verification", - "restricted_other", - "unsupported_business", - "unsupported_country", - "unsupported_entity_type", - ] - """ - Machine-readable code explaining the reason for the Capability to be in its current status. - """ - resolution: Literal[ - "contact_stripe", - "no_resolution", - "provide_info", - ] - """ - Machine-readable code explaining how to make the Capability active. - """ - - status: Literal[ - "active", "pending", "restricted", "unsupported" - ] - """ - The status of the Capability. - """ - status_details: List[StatusDetail] - """ - Additional details about the capability's status. This value is empty when `status` is `active`. - """ - _inner_class_types = {"status_details": StatusDetail} - - class Gbp(StripeObject): - class StatusDetail(StripeObject): - code: Literal[ - "determining_status", - "requirements_past_due", - "requirements_pending_verification", - "restricted_other", - "unsupported_business", - "unsupported_country", - "unsupported_entity_type", - ] - """ - Machine-readable code explaining the reason for the Capability to be in its current status. - """ - resolution: Literal[ - "contact_stripe", - "no_resolution", - "provide_info", - ] - """ - Machine-readable code explaining how to make the Capability active. - """ - - status: Literal[ - "active", "pending", "restricted", "unsupported" - ] - """ - The status of the Capability. - """ - status_details: List[StatusDetail] - """ - Additional details about the capability's status. This value is empty when `status` is `active`. - """ - _inner_class_types = {"status_details": StatusDetail} - - class Usd(StripeObject): - class StatusDetail(StripeObject): - code: Literal[ - "determining_status", - "requirements_past_due", - "requirements_pending_verification", - "restricted_other", - "unsupported_business", - "unsupported_country", - "unsupported_entity_type", - ] - """ - Machine-readable code explaining the reason for the Capability to be in its current status. - """ - resolution: Literal[ - "contact_stripe", - "no_resolution", - "provide_info", - ] - """ - Machine-readable code explaining how to make the Capability active. - """ - - status: Literal[ - "active", "pending", "restricted", "unsupported" - ] - """ - The status of the Capability. - """ - status_details: List[StatusDetail] - """ - Additional details about the capability's status. This value is empty when `status` is `active`. - """ - _inner_class_types = {"status_details": StatusDetail} - - eur: Optional[Eur] - """ - Can hold storage-type funds on Stripe in EUR. - """ - gbp: Optional[Gbp] - """ - Can hold storage-type funds on Stripe in GBP. - """ - usd: Optional[Usd] - """ - Can hold storage-type funds on Stripe in USD. - """ - _inner_class_types = {"eur": Eur, "gbp": Gbp, "usd": Usd} - - class InboundTransfers(StripeObject): + class ReceivedDebits(StripeObject): class BankAccounts(StripeObject): class StatusDetail(StripeObject): code: Literal[ @@ -2775,47 +3043,57 @@ class StatusDetail(StripeObject): bank_accounts: Optional[BankAccounts] """ - Can pull funds into a FinancialAccount from an external bank account owned by the user. + Can receive debits to a FinancialAccount from a bank account. """ _inner_class_types = {"bank_accounts": BankAccounts} - class OutboundPayments(StripeObject): - class BankAccounts(StripeObject): - class StatusDetail(StripeObject): - code: Literal[ - "determining_status", - "requirements_past_due", - "requirements_pending_verification", - "restricted_other", - "unsupported_business", - "unsupported_country", - "unsupported_entity_type", - ] - """ - Machine-readable code explaining the reason for the Capability to be in its current status. - """ - resolution: Literal[ - "contact_stripe", - "no_resolution", - "provide_info", - ] - """ - Machine-readable code explaining how to make the Capability active. - """ - - status: Literal[ - "active", "pending", "restricted", "unsupported" - ] - """ - The status of the Capability. - """ - status_details: List[StatusDetail] - """ - Additional details about the capability's status. This value is empty when `status` is `active`. - """ - _inner_class_types = {"status_details": StatusDetail} + business_storage: Optional[BusinessStorage] + """ + Can send or receive business storage-type funds on Stripe. + """ + inbound_transfers: Optional[InboundTransfers] + """ + Hash containing capabilities related to InboundTransfers. + """ + outbound_payments: Optional[OutboundPayments] + """ + Hash containing capabilities related to [OutboundPayments](https://docs.stripe.com/api/treasury/outbound_payments?api-version=preview). + """ + outbound_transfers: Optional[OutboundTransfers] + """ + Hash containing capabilities related to [OutboundTransfers](https://docs.stripe.com/api/treasury/outbound_transfers?api-version=preview). + """ + received_credits: Optional[ReceivedCredits] + """ + Hash containing capabilities related to ReceivedCredits. + """ + received_debits: Optional[ReceivedDebits] + """ + Hash containing capabilities related to ReceivedDebits. + """ + _inner_class_types = { + "business_storage": BusinessStorage, + "inbound_transfers": InboundTransfers, + "outbound_payments": OutboundPayments, + "outbound_transfers": OutboundTransfers, + "received_credits": ReceivedCredits, + "received_debits": ReceivedDebits, + } - class Cards(StripeObject): + applied: bool + """ + Indicates whether the money manager configuration is active. You cannot deactivate (or reactivate) the money manager configuration by updating this property. + """ + capabilities: Optional[Capabilities] + """ + Capabilities that have been requested on the Money Manager Configuration. + """ + _inner_class_types = {"capabilities": Capabilities} + + class Recipient(StripeObject): + class Capabilities(StripeObject): + class BankAccounts(StripeObject): + class Local(StripeObject): class StatusDetail(StripeObject): code: Literal[ "determining_status", @@ -2850,7 +3128,7 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} - class FinancialAccounts(StripeObject): + class Wire(StripeObject): class StatusDetail(StripeObject): code: Literal[ "determining_status", @@ -2885,26 +3163,51 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} - bank_accounts: Optional[BankAccounts] + local: Optional[Local] """ - Can send funds from a FinancialAccount to a bank account owned by a different entity. + Enables this Account to receive OutboundPayments to linked bank accounts over local networks. """ - cards: Optional[Cards] + wire: Optional[Wire] """ - Can send funds from a FinancialAccount to a debit card owned by a different entity. + Enables this Account to receive OutboundPayments to linked bank accounts over wire. """ - financial_accounts: Optional[FinancialAccounts] + _inner_class_types = {"local": Local, "wire": Wire} + + class Cards(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", "no_resolution", "provide_info" + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", "pending", "restricted", "unsupported" + ] """ - Can send funds from a FinancialAccount to a FinancialAccount owned by a different entity. + The status of the Capability. """ - _inner_class_types = { - "bank_accounts": BankAccounts, - "cards": Cards, - "financial_accounts": FinancialAccounts, - } + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = {"status_details": StatusDetail} - class OutboundTransfers(StripeObject): - class BankAccounts(StripeObject): + class StripeBalance(StripeObject): + class Payouts(StripeObject): class StatusDetail(StripeObject): code: Literal[ "determining_status", @@ -2939,7 +3242,7 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} - class FinancialAccounts(StripeObject): + class StripeTransfers(StripeObject): class StatusDetail(StripeObject): code: Literal[ "determining_status", @@ -2974,56 +3277,190 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} - bank_accounts: Optional[BankAccounts] + payouts: Optional[Payouts] """ - Can send funds from a FinancialAccount to a bank account belonging to the same user. + Enables this Account to complete payouts from their Stripe Balance (/v1/balance). """ - financial_accounts: Optional[FinancialAccounts] + stripe_transfers: Optional[StripeTransfers] """ - Can send funds from a FinancialAccount to another FinancialAccount belonging to the same user. + Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). """ _inner_class_types = { - "bank_accounts": BankAccounts, - "financial_accounts": FinancialAccounts, + "payouts": Payouts, + "stripe_transfers": StripeTransfers, } - financial_addresses: Optional[FinancialAddresses] + bank_accounts: Optional[BankAccounts] """ - Can provision a financial address to credit/debit a FinancialAccount. + Capabilities that enable OutboundPayments to a bank account linked to this Account. """ - holds_currencies: Optional[HoldsCurrencies] + cards: Optional[Cards] """ - Can hold storage-type funds on Stripe. + Enables this Account to receive OutboundPayments to a linked debit card. """ - inbound_transfers: Optional[InboundTransfers] + stripe_balance: Optional[StripeBalance] """ - Hash containing capabilities related to InboundTransfers. + Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). """ - outbound_payments: Optional[OutboundPayments] + _inner_class_types = { + "bank_accounts": BankAccounts, + "cards": Cards, + "stripe_balance": StripeBalance, + } + + class DefaultOutboundDestination(StripeObject): + id: str """ - Hash containing capabilities related to [OutboundPayments](https://docs.stripe.com/api/treasury/outbound_payments?api-version=preview). + The payout method ID of the default outbound destination. """ - outbound_transfers: Optional[OutboundTransfers] + type: Literal[ + "ae_bank_account", + "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", + "card", + "ca_bank_account", + "ch_bank_account", + "ci_bank_account", + "cl_bank_account", + "cn_bank_account", + "co_bank_account", + "crypto_wallet", + "cr_bank_account", + "cy_bank_account", + "cz_bank_account", + "de_bank_account", + "dk_bank_account", + "do_bank_account", + "dz_bank_account", + "ec_bank_account", + "ee_bank_account", + "eg_bank_account", + "es_bank_account", + "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", + "ie_bank_account", + "il_bank_account", + "in_bank_account", + "is_bank_account", + "it_bank_account", + "jm_bank_account", + "jo_bank_account", + "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", + "lt_bank_account", + "lu_bank_account", + "lv_bank_account", + "ma_bank_account", + "mc_bank_account", + "md_bank_account", + "mg_bank_account", + "mk_bank_account", + "mn_bank_account", + "mo_bank_account", + "mt_bank_account", + "mu_bank_account", + "mx_bank_account", + "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", + "om_bank_account", + "pa_bank_account", + "pe_bank_account", + "ph_bank_account", + "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", + "tn_bank_account", + "tr_bank_account", + "tt_bank_account", + "tw_bank_account", + "tz_bank_account", + "us_bank_account", + "uy_bank_account", + "uz_bank_account", + "vn_bank_account", + "za_bank_account", + ] """ - Hash containing capabilities related to [OutboundTransfers](https://docs.stripe.com/api/treasury/outbound_transfers?api-version=preview). + Closed Enum. The payout method type of the default outbound destination. """ - _inner_class_types = { - "financial_addresses": FinancialAddresses, - "holds_currencies": HoldsCurrencies, - "inbound_transfers": InboundTransfers, - "outbound_payments": OutboundPayments, - "outbound_transfers": OutboundTransfers, - } applied: bool """ - Indicates whether the storer configuration is active. You cannot deactivate (or reactivate) the storer configuration by updating this property. + Indicates whether the recipient configuration is active. You can deactivate or reactivate the recipient configuration by updating this property. Deactivating the configuration by setting this value to false unrequest all capabilities within the configuration. It will not delete any of the configuration's other properties. """ capabilities: Optional[Capabilities] """ - Capabilities that have been requested on the Storer Configuration. + Capabilities that have been requested on the Recipient Configuration. + """ + default_outbound_destination: Optional[DefaultOutboundDestination] """ - _inner_class_types = {"capabilities": Capabilities} + The payout method to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through the dashboard or APIs. + """ + _inner_class_types = { + "capabilities": Capabilities, + "default_outbound_destination": DefaultOutboundDestination, + } customer: Optional[Customer] """ @@ -3033,19 +3470,19 @@ class StatusDetail(StripeObject): """ Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. """ - recipient: Optional[Recipient] + money_manager: Optional[MoneyManager] """ - The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set. + The Money Manager Configuration allows the Account to store and move funds using FinancialAccounts. """ - storer: Optional[Storer] + recipient: Optional[Recipient] """ - The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts. + The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set. """ _inner_class_types = { "customer": Customer, "merchant": Merchant, + "money_manager": MoneyManager, "recipient": Recipient, - "storer": Storer, } class Defaults(StripeObject): @@ -3077,7 +3514,7 @@ class Responsibilities(StripeObject): """ losses_collector: Optional[Literal["application", "stripe"]] """ - A value indicating responsibility for collecting requirements on this account. + A value indicating the responsibility for losses on this account. """ requirements_collector: Literal["application", "stripe"] """ @@ -3332,6 +3769,12 @@ class Deadline(StripeObject): "bank_accounts.wire", "blik_payments", "boleto_payments", + "business_storage.inbound.eur", + "business_storage.inbound.gbp", + "business_storage.inbound.usd", + "business_storage.outbound.eur", + "business_storage.outbound.gbp", + "business_storage.outbound.usd", "cards", "card_payments", "cartes_bancaires_payments", @@ -3368,6 +3811,8 @@ class Deadline(StripeObject): "paynow_payments", "pay_by_bank_payments", "promptpay_payments", + "received_credits.bank_accounts", + "received_debits.bank_accounts", "revolut_pay_payments", "samsung_pay_payments", "sepa_bank_transfer_payments", @@ -3383,7 +3828,11 @@ class Deadline(StripeObject): The name of the Capability which will be restricted. """ configuration: Literal[ - "customer", "merchant", "recipient", "storer" + "customer", + "merchant", + "money_manager", + "recipient", + "storer", ] """ The configuration which specifies the Capability which will be restricted. @@ -3578,7 +4027,7 @@ class Account(StripeObject): The user agent of the browser from which the Account's representative accepted the terms of service. """ - class Storer(StripeObject): + class MoneyManager(StripeObject): date: Optional[str] """ The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. @@ -3596,11 +4045,14 @@ class Storer(StripeObject): """ Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance). """ - storer: Optional[Storer] + money_manager: Optional[MoneyManager] """ Details on the Account's acceptance of Treasury-specific terms of service. """ - _inner_class_types = {"account": Account, "storer": Storer} + _inner_class_types = { + "account": Account, + "money_manager": MoneyManager, + } directorship_declaration: Optional[DirectorshipDeclaration] """ @@ -4902,6 +5354,12 @@ class Deadline(StripeObject): "bank_accounts.wire", "blik_payments", "boleto_payments", + "business_storage.inbound.eur", + "business_storage.inbound.gbp", + "business_storage.inbound.usd", + "business_storage.outbound.eur", + "business_storage.outbound.gbp", + "business_storage.outbound.usd", "cards", "card_payments", "cartes_bancaires_payments", @@ -4938,6 +5396,8 @@ class Deadline(StripeObject): "paynow_payments", "pay_by_bank_payments", "promptpay_payments", + "received_credits.bank_accounts", + "received_debits.bank_accounts", "revolut_pay_payments", "samsung_pay_payments", "sepa_bank_transfer_payments", @@ -4953,7 +5413,11 @@ class Deadline(StripeObject): The name of the Capability which will be restricted. """ configuration: Literal[ - "customer", "merchant", "recipient", "storer" + "customer", + "merchant", + "money_manager", + "recipient", + "storer", ] """ The configuration which specifies the Capability which will be restricted. @@ -5063,7 +5527,7 @@ class MinimumDeadline(StripeObject): _inner_class_types = {"entries": Entry, "summary": Summary} applied_configurations: List[ - Literal["customer", "merchant", "recipient", "storer"] + Literal["customer", "merchant", "recipient", "money_manager"] ] """ The configurations that have been applied to this account. diff --git a/stripe/v2/core/_account_link.py b/stripe/v2/core/_account_link.py index c0d2a2e0e..4f6511f97 100644 --- a/stripe/v2/core/_account_link.py +++ b/stripe/v2/core/_account_link.py @@ -31,7 +31,13 @@ class CollectionOptions(StripeObject): Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. """ configurations: List[ - Literal["customer", "merchant", "recipient", "storer"] + Literal[ + "customer", + "merchant", + "money_manager", + "recipient", + "storer", + ] ] """ Open Enum. A v2/core/account can be configured to enable certain functionality. The configuration param targets the v2/core/account_link to collect information for the specified v2/core/account configuration/s. @@ -62,7 +68,13 @@ class CollectionOptions(StripeObject): Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. """ configurations: List[ - Literal["customer", "merchant", "recipient", "storer"] + Literal[ + "customer", + "merchant", + "money_manager", + "recipient", + "storer", + ] ] """ Open Enum. A v2/account can be configured to enable certain functionality. The configuration param targets the v2/account_link to collect information for the specified v2/account configuration/s. diff --git a/stripe/v2/core/_batch_job.py b/stripe/v2/core/_batch_job.py index 5ad626ad4..135950dcd 100644 --- a/stripe/v2/core/_batch_job.py +++ b/stripe/v2/core/_batch_job.py @@ -293,10 +293,6 @@ class DownloadUrl(StripeObject): """ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. """ - maximum_rps: int - """ - The maximum requests per second defined for the `batch_job`. - """ metadata: UntypedStripeObject[str] """ The metadata of the `batch_job`. diff --git a/stripe/v2/money_management/_financial_address.py b/stripe/v2/money_management/_financial_address.py index 798a7bfd3..3a82b5597 100644 --- a/stripe/v2/money_management/_financial_address.py +++ b/stripe/v2/money_management/_financial_address.py @@ -108,6 +108,10 @@ class AccountHolderAddress(StripeObject): """ The name of the Bank. """ + bic: Optional[str] + """ + The BIC of the bank or financial institution. + """ last4: str """ The last four digits of the US Bank Account number. This will always be returned. @@ -117,10 +121,6 @@ class AccountHolderAddress(StripeObject): """ The routing number of the US Bank Account. """ - swift_code: Optional[str] - """ - The swift code of the bank or financial institution. - """ _inner_class_types = { "account_holder_address": AccountHolderAddress, } diff --git a/stripe/v2/money_management/_outbound_payment.py b/stripe/v2/money_management/_outbound_payment.py index dce40050d..3f14d7274 100644 --- a/stripe/v2/money_management/_outbound_payment.py +++ b/stripe/v2/money_management/_outbound_payment.py @@ -41,17 +41,26 @@ class RecipientNotification(StripeObject): class StatusDetails(StripeObject): class Failed(StripeObject): reason: Literal[ + "fx_rate_drift_exceeded_after_review", + "payout_method_amount_limit_exceeded", "payout_method_declined", "payout_method_does_not_exist", "payout_method_expired", "payout_method_unsupported", "payout_method_usage_frequency_limit_exceeded", + "review_rejected", "unknown_failure", ] """ Open Enum. The `failed` status reason. """ + class Processing(StripeObject): + reason: Literal["under_review"] + """ + Open Enum. The `processing` status reason. + """ + class Returned(StripeObject): reason: Literal[ "payout_method_canceled_by_customer", @@ -74,11 +83,19 @@ class Returned(StripeObject): """ The `failed` status reason. """ + processing: Optional[Processing] + """ + The `processing` status details. + """ returned: Optional[Returned] """ The `returned` status reason. """ - _inner_class_types = {"failed": Failed, "returned": Returned} + _inner_class_types = { + "failed": Failed, + "processing": Processing, + "returned": Returned, + } class StatusTransitions(StripeObject): canceled_at: Optional[str] @@ -204,7 +221,7 @@ class TraceId(StripeObject): """ status_details: Optional[StatusDetails] """ - Status details for an OutboundPayment in a `failed` or `returned` state. + Status details for an OutboundPayment in a `processing`, `failed`, or `returned` state. """ status_transitions: Optional[StatusTransitions] """ diff --git a/stripe/v2/money_management/_outbound_transfer.py b/stripe/v2/money_management/_outbound_transfer.py index 9164b7bcc..8232ff2ee 100644 --- a/stripe/v2/money_management/_outbound_transfer.py +++ b/stripe/v2/money_management/_outbound_transfer.py @@ -34,18 +34,26 @@ class From(StripeObject): class StatusDetails(StripeObject): class Failed(StripeObject): reason: Literal[ + "fx_rate_drift_exceeded_after_review", "payout_method_amount_limit_exceeded", "payout_method_declined", "payout_method_does_not_exist", "payout_method_expired", "payout_method_unsupported", "payout_method_usage_frequency_limit_exceeded", + "review_rejected", "unknown_failure", ] """ Open Enum. The `failed` status reason. """ + class Processing(StripeObject): + reason: Literal["under_review"] + """ + Open Enum. The `processing` status reason. + """ + class Returned(StripeObject): reason: Literal[ "payout_method_canceled_by_customer", @@ -68,11 +76,19 @@ class Returned(StripeObject): """ The `failed` status reason. """ + processing: Optional[Processing] + """ + The `processing` status details. + """ returned: Optional[Returned] """ The `returned` status reason. """ - _inner_class_types = {"failed": Failed, "returned": Returned} + _inner_class_types = { + "failed": Failed, + "processing": Processing, + "returned": Returned, + } class StatusTransitions(StripeObject): canceled_at: Optional[str] @@ -182,7 +198,7 @@ class TraceId(StripeObject): """ status_details: Optional[StatusDetails] """ - Status details for an OutboundTransfer in a `failed` or `returned` state. + Status details for an OutboundTransfer in a `processing`, `failed`, or `returned` state. """ status_transitions: Optional[StatusTransitions] """ diff --git a/stripe/v2/money_management/_received_credit.py b/stripe/v2/money_management/_received_credit.py index c219c929c..438e5e388 100644 --- a/stripe/v2/money_management/_received_credit.py +++ b/stripe/v2/money_management/_received_credit.py @@ -93,6 +93,10 @@ class SepaBankAccount(StripeObject): """ class UsBankAccount(StripeObject): + account_holder_name: Optional[str] + """ + The name of the account holder that sent the payment. + """ bank_name: Optional[str] """ The bank name the transfer was received from. diff --git a/stripe/v2/money_management/_received_debit.py b/stripe/v2/money_management/_received_debit.py index b50f6b432..b07f47384 100644 --- a/stripe/v2/money_management/_received_debit.py +++ b/stripe/v2/money_management/_received_debit.py @@ -51,6 +51,7 @@ class UsBankAccount(StripeObject): class StatusDetails(StripeObject): class Failed(StripeObject): reason: Literal[ + "capability_inactive", "financial_address_inactive", "insufficient_funds", "stripe_rejected", diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 7b0474211..739554ef2 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -44594,7 +44594,7 @@ def test_v2_core_account_link_post_service( "fields": "eventually_due", "future_requirements": "include", }, - "configurations": ["storer"], + "configurations": ["merchant"], "refresh_url": "refresh_url", "return_url": "return_url", }, @@ -44603,7 +44603,7 @@ def test_v2_core_account_link_post_service( "fields": "eventually_due", "future_requirements": "include", }, - "configurations": ["storer"], + "configurations": ["merchant"], "refresh_url": "refresh_url", "return_url": "return_url", }, @@ -44616,7 +44616,7 @@ def test_v2_core_account_link_post_service( path="/v2/core/account_links", query_string="", api_base="https://api.stripe.com", - post_data='{"account":"account","use_case":{"account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"type":"account_onboarding"}}', + post_data='{"account":"account","use_case":{"account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["merchant"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["merchant"],"refresh_url":"refresh_url","return_url":"return_url"},"type":"account_onboarding"}}', is_json=True, ) @@ -44680,7 +44680,6 @@ def test_v2_core_batch_job_post_service( "http_method": "delete", "path": "/v1/subscriptions/:subscription_exposed_id", }, - "metadata": {"key": "metadata"}, "skip_validation": True, } ) @@ -44689,7 +44688,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/subscriptions/:subscription_exposed_id"},"metadata":{"key":"metadata"},"skip_validation":true}', + post_data='{"endpoint":{"http_method":"delete","path":"/v1/subscriptions/:subscription_exposed_id"},"skip_validation":true}', is_json=True, ) @@ -46638,7 +46637,7 @@ def test_cannot_proceed_error_service( ) -> None: http_client_mock.stub_request( "post", - "/v2/extend/workflows/id_123/invoke", + "/v2/core/vault/us_bank_accounts/id_123/archive", rbody='{"error":{"type":"cannot_proceed","code":"default_payout_method_cannot_be_archived"}}', rcode=400, ) @@ -46648,30 +46647,15 @@ def test_cannot_proceed_error_service( ) try: - client.v2.extend.workflows.invoke( - "id_123", - { - "input_parameters": { - "int_key": 123, - "string_key": "value", - "boolean_key": True, - "object_key": { - "object_int_key": 123, - "object_string_key": "value", - "object_boolean_key": True, - }, - "array_key": [1, 2, 3], - }, - }, - ) + client.v2.core.vault.us_bank_accounts.archive("id_123") except _error.CannotProceedError: pass http_client_mock.assert_requested( "post", - path="/v2/extend/workflows/id_123/invoke", + path="/v2/core/vault/us_bank_accounts/id_123/archive", query_string="", api_base="https://api.stripe.com", - post_data='{"input_parameters":{"int_key":123,"string_key":"value","boolean_key":true,"object_key":{"object_int_key":123,"object_string_key":"value","object_boolean_key":true},"array_key":[1,2,3]}}', + post_data="{}", is_json=True, ) From 2c10dc5f2281a8b81a8b105b26b2f7ba3e36af90 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 04:36:49 +0000 Subject: [PATCH 13/13] Update generated code for v2324 and 6012b623b1c09ad54d466947da04511a042ee45a --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_api_version.py | 2 +- stripe/_balance_transaction.py | 11 +-- stripe/_balance_transaction_service.py | 8 +- stripe/_card.py | 12 ++- stripe/_charge.py | 31 +++++++- stripe/_confirmation_token.py | 15 +++- stripe/_credit_note.py | 4 + stripe/_credit_note_service.py | 4 + stripe/_customer.py | 11 +++ stripe/_dispute.py | 24 +++++- stripe/_event.py | 14 ++-- stripe/_invoice.py | 6 ++ stripe/_order.py | 2 +- stripe/_payment_attempt_record.py | 18 +++-- stripe/_payment_intent.py | 48 +++++++++++- stripe/_payment_method.py | 26 ++++++- stripe/_payment_record.py | 18 +++-- stripe/_quote_preview_invoice.py | 6 ++ stripe/_setup_attempt.py | 15 +++- stripe/_setup_intent.py | 16 ++++ stripe/_source.py | 11 +++ stripe/_subscription.py | 41 +++++++--- stripe/_subscription_service.py | 4 +- stripe/_token.py | 14 ++++ stripe/capital/_financing_offer.py | 13 ++++ stripe/capital/_financing_summary.py | 13 ++++ stripe/checkout/_session.py | 51 +++++++++++++ stripe/financial_connections/_account.py | 20 ++++- .../financial_connections/_authorization.py | 13 +++- stripe/identity/_verification_session.py | 2 +- stripe/issuing/_authorization.py | 11 +++ stripe/issuing/_card.py | 11 +++ stripe/issuing/_cardholder.py | 11 +++ stripe/issuing/_dispute.py | 16 +++- stripe/issuing/_transaction.py | 11 +++ stripe/params/__init__.py | 75 +++++++++++++++++++ stripe/params/_account_create_params.py | 2 +- stripe/params/_account_update_params.py | 2 +- .../_balance_transaction_list_params.py | 2 +- .../_confirmation_token_create_params.py | 2 +- stripe/params/_credit_note_create_params.py | 2 +- .../_credit_note_preview_lines_list_params.py | 2 +- .../_credit_note_preview_lines_params.py | 2 +- stripe/params/_credit_note_preview_params.py | 2 +- stripe/params/_dispute_modify_params.py | 15 ++++ stripe/params/_dispute_update_params.py | 15 ++++ stripe/params/_invoice_add_lines_params.py | 2 +- stripe/params/_invoice_create_params.py | 2 +- .../params/_invoice_create_preview_params.py | 60 ++++++++++++++- .../_invoice_line_item_update_params.py | 2 +- stripe/params/_invoice_modify_params.py | 2 +- stripe/params/_invoice_update_lines_params.py | 2 +- stripe/params/_invoice_update_params.py | 2 +- stripe/params/_order_create_params.py | 2 +- stripe/params/_order_modify_params.py | 2 +- stripe/params/_order_update_params.py | 2 +- .../params/_payment_intent_confirm_params.py | 43 ++++++++++- .../params/_payment_intent_create_params.py | 43 ++++++++++- .../params/_payment_intent_modify_params.py | 43 ++++++++++- .../params/_payment_intent_search_params.py | 2 +- .../params/_payment_intent_update_params.py | 43 ++++++++++- stripe/params/_payment_link_create_params.py | 3 + .../params/_payment_method_create_params.py | 2 +- .../_payment_record_report_refund_params.py | 2 +- stripe/params/_setup_intent_confirm_params.py | 2 +- stripe/params/_setup_intent_create_params.py | 2 +- stripe/params/_setup_intent_modify_params.py | 2 +- stripe/params/_setup_intent_update_params.py | 2 +- stripe/params/_subscription_create_params.py | 27 ++++++- stripe/params/_subscription_modify_params.py | 29 ++++++- stripe/params/_subscription_pause_params.py | 2 +- stripe/params/_subscription_update_params.py | 29 ++++++- stripe/params/_topup_create_params.py | 22 +++++- .../params/_webhook_endpoint_create_params.py | 14 ++-- .../params/_webhook_endpoint_modify_params.py | 13 ++-- .../params/_webhook_endpoint_update_params.py | 13 ++-- ..._credit_balance_summary_retrieve_params.py | 2 +- .../billing/_credit_grant_create_params.py | 2 +- stripe/params/checkout/__init__.py | 10 +++ .../params/checkout/_session_create_params.py | 52 ++++++++++++- .../_session_create_params.py | 6 +- .../_confirmation_token_create_params.py | 2 +- stripe/radar/_value_list_item.py | 14 ++++ stripe/reserve/_hold.py | 21 +++++- stripe/shared_payment/_granted_token.py | 15 +++- stripe/terminal/_reader.py | 5 ++ 88 files changed, 1066 insertions(+), 137 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 756ace11d..983636f7b 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -1f0a7866ce5b5e12153c09a04349f91486b17d95 \ No newline at end of file +6012b623b1c09ad54d466947da04511a042ee45a \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c22138244..83c68c9d1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2323 \ No newline at end of file +v2324 \ No newline at end of file diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 61b0acc08..bb5cecada 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-05-27.preview" + CURRENT = "2026-06-24.preview" diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py index 2dc1b438d..dc731baa6 100644 --- a/stripe/_balance_transaction.py +++ b/stripe/_balance_transaction.py @@ -195,6 +195,7 @@ class FeeDetail(StripeObject): "stripe_fee", "stripe_fx_fee", "tax_fee", + "tax_fund", "topup", "topup_reversal", "transfer", @@ -203,7 +204,7 @@ class FeeDetail(StripeObject): "transfer_refund", ] """ - Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. + Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. """ @classmethod @@ -211,9 +212,9 @@ def list( cls, **params: Unpack["BalanceTransactionListParams"] ) -> ListObject["BalanceTransaction"]: """ - Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. - Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. """ result = cls._static_request( "get", @@ -233,9 +234,9 @@ async def list_async( cls, **params: Unpack["BalanceTransactionListParams"] ) -> ListObject["BalanceTransaction"]: """ - Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. - Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. """ result = await cls._static_request_async( "get", diff --git a/stripe/_balance_transaction_service.py b/stripe/_balance_transaction_service.py index 35023fd93..2166a14fc 100644 --- a/stripe/_balance_transaction_service.py +++ b/stripe/_balance_transaction_service.py @@ -24,9 +24,9 @@ def list( options: Optional["RequestOptions"] = None, ) -> "ListObject[BalanceTransaction]": """ - Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. - Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. """ return cast( "ListObject[BalanceTransaction]", @@ -45,9 +45,9 @@ async def list_async( options: Optional["RequestOptions"] = None, ) -> "ListObject[BalanceTransaction]": """ - Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. - Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. """ return cast( "ListObject[BalanceTransaction]", diff --git a/stripe/_card.py b/stripe/_card.py index 4968d9741..35469de76 100644 --- a/stripe/_card.py +++ b/stripe/_card.py @@ -33,6 +33,12 @@ class Networks(StripeObject): The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. """ + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + account: Optional[ExpandableField["Account"]] address_city: Optional[str] """ @@ -161,6 +167,10 @@ class Networks(StripeObject): """ String representing the object's type. Objects of the same type share the same value. """ + redaction: Optional[Redaction] + """ + Redaction status of this card. If not null, this card is associated to a redaction job. + """ regulated_status: Optional[Literal["regulated", "unregulated"]] """ Status of a card based on the card issuer. @@ -325,4 +335,4 @@ def retrieve(cls, id, **params): "(see https://stripe.com/docs/api/external_account_cards/retrieve)." ) - _inner_class_types = {"networks": Networks} + _inner_class_types = {"networks": Networks, "redaction": Redaction} diff --git a/stripe/_charge.py b/stripe/_charge.py index cd50852cd..0141314a3 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -461,6 +461,10 @@ class Billie(StripeObject): """ class Bizum(StripeObject): + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ transaction_id: Optional[str] """ The Bizum transaction ID associated with this payment. @@ -929,6 +933,10 @@ class ShippingAddress(StripeObject): """ Populated if this transaction used 3D Secure authentication. """ + transaction_link_id: Optional[str] + """ + Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + """ wallet: Optional[Wallet] """ If this Card is part of a card wallet, this contains the details of the card wallet. @@ -1147,13 +1155,17 @@ class Crypto(StripeObject): The wallet address of the customer. """ network: Optional[ - Literal["base", "ethereum", "polygon", "solana", "tempo"] + Literal[ + "base", "ethereum", "polygon", "solana", "sui", "tempo" + ] ] """ The blockchain network that the transaction was sent on. """ token_currency: Optional[ - Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + Literal[ + "phantom_cash", "usdc", "usdg", "usdp", "usdsui", "usdt" + ] ] """ The token currency that the transaction was sent with. @@ -1928,6 +1940,10 @@ class Pix(StripeObject): """ Unique transaction id generated by BCB """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ mandate: Optional[str] """ ID of the multi use Mandate generated by the PaymentIntent @@ -2369,6 +2385,12 @@ class RadarOptions(StripeObject): A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. """ + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class Shipping(StripeObject): class Address(StripeObject): city: Optional[str] @@ -2562,6 +2584,10 @@ class TransferData(StripeObject): """ This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt. """ + redaction: Optional[Redaction] + """ + Redaction status of this charge. If not null, this charge is associated to a redaction job. + """ refunded: bool """ Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false. @@ -3025,6 +3051,7 @@ async def list_refunds_async( "payment_method_details": PaymentMethodDetails, "presentment_details": PresentmentDetails, "radar_options": RadarOptions, + "redaction": Redaction, "shipping": Shipping, "transfer_data": TransferData, } diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 0d69a52b1..0fe288ec9 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -223,10 +223,16 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ class Blik(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique and immutable identifier assigned by BLIK to every buyer. + """ class Boleto(StripeObject): tax_id: str @@ -1303,7 +1309,10 @@ class Payto(StripeObject): """ class Pix(StripeObject): - pass + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ class Promptpay(StripeObject): pass diff --git a/stripe/_credit_note.py b/stripe/_credit_note.py index 41bd06f9b..d13ef0f2b 100644 --- a/stripe/_credit_note.py +++ b/stripe/_credit_note.py @@ -388,6 +388,8 @@ def create( You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + + For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. """ return cast( "CreditNote", @@ -416,6 +418,8 @@ async def create_async( You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + + For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. """ return cast( "CreditNote", diff --git a/stripe/_credit_note_service.py b/stripe/_credit_note_service.py index 4d716f4ce..ab9ea98e9 100644 --- a/stripe/_credit_note_service.py +++ b/stripe/_credit_note_service.py @@ -119,6 +119,8 @@ def create( You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + + For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. """ return cast( "CreditNote", @@ -150,6 +152,8 @@ async def create_async( You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + + For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. """ return cast( "CreditNote", diff --git a/stripe/_customer.py b/stripe/_customer.py index 88604ee3a..c65b5220b 100644 --- a/stripe/_customer.py +++ b/stripe/_customer.py @@ -200,6 +200,12 @@ class RenderingOptions(StripeObject): "rendering_options": RenderingOptions, } + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class Shipping(StripeObject): class Address(StripeObject): city: Optional[str] @@ -391,6 +397,10 @@ class Location(StripeObject): """ The customer's preferred locales (languages), ordered by preference. """ + redaction: Optional[Redaction] + """ + Redaction status of this customer. If not null, this customer is associated to a redaction job. + """ shipping: Optional[Shipping] """ Mailing and shipping address for the customer. Appears on invoices emailed to this customer. @@ -1985,6 +1995,7 @@ def test_helpers(self): _inner_class_types = { "address": Address, "invoice_settings": InvoiceSettings, + "redaction": Redaction, "shipping": Shipping, "tax": Tax, } diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 8eb9b2396..1a4035872 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -35,6 +35,12 @@ class Dispute( class Evidence(StripeObject): class EnhancedEvidence(StripeObject): + class MastercardCompliance(StripeObject): + fee_acknowledged: bool + """ + A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + """ + class VisaCompellingEvidence3(StripeObject): class DisputedTransaction(StripeObject): class ShippingAddress(StripeObject): @@ -179,9 +185,11 @@ class VisaCompliance(StripeObject): A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. """ + mastercard_compliance: Optional[MastercardCompliance] visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] visa_compliance: Optional[VisaCompliance] _inner_class_types = { + "mastercard_compliance": MastercardCompliance, "visa_compelling_evidence_3": VisaCompellingEvidence3, "visa_compliance": VisaCompliance, } @@ -299,6 +307,14 @@ class VisaCompliance(StripeObject): class EvidenceDetails(StripeObject): class EnhancedEligibility(StripeObject): + class MastercardCompliance(StripeObject): + status: Literal[ + "fee_acknowledged", "requires_fee_acknowledgement" + ] + """ + Mastercard compliance eligibility status. + """ + class VisaCompellingEvidence3(StripeObject): required_actions: List[ Literal[ @@ -327,9 +343,11 @@ class VisaCompliance(StripeObject): Visa compliance eligibility status. """ + mastercard_compliance: Optional[MastercardCompliance] visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] visa_compliance: Optional[VisaCompliance] _inner_class_types = { + "mastercard_compliance": MastercardCompliance, "visa_compelling_evidence_3": VisaCompellingEvidence3, "visa_compliance": VisaCompliance, } @@ -450,7 +468,11 @@ class SmartDisputes(StripeObject): Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). """ enhanced_eligibility_types: List[ - Literal["visa_compelling_evidence_3", "visa_compliance"] + Literal[ + "mastercard_compliance", + "visa_compelling_evidence_3", + "visa_compliance", + ] ] """ List of eligibility types that are included in `enhanced_evidence`. diff --git a/stripe/_event.py b/stripe/_event.py index 21e30a313..8d9fd0cde 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -156,7 +156,13 @@ class Request(StripeObject): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_balance_transaction.created", "billing.credit_grant.created", + "billing.credit_grant.updated", + "billing.meter.created", + "billing.meter.deactivated", + "billing.meter.reactivated", + "billing.meter.updated", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -267,6 +273,7 @@ class Request(StripeObject): "invoice.updated", "invoice.voided", "invoice.will_be_due", + "invoice_payment.detached", "invoice_payment.paid", "invoiceitem.created", "invoiceitem.deleted", @@ -435,13 +442,6 @@ class Request(StripeObject): "treasury.received_credit.failed", "treasury.received_credit.succeeded", "treasury.received_debit.created", - "invoice_payment.detached", - "billing.credit_balance_transaction.created", - "billing.credit_grant.updated", - "billing.meter.created", - "billing.meter.deactivated", - "billing.meter.reactivated", - "billing.meter.updated", ] """ Description of the event (for example, `invoice.created` or `charge.refunded`). diff --git a/stripe/_invoice.py b/stripe/_invoice.py index f0cb7520d..5c9b38c47 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -465,6 +465,7 @@ class LastFinalizationError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -504,6 +505,10 @@ class LastFinalizationError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", @@ -1105,6 +1110,7 @@ class Filters(StripeObject): "pix", "promptpay", "revolut_pay", + "satispay", "sepa_credit_transfer", "sepa_debit", "sofort", diff --git a/stripe/_order.py b/stripe/_order.py index 0d720c607..b0a49b20a 100644 --- a/stripe/_order.py +++ b/stripe/_order.py @@ -511,7 +511,7 @@ class Sofort(StripeObject): class WechatPay(StripeObject): app_id: Optional[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: Optional[Literal["android", "ios", "web"]] """ diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 6937bec5e..1ad5ab548 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -421,6 +421,10 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ transaction_id: Optional[str] """ The Bizum transaction ID associated with this payment. @@ -680,12 +684,6 @@ class GooglePay(StripeObject): """ This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ - stored_credential_usage: Optional[ - Literal["recurring", "unscheduled"] - ] - """ - The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - """ three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. @@ -902,13 +900,17 @@ class Crypto(StripeObject): The wallet address of the customer. """ network: Optional[ - Literal["base", "ethereum", "polygon", "solana", "tempo"] + Literal[ + "base", "ethereum", "polygon", "solana", "sui", "tempo" + ] ] """ The blockchain network that the transaction was sent on. """ token_currency: Optional[ - Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + Literal[ + "phantom_cash", "usdc", "usdg", "usdp", "usdsui", "usdt" + ] ] """ The token currency that the transaction was sent with. diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index cf338c745..09ee9b67d 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -254,6 +254,7 @@ class LastPaymentError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -293,6 +294,10 @@ class LastPaymentError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", @@ -3980,6 +3985,18 @@ class Satispay(StripeObject): """ Controls when the funds will be captured from the customer's account. """ + setup_future_usage: Optional[ + Literal["none", "off_session", "on_session"] + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class Scalapay(StripeObject): capture_method: Optional[Literal["manual"]] @@ -4055,6 +4072,22 @@ class StripeBalance(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). """ + class Sunbit(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + setup_future_usage: Optional[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + class Swish(StripeObject): reference: Optional[str] """ @@ -4196,7 +4229,7 @@ class MandateOptions(StripeObject): class WechatPay(StripeObject): app_id: Optional[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: Optional[Literal["android", "ios", "web"]] """ @@ -4281,6 +4314,7 @@ class Zip(StripeObject): shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] upi: Optional[Upi] @@ -4344,6 +4378,7 @@ class Zip(StripeObject): "shopeepay": Shopeepay, "sofort": Sofort, "stripe_balance": StripeBalance, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, @@ -4386,6 +4421,12 @@ class CustomerNotification(StripeObject): """ _inner_class_types = {"card": Card} + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class Shipping(StripeObject): class Address(StripeObject): city: Optional[str] @@ -4692,6 +4733,10 @@ class PaymentData(StripeObject): """ Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails). """ + redaction: Optional[Redaction] + """ + Redaction status of this PaymentIntent. If the PaymentIntent isn't redacted, this field is null. + """ review: Optional[ExpandableField["Review"]] """ ID of the review associated with this PaymentIntent, if any. @@ -6530,6 +6575,7 @@ async def list_amount_details_line_items_async( "payment_method_options": PaymentMethodOptions, "presentment_details": PresentmentDetails, "processing": Processing, + "redaction": Redaction, "shipping": Shipping, "transfer_data": TransferData, } diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 6e7f06ece..89a49d087 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -175,10 +175,16 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ class Blik(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique and immutable identifier assigned by BLIK to every buyer. + """ class Boleto(StripeObject): tax_id: str @@ -1273,7 +1279,10 @@ class Payto(StripeObject): """ class Pix(StripeObject): - pass + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ class Promptpay(StripeObject): pass @@ -1305,6 +1314,12 @@ class Dob(StripeObject): dob: Optional[Dob] _inner_class_types = {"dob": Dob} + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class RevolutPay(StripeObject): pass @@ -1572,6 +1587,10 @@ class Zip(StripeObject): Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ rechnung: Optional[Rechnung] + redaction: Optional[Redaction] + """ + Redaction status of this PaymentMethod. If the PaymentMethod is not redacted, this field will be null. + """ revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] @@ -2161,6 +2180,7 @@ async def retrieve_async( "qris": Qris, "radar_options": RadarOptions, "rechnung": Rechnung, + "redaction": Redaction, "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index 7b633f355..375b29ac8 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -437,6 +437,10 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ transaction_id: Optional[str] """ The Bizum transaction ID associated with this payment. @@ -696,12 +700,6 @@ class GooglePay(StripeObject): """ This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ - stored_credential_usage: Optional[ - Literal["recurring", "unscheduled"] - ] - """ - The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - """ three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. @@ -918,13 +916,17 @@ class Crypto(StripeObject): The wallet address of the customer. """ network: Optional[ - Literal["base", "ethereum", "polygon", "solana", "tempo"] + Literal[ + "base", "ethereum", "polygon", "solana", "sui", "tempo" + ] ] """ The blockchain network that the transaction was sent on. """ token_currency: Optional[ - Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + Literal[ + "phantom_cash", "usdc", "usdg", "usdp", "usdsui", "usdt" + ] ] """ The token currency that the transaction was sent with. diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index 9df6bcd02..f772ec06b 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -421,6 +421,7 @@ class LastFinalizationError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -460,6 +461,10 @@ class LastFinalizationError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", @@ -1061,6 +1066,7 @@ class Filters(StripeObject): "pix", "promptpay", "revolut_pay", + "satispay", "sepa_credit_transfer", "sepa_debit", "sofort", diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index d9ffd0c43..c0a376304 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -383,11 +383,17 @@ class Payto(StripeObject): pass class Pix(StripeObject): - pass + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ class RevolutPay(StripeObject): pass + class Satispay(StripeObject): + pass + class SepaDebit(StripeObject): pass @@ -460,6 +466,7 @@ class UsBankAccount(StripeObject): payto: Optional[Payto] pix: Optional[Pix] revolut_pay: Optional[RevolutPay] + satispay: Optional[Satispay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] @@ -492,6 +499,7 @@ class UsBankAccount(StripeObject): "payto": Payto, "pix": Pix, "revolut_pay": RevolutPay, + "satispay": Satispay, "sepa_debit": SepaDebit, "sofort": Sofort, "stripe_balance": StripeBalance, @@ -523,6 +531,7 @@ class SetupError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -562,6 +571,10 @@ class SetupError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index d3ec60ea9..b8382ed92 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -108,6 +108,7 @@ class LastSetupError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -147,6 +148,10 @@ class LastSetupError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", @@ -935,6 +940,12 @@ class MandateOptions(StripeObject): "us_bank_account": UsBankAccount, } + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + application: Optional[ExpandableField["Application"]] """ ID of the Connect application that created the SetupIntent. @@ -1111,6 +1122,10 @@ class MandateOptions(StripeObject): """ The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). """ + redaction: Optional[Redaction] + """ + Redaction status of this SetupIntent. If the SetupIntent isn't redacted, this field is null. + """ single_use_mandate: Optional[ExpandableField["Mandate"]] """ ID of the single_use Mandate generated by the SetupIntent. @@ -1736,4 +1751,5 @@ async def verify_microdeposits_async( # pyright: ignore[reportGeneralTypeIssues "next_action": NextAction, "payment_method_configuration_details": PaymentMethodConfigurationDetails, "payment_method_options": PaymentMethodOptions, + "redaction": Redaction, } diff --git a/stripe/_source.py b/stripe/_source.py index af3fdc3ff..a2ed66cf7 100644 --- a/stripe/_source.py +++ b/stripe/_source.py @@ -330,6 +330,12 @@ class Receiver(StripeObject): Type of refund attribute status, one of `missing`, `requested`, or `available`. """ + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class Redirect(StripeObject): failure_reason: Optional[str] """ @@ -564,6 +570,10 @@ class Wechat(StripeObject): p24: Optional[P24] paypal: Optional[Paypal] receiver: Optional[Receiver] + redaction: Optional[Redaction] + """ + Redaction status of this source. If not null, this source is associated to a redaction job. + """ redirect: Optional[Redirect] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] @@ -960,6 +970,7 @@ def detach(self, **params) -> "Source": "p24": P24, "paypal": Paypal, "receiver": Receiver, + "redaction": Redaction, "redirect": Redirect, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, diff --git a/stripe/_subscription.py b/stripe/_subscription.py index a898be2bf..9dbeaf30f 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -249,6 +249,16 @@ class CancellationDetails(StripeObject): """ class InvoiceSettings(StripeObject): + class CustomField(StripeObject): + name: str + """ + The name of the custom field. + """ + value: str + """ + The value of the custom field. + """ + class Issuer(StripeObject): account: Optional[ExpandableField["Account"]] """ @@ -263,8 +273,20 @@ class Issuer(StripeObject): """ The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. """ + custom_fields: Optional[List[CustomField]] + """ + A list of up to 4 custom fields to be displayed on the invoice. + """ + description: Optional[str] + """ + An arbitrary string attached to the object. Often useful for displaying to users. + """ + footer: Optional[str] + """ + Footer to be displayed on the invoice. + """ issuer: Issuer - _inner_class_types = {"issuer": Issuer} + _inner_class_types = {"custom_fields": CustomField, "issuer": Issuer} class LastPriceMigrationError(StripeObject): class FailedTransition(StripeObject): @@ -667,6 +689,7 @@ class Filters(StripeObject): "pix", "promptpay", "revolut_pay", + "satispay", "sepa_credit_transfer", "sepa_debit", "sofort", @@ -1051,7 +1074,7 @@ def _cls_cancel( """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1077,7 +1100,7 @@ def cancel( """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1090,7 +1113,7 @@ def cancel( """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1103,7 +1126,7 @@ def cancel( # pyright: ignore[reportGeneralTypeIssues] """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1127,7 +1150,7 @@ async def _cls_cancel_async( """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1153,7 +1176,7 @@ async def cancel_async( """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1166,7 +1189,7 @@ async def cancel_async( """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1179,7 +1202,7 @@ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues] """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 256390d2b..347ccb292 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -54,7 +54,7 @@ def cancel( """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -82,7 +82,7 @@ async def cancel_async( """ 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. + 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 false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ diff --git a/stripe/_token.py b/stripe/_token.py index d316f43f5..064d03e84 100644 --- a/stripe/_token.py +++ b/stripe/_token.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._createable_api_resource import CreateableAPIResource +from stripe._stripe_object import StripeObject from typing import ClassVar, Optional, cast from typing_extensions import Literal, Unpack, TYPE_CHECKING @@ -36,6 +37,13 @@ class Token(CreateableAPIResource["Token"]): """ OBJECT_NAME: ClassVar[Literal["token"]] = "token" + + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + bank_account: Optional["BankAccount"] """ These bank accounts are payment methods on `Customer` objects. @@ -74,6 +82,10 @@ class Token(CreateableAPIResource["Token"]): """ String representing the object's type. Objects of the same type share the same value. """ + redaction: Optional[Redaction] + """ + Redaction status of this token. If not null, this token is associated to a redaction job. + """ type: str """ Type of the token: `account`, `bank_account`, `card`, or `pii`. @@ -136,3 +148,5 @@ async def retrieve_async( instance = cls(id, **params) await instance.refresh_async() return instance + + _inner_class_types = {"redaction": Redaction} diff --git a/stripe/capital/_financing_offer.py b/stripe/capital/_financing_offer.py index b33283e23..7913d35f1 100644 --- a/stripe/capital/_financing_offer.py +++ b/stripe/capital/_financing_offer.py @@ -102,6 +102,19 @@ class OfferedTerms(StripeObject): """ Time at which the offer was created. Given in seconds since unix epoch. """ + disclaimer_variant: Optional[ + Literal[ + "celtic_us_loan", + "fundbox_au_financing", + "youlend_de_financing", + "youlend_fr_financing", + "youlend_uk_mca", + "youlend_us_mca", + ] + ] + """ + The type of disclaimer to use for a financing offer in user-facing surfaces. The corresponding disclaimer text to use for each disclaimer_variant value can be found in the [marketing docs](https://docs.stripe.com/capital/marketing). + """ expires_after: float """ Time at which the offer expires. Given in seconds since unix epoch. diff --git a/stripe/capital/_financing_summary.py b/stripe/capital/_financing_summary.py index 69e9fa7ef..85bbc1ec6 100644 --- a/stripe/capital/_financing_summary.py +++ b/stripe/capital/_financing_summary.py @@ -54,6 +54,19 @@ class CurrentRepaymentInterval(StripeObject): """ The chronologically current repayment interval for the financing offer. """ + disclaimer_variant: Optional[ + Literal[ + "celtic_us_loan", + "fundbox_au_financing", + "youlend_de_financing", + "youlend_fr_financing", + "youlend_uk_mca", + "youlend_us_mca", + ] + ] + """ + The type of disclaimer to use for a financing offer in user-facing surfaces. The corresponding disclaimer text to use for each disclaimer_variant value can be found in the [regulatory compliance docs](https://docs.stripe.com/capital/regulatory-compliance). + """ fee_amount: int """ Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 74471ed4e..cbd6c8d71 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1738,6 +1738,22 @@ class Sofort(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). """ + class Sunbit(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + setup_future_usage: Optional[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + class Swish(StripeObject): reference: Optional[str] """ @@ -1872,6 +1888,26 @@ class ManualEntry(StripeObject): "financial_connections": FinancialConnections } + class WechatPay(StripeObject): + app_id: Optional[str] + """ + The app ID registered with WeChat Pay. Only required when client is iOS or Android. + """ + client: Optional[Literal["android", "ios", "web"]] + """ + The client type that the end customer will pay from + """ + setup_future_usage: Optional[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + acss_debit: Optional[AcssDebit] affirm: Optional[Affirm] afterpay_clearpay: Optional[AfterpayClearpay] @@ -1912,10 +1948,12 @@ class ManualEntry(StripeObject): scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] upi: Optional[Upi] us_bank_account: Optional[UsBankAccount] + wechat_pay: Optional[WechatPay] _inner_class_types = { "acss_debit": AcssDebit, "affirm": Affirm, @@ -1957,10 +1995,12 @@ class ManualEntry(StripeObject): "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, + "wechat_pay": WechatPay, } class Permissions(StripeObject): @@ -2022,6 +2062,12 @@ class PresentmentDetails(StripeObject): Currency presented to the customer during payment. """ + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class SavedPaymentMethodOptions(StripeObject): allow_redisplay_filters: Optional[ List[Literal["always", "limited", "unspecified"]] @@ -2706,6 +2752,10 @@ class Link(StripeObject): """ The ID of the original expired Checkout Session that triggered the recovery flow. """ + redaction: Optional[Redaction] + """ + The redaction status of the Checkout Session. If the Session is not redacted, this field is null. + """ redirect_on_completion: Optional[Literal["always", "if_required", "never"]] """ 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`. @@ -3162,6 +3212,7 @@ async def retrieve_async( "permissions": Permissions, "phone_number_collection": PhoneNumberCollection, "presentment_details": PresentmentDetails, + "redaction": Redaction, "saved_payment_method_options": SavedPaymentMethodOptions, "shipping_address_collection": ShippingAddressCollection, "shipping_cost": ShippingCost, diff --git a/stripe/financial_connections/_account.py b/stripe/financial_connections/_account.py index 129892ee1..268cd5cda 100644 --- a/stripe/financial_connections/_account.py +++ b/stripe/financial_connections/_account.py @@ -173,6 +173,22 @@ class OwnershipRefresh(StripeObject): """ class StatusDetails(StripeObject): + class Active(StripeObject): + action: Literal["none", "relink_required"] + """ + The action (if any) to proactively relink the Account. + """ + cause: Literal[ + "access_expired", "institution_requirement", "unspecified" + ] + """ + The underlying cause of the Account becoming inactive. + """ + expected_deactivation_date: int + """ + When the Account is expected to become inactive, if applicable. + """ + class Inactive(StripeObject): action: Literal["none", "relink_required"] """ @@ -183,14 +199,16 @@ class Inactive(StripeObject): "access_expired", "account_closed", "account_unavailable", + "institution_requirement", "unspecified", ] """ The underlying cause of the Account being inactive. """ + active: Optional[Active] inactive: Optional[Inactive] - _inner_class_types = {"inactive": Inactive} + _inner_class_types = {"active": Active, "inactive": Inactive} class TransactionRefresh(StripeObject): id: str diff --git a/stripe/financial_connections/_authorization.py b/stripe/financial_connections/_authorization.py index 91fd54099..df52e264c 100644 --- a/stripe/financial_connections/_authorization.py +++ b/stripe/financial_connections/_authorization.py @@ -40,14 +40,25 @@ class AccountHolder(StripeObject): """ class StatusDetails(StripeObject): + class Active(StripeObject): + action: Literal["none", "relink_required"] + """ + The action (if any) to proactively relink the Authorization. + """ + expected_deactivation_date: int + """ + When the Authorization is expected to become inactive, if applicable. + """ + class Inactive(StripeObject): action: Literal["none", "relink_required"] """ The action (if any) to relink the inactive Authorization. """ + active: Optional[Active] inactive: Optional[Inactive] - _inner_class_types = {"inactive": Inactive} + _inner_class_types = {"active": Active, "inactive": Inactive} account_holder: Optional[AccountHolder] """ diff --git a/stripe/identity/_verification_session.py b/stripe/identity/_verification_session.py index 6a3136202..25216c5aa 100644 --- a/stripe/identity/_verification_session.py +++ b/stripe/identity/_verification_session.py @@ -157,7 +157,7 @@ class ProvidedDetails(StripeObject): """ class Redaction(StripeObject): - status: Literal["processing", "redacted"] + status: Literal["processing", "redacted", "validated"] """ Indicates whether this object and its related objects have been redacted or not. """ diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index f6f4e1159..e1672ed14 100644 --- a/stripe/issuing/_authorization.py +++ b/stripe/issuing/_authorization.py @@ -348,6 +348,12 @@ class AmountDetails(StripeObject): """ _inner_class_types = {"amount_details": AmountDetails} + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class RequestHistory(StripeObject): class AmountDetails(StripeObject): atm_fee: Optional[int] @@ -585,6 +591,10 @@ class ThreeDSecure(StripeObject): """ The pending authorization request. This field will only be non-null during an `issuing_authorization.request` webhook. """ + redaction: Optional[Redaction] + """ + Redaction status of this authorization. If the authorization is not redacted, this field will be null. + """ request_history: List[RequestHistory] """ History of every time a `pending_request` authorization was approved/declined, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization. This field can be helpful in determining why a given authorization was approved/declined. @@ -1706,6 +1716,7 @@ def test_helpers(self): "merchant_data": MerchantData, "network_data": NetworkData, "pending_request": PendingRequest, + "redaction": Redaction, "request_history": RequestHistory, "treasury": Treasury, "verification_data": VerificationData, diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py index 9746878b4..e9ac6ec5d 100644 --- a/stripe/issuing/_card.py +++ b/stripe/issuing/_card.py @@ -69,6 +69,12 @@ class CancelAfter(StripeObject): cancel_after: CancelAfter _inner_class_types = {"cancel_after": CancelAfter} + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class Shipping(StripeObject): class Address(StripeObject): city: Optional[str] @@ -1295,6 +1301,10 @@ class GooglePay(StripeObject): """ The personalization design object belonging to this card. """ + redaction: Optional[Redaction] + """ + Redaction status of this card. If not null, this card is associated to a redaction job. + """ replaced_by: Optional[ExpandableField["Card"]] """ The latest card that replaces this card, if any. @@ -2009,6 +2019,7 @@ def test_helpers(self): _inner_class_types = { "latest_fraud_warning": LatestFraudWarning, "lifecycle_controls": LifecycleControls, + "redaction": Redaction, "shipping": Shipping, "spending_controls": SpendingControls, "wallets": Wallets, diff --git a/stripe/issuing/_cardholder.py b/stripe/issuing/_cardholder.py index c0ccce0e5..194679934 100644 --- a/stripe/issuing/_cardholder.py +++ b/stripe/issuing/_cardholder.py @@ -154,6 +154,12 @@ class Document(StripeObject): "verification": Verification, } + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class Requirements(StripeObject): disabled_reason: Optional[ Literal[ @@ -1191,6 +1197,10 @@ class SpendingLimit(StripeObject): The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`. This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder. """ + redaction: Optional[Redaction] + """ + Redaction status of this cardholder. If the cardholder is not redacted, this field will be null. + """ requirements: Requirements spending_controls: Optional[SpendingControls] """ @@ -1337,6 +1347,7 @@ async def retrieve_async( "billing": Billing, "company": Company, "individual": Individual, + "redaction": Redaction, "requirements": Requirements, "spending_controls": SpendingControls, } diff --git a/stripe/issuing/_dispute.py b/stripe/issuing/_dispute.py index ecf081c47..4bd830ea1 100644 --- a/stripe/issuing/_dispute.py +++ b/stripe/issuing/_dispute.py @@ -251,6 +251,12 @@ class ServiceNotAsDescribed(StripeObject): "service_not_as_described": ServiceNotAsDescribed, } + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class Treasury(StripeObject): debit_reversal: Optional[str] """ @@ -321,6 +327,10 @@ class Treasury(StripeObject): """ String representing the object's type. Objects of the same type share the same value. """ + redaction: Optional[Redaction] + """ + Redaction status of this dispute. If the dispute is not redacted, this field will be null. + """ status: Literal["expired", "lost", "submitted", "unsubmitted", "won"] """ Current status of the dispute. @@ -568,4 +578,8 @@ async def submit_async( # pyright: ignore[reportGeneralTypeIssues] ), ) - _inner_class_types = {"evidence": Evidence, "treasury": Treasury} + _inner_class_types = { + "evidence": Evidence, + "redaction": Redaction, + "treasury": Treasury, + } diff --git a/stripe/issuing/_transaction.py b/stripe/issuing/_transaction.py index f9c1e68bc..1f2ae7435 100644 --- a/stripe/issuing/_transaction.py +++ b/stripe/issuing/_transaction.py @@ -356,6 +356,12 @@ class Receipt(StripeObject): "receipt": Receipt, } + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + class Treasury(StripeObject): received_credit: Optional[str] """ @@ -435,6 +441,10 @@ class Treasury(StripeObject): """ Additional purchase information that is optionally provided by the merchant. """ + redaction: Optional[Redaction] + """ + Redaction status of this transaction. If the transaction is not redacted, this field will be null. + """ settlement: Optional[ExpandableField["Settlement"]] """ The ID of the [settlement](https://docs.stripe.com/api/issuing/settlements) to which this transaction belongs. @@ -738,6 +748,7 @@ def test_helpers(self): "merchant_data": MerchantData, "network_data": NetworkData, "purchase_details": PurchaseDetails, + "redaction": Redaction, "treasury": Treasury, } diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index b1ea65423..2f2e2875f 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -1320,6 +1320,7 @@ DisputeModifyParams as DisputeModifyParams, DisputeModifyParamsEvidence as DisputeModifyParamsEvidence, DisputeModifyParamsEvidenceEnhancedEvidence as DisputeModifyParamsEvidenceEnhancedEvidence, + DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance as DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance, DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3 as DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3, DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction as DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction, DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress as DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress, @@ -1334,6 +1335,7 @@ DisputeUpdateParams as DisputeUpdateParams, DisputeUpdateParamsEvidence as DisputeUpdateParamsEvidence, DisputeUpdateParamsEvidenceEnhancedEvidence as DisputeUpdateParamsEvidenceEnhancedEvidence, + DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance as DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance, DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3 as DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3, DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction as DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction, DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress as DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress, @@ -1585,6 +1587,10 @@ InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEndDuration as InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEndDuration, InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData as InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData, InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring as InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring, + InvoiceCreatePreviewParamsSubscriptionDetailsPause as InvoiceCreatePreviewParamsSubscriptionDetailsPause, + InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor as InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor, + InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageThrough as InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageThrough, + InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom as InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom, InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling as InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling, ) from stripe.params._invoice_delete_params import ( @@ -2469,6 +2475,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay as PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay, PaymentIntentConfirmParamsPaymentMethodOptionsSofort as PaymentIntentConfirmParamsPaymentMethodOptionsSofort, PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance as PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance, + PaymentIntentConfirmParamsPaymentMethodOptionsSunbit as PaymentIntentConfirmParamsPaymentMethodOptionsSunbit, PaymentIntentConfirmParamsPaymentMethodOptionsSwish as PaymentIntentConfirmParamsPaymentMethodOptionsSwish, PaymentIntentConfirmParamsPaymentMethodOptionsTwint as PaymentIntentConfirmParamsPaymentMethodOptionsTwint, PaymentIntentConfirmParamsPaymentMethodOptionsUpi as PaymentIntentConfirmParamsPaymentMethodOptionsUpi, @@ -2757,6 +2764,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsShopeepay as PaymentIntentCreateParamsPaymentMethodOptionsShopeepay, PaymentIntentCreateParamsPaymentMethodOptionsSofort as PaymentIntentCreateParamsPaymentMethodOptionsSofort, PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance as PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance, + PaymentIntentCreateParamsPaymentMethodOptionsSunbit as PaymentIntentCreateParamsPaymentMethodOptionsSunbit, PaymentIntentCreateParamsPaymentMethodOptionsSwish as PaymentIntentCreateParamsPaymentMethodOptionsSwish, PaymentIntentCreateParamsPaymentMethodOptionsTwint as PaymentIntentCreateParamsPaymentMethodOptionsTwint, PaymentIntentCreateParamsPaymentMethodOptionsUpi as PaymentIntentCreateParamsPaymentMethodOptionsUpi, @@ -3092,6 +3100,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsShopeepay as PaymentIntentModifyParamsPaymentMethodOptionsShopeepay, PaymentIntentModifyParamsPaymentMethodOptionsSofort as PaymentIntentModifyParamsPaymentMethodOptionsSofort, PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance as PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance, + PaymentIntentModifyParamsPaymentMethodOptionsSunbit as PaymentIntentModifyParamsPaymentMethodOptionsSunbit, PaymentIntentModifyParamsPaymentMethodOptionsSwish as PaymentIntentModifyParamsPaymentMethodOptionsSwish, PaymentIntentModifyParamsPaymentMethodOptionsTwint as PaymentIntentModifyParamsPaymentMethodOptionsTwint, PaymentIntentModifyParamsPaymentMethodOptionsUpi as PaymentIntentModifyParamsPaymentMethodOptionsUpi, @@ -3389,6 +3398,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay as PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay, PaymentIntentUpdateParamsPaymentMethodOptionsSofort as PaymentIntentUpdateParamsPaymentMethodOptionsSofort, PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance as PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance, + PaymentIntentUpdateParamsPaymentMethodOptionsSunbit as PaymentIntentUpdateParamsPaymentMethodOptionsSunbit, PaymentIntentUpdateParamsPaymentMethodOptionsSwish as PaymentIntentUpdateParamsPaymentMethodOptionsSwish, PaymentIntentUpdateParamsPaymentMethodOptionsTwint as PaymentIntentUpdateParamsPaymentMethodOptionsTwint, PaymentIntentUpdateParamsPaymentMethodOptionsUpi as PaymentIntentUpdateParamsPaymentMethodOptionsUpi, @@ -5142,6 +5152,7 @@ SubscriptionCreateParamsDiscountDiscountEnd as SubscriptionCreateParamsDiscountDiscountEnd, SubscriptionCreateParamsDiscountDiscountEndDuration as SubscriptionCreateParamsDiscountDiscountEndDuration, SubscriptionCreateParamsInvoiceSettings as SubscriptionCreateParamsInvoiceSettings, + SubscriptionCreateParamsInvoiceSettingsCustomField as SubscriptionCreateParamsInvoiceSettingsCustomField, SubscriptionCreateParamsInvoiceSettingsIssuer as SubscriptionCreateParamsInvoiceSettingsIssuer, SubscriptionCreateParamsItem as SubscriptionCreateParamsItem, SubscriptionCreateParamsItemBillingThresholds as SubscriptionCreateParamsItemBillingThresholds, @@ -5259,6 +5270,7 @@ SubscriptionModifyParamsDiscountDiscountEnd as SubscriptionModifyParamsDiscountDiscountEnd, SubscriptionModifyParamsDiscountDiscountEndDuration as SubscriptionModifyParamsDiscountDiscountEndDuration, SubscriptionModifyParamsInvoiceSettings as SubscriptionModifyParamsInvoiceSettings, + SubscriptionModifyParamsInvoiceSettingsCustomField as SubscriptionModifyParamsInvoiceSettingsCustomField, SubscriptionModifyParamsInvoiceSettingsIssuer as SubscriptionModifyParamsInvoiceSettingsIssuer, SubscriptionModifyParamsItem as SubscriptionModifyParamsItem, SubscriptionModifyParamsItemBillingThresholds as SubscriptionModifyParamsItemBillingThresholds, @@ -5516,6 +5528,7 @@ SubscriptionUpdateParamsDiscountDiscountEnd as SubscriptionUpdateParamsDiscountDiscountEnd, SubscriptionUpdateParamsDiscountDiscountEndDuration as SubscriptionUpdateParamsDiscountDiscountEndDuration, SubscriptionUpdateParamsInvoiceSettings as SubscriptionUpdateParamsInvoiceSettings, + SubscriptionUpdateParamsInvoiceSettingsCustomField as SubscriptionUpdateParamsInvoiceSettingsCustomField, SubscriptionUpdateParamsInvoiceSettingsIssuer as SubscriptionUpdateParamsInvoiceSettingsIssuer, SubscriptionUpdateParamsItem as SubscriptionUpdateParamsItem, SubscriptionUpdateParamsItemBillingThresholds as SubscriptionUpdateParamsItemBillingThresholds, @@ -5648,6 +5661,8 @@ ) from stripe.params._topup_create_params import ( TopupCreateParams as TopupCreateParams, + TopupCreateParamsPaymentMethodOptions as TopupCreateParamsPaymentMethodOptions, + TopupCreateParamsPaymentMethodOptionsUsBankAccount as TopupCreateParamsPaymentMethodOptionsUsBankAccount, ) from stripe.params._topup_list_params import ( TopupListParams as TopupListParams, @@ -9609,6 +9624,10 @@ "stripe.params._dispute_modify_params", False, ), + "DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance": ( + "stripe.params._dispute_modify_params", + False, + ), "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3": ( "stripe.params._dispute_modify_params", False, @@ -9643,6 +9662,10 @@ "stripe.params._dispute_update_params", False, ), + "DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance": ( + "stripe.params._dispute_update_params", + False, + ), "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3": ( "stripe.params._dispute_update_params", False, @@ -10397,6 +10420,22 @@ "stripe.params._invoice_create_preview_params", False, ), + "InvoiceCreatePreviewParamsSubscriptionDetailsPause": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageThrough": ( + "stripe.params._invoice_create_preview_params", + False, + ), + "InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom": ( + "stripe.params._invoice_create_preview_params", + False, + ), "InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling": ( "stripe.params._invoice_create_preview_params", False, @@ -13448,6 +13487,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsSunbit": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsSwish": ( "stripe.params._payment_intent_confirm_params", False, @@ -14592,6 +14635,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsSunbit": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsSwish": ( "stripe.params._payment_intent_create_params", False, @@ -15892,6 +15939,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsSunbit": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsSwish": ( "stripe.params._payment_intent_modify_params", False, @@ -17048,6 +17099,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsSunbit": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsSwish": ( "stripe.params._payment_intent_update_params", False, @@ -22789,6 +22844,10 @@ "stripe.params._subscription_create_params", False, ), + "SubscriptionCreateParamsInvoiceSettingsCustomField": ( + "stripe.params._subscription_create_params", + False, + ), "SubscriptionCreateParamsInvoiceSettingsIssuer": ( "stripe.params._subscription_create_params", False, @@ -23177,6 +23236,10 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsInvoiceSettingsCustomField": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsInvoiceSettingsIssuer": ( "stripe.params._subscription_modify_params", False, @@ -24101,6 +24164,10 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsInvoiceSettingsCustomField": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsInvoiceSettingsIssuer": ( "stripe.params._subscription_update_params", False, @@ -24449,6 +24516,14 @@ "TokenRetrieveParams": ("stripe.params._token_retrieve_params", False), "TopupCancelParams": ("stripe.params._topup_cancel_params", False), "TopupCreateParams": ("stripe.params._topup_create_params", False), + "TopupCreateParamsPaymentMethodOptions": ( + "stripe.params._topup_create_params", + False, + ), + "TopupCreateParamsPaymentMethodOptionsUsBankAccount": ( + "stripe.params._topup_create_params", + False, + ), "TopupListParams": ("stripe.params._topup_list_params", False), "TopupListParamsAmount": ("stripe.params._topup_list_params", False), "TopupListParamsCreated": ("stripe.params._topup_list_params", False), diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 96412e0c6..61686a5c1 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -1569,7 +1569,7 @@ class AccountCreateParamsDocuments(TypedDict): "AccountCreateParamsDocumentsCompanyMemorandumOfAssociation" ] """ - One or more documents showing the company's Memorandum of Association. + One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). """ company_ministerial_decree: NotRequired[ "AccountCreateParamsDocumentsCompanyMinisterialDecree" diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index 406e8a4e8..fb3f68754 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -1481,7 +1481,7 @@ class AccountUpdateParamsDocuments(TypedDict): "AccountUpdateParamsDocumentsCompanyMemorandumOfAssociation" ] """ - One or more documents showing the company's Memorandum of Association. + One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). """ company_ministerial_decree: NotRequired[ "AccountUpdateParamsDocumentsCompanyMinisterialDecree" diff --git a/stripe/params/_balance_transaction_list_params.py b/stripe/params/_balance_transaction_list_params.py index 9f636474c..04d0554ca 100644 --- a/stripe/params/_balance_transaction_list_params.py +++ b/stripe/params/_balance_transaction_list_params.py @@ -40,7 +40,7 @@ class BalanceTransactionListParams(RequestOptions): """ type: NotRequired[str] """ - Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. + Only returns transactions of the given type. One of: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. """ diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index addf1865e..bb0993943 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -344,7 +344,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_credit_note_create_params.py b/stripe/params/_credit_note_create_params.py index 6299dba8e..5ce43d56b 100644 --- a/stripe/params/_credit_note_create_params.py +++ b/stripe/params/_credit_note_create_params.py @@ -95,7 +95,7 @@ class CreditNoteCreateParamsLine(TypedDict): "Literal['']|List[CreditNoteCreateParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_credit_note_preview_lines_list_params.py b/stripe/params/_credit_note_preview_lines_list_params.py index 140b25522..e14ea097f 100644 --- a/stripe/params/_credit_note_preview_lines_list_params.py +++ b/stripe/params/_credit_note_preview_lines_list_params.py @@ -106,7 +106,7 @@ class CreditNotePreviewLinesListParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewLinesListParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_credit_note_preview_lines_params.py b/stripe/params/_credit_note_preview_lines_params.py index 54102dd77..d8974086f 100644 --- a/stripe/params/_credit_note_preview_lines_params.py +++ b/stripe/params/_credit_note_preview_lines_params.py @@ -107,7 +107,7 @@ class CreditNotePreviewLinesParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewLinesParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_credit_note_preview_params.py b/stripe/params/_credit_note_preview_params.py index 4987dd467..ec7be34e9 100644 --- a/stripe/params/_credit_note_preview_params.py +++ b/stripe/params/_credit_note_preview_params.py @@ -95,7 +95,7 @@ class CreditNotePreviewParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_dispute_modify_params.py b/stripe/params/_dispute_modify_params.py index d696de6cf..9c139f1a7 100644 --- a/stripe/params/_dispute_modify_params.py +++ b/stripe/params/_dispute_modify_params.py @@ -156,6 +156,12 @@ class DisputeModifyParamsEvidence(TypedDict): class DisputeModifyParamsEvidenceEnhancedEvidence(TypedDict): + mastercard_compliance: NotRequired[ + "DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance" + ] + """ + Evidence provided for Mastercard compliance evidence submission. + """ visa_compelling_evidence_3: NotRequired[ "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3" ] @@ -170,6 +176,15 @@ class DisputeModifyParamsEvidenceEnhancedEvidence(TypedDict): """ +class DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance( + TypedDict, +): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + """ + + class DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, ): diff --git a/stripe/params/_dispute_update_params.py b/stripe/params/_dispute_update_params.py index 469aaea8a..c327fbb56 100644 --- a/stripe/params/_dispute_update_params.py +++ b/stripe/params/_dispute_update_params.py @@ -155,6 +155,12 @@ class DisputeUpdateParamsEvidence(TypedDict): class DisputeUpdateParamsEvidenceEnhancedEvidence(TypedDict): + mastercard_compliance: NotRequired[ + "DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance" + ] + """ + Evidence provided for Mastercard compliance evidence submission. + """ visa_compelling_evidence_3: NotRequired[ "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3" ] @@ -169,6 +175,15 @@ class DisputeUpdateParamsEvidenceEnhancedEvidence(TypedDict): """ +class DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance( + TypedDict, +): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + """ + + class DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, ): diff --git a/stripe/params/_invoice_add_lines_params.py b/stripe/params/_invoice_add_lines_params.py index 7d2383574..a358afa03 100644 --- a/stripe/params/_invoice_add_lines_params.py +++ b/stripe/params/_invoice_add_lines_params.py @@ -81,7 +81,7 @@ class InvoiceAddLinesParamsLine(TypedDict): "Literal['']|List[InvoiceAddLinesParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index 4d639ad55..4965245b7 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', 'twint', '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', 'satispay', '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 5428d35c8..4b99f07be 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -1911,6 +1911,14 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict): """ A list of up to 20 subscription items, each with an attached price. """ + pause: NotRequired["InvoiceCreatePreviewParamsSubscriptionDetailsPause"] + """ + Previews the invoice that would be generated when pausing the subscription. Passing an empty hash won't preview pausing and instead returns the next invoice. + + To receive a preview invoice, set `invoicing_behavior` to `invoice`. A preview isn't available if the `bill_for` options produce no billable amounts. + + `pending_invoice_item` never has a preview available because pausing wouldn't generate an invoice, and paused subscriptions don't generate invoices either. + """ prebilling: NotRequired[ "InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling" ] @@ -2058,7 +2066,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItem(TypedDict): """ id: NotRequired[str] """ - Subscription item to update. + Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" @@ -2205,6 +2213,56 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring( """ +class InvoiceCreatePreviewParamsSubscriptionDetailsPause(TypedDict): + bill_for: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor" + ] + """ + Controls what to bill for when pausing the subscription. + """ + invoicing_behavior: NotRequired[Literal["invoice", "pending_invoice_item"]] + """ + Determines how to handle debits and credits when pausing. Defaults to `pending_invoice_item`. + """ + type: NotRequired[Literal["subscription"]] + """ + The type of pause to apply. Defaults to `subscription`. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor(TypedDict): + outstanding_usage_through: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageThrough" + ] + """ + Controls when to bill for metered usage in the current period. Defaults to `{ type: "now" }`. + """ + unused_time_from: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom" + ] + """ + Controls when to credit for unused time on licensed items. Defaults to `{ type: "now" }`. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageThrough( + TypedDict, +): + type: Literal["none", "now"] + """ + When to bill metered usage in the current period. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom( + TypedDict, +): + type: Literal["item_current_period_start", "none", "now"] + """ + When to credit for unused time. + """ + + class InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling(TypedDict): iterations: int """ diff --git a/stripe/params/_invoice_line_item_update_params.py b/stripe/params/_invoice_line_item_update_params.py index 0a1dcdfd3..ce15ea30f 100644 --- a/stripe/params/_invoice_line_item_update_params.py +++ b/stripe/params/_invoice_line_item_update_params.py @@ -63,7 +63,7 @@ class InvoiceLineItemUpdateParams(TypedDict): "Literal['']|List[InvoiceLineItemUpdateParamsTaxAmount]" ] """ - A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index 9fdfad81f..93825ae43 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', 'twint', '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', 'satispay', '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_lines_params.py b/stripe/params/_invoice_update_lines_params.py index e38537e74..aa685c50a 100644 --- a/stripe/params/_invoice_update_lines_params.py +++ b/stripe/params/_invoice_update_lines_params.py @@ -81,7 +81,7 @@ class InvoiceUpdateLinesParamsLine(TypedDict): "Literal['']|List[InvoiceUpdateLinesParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index 5be145d5e..ded567d9d 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', 'twint', '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', 'satispay', '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/_order_create_params.py b/stripe/params/_order_create_params.py index a26321218..f91dcb7b2 100644 --- a/stripe/params/_order_create_params.py +++ b/stripe/params/_order_create_params.py @@ -2173,7 +2173,7 @@ class OrderCreateParamsPaymentSettingsPaymentMethodOptionsSofort(TypedDict): class OrderCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_order_modify_params.py b/stripe/params/_order_modify_params.py index 02a3605da..2183251c2 100644 --- a/stripe/params/_order_modify_params.py +++ b/stripe/params/_order_modify_params.py @@ -2183,7 +2183,7 @@ class OrderModifyParamsPaymentSettingsPaymentMethodOptionsSofort(TypedDict): class OrderModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_order_update_params.py b/stripe/params/_order_update_params.py index c13bc157f..6f033a506 100644 --- a/stripe/params/_order_update_params.py +++ b/stripe/params/_order_update_params.py @@ -2182,7 +2182,7 @@ class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSofort(TypedDict): class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 895413bac..f4bfee469 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -2523,7 +2523,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSwish"] """ @@ -3537,6 +3537,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. """ + sunbit: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSunbit" + ] + """ + If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + """ swish: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSwish" ] @@ -6317,6 +6323,18 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSatispay(TypedDict): 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. """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class PaymentIntentConfirmParamsPaymentMethodOptionsScalapay(TypedDict): @@ -6421,6 +6439,27 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsSunbit(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. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ @@ -6621,7 +6660,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks( class PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 5f1b9740f..cb4d9b093 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -2644,7 +2644,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSwish"] """ @@ -3658,6 +3658,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. """ + sunbit: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSunbit" + ] + """ + If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + """ swish: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSwish" ] @@ -6432,6 +6438,18 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSatispay(TypedDict): 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. """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class PaymentIntentCreateParamsPaymentMethodOptionsScalapay(TypedDict): @@ -6536,6 +6554,27 @@ class PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsSunbit(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. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ @@ -6736,7 +6775,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks( class PaymentIntentCreateParamsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index 07222fa8b..49fa1c91c 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -2500,7 +2500,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSwish"] """ @@ -3514,6 +3514,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. """ + sunbit: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSunbit" + ] + """ + If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + """ swish: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSwish" ] @@ -6288,6 +6294,18 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSatispay(TypedDict): 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. """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class PaymentIntentModifyParamsPaymentMethodOptionsScalapay(TypedDict): @@ -6392,6 +6410,27 @@ class PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsSunbit(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. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ @@ -6592,7 +6631,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks( class PaymentIntentModifyParamsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_intent_search_params.py b/stripe/params/_payment_intent_search_params.py index 516352aec..37f7a2dff 100644 --- a/stripe/params/_payment_intent_search_params.py +++ b/stripe/params/_payment_intent_search_params.py @@ -20,5 +20,5 @@ class PaymentIntentSearchParams(RequestOptions): """ query: str """ - The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-payment-intents). + The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-paymentintents). """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index 465504713..96ac8850d 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -2499,7 +2499,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSwish"] """ @@ -3513,6 +3513,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. """ + sunbit: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSunbit" + ] + """ + If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + """ swish: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSwish" ] @@ -6287,6 +6293,18 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSatispay(TypedDict): 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. """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ class PaymentIntentUpdateParamsPaymentMethodOptionsScalapay(TypedDict): @@ -6391,6 +6409,27 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsSunbit(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. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ @@ -6591,7 +6630,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks( class PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index 6e33186f0..2937e0a0e 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -107,6 +107,9 @@ class PaymentLinkCreateParams(RequestOptions): payment_method_options: NotRequired[ "PaymentLinkCreateParamsPaymentMethodOptions" ] + """ + Payment-method-specific configuration. + """ payment_method_types: NotRequired[ List[ Literal[ diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 92abfade4..e9b5ea5b0 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -261,7 +261,7 @@ class PaymentMethodCreateParams(RequestOptions): """ sunbit: NotRequired["PaymentMethodCreateParamsSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentMethodCreateParamsSwish"] """ diff --git a/stripe/params/_payment_record_report_refund_params.py b/stripe/params/_payment_record_report_refund_params.py index a2eacdfe2..c18df94b6 100644 --- a/stripe/params/_payment_record_report_refund_params.py +++ b/stripe/params/_payment_record_report_refund_params.py @@ -33,7 +33,7 @@ class PaymentRecordReportRefundParams(RequestOptions): """ Processor information for this refund. """ - refunded: "PaymentRecordReportRefundParamsRefunded" + refunded: NotRequired["PaymentRecordReportRefundParamsRefunded"] """ Information about the payment attempt refund. """ diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index 4086ae73c..a3ef5fd5a 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -377,7 +377,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index 3df403a72..4dddce679 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -514,7 +514,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["SetupIntentCreateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["SetupIntentCreateParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index 9d93460ba..3986cee22 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -353,7 +353,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["SetupIntentModifyParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["SetupIntentModifyParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index 52cd0d9bf..226de9585 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -352,7 +352,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index d51dc2f3d..cdd0ac4bb 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -511,12 +511,37 @@ class SubscriptionCreateParamsInvoiceSettings(TypedDict): """ The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. """ + custom_fields: NotRequired[ + "Literal['']|List[SubscriptionCreateParamsInvoiceSettingsCustomField]" + ] + """ + A list of up to 4 custom fields to be displayed on the invoice. + """ + description: NotRequired[str] + """ + An arbitrary string attached to the object. Often useful for displaying to users. + """ + footer: NotRequired[str] + """ + Footer to be displayed on the invoice. + """ issuer: NotRequired["SubscriptionCreateParamsInvoiceSettingsIssuer"] """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. """ +class SubscriptionCreateParamsInvoiceSettingsCustomField(TypedDict): + name: str + """ + The name of the custom field. This may be up to 40 characters. + """ + value: str + """ + The value of the custom field. This may be up to 140 characters. + """ + + class SubscriptionCreateParamsInvoiceSettingsIssuer(TypedDict): account: NotRequired[str] """ @@ -699,7 +724,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', 'twint', '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', 'satispay', '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_modify_params.py b/stripe/params/_subscription_modify_params.py index 61e520062..978b95166 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -471,12 +471,37 @@ class SubscriptionModifyParamsInvoiceSettings(TypedDict): """ The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. """ + custom_fields: NotRequired[ + "Literal['']|List[SubscriptionModifyParamsInvoiceSettingsCustomField]" + ] + """ + A list of up to 4 custom fields to be displayed on the invoice. + """ + description: NotRequired["Literal['']|str"] + """ + An arbitrary string attached to the object. Often useful for displaying to users. + """ + footer: NotRequired["Literal['']|str"] + """ + Footer to be displayed on the invoice. + """ issuer: NotRequired["SubscriptionModifyParamsInvoiceSettingsIssuer"] """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. """ +class SubscriptionModifyParamsInvoiceSettingsCustomField(TypedDict): + name: str + """ + The name of the custom field. This may be up to 40 characters. + """ + value: str + """ + The value of the custom field. This may be up to 140 characters. + """ + + class SubscriptionModifyParamsInvoiceSettingsIssuer(TypedDict): account: NotRequired[str] """ @@ -515,7 +540,7 @@ class SubscriptionModifyParamsItem(TypedDict): """ id: NotRequired[str] """ - Subscription item to update. + Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" @@ -669,7 +694,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', 'twint', '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', 'satispay', '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 index 454b7f268..a3e38e44d 100644 --- a/stripe/params/_subscription_pause_params.py +++ b/stripe/params/_subscription_pause_params.py @@ -16,7 +16,7 @@ class SubscriptionPauseParams(RequestOptions): """ invoicing_behavior: NotRequired[Literal["invoice", "pending_invoice_item"]] """ - Determines how to handle debits and credits when pausing. The default is `pending_invoice_item`. + Determines how to handle debits and credits when pausing. Defaults to `pending_invoice_item`. """ type: NotRequired[Literal["subscription"]] """ diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index 4db1aeec9..bd3c5e076 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -470,12 +470,37 @@ class SubscriptionUpdateParamsInvoiceSettings(TypedDict): """ The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. """ + custom_fields: NotRequired[ + "Literal['']|List[SubscriptionUpdateParamsInvoiceSettingsCustomField]" + ] + """ + A list of up to 4 custom fields to be displayed on the invoice. + """ + description: NotRequired["Literal['']|str"] + """ + An arbitrary string attached to the object. Often useful for displaying to users. + """ + footer: NotRequired["Literal['']|str"] + """ + Footer to be displayed on the invoice. + """ issuer: NotRequired["SubscriptionUpdateParamsInvoiceSettingsIssuer"] """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. """ +class SubscriptionUpdateParamsInvoiceSettingsCustomField(TypedDict): + name: str + """ + The name of the custom field. This may be up to 40 characters. + """ + value: str + """ + The value of the custom field. This may be up to 140 characters. + """ + + class SubscriptionUpdateParamsInvoiceSettingsIssuer(TypedDict): account: NotRequired[str] """ @@ -514,7 +539,7 @@ class SubscriptionUpdateParamsItem(TypedDict): """ id: NotRequired[str] """ - Subscription item to update. + Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" @@ -668,7 +693,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', 'twint', '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', 'satispay', '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/_topup_create_params.py b/stripe/params/_topup_create_params.py index 6203536e8..930c37cd3 100644 --- a/stripe/params/_topup_create_params.py +++ b/stripe/params/_topup_create_params.py @@ -3,7 +3,7 @@ from stripe._request_options import RequestOptions from stripe._stripe_object import UntypedStripeObject from typing import Dict, List -from typing_extensions import Literal, NotRequired +from typing_extensions import Literal, NotRequired, TypedDict class TopupCreateParams(RequestOptions): @@ -29,6 +29,16 @@ class TopupCreateParams(RequestOptions): """ 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ + payment_method: NotRequired[str] + """ + The ID of a PaymentMethod representing the payment method to be used for the top-up. A PaymentMethod of type `us_bank_account` can be used. + """ + payment_method_options: NotRequired[ + "TopupCreateParamsPaymentMethodOptions" + ] + """ + Payment method-specific configuration for this top-up. + """ source: NotRequired[str] """ The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](https://docs.stripe.com/connect/testing#testing-top-ups)). @@ -41,3 +51,13 @@ class TopupCreateParams(RequestOptions): """ A string that identifies this top-up as part of a group. """ + + +class TopupCreateParamsPaymentMethodOptions(TypedDict): + us_bank_account: NotRequired[ + "TopupCreateParamsPaymentMethodOptionsUsBankAccount" + ] + + +class TopupCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): + network: Literal["ach"] diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 937b98bf6..09bf60a22 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -133,6 +133,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2026-03-25.dahlia", "2026-04-22.dahlia", "2026-05-27.dahlia", + "2026-06-24.dahlia", ] ] """ @@ -163,7 +164,13 @@ class WebhookEndpointCreateParams(RequestOptions): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_balance_transaction.created", "billing.credit_grant.created", + "billing.credit_grant.updated", + "billing.meter.created", + "billing.meter.deactivated", + "billing.meter.reactivated", + "billing.meter.updated", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -442,13 +449,6 @@ class WebhookEndpointCreateParams(RequestOptions): "treasury.received_credit.failed", "treasury.received_credit.succeeded", "treasury.received_debit.created", - "invoice_payment.detached", - "billing.credit_balance_transaction.created", - "billing.credit_grant.updated", - "billing.meter.created", - "billing.meter.deactivated", - "billing.meter.reactivated", - "billing.meter.updated", ] ] """ diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py index 6f6b5ee0b..c2afba709 100644 --- a/stripe/params/_webhook_endpoint_modify_params.py +++ b/stripe/params/_webhook_endpoint_modify_params.py @@ -33,7 +33,13 @@ class WebhookEndpointModifyParams(RequestOptions): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_balance_transaction.created", "billing.credit_grant.created", + "billing.credit_grant.updated", + "billing.meter.created", + "billing.meter.deactivated", + "billing.meter.reactivated", + "billing.meter.updated", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -312,13 +318,6 @@ class WebhookEndpointModifyParams(RequestOptions): "treasury.received_credit.failed", "treasury.received_credit.succeeded", "treasury.received_debit.created", - "invoice_payment.detached", - "billing.credit_balance_transaction.created", - "billing.credit_grant.updated", - "billing.meter.created", - "billing.meter.deactivated", - "billing.meter.reactivated", - "billing.meter.updated", ] ] ] diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py index 64584f04e..2d75f4cb5 100644 --- a/stripe/params/_webhook_endpoint_update_params.py +++ b/stripe/params/_webhook_endpoint_update_params.py @@ -32,7 +32,13 @@ class WebhookEndpointUpdateParams(TypedDict): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_balance_transaction.created", "billing.credit_grant.created", + "billing.credit_grant.updated", + "billing.meter.created", + "billing.meter.deactivated", + "billing.meter.reactivated", + "billing.meter.updated", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -311,13 +317,6 @@ class WebhookEndpointUpdateParams(TypedDict): "treasury.received_credit.failed", "treasury.received_credit.succeeded", "treasury.received_debit.created", - "invoice_payment.detached", - "billing.credit_balance_transaction.created", - "billing.credit_grant.updated", - "billing.meter.created", - "billing.meter.deactivated", - "billing.meter.reactivated", - "billing.meter.updated", ] ] ] diff --git a/stripe/params/billing/_credit_balance_summary_retrieve_params.py b/stripe/params/billing/_credit_balance_summary_retrieve_params.py index a5ea1a65a..aa72845f2 100644 --- a/stripe/params/billing/_credit_balance_summary_retrieve_params.py +++ b/stripe/params/billing/_credit_balance_summary_retrieve_params.py @@ -50,7 +50,7 @@ class CreditBalanceSummaryRetrieveParamsFilterApplicabilityScope(TypedDict): List["CreditBalanceSummaryRetrieveParamsFilterApplicabilityScopePrice"] ] """ - A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. """ diff --git a/stripe/params/billing/_credit_grant_create_params.py b/stripe/params/billing/_credit_grant_create_params.py index aade53e43..2161be55c 100644 --- a/stripe/params/billing/_credit_grant_create_params.py +++ b/stripe/params/billing/_credit_grant_create_params.py @@ -91,7 +91,7 @@ class CreditGrantCreateParamsApplicabilityConfigScope(TypedDict): List["CreditGrantCreateParamsApplicabilityConfigScopePrice"] ] """ - A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. """ diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index 9c82515b3..3741ed560 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -109,6 +109,7 @@ SessionCreateParamsPaymentMethodOptionsSepaDebit as SessionCreateParamsPaymentMethodOptionsSepaDebit, SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort, + SessionCreateParamsPaymentMethodOptionsSunbit as SessionCreateParamsPaymentMethodOptionsSunbit, SessionCreateParamsPaymentMethodOptionsSwish as SessionCreateParamsPaymentMethodOptionsSwish, SessionCreateParamsPaymentMethodOptionsTwint as SessionCreateParamsPaymentMethodOptionsTwint, SessionCreateParamsPaymentMethodOptionsUpi as SessionCreateParamsPaymentMethodOptionsUpi, @@ -130,6 +131,7 @@ SessionCreateParamsShippingOptionShippingRateDataFixedAmount as SessionCreateParamsShippingOptionShippingRateDataFixedAmount, SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions as SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions, SessionCreateParamsSubscriptionData as SessionCreateParamsSubscriptionData, + SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig as SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig, SessionCreateParamsSubscriptionDataBillingMode as SessionCreateParamsSubscriptionDataBillingMode, SessionCreateParamsSubscriptionDataBillingModeFlexible as SessionCreateParamsSubscriptionDataBillingModeFlexible, SessionCreateParamsSubscriptionDataInvoiceSettings as SessionCreateParamsSubscriptionDataInvoiceSettings, @@ -638,6 +640,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsSunbit": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsSwish": ( "stripe.params.checkout._session_create_params", False, @@ -722,6 +728,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsSubscriptionDataBillingMode": ( "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 8d2f9786c..da04377bd 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -262,8 +262,6 @@ class SessionCreateParams(RequestOptions): You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional. If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well. - - You can't set this parameter if `ui_mode` is `custom`. """ optional_items: NotRequired[List["SessionCreateParamsOptionalItem"]] """ @@ -1457,6 +1455,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Sofort payment method options. """ + sunbit: NotRequired["SessionCreateParamsPaymentMethodOptionsSunbit"] + """ + contains details about the Sunbit payment method options. + """ swish: NotRequired["SessionCreateParamsPaymentMethodOptionsSwish"] """ contains details about the Swish payment method options. @@ -2493,6 +2495,23 @@ class SessionCreateParamsPaymentMethodOptionsSofort(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsSunbit(TypedDict): + capture_method: NotRequired[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + + class SessionCreateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired[str] """ @@ -3085,6 +3104,12 @@ class SessionCreateParamsSubscriptionData(TypedDict): """ 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_cycle_anchor_config: NotRequired[ + "SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig" + ] + """ + Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month. + """ billing_mode: NotRequired["SessionCreateParamsSubscriptionDataBillingMode"] """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. @@ -3147,6 +3172,29 @@ class SessionCreateParamsSubscriptionData(TypedDict): """ +class SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig(TypedDict): + day_of_month: int + """ + The day of the month the anchor should be. Ranges from 1 to 31. + """ + hour: NotRequired[int] + """ + The hour of the day the anchor should be. Ranges from 0 to 23. + """ + minute: NotRequired[int] + """ + The minute of the hour the anchor should be. Ranges from 0 to 59. + """ + month: NotRequired[int] + """ + The month to start full cycle periods. Ranges from 1 to 12. + """ + second: NotRequired[int] + """ + The second of the minute the anchor should be. Ranges from 0 to 59. + """ + + class SessionCreateParamsSubscriptionDataBillingMode(TypedDict): flexible: NotRequired[ "SessionCreateParamsSubscriptionDataBillingModeFlexible" diff --git a/stripe/params/financial_connections/_session_create_params.py b/stripe/params/financial_connections/_session_create_params.py index a827b236b..7f9130e06 100644 --- a/stripe/params/financial_connections/_session_create_params.py +++ b/stripe/params/financial_connections/_session_create_params.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._request_options import RequestOptions -from typing import List +from typing import List, Union from typing_extensions import Literal, NotRequired, TypedDict @@ -114,9 +114,9 @@ class SessionCreateParamsHosted(TypedDict): class SessionCreateParamsLimits(TypedDict): - accounts: int + accounts: Union[Literal[""], int] """ - The number of accounts that can be linked in this Session. + The number of accounts that can be linked in this Session. Pass an empty value to allow any number of accounts. """ diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 6d4a488df..77e3dd098 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -343,7 +343,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"] """ diff --git a/stripe/radar/_value_list_item.py b/stripe/radar/_value_list_item.py index b9010a26c..4821c9740 100644 --- a/stripe/radar/_value_list_item.py +++ b/stripe/radar/_value_list_item.py @@ -4,6 +4,7 @@ from stripe._deletable_api_resource import DeletableAPIResource from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource +from stripe._stripe_object import StripeObject from stripe._util import class_method_variant, sanitize_id from typing import ClassVar, Optional, cast, overload from typing_extensions import Literal, Unpack, TYPE_CHECKING @@ -37,6 +38,13 @@ class ValueListItem( OBJECT_NAME: ClassVar[Literal["radar.value_list_item"]] = ( "radar.value_list_item" ) + + class Redaction(StripeObject): + status: Literal["processing", "redacted", "validated"] + """ + Indicates whether this object and its related objects have been redacted or not. + """ + created: int """ Time at which the object was created. Measured in seconds since the Unix epoch. @@ -61,6 +69,10 @@ class ValueListItem( """ String representing the object's type. Objects of the same type share the same value. """ + redaction: Optional[Redaction] + """ + Redaction status of this item. If not null, this item is associated to a redaction job. + """ value: str """ The value of the item. @@ -261,3 +273,5 @@ async def retrieve_async( instance = cls(id, **params) await instance.refresh_async() return instance + + _inner_class_types = {"redaction": Redaction} diff --git a/stripe/reserve/_hold.py b/stripe/reserve/_hold.py index 40e2ab1bc..eab3c0731 100644 --- a/stripe/reserve/_hold.py +++ b/stripe/reserve/_hold.py @@ -4,7 +4,7 @@ from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource from stripe._stripe_object import StripeObject, UntypedStripeObject -from typing import ClassVar, Optional +from typing import ClassVar, List, Optional from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: @@ -21,6 +21,16 @@ class Hold(ListableAPIResource["Hold"]): OBJECT_NAME: ClassVar[Literal["reserve.hold"]] = "reserve.hold" + class ReleaseDetail(StripeObject): + amount: int + """ + The amount released by the ReserveRelease from this ReserveHold. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + """ + reserve_release: str + """ + The ReserveRelease which released funds from this ReserveHold (e.g., resrel_123). + """ + class ReleaseSchedule(StripeObject): release_after: Optional[int] """ @@ -75,6 +85,10 @@ class ReleaseSchedule(StripeObject): """ The reason for the ReserveHold. """ + release_details: Optional[List[ReleaseDetail]] + """ + List of ReserveReleases and the amounts released from this ReserveHold. + """ release_schedule: ReleaseSchedule reserve_plan: Optional[ExpandableField["Plan"]] """ @@ -149,4 +163,7 @@ async def retrieve_async( await instance.refresh_async() return instance - _inner_class_types = {"release_schedule": ReleaseSchedule} + _inner_class_types = { + "release_details": ReleaseDetail, + "release_schedule": ReleaseSchedule, + } diff --git a/stripe/shared_payment/_granted_token.py b/stripe/shared_payment/_granted_token.py index 77adb8ae5..8a22727c1 100644 --- a/stripe/shared_payment/_granted_token.py +++ b/stripe/shared_payment/_granted_token.py @@ -164,10 +164,16 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ class Blik(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique and immutable identifier assigned by BLIK to every buyer. + """ class Boleto(StripeObject): tax_id: str @@ -1014,7 +1020,10 @@ class Payto(StripeObject): """ class Pix(StripeObject): - pass + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ class Promptpay(StripeObject): pass diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index 7867ebaaa..37ee9ca21 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -103,6 +103,7 @@ class ApiError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -142,6 +143,10 @@ class ApiError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers",