From 8e9d9a6d34bc18dcb8c21dc23e17c232321075c4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 25 Sep 2026 01:37:22 +0000 Subject: [PATCH] Update generated code for v2524 and 83110a8fcd74d32f3b904356db1328d072d021c1 --- ...26-09-25_stripe-openapi_87ef4357.change.md | 89 ++ CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/__init__.py | 12 + stripe/_account.py | 79 +- stripe/_account_session.py | 4 +- stripe/_account_session_service.py | 4 +- stripe/_api_requestor.py | 1 + stripe/_api_version.py | 4 +- stripe/_apps_service.py | 7 +- stripe/_balance.py | 2 +- stripe/_balance_transaction.py | 4 +- stripe/_bank_account.py | 4 + stripe/_capability.py | 4 + stripe/_charge.py | 77 +- stripe/_charge_service.py | 20 +- stripe/_confirmation_token.py | 12 + stripe/_coupon.py | 4 +- stripe/_customer.py | 2 +- stripe/_discount.py | 6 +- stripe/_event.py | 5 +- stripe/_file.py | 4 +- stripe/_invoice.py | 122 ++- stripe/_invoice_item.py | 13 +- stripe/_invoice_payment.py | 4 +- stripe/_invoice_service.py | 6 +- stripe/_line_item.py | 2 +- stripe/_mandate.py | 34 +- stripe/_object_classes.py | 10 + stripe/_payment_attempt_record.py | 45 +- stripe/_payment_intent.py | 144 ++- ...payment_intent_amount_details_line_item.py | 4 +- stripe/_payment_intent_service.py | 4 +- stripe/_payment_link.py | 4 +- stripe/_payment_method.py | 12 + stripe/_payment_method_configuration.py | 48 + stripe/_payment_record.py | 45 +- stripe/_person.py | 12 +- stripe/_plan.py | 4 +- stripe/_price.py | 2 +- stripe/_product.py | 17 +- stripe/_product_catalog_service.py | 38 + stripe/_quote.py | 6 +- stripe/_setup_attempt.py | 18 +- stripe/_setup_intent.py | 36 +- stripe/_stripe_client.py | 24 + stripe/_subscription.py | 247 +++++- stripe/_subscription_item.py | 20 +- stripe/_subscription_schedule.py | 146 ++++ stripe/_subscription_service.py | 47 + stripe/_tax_code.py | 16 +- stripe/_tax_rate.py | 2 + stripe/_tax_service.py | 3 + stripe/_three_d_secure_service.py | 40 + stripe/_transfer.py | 2 +- stripe/_v1_services.py | 12 + stripe/_webhook_endpoint.py | 2 +- stripe/apps/__init__.py | 4 + stripe/apps/_install.py | 368 ++++++++ stripe/apps/_install_service.py | 218 +++++ stripe/billing/_feedback_option.py | 14 +- stripe/billing/_feedback_option_service.py | 8 +- stripe/checkout/_session.py | 24 +- ...ustomer_capability_status_updated_event.py | 4 +- stripe/financial_connections/_account.py | 8 +- .../financial_connections/_account_service.py | 4 +- stripe/financial_connections/_session.py | 4 - stripe/issuing/_cardholder.py | 4 +- stripe/issuing/_token.py | 6 +- stripe/params/__init__.py | 821 ++++++++++++++++- stripe/params/_account_create_params.py | 152 +++- .../params/_account_create_person_params.py | 14 +- ..._account_external_account_update_params.py | 2 +- ..._account_modify_external_account_params.py | 2 +- .../params/_account_modify_person_params.py | 14 +- .../params/_account_person_create_params.py | 14 +- .../params/_account_person_update_params.py | 14 +- stripe/params/_account_reject_params.py | 17 +- stripe/params/_account_update_params.py | 141 ++- .../_balance_transaction_list_params.py | 2 +- stripe/params/_charge_create_params.py | 2 +- .../_confirmation_token_create_params.py | 22 +- stripe/params/_customer_create_params.py | 2 +- .../_customer_list_payment_methods_params.py | 2 +- stripe/params/_customer_modify_params.py | 2 +- .../_customer_payment_method_list_params.py | 2 +- stripe/params/_customer_update_params.py | 2 +- stripe/params/_file_create_params.py | 2 +- stripe/params/_invoice_add_lines_params.py | 19 +- stripe/params/_invoice_create_params.py | 81 +- .../params/_invoice_create_preview_params.py | 94 +- stripe/params/_invoice_item_modify_params.py | 4 + stripe/params/_invoice_item_update_params.py | 4 + .../_invoice_line_item_update_params.py | 19 +- stripe/params/_invoice_modify_params.py | 81 +- stripe/params/_invoice_update_lines_params.py | 19 +- stripe/params/_invoice_update_params.py | 81 +- .../params/_payment_intent_confirm_params.py | 160 +++- .../params/_payment_intent_create_params.py | 164 +++- .../params/_payment_intent_modify_params.py | 162 +++- .../params/_payment_intent_update_params.py | 162 +++- stripe/params/_payment_link_create_params.py | 21 +- stripe/params/_payment_link_modify_params.py | 4 +- stripe/params/_payment_link_update_params.py | 4 +- ...ment_method_configuration_create_params.py | 40 + ...ment_method_configuration_modify_params.py | 40 + ...ment_method_configuration_update_params.py | 40 + .../params/_payment_method_create_params.py | 22 +- stripe/params/_payment_method_list_params.py | 2 +- .../params/_payment_method_modify_params.py | 19 - .../params/_payment_method_update_params.py | 19 - ...nt_record_report_payment_attempt_params.py | 13 +- .../_payment_record_report_payment_params.py | 13 +- stripe/params/_payout_create_params.py | 2 +- stripe/params/_plan_create_params.py | 15 + stripe/params/_price_create_params.py | 15 + stripe/params/_product_create_params.py | 15 + stripe/params/_product_list_params.py | 2 +- stripe/params/_product_modify_params.py | 15 + stripe/params/_product_update_params.py | 15 + stripe/params/_setup_intent_confirm_params.py | 50 +- stripe/params/_setup_intent_create_params.py | 54 +- stripe/params/_setup_intent_modify_params.py | 54 +- stripe/params/_setup_intent_update_params.py | 54 +- stripe/params/_subscription_create_params.py | 112 ++- .../_subscription_item_create_params.py | 11 + .../_subscription_item_modify_params.py | 15 +- .../_subscription_item_update_params.py | 15 +- stripe/params/_subscription_modify_params.py | 129 ++- stripe/params/_subscription_pause_params.py | 55 ++ stripe/params/_subscription_resume_params.py | 21 +- .../_subscription_schedule_create_params.py | 163 ++++ .../_subscription_schedule_modify_params.py | 169 ++++ .../_subscription_schedule_update_params.py | 169 ++++ stripe/params/_subscription_update_params.py | 129 ++- stripe/params/_tax_rate_create_params.py | 2 +- stripe/params/_tax_rate_modify_params.py | 2 +- stripe/params/_tax_rate_update_params.py | 2 +- stripe/params/_token_create_params.py | 26 +- .../params/_webhook_endpoint_create_params.py | 4 + .../params/_webhook_endpoint_modify_params.py | 3 + .../params/_webhook_endpoint_update_params.py | 3 + stripe/params/apps/__init__.py | 44 + stripe/params/apps/_install_create_params.py | 30 + stripe/params/apps/_install_list_params.py | 75 ++ stripe/params/apps/_install_modify_params.py | 12 + .../params/apps/_install_retrieve_params.py | 12 + .../params/apps/_install_uninstall_params.py | 12 + stripe/params/apps/_install_update_params.py | 11 + .../billing/_feedback_option_create_params.py | 3 + .../billing/_feedback_option_modify_params.py | 3 + .../billing/_feedback_option_update_params.py | 3 + stripe/params/checkout/__init__.py | 30 + .../params/checkout/_session_create_params.py | 211 +++-- .../params/checkout/_session_modify_params.py | 17 + .../params/checkout/_session_update_params.py | 17 + .../_session_create_params.py | 4 +- .../issuing/_cardholder_create_params.py | 4 +- .../issuing/_cardholder_modify_params.py | 4 +- .../issuing/_cardholder_update_params.py | 4 +- stripe/params/product_catalog/__init__.py | 85 ++ .../_trial_offer_create_params.py | 64 ++ .../_trial_offer_list_params.py | 55 ++ .../_trial_offer_modify_params.py | 16 + .../_trial_offer_retrieve_params.py | 12 + .../_trial_offer_update_params.py | 15 + .../_payment_evaluation_create_params.py | 4 +- stripe/params/tax/__init__.py | 198 ++--- .../params/tax/_calculation_create_params.py | 4 + stripe/params/tax/_location_create_params.py | 51 ++ stripe/params/tax/_location_list_params.py | 28 + .../params/tax/_location_retrieve_params.py | 12 + .../params/tax/_registration_create_params.py | 413 +++------ stripe/params/test_helpers/__init__.py | 10 + .../_confirmation_token_create_params.py | 22 +- .../_received_credit_create_params.py | 2 +- stripe/params/three_d_secure/__init__.py | 155 ++++ .../_authentication_cancel_params.py | 19 + .../_authentication_create_params.py | 430 +++++++++ .../_authentication_list_params.py | 53 ++ .../_authentication_retrieve_params.py | 12 + .../_authentication_submit_params.py | 25 + .../_received_credit_create_params.py | 2 +- .../_meter_event_adjustment_create_params.py | 3 +- .../params/v2/core/_account_create_params.py | 30 +- .../v2/core/_account_token_create_params.py | 30 +- .../params/v2/core/_account_update_params.py | 30 +- .../v2/core/_event_destination_list_params.py | 4 +- .../_event_destination_retrieve_params.py | 4 +- .../core/_event_destination_update_params.py | 4 +- .../v2/core/accounts/_person_create_params.py | 10 +- .../accounts/_person_token_create_params.py | 10 +- .../v2/core/accounts/_person_update_params.py | 10 +- stripe/product_catalog/__init__.py | 34 + stripe/product_catalog/_trial_offer.py | 229 +++++ .../product_catalog/_trial_offer_service.py | 189 ++++ stripe/radar/_payment_evaluation.py | 79 +- stripe/reserve/_hold.py | 4 + stripe/reserve/_plan.py | 15 +- stripe/reserve/_release.py | 6 +- stripe/tax/__init__.py | 4 + stripe/tax/_calculation.py | 26 +- stripe/tax/_calculation_line_item.py | 21 +- stripe/tax/_location.py | 176 ++++ stripe/tax/_location_service.py | 146 ++++ stripe/tax/_registration.py | 319 +++---- stripe/tax/_transaction.py | 15 +- stripe/tax/_transaction_line_item.py | 4 + stripe/terminal/_reader.py | 12 +- stripe/three_d_secure/__init__.py | 36 + stripe/three_d_secure/_authentication.py | 825 ++++++++++++++++++ .../three_d_secure/_authentication_service.py | 242 +++++ stripe/treasury/_credit_reversal.py | 2 +- stripe/treasury/_debit_reversal.py | 2 +- stripe/treasury/_financial_account.py | 2 +- stripe/treasury/_inbound_transfer.py | 4 +- stripe/treasury/_outbound_payment.py | 2 +- stripe/treasury/_outbound_transfer.py | 2 +- stripe/treasury/_received_credit.py | 18 +- stripe/treasury/_received_debit.py | 12 +- stripe/treasury/_transaction.py | 16 +- stripe/treasury/_transaction_entry.py | 16 +- stripe/v2/billing/_meter_event_adjustment.py | 2 +- stripe/v2/core/_account.py | 30 +- stripe/v2/core/_account_person.py | 10 +- stripe/v2/core/_event.py | 2 +- tests/test_generated_examples.py | 20 +- 227 files changed, 9546 insertions(+), 1336 deletions(-) create mode 100644 .hark/changes/2026-09-25_stripe-openapi_87ef4357.change.md create mode 100644 stripe/_product_catalog_service.py create mode 100644 stripe/_three_d_secure_service.py create mode 100644 stripe/apps/_install.py create mode 100644 stripe/apps/_install_service.py create mode 100644 stripe/params/_subscription_pause_params.py create mode 100644 stripe/params/apps/_install_create_params.py create mode 100644 stripe/params/apps/_install_list_params.py create mode 100644 stripe/params/apps/_install_modify_params.py create mode 100644 stripe/params/apps/_install_retrieve_params.py create mode 100644 stripe/params/apps/_install_uninstall_params.py create mode 100644 stripe/params/apps/_install_update_params.py create mode 100644 stripe/params/product_catalog/__init__.py create mode 100644 stripe/params/product_catalog/_trial_offer_create_params.py create mode 100644 stripe/params/product_catalog/_trial_offer_list_params.py create mode 100644 stripe/params/product_catalog/_trial_offer_modify_params.py create mode 100644 stripe/params/product_catalog/_trial_offer_retrieve_params.py create mode 100644 stripe/params/product_catalog/_trial_offer_update_params.py create mode 100644 stripe/params/tax/_location_create_params.py create mode 100644 stripe/params/tax/_location_list_params.py create mode 100644 stripe/params/tax/_location_retrieve_params.py create mode 100644 stripe/params/three_d_secure/__init__.py create mode 100644 stripe/params/three_d_secure/_authentication_cancel_params.py create mode 100644 stripe/params/three_d_secure/_authentication_create_params.py create mode 100644 stripe/params/three_d_secure/_authentication_list_params.py create mode 100644 stripe/params/three_d_secure/_authentication_retrieve_params.py create mode 100644 stripe/params/three_d_secure/_authentication_submit_params.py create mode 100644 stripe/product_catalog/__init__.py create mode 100644 stripe/product_catalog/_trial_offer.py create mode 100644 stripe/product_catalog/_trial_offer_service.py create mode 100644 stripe/tax/_location.py create mode 100644 stripe/tax/_location_service.py create mode 100644 stripe/three_d_secure/__init__.py create mode 100644 stripe/three_d_secure/_authentication.py create mode 100644 stripe/three_d_secure/_authentication_service.py diff --git a/.hark/changes/2026-09-25_stripe-openapi_87ef4357.change.md b/.hark/changes/2026-09-25_stripe-openapi_87ef4357.change.md new file mode 100644 index 000000000..eb90c012b --- /dev/null +++ b/.hark/changes/2026-09-25_stripe-openapi_87ef4357.change.md @@ -0,0 +1,89 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-python/pull/1899 +semver_level: major +is_stripe_api_change: true +--- + +* Add support for new resources `apps.Install`, `product_catalog.TrialOffer`, `tax.Location`, and `three_d_secure.Authentication` +* Add support for `create`, `list`, `modify`, `retrieve`, and `uninstall` methods on resource `apps.Install` +* Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `product_catalog.TrialOffer` +* Add support for `create`, `list`, and `retrieve` methods on resource `tax.Location` +* Add support for `cancel`, `create`, `list`, `retrieve`, and `submit` methods on resource `three_d_secure.Authentication` +* Add support for `pause` method on resource `Subscription` +* ⚠️ Add support for new values `invalid_address_cmra_address` and `invalid_address_registered_agent_address` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code` +* Add support for `performance_location` on `Tax.CalculationLineItem` and `tax.CalculationCreateParamsLineItem` +* Add support for new value `performance` on enums `Tax.Calculation.ShippingCost.TaxBreakdown.sourcing`, `Tax.CalculationLineItem.TaxBreakdown.sourcing`, and `Tax.Transaction.ShippingCost.TaxBreakdown.sourcing` +* Add support for new values `admissions_tax`, `attendance_tax`, `digital_excise_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `recycling_fee`, `resort_tax`, `tourism_tax`, and `utility_users_tax` on enums `Tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.Calculation.TaxBreakdown.TaxRateDetail.tax_type`, `Tax.CalculationLineItem.TaxBreakdown.TaxRateDetail.tax_type`, and `Tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type` +* Add support for `destination` on `Reserve.Hold`, `Reserve.Plan`, and `Reserve.Release` +* Add support for `manual_release` on `Reserve.Plan` +* ⚠️ Add support for new value `other` on enum `Reserve.Plan.status` +* ⚠️ Add support for new values `manual_release` and `other` on enum `Reserve.Plan.type` +* ⚠️ Add support for new value `hold_expired` on enum `Reserve.Release.reason` +* ⚠️ Remove support for value `bulk_hold_expiry` from enum `Reserve.Release.reason` +* Add support for `specified_commercial_transactions_act_url` on `Account.BusinessProfile`, `AccountCreateParamsBusinessProfile`, and `AccountModifyParamsBusinessProfile` +* Add support for `blik_recurring_payments` and `sequra_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability` +* Add support for `paypay_payments` on `Account.Capability`, `Account.Setting`, `AccountCreateParamsCapability`, `AccountCreateParamsSetting`, `AccountModifyParamsCapability`, and `AccountModifyParamsSetting` +* Add support for `sepa_debit_payments` on `AccountCreateParamsSetting` +* ⚠️ Change type of `AccountRejectParams.reason` from `string` to `enum` +* Add support for new values `issuing_dispute_provisional_credit_reversal` and `issuing_dispute_provisional_credit` on enum `BalanceTransaction.type` +* Add support for `paypay` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* Add support for `sequra` 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`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodDatum`, and `checkout.SessionCreateParamsPaymentMethodOption` +* Add support for `electronic_commerce_indicator` on `Charge.PaymentMethodDetail.Card` +* ⚠️ Change type of `Charge.PaymentMethodDetail.Card.mandate` from `string` to `expandable($Mandate)` +* Add support for `allowed_payment_method_types` on `Checkout.Session` and `checkout.SessionCreateParams` +* ⚠️ Remove support for `payment_method_types` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentModifyParams`, `SetupIntentCreateParams`, `SetupIntentModifyParams`, and `checkout.SessionCreateParams` +* Add support for new values `paypay` and `sequra` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, `SetupIntentModifyParams.excluded_payment_method_types`, and `checkout.SessionCreateParams.excluded_payment_method_types` +* Add support for `tax_details` on `InvoiceAddLinesParamsLinePriceDatumProductDatum`, `InvoiceLineItemModifyParamsPriceDatumProductDatum`, `InvoiceUpdateLinesParamsLinePriceDatumProductDatum`, `PaymentLinkCreateParamsLineItemPriceDatumProductDatum`, `PlanCreateParamsProduct`, `PriceCreateParamsProductDatum`, `ProductCreateParams`, `ProductModifyParams`, `Product`, `checkout.SessionCreateParamsLineItemPriceDatumProductDatum`, and `checkout.SessionModifyParamsLineItemPriceDatumProductDatum` +* Add support for `blik` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `Mandate.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodOption`, `SetupIntentModifyParamsPaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, `SubscriptionModifyParamsPaymentSettingPaymentMethodOption`, and `checkout.SessionCreateParamsPaymentMethodOption` +* Change type of `PaymentIntentConfirmParamsPaymentMethodOptionBlik.setup_future_usage`, `PaymentIntentCreateParamsPaymentMethodOptionBlik.setup_future_usage`, `PaymentIntentModifyParamsPaymentMethodOptionBlik.setup_future_usage`, and `checkout.SessionCreateParamsPaymentMethodOptionBancontact.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` +* ⚠️ Change type of `Checkout.Session.PaymentMethodOption.Bancontact.setup_future_usage` and `PaymentIntent.PaymentMethodOption.Blik.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` +* Add support for new values `paypay` and `sequra` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* Add support for new values `paypay` and `sequra` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* Add support for new values `paypay` and `sequra` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for new values `apps.install.created`, `apps.install.deleted`, and `apps.install.updated` on enum `Event.type` +* Add support for new values `expired` and `pending` on enum `FinancialConnections.Account.AccountNumber.status` +* Add support for `country` on `financial_connections.SessionCreateParamsFilter` +* ⚠️ Remove support for `countries` on `FinancialConnections.Session.Filter` and `financial_connections.SessionCreateParamsFilter` +* Add support for `invoicing_rules` on `InvoiceItemModifyParams` and `InvoiceItem` +* Add support for `company_details` on `Invoice.PaymentSetting.PaymentMethodOption.Billie`, `InvoiceCreateParamsPaymentSettingPaymentMethodOptionBillie`, `InvoiceModifyParamsPaymentSettingPaymentMethodOptionBillie`, `PaymentIntent.PaymentMethodOption.Billie`, `PaymentIntentConfirmParamsPaymentMethodOptionBillie`, `PaymentIntentCreateParamsPaymentMethodOptionBillie`, `PaymentIntentModifyParamsPaymentMethodOptionBillie`, `Subscription.PaymentSetting.PaymentMethodOption.Billie`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOptionBillie`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOptionBillie` +* Add support for `reference` on `Invoice.PaymentSetting.PaymentMethodOption.Billie`, `InvoiceCreateParamsPaymentSettingPaymentMethodOptionBillie`, `InvoiceModifyParamsPaymentSettingPaymentMethodOptionBillie`, `PaymentIntent.PaymentMethodOption.Billie`, `PaymentIntentConfirmParamsPaymentMethodOptionBillie`, `PaymentIntentCreateParamsPaymentMethodOptionBillie`, and `PaymentIntentModifyParamsPaymentMethodOptionBillie` +* Add support for new value `blik` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types` +* Add support for new values `digital_excise_tax` and `utility_users_tax` on enums `InvoiceAddLinesParamsLineTaxAmountTaxRateDatum.tax_type`, `InvoiceLineItemModifyParamsTaxAmountTaxRateDatum.tax_type`, `InvoiceUpdateLinesParamsLineTaxAmountTaxRateDatum.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateModifyParams.tax_type` +* Add support for `pause` on `InvoiceCreatePreviewParamsSubscriptionDetail` +* ⚠️ Change type of `InvoiceCreatePreviewParamsSubscriptionDetail.billing_cycle_anchor` from `enum('now'|'unchanged') | DateTime` to `billing_cycle_anchor_param` +* Add support for `current_trial` on `InvoiceCreatePreviewParamsSubscriptionDetailItem`, `SubscriptionCreateParamsItem`, `SubscriptionItemCreateParams`, `SubscriptionItemModifyParams`, `SubscriptionItem`, and `SubscriptionModifyParamsItem` +* Add support for `status_details` on `Invoice` and `Subscription` +* Add support for `india` on `Mandate.PaymentMethodDetail.Card` +* Add support for `momo` on `PaymentAttemptRecord.PaymentMethodDetail` and `PaymentRecord.PaymentMethodDetail` +* Add support for new values `2.3.0` and `2.3.1` on enums `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure.version` and `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure.version` +* Add support for `link` on `PaymentAttemptRecord.PaymentMethodDetail.Card.Wallet` and `PaymentRecord.PaymentMethodDetail.Card.Wallet` +* Add support for `funding_source_group` on `PaymentAttemptRecord.PaymentMethodDetail.Link` and `PaymentRecord.PaymentMethodDetail.Link` +* Add support for new values `card_present` and `interac_present` on enums `PaymentIntent.allowed_payment_method_types`, `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, `PaymentIntentModifyParams.allowed_payment_method_types`, `SetupIntent.allowed_payment_method_types`, `SetupIntentConfirmParams.allowed_payment_method_types`, `SetupIntentCreateParams.allowed_payment_method_types`, and `SetupIntentModifyParams.allowed_payment_method_types` +* Add support for `mandate_options` on `PaymentIntent.PaymentMethodOption.Blik`, `PaymentIntentConfirmParamsPaymentMethodOptionBlik`, `PaymentIntentCreateParamsPaymentMethodOptionBlik`, and `PaymentIntentModifyParamsPaymentMethodOptionBlik` +* Add support for `payment_record` on `PaymentIntent` +* Add support for `expires_at` on `PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` +* Add support for new values `paypay` and `sequra` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkModifyParams.payment_method_types` +* ⚠️ Remove support for `payto` on `PaymentMethodModifyParams` +* Add support for `canceled` on `PaymentRecordReportPaymentAttemptParams` and `PaymentRecordReportPaymentParams` +* Add support for new value `canceled` on enums `PaymentRecordReportPaymentAttemptParams.outcome` and `PaymentRecordReportPaymentParams.outcome` +* Add support for new value `rerouted` on enum `Radar.PaymentEvaluation.Outcome.type` +* Add support for `early_fraud_warning` and `fraudulent_dispute` on `Radar.PaymentEvaluation.Signal` +* ⚠️ Change type of `Radar.PaymentEvaluation.Signal.FraudulentPayment.score` from `number` to `nullable(number)` +* Add support for `pause_schedules` on `SubscriptionScheduleCreateParams`, `SubscriptionScheduleModifyParams`, and `SubscriptionSchedule` +* ⚠️ Change type of `SubscriptionModifyParams.billing_cycle_anchor` and `SubscriptionResumeParams.billing_cycle_anchor` from `enum('now'|'unchanged')` to `billing_cycle_anchor_param` +* Add support for `billing_cycle_anchor` on `Subscription.TrialSetting.EndBehavior`, `SubscriptionCreateParamsTrialSettingEndBehavior`, and `SubscriptionModifyParamsTrialSettingEndBehavior` +* Change `SubscriptionCreateParamsTrialSettingEndBehavior.missing_payment_method` and `SubscriptionModifyParamsTrialSettingEndBehavior.missing_payment_method` to be optional +* Add support for `payment_behavior` on `SubscriptionResumeParams` +* Add support for `cancel_at_period_end` on `Subscription.PendingUpdate` +* ⚠️ Remove support for `igic` on `Tax.Registration.CountryOption.At`, `Tax.Registration.CountryOption.Be`, `Tax.Registration.CountryOption.Bg`, `Tax.Registration.CountryOption.Cy`, `Tax.Registration.CountryOption.Cz`, `Tax.Registration.CountryOption.De`, `Tax.Registration.CountryOption.Dk`, `Tax.Registration.CountryOption.E`, `Tax.Registration.CountryOption.Ee`, `Tax.Registration.CountryOption.Fi`, `Tax.Registration.CountryOption.Fr`, `Tax.Registration.CountryOption.Gr`, `Tax.Registration.CountryOption.Hr`, `Tax.Registration.CountryOption.Hu`, `Tax.Registration.CountryOption.Ie`, `Tax.Registration.CountryOption.It`, `Tax.Registration.CountryOption.Lt`, `Tax.Registration.CountryOption.Lu`, `Tax.Registration.CountryOption.Lv`, `Tax.Registration.CountryOption.Mt`, `Tax.Registration.CountryOption.Nl`, `Tax.Registration.CountryOption.Pl`, `Tax.Registration.CountryOption.Pt`, `Tax.Registration.CountryOption.Ro`, `Tax.Registration.CountryOption.Se`, `Tax.Registration.CountryOption.Si`, `Tax.Registration.CountryOption.Sk`, `tax.RegistrationCreateParamsCountryOptionAt`, `tax.RegistrationCreateParamsCountryOptionBe`, `tax.RegistrationCreateParamsCountryOptionBg`, `tax.RegistrationCreateParamsCountryOptionCy`, `tax.RegistrationCreateParamsCountryOptionCz`, `tax.RegistrationCreateParamsCountryOptionDe`, `tax.RegistrationCreateParamsCountryOptionDk`, `tax.RegistrationCreateParamsCountryOptionE`, `tax.RegistrationCreateParamsCountryOptionEe`, `tax.RegistrationCreateParamsCountryOptionFi`, `tax.RegistrationCreateParamsCountryOptionFr`, `tax.RegistrationCreateParamsCountryOptionGr`, `tax.RegistrationCreateParamsCountryOptionHr`, `tax.RegistrationCreateParamsCountryOptionHu`, `tax.RegistrationCreateParamsCountryOptionIe`, `tax.RegistrationCreateParamsCountryOptionIt`, `tax.RegistrationCreateParamsCountryOptionLt`, `tax.RegistrationCreateParamsCountryOptionLu`, `tax.RegistrationCreateParamsCountryOptionLv`, `tax.RegistrationCreateParamsCountryOptionMt`, `tax.RegistrationCreateParamsCountryOptionNl`, `tax.RegistrationCreateParamsCountryOptionPl`, `tax.RegistrationCreateParamsCountryOptionPt`, `tax.RegistrationCreateParamsCountryOptionRo`, `tax.RegistrationCreateParamsCountryOptionSe`, `tax.RegistrationCreateParamsCountryOptionSi`, and `tax.RegistrationCreateParamsCountryOptionSk` +* Add support for `admissions_tax`, `attendance_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `resort_tax`, and `tourism_tax` on `Tax.Registration.CountryOption.Me` and `tax.RegistrationCreateParamsCountryOptionMe` +* Add support for new values `admissions_tax`, `attendance_tax`, `entertainment_tax`, `gross_receipts_tax`, `hospitality_tax`, `luxury_tax`, `resort_tax`, and `tourism_tax` on enums `Tax.Registration.CountryOption.Me.type` and `tax.RegistrationCreateParamsCountryOptionMe.type` +* Add support for `requirements` on `TaxCode` +* Add support for new value `rtp` on enum `Treasury.FinancialAccount.FinancialAddress.supported_networks` +* Add support for new value `rtp` on enum `treasury.ReceivedCreditCreateParams.network` +* Add support for new value `rtp` on enum `Treasury.ReceivedCredit.network` +* Add support for new values `apps.install.created`, `apps.install.deleted`, and `apps.install.updated` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` +* Add support for new value `2026-09-30.endive` on enum `WebhookEndpointCreateParams.api_version` +* Add support for snapshot events `apps.install.created`, `apps.install.deleted`, and `apps.install.updated` with resource `apps.Install` +* Add support for error codes `dispute_evidence_page_limit_exceeded`, `financial_connections_consent_locale_invalid`, `financial_connections_consent_locale_unsupported`, and `payment_evaluation_on_api_version_not_supported` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, `StripeError`, and `Terminal.Reader.Action.ApiError` diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 308945cbf..e2f81ccd0 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -baff58c9d515cdd5f5c3231d101989d588788c6f \ No newline at end of file +83110a8fcd74d32f3b904356db1328d072d021c1 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 28d67d2bf..9a1ddbbf7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2442 \ No newline at end of file +v2524 \ No newline at end of file diff --git a/stripe/__init__.py b/stripe/__init__.py index b1e4ffa26..1cbdd822e 100644 --- a/stripe/__init__.py +++ b/stripe/__init__.py @@ -129,6 +129,7 @@ def set_app_info( identity as identity, issuing as issuing, params as params, + product_catalog as product_catalog, radar as radar, reporting as reporting, reserve as reserve, @@ -136,6 +137,7 @@ def set_app_info( tax as tax, terminal as terminal, test_helpers as test_helpers, + three_d_secure as three_d_secure, treasury as treasury, v2 as v2, ) @@ -421,6 +423,9 @@ def set_app_info( from stripe._price import Price as Price from stripe._price_service import PriceService as PriceService from stripe._product import Product as Product + from stripe._product_catalog_service import ( + ProductCatalogService as ProductCatalogService, + ) from stripe._product_feature import ProductFeature as ProductFeature from stripe._product_feature_service import ( ProductFeatureService as ProductFeatureService, @@ -523,6 +528,9 @@ def set_app_info( from stripe._test_helpers_service import ( TestHelpersService as TestHelpersService, ) + from stripe._three_d_secure_service import ( + ThreeDSecureService as ThreeDSecureService, + ) from stripe._token import Token as Token from stripe._token_service import TokenService as TokenService from stripe._topup import Topup as Topup @@ -566,6 +574,7 @@ def set_app_info( "identity": ("stripe.identity", True), "issuing": ("stripe.issuing", True), "params": ("stripe.params", True), + "product_catalog": ("stripe.product_catalog", True), "radar": ("stripe.radar", True), "reporting": ("stripe.reporting", True), "reserve": ("stripe.reserve", True), @@ -573,6 +582,7 @@ def set_app_info( "tax": ("stripe.tax", True), "terminal": ("stripe.terminal", True), "test_helpers": ("stripe.test_helpers", True), + "three_d_secure": ("stripe.three_d_secure", True), "treasury": ("stripe.treasury", True), "v2": ("stripe.v2", True), "Account": ("stripe._account", False), @@ -816,6 +826,7 @@ def set_app_info( "Price": ("stripe._price", False), "PriceService": ("stripe._price_service", False), "Product": ("stripe._product", False), + "ProductCatalogService": ("stripe._product_catalog_service", False), "ProductFeature": ("stripe._product_feature", False), "ProductFeatureService": ("stripe._product_feature_service", False), "ProductService": ("stripe._product_service", False), @@ -883,6 +894,7 @@ def set_app_info( "TerminalService": ("stripe._terminal_service", False), "APIResourceTestHelpers": ("stripe._test_helpers", False), "TestHelpersService": ("stripe._test_helpers_service", False), + "ThreeDSecureService": ("stripe._three_d_secure_service", False), "Token": ("stripe._token", False), "TokenService": ("stripe._token_service", False), "Topup": ("stripe._topup", False), diff --git a/stripe/_account.py b/stripe/_account.py index 649080c72..db79e089e 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -189,6 +189,10 @@ class SupportAddress(StripeObject): """ Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes. """ + specified_commercial_transactions_act_url: Optional[str] + """ + A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan. + """ support_address: Optional[SupportAddress] """ A publicly available mailing address for sending support issues to. @@ -294,6 +298,12 @@ class Capabilities(StripeObject): """ The status of the blik payments capability of the account, or whether the account can directly process blik charges. """ + blik_recurring_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] + """ + The status of the BLIK recurring payments capability of the account, or whether the account can accept recurring and subscription BLIK payments. + """ boleto_payments: Optional[ Union[Literal["active", "inactive", "pending"], str] ] @@ -486,6 +496,12 @@ class Capabilities(StripeObject): """ The status of the paynow payments capability of the account, or whether the account can directly process paynow charges. """ + paypay_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] + """ + The status of the Paypay capability of the account, or whether the account can directly process Paypay payments. + """ payto_payments: Optional[ Union[Literal["active", "inactive", "pending"], str] ] @@ -540,6 +556,12 @@ class Capabilities(StripeObject): """ The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges. """ + sequra_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] + """ + The status of the SeQura capability of the account, or whether the account can directly process SeQura payments. + """ sofort_payments: Optional[ Union[Literal["active", "inactive", "pending"], str] ] @@ -812,7 +834,7 @@ class Verification(StripeObject): class Document(StripeObject): back: Optional[ExpandableField["File"]] """ - The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file). + The back of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file). """ details: Optional[str] """ @@ -824,7 +846,7 @@ class Document(StripeObject): """ front: Optional[ExpandableField["File"]] """ - The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file). + The front of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file). """ document: Document @@ -1030,8 +1052,10 @@ class Error(StripeObject): "external_request", "information_missing", "invalid_address_city_state_postal_code", + "invalid_address_cmra_address", "invalid_address_highway_contract_box", "invalid_address_private_mailbox", + "invalid_address_registered_agent_address", "invalid_business_profile_name", "invalid_business_profile_name_denylisted", "invalid_company_name_denylisted", @@ -1211,8 +1235,10 @@ class Error(StripeObject): "external_request", "information_missing", "invalid_address_city_state_postal_code", + "invalid_address_cmra_address", "invalid_address_highway_contract_box", "invalid_address_private_mailbox", + "invalid_address_registered_agent_address", "invalid_business_profile_name", "invalid_business_profile_name_denylisted", "invalid_company_name_denylisted", @@ -1538,6 +1564,53 @@ class Schedule(StripeObject): """ _inner_class_types = {"schedule": Schedule} + class PaypayPayments(StripeObject): + class Site(StripeObject): + class Accessible(StripeObject): + pass + + class InDevelopment(StripeObject): + password_provided: Optional[bool] + """ + Field to indicate that the website password has been provided. + """ + username: Optional[str] + """ + The username needed to access your business's website. + """ + + class Restricted(StripeObject): + payment_flow_file: Optional[str] + """ + File explaining the payment flow for your business. + """ + + accessible: Optional[Accessible] + in_development: Optional[InDevelopment] + restricted: Optional[Restricted] + type: Optional[ + Literal["accessible", "in_development", "restricted"] + ] + """ + The status of your business's website. + """ + _inner_class_types = { + "accessible": Accessible, + "in_development": InDevelopment, + "restricted": Restricted, + } + + additional_files: Optional[List[str]] + """ + Additional files that are required to support the onboarding process of your business. + """ + goods_type: Optional[Literal["digital_content", "other"]] + """ + The type of goods your business sells. Use `digital_content` if you sell digital content. Use `other` for all other types of goods or services. + """ + site: Optional[Site] + _inner_class_types = {"site": Site} + class SepaDebitPayments(StripeObject): creditor_id: Optional[str] """ @@ -1570,6 +1643,7 @@ class TosAcceptance(StripeObject): invoices: Optional[Invoices] payments: Payments payouts: Optional[Payouts] + paypay_payments: Optional[PaypayPayments] sepa_debit_payments: Optional[SepaDebitPayments] treasury: Optional[Treasury] _inner_class_types = { @@ -1581,6 +1655,7 @@ class TosAcceptance(StripeObject): "invoices": Invoices, "payments": Payments, "payouts": Payouts, + "paypay_payments": PaypayPayments, "sepa_debit_payments": SepaDebitPayments, "treasury": Treasury, } diff --git a/stripe/_account_session.py b/stripe/_account_session.py index 41b06bcd0..2c5ae1d7c 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -542,7 +542,7 @@ def create( cls, **params: Unpack["AccountSessionCreateParams"] ) -> "AccountSession": """ - Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. + Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. """ return cast( "AccountSession", @@ -558,7 +558,7 @@ async def create_async( cls, **params: Unpack["AccountSessionCreateParams"] ) -> "AccountSession": """ - Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. + Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. """ return cast( "AccountSession", diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index c0013cc7f..fca00c23c 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -19,7 +19,7 @@ def create( options: Optional["RequestOptions"] = None, ) -> "AccountSession": """ - Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. + Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. """ return cast( "AccountSession", @@ -38,7 +38,7 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "AccountSession": """ - Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. + Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. """ return cast( "AccountSession", diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py index 37f2011db..e94147c5e 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -518,6 +518,7 @@ def specific_oauth_error(self, rbody, rcode, resp, rheaders, error_code): ("CODEX_CI", "codex_cli"), ("CURSOR_AGENT", "cursor"), ("GEMINI_CLI", "gemini_cli"), + ("HERMES_AGENT", "hermes"), ("OPENCLAW_SHELL", "openclaw"), ("OPENCODE", "open_code"), # aiAgents: The end of the section generated from our OpenAPI spec diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 2ceb9ee92..f07003b47 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-08-26.dahlia" - CURRENT_MAJOR = "dahlia" + CURRENT = "2026-09-30.endive" + CURRENT_MAJOR = "endive" diff --git a/stripe/_apps_service.py b/stripe/_apps_service.py index d20e13470..932e6cfc3 100644 --- a/stripe/_apps_service.py +++ b/stripe/_apps_service.py @@ -5,12 +5,17 @@ from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: + from stripe.apps._install_service import InstallService from stripe.apps._secret_service import SecretService -_subservices = {"secrets": ["stripe.apps._secret_service", "SecretService"]} +_subservices = { + "installs": ["stripe.apps._install_service", "InstallService"], + "secrets": ["stripe.apps._secret_service", "SecretService"], +} class AppsService(StripeService): + installs: "InstallService" secrets: "SecretService" def __init__(self, requestor): diff --git a/stripe/_balance.py b/stripe/_balance.py index e92b86349..b0d1ef30b 100644 --- a/stripe/_balance.py +++ b/stripe/_balance.py @@ -256,7 +256,7 @@ class SourceTypes(StripeObject): available: List[Available] """ - Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://api.stripe.com#transfers) or [Payouts API](https://api.stripe.com#payouts). You can find the available balance for each currency and payment type in the `source_types` property. + Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://docs.stripe.com/api#transfers) or [Payouts API](https://docs.stripe.com/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property. """ connect_reserved: Optional[List[ConnectReserved]] """ diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py index a5ee4eb36..244af00cd 100644 --- a/stripe/_balance_transaction.py +++ b/stripe/_balance_transaction.py @@ -176,6 +176,8 @@ class FeeDetail(StripeObject): "issuing_authorization_hold", "issuing_authorization_release", "issuing_dispute", + "issuing_dispute_provisional_credit", + "issuing_dispute_provisional_credit_reversal", "issuing_transaction", "obligation_outbound", "obligation_reversal_inbound", @@ -213,7 +215,7 @@ class FeeDetail(StripeObject): str, ] """ - 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. + 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_dispute_provisional_credit`, `issuing_dispute_provisional_credit_reversal`, `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 diff --git a/stripe/_bank_account.py b/stripe/_bank_account.py index 8c9bd8c5f..e22a34d8c 100644 --- a/stripe/_bank_account.py +++ b/stripe/_bank_account.py @@ -42,8 +42,10 @@ class Error(StripeObject): "external_request", "information_missing", "invalid_address_city_state_postal_code", + "invalid_address_cmra_address", "invalid_address_highway_contract_box", "invalid_address_private_mailbox", + "invalid_address_registered_agent_address", "invalid_business_profile_name", "invalid_business_profile_name_denylisted", "invalid_company_name_denylisted", @@ -173,8 +175,10 @@ class Error(StripeObject): "external_request", "information_missing", "invalid_address_city_state_postal_code", + "invalid_address_cmra_address", "invalid_address_highway_contract_box", "invalid_address_private_mailbox", + "invalid_address_registered_agent_address", "invalid_business_profile_name", "invalid_business_profile_name_denylisted", "invalid_company_name_denylisted", diff --git a/stripe/_capability.py b/stripe/_capability.py index 4b39787c4..eb6527fc7 100644 --- a/stripe/_capability.py +++ b/stripe/_capability.py @@ -34,8 +34,10 @@ class Error(StripeObject): "external_request", "information_missing", "invalid_address_city_state_postal_code", + "invalid_address_cmra_address", "invalid_address_highway_contract_box", "invalid_address_private_mailbox", + "invalid_address_registered_agent_address", "invalid_business_profile_name", "invalid_business_profile_name_denylisted", "invalid_company_name_denylisted", @@ -207,8 +209,10 @@ class Error(StripeObject): "external_request", "information_missing", "invalid_address_city_state_postal_code", + "invalid_address_cmra_address", "invalid_address_highway_contract_box", "invalid_address_private_mailbox", + "invalid_address_registered_agent_address", "invalid_business_profile_name", "invalid_business_profile_name_denylisted", "invalid_company_name_denylisted", diff --git a/stripe/_charge.py b/stripe/_charge.py index f46178727..471f708f2 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -61,7 +61,7 @@ class Charge( """ The `Charge` object represents a single attempt to move money into your Stripe account. PaymentIntent confirmation is the most common way to create Charges, but [Account Debits](https://docs.stripe.com/connect/account-debits) may also create Charges. - Some legacy payment flows create Charges directly, which is not recommended for new integrations. + The create and capture methods are deprecated and will be deleted soon. If your integration uses either of them, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/payments/payment-intents). """ OBJECT_NAME: ClassVar[Literal["charge"]] = "charge" @@ -867,6 +867,10 @@ class ShippingAddress(StripeObject): """ A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) """ + electronic_commerce_indicator: Optional[str] + """ + The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift. + """ exp_month: int """ Two-digit number representing the card's expiration month. @@ -905,7 +909,7 @@ class ShippingAddress(StripeObject): """ The last four digits of the card. """ - mandate: Optional[str] + mandate: Optional[ExpandableField["Mandate"]] """ ID of the mandate used to make this payment or created by it. """ @@ -1873,6 +1877,9 @@ class SellerProtection(StripeObject): """ _inner_class_types = {"seller_protection": SellerProtection} + class Paypay(StripeObject): + pass + class Payto(StripeObject): bsb_number: Optional[str] """ @@ -2019,6 +2026,12 @@ class SepaDebit(StripeObject): Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve). """ + class Sequra(StripeObject): + transaction_id: Optional[str] + """ + The SeQura transaction ID associated with this payment. + """ + class Sofort(StripeObject): bank_code: Optional[str] """ @@ -2202,6 +2215,7 @@ class Zip(StripeObject): payco: Optional[Payco] paynow: Optional[Paynow] paypal: Optional[Paypal] + paypay: Optional[Paypay] payto: Optional[Payto] pix: Optional[Pix] promptpay: Optional[Promptpay] @@ -2211,6 +2225,7 @@ class Zip(StripeObject): scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] + sequra: Optional[Sequra] sofort: Optional[Sofort] stripe_account: Optional[StripeAccount] sunbit: Optional[Sunbit] @@ -2270,6 +2285,7 @@ class Zip(StripeObject): "payco": Payco, "paynow": Paynow, "paypal": Paypal, + "paypay": Paypay, "payto": Payto, "pix": Pix, "promptpay": Promptpay, @@ -2279,6 +2295,7 @@ class Zip(StripeObject): "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, + "sequra": Sequra, "sofort": Sofort, "stripe_account": StripeAccount, "sunbit": Sunbit, @@ -2556,11 +2573,7 @@ def _cls_capture( cls, charge: str, **params: Unpack["ChargeCaptureParams"] ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", @@ -2579,22 +2592,14 @@ def capture( charge: str, **params: Unpack["ChargeCaptureParams"] ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ ... @overload def capture(self, **params: Unpack["ChargeCaptureParams"]) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ ... @@ -2603,11 +2608,7 @@ def capture( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["ChargeCaptureParams"] ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", @@ -2625,11 +2626,7 @@ async def _cls_capture_async( cls, charge: str, **params: Unpack["ChargeCaptureParams"] ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", @@ -2648,11 +2645,7 @@ async def capture_async( charge: str, **params: Unpack["ChargeCaptureParams"] ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ ... @@ -2661,11 +2654,7 @@ async def capture_async( self, **params: Unpack["ChargeCaptureParams"] ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ ... @@ -2674,11 +2663,7 @@ async def capture_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["ChargeCaptureParams"] ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", @@ -2694,9 +2679,7 @@ async def capture_async( # pyright: ignore[reportGeneralTypeIssues] @classmethod def create(cls, **params: Unpack["ChargeCreateParams"]) -> "Charge": """ - This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents) - to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge - object used to request payment. + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", @@ -2712,9 +2695,7 @@ async def create_async( cls, **params: Unpack["ChargeCreateParams"] ) -> "Charge": """ - This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents) - to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge - object used to request payment. + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", diff --git a/stripe/_charge_service.py b/stripe/_charge_service.py index 2fca76593..be7d41d08 100644 --- a/stripe/_charge_service.py +++ b/stripe/_charge_service.py @@ -63,9 +63,7 @@ def create( options: Optional["RequestOptions"] = None, ) -> "Charge": """ - This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents) - to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge - object used to request payment. + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", @@ -84,9 +82,7 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "Charge": """ - This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents) - to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge - object used to request payment. + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", @@ -230,11 +226,7 @@ def capture( options: Optional["RequestOptions"] = None, ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", @@ -256,11 +248,7 @@ async def capture_async( options: Optional["RequestOptions"] = None, ) -> "Charge": """ - Capture the payment of an existing, uncaptured charge that was created with the capture option set to false. - - Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail. - - Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). + This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents). """ return cast( "Charge", diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 99c03d248..41616ff39 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -1320,6 +1320,9 @@ class Paypal(StripeObject): PayPal account PayerID. This identifier uniquely identifies the PayPal customer. """ + class Paypay(StripeObject): + pass + class Payto(StripeObject): bsb_number: Optional[str] """ @@ -1392,6 +1395,9 @@ class GeneratedFrom(StripeObject): """ _inner_class_types = {"generated_from": GeneratedFrom} + class Sequra(StripeObject): + pass + class Sofort(StripeObject): country: Optional[str] """ @@ -1570,6 +1576,7 @@ class Zip(StripeObject): payco: Optional[Payco] paynow: Optional[Paynow] paypal: Optional[Paypal] + paypay: Optional[Paypay] payto: Optional[Payto] pix: Optional[Pix] promptpay: Optional[Promptpay] @@ -1578,6 +1585,7 @@ class Zip(StripeObject): satispay: Optional[Satispay] scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] + sequra: Optional[Sequra] sofort: Optional[Sofort] sunbit: Optional[Sunbit] swish: Optional[Swish] @@ -1625,6 +1633,7 @@ class Zip(StripeObject): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -1633,6 +1642,7 @@ class Zip(StripeObject): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -1693,6 +1703,7 @@ class Zip(StripeObject): "payco": Payco, "paynow": Paynow, "paypal": Paypal, + "paypay": Paypay, "payto": Payto, "pix": Pix, "promptpay": Promptpay, @@ -1701,6 +1712,7 @@ class Zip(StripeObject): "satispay": Satispay, "scalapay": Scalapay, "sepa_debit": SepaDebit, + "sequra": Sequra, "sofort": Sofort, "sunbit": Sunbit, "swish": Swish, diff --git a/stripe/_coupon.py b/stripe/_coupon.py index 74d06df03..74cd9227a 100644 --- a/stripe/_coupon.py +++ b/stripe/_coupon.py @@ -26,8 +26,8 @@ class Coupon( ): """ A coupon contains information about a percent-off or amount-off discount you - might want to apply to a customer. Coupons may be applied to [subscriptions](https://api.stripe.com#subscriptions), [invoices](https://api.stripe.com#invoices), - [checkout sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://api.stripe.com#quotes), and more. Coupons do not work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents). + might want to apply to a customer. Coupons may be applied to [subscriptions](https://docs.stripe.com/api#subscriptions), [invoices](https://docs.stripe.com/api#invoices), + [checkout sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://docs.stripe.com/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents). """ OBJECT_NAME: ClassVar[Literal["coupon"]] = "coupon" diff --git a/stripe/_customer.py b/stripe/_customer.py index 9ef7186a0..e9eef1d69 100644 --- a/stripe/_customer.py +++ b/stripe/_customer.py @@ -297,7 +297,7 @@ class Location(StripeObject): address: Optional[Address] """ - The customer's address. + The customer's billing address. """ balance: Optional[int] """ diff --git a/stripe/_discount.py b/stripe/_discount.py index d62b10208..c8f55f2d5 100644 --- a/stripe/_discount.py +++ b/stripe/_discount.py @@ -2,7 +2,7 @@ # File generated from our OpenAPI spec from stripe._expandable_field import ExpandableField from stripe._stripe_object import StripeObject -from typing import ClassVar, Optional +from typing import ClassVar, Optional, Union from typing_extensions import Literal, TYPE_CHECKING if TYPE_CHECKING: @@ -13,7 +13,7 @@ class Discount(StripeObject): """ - A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes). + A discount represents the actual application of a [coupon](https://docs.stripe.com/api#coupons) or [promotion code](https://docs.stripe.com/api#promotion_codes). It contains information about when the discount began, when it will end, and what it is applied to. Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts) @@ -26,7 +26,7 @@ class Source(StripeObject): """ The coupon that was redeemed to create this discount. """ - type: Literal["coupon"] + type: Union[Literal["coupon"], str] """ The source type of the discount. """ diff --git a/stripe/_event.py b/stripe/_event.py index 66cbdb1d1..9cfbf5e6b 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -38,7 +38,7 @@ class Event(ListableAPIResource["Event"]): class Data(StripeObject): object: UntypedStripeObject[Any] """ - Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://api.stripe.com#invoice_object) as the value of the object key. + Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://docs.stripe.com/api#invoice_object) as the value of the object key. """ previous_attributes: Optional[UntypedStripeObject[Any]] """ @@ -102,6 +102,9 @@ class Request(StripeObject): "application_fee.created", "application_fee.refund.updated", "application_fee.refunded", + "apps.install.created", + "apps.install.deleted", + "apps.install.updated", "balance.available", "balance_settings.updated", "billing.alert.triggered", diff --git a/stripe/_file.py b/stripe/_file.py index 55dc1d07d..8bf982e72 100644 --- a/stripe/_file.py +++ b/stripe/_file.py @@ -16,7 +16,7 @@ class File(CreateableAPIResource["File"], ListableAPIResource["File"]): """ This object represents files hosted on Stripe's servers. You can upload - files with the [create file](https://api.stripe.com#create_file) request + files with the [create file](https://docs.stripe.com/api#create_file) request (for example, when uploading dispute evidence). Stripe also creates files independently (for example, the results of a [Sigma scheduled query](https://docs.stripe.com/api#scheduled_queries)). @@ -43,7 +43,7 @@ class File(CreateableAPIResource["File"], ListableAPIResource["File"]): """ links: Optional[ListObject["FileLink"]] """ - A list of [file links](https://api.stripe.com#file_links) that point at this file. + A list of [file links](https://docs.stripe.com/api#file_links) that point at this file. """ object: Literal["file"] """ diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 113ef5f88..23fd3dcc7 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -91,7 +91,7 @@ class Invoice( Invoices are statements of amounts owed by a customer, and are either generated one-off, or generated periodically from a subscription. - They contain [invoice items](https://api.stripe.com#invoiceitems), and proration adjustments + They contain [invoice items](https://docs.stripe.com/api#invoiceitems), and proration adjustments that may be caused by subscription upgrades/downgrades (if necessary). If your invoice is configured to be billed through automatic charges, @@ -477,6 +477,7 @@ class LastFinalizationError(StripeObject): "customer_session_expired", "customer_tax_location_invalid", "debit_not_authorized", + "dispute_evidence_page_limit_exceeded", "email_invalid", "expired_card", "expired_payment_method", @@ -487,6 +488,8 @@ class LastFinalizationError(StripeObject): "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", + "financial_connections_consent_locale_invalid", + "financial_connections_consent_locale_unsupported", "financial_connections_no_successful_transaction_refresh", "forwarding_api_inactive", "forwarding_api_invalid_parameter", @@ -540,6 +543,7 @@ class LastFinalizationError(StripeObject): "parameter_missing", "parameter_unknown", "parameters_exclusive", + "payment_evaluation_on_api_version_not_supported", "payment_intent_action_required", "payment_intent_authentication_failure", "payment_intent_incompatible_payment_method", @@ -691,7 +695,7 @@ class LastFinalizationError(StripeObject): """ 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. + Later, you can use [PaymentIntents](https://docs.stripe.com/api#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. @@ -702,9 +706,9 @@ class LastFinalizationError(StripeObject): 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), + If you use the SetupIntent with a [Customer](https://docs.stripe.com/api#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 + We recommend using SetupIntents or [setup_future_usage](https://docs.stripe.com/api#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. @@ -795,6 +799,79 @@ class Bancontact(StripeObject): """ class Billie(StripeObject): + class CompanyDetails(StripeObject): + class RegisteredAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code. + """ + line1: Optional[str] + """ + Address line 1 (for example, street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (for example, apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + registered_address: Optional[RegisteredAddress] + registered_name: Optional[str] + """ + Company or entity name. + """ + registration_number: Optional[str] + """ + The official registration number for the given registration type. + """ + registration_type: Optional[ + Literal[ + "ch_ein", + "de_hrb", + "dk_cvr", + "es_cif", + "fi_tunnus", + "fr_siren", + "fr_siret", + "it_rea", + "nl_kvk", + "no_org_number", + "no_pno", + "se_org_number", + "se_pno", + "uk_crn", + ] + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: Optional[str] + """ + VAT ID number. + """ + _inner_class_types = { + "registered_address": RegisteredAddress, + } + + company_details: Optional[CompanyDetails] + reference: Optional[str] + """ + An identifier or reference that this payment corresponds to. + """ + _inner_class_types = {"company_details": CompanyDetails} + + class Blik(StripeObject): pass class Card(StripeObject): @@ -983,6 +1060,10 @@ class Filters(StripeObject): """ If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent. """ + blik: Optional[Blik] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: Optional[Card] """ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. @@ -1019,6 +1100,7 @@ class Filters(StripeObject): "acss_debit": AcssDebit, "bancontact": Bancontact, "billie": Billie, + "blik": Blik, "card": Card, "customer_balance": CustomerBalance, "konbini": Konbini, @@ -1051,6 +1133,7 @@ class Filters(StripeObject): "bacs_debit", "bancontact", "billie", + "blik", "boleto", "card", "cashapp", @@ -1235,6 +1318,27 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + class StatusDetails(StripeObject): + class Uncollectible(StripeObject): + reason: Optional[ + Union[ + Literal[ + "max_payment_attempts", + "payment_not_received", + "subscription_canceled", + "subscription_paused", + "user_forgiven", + ], + str, + ] + ] + """ + The reason why the invoice is uncollectible. + """ + + uncollectible: Optional[Uncollectible] + _inner_class_types = {"uncollectible": Uncollectible} + class StatusTransitions(StripeObject): finalized_at: Optional[int] """ @@ -1629,7 +1733,7 @@ class TaxRateDetails(StripeObject): """ rendering: Optional[Rendering] """ - The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. + The rendering-related settings that control how invoices render in customer-facing interfaces such as the PDF or hosted invoice page. """ shipping_cost: Optional[ShippingCost] """ @@ -1653,6 +1757,7 @@ class TaxRateDetails(StripeObject): """ The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview) """ + status_details: Optional[StatusDetails] status_transitions: StatusTransitions subtotal: int """ @@ -2422,7 +2527,8 @@ def modify( ) -> "Invoice": """ Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized), - monetary values, as well as collection_method, become uneditable. + you can no longer change most of its details, including monetary values and collection_method. For most invoices, + this also includes description. If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on, sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass @@ -2444,7 +2550,8 @@ async def modify_async( ) -> "Invoice": """ Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized), - monetary values, as well as collection_method, become uneditable. + you can no longer change most of its details, including monetary values and collection_method. For most invoices, + this also includes description. If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on, sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass @@ -3149,6 +3256,7 @@ async def list_lines_async( "rendering": Rendering, "shipping_cost": ShippingCost, "shipping_details": ShippingDetails, + "status_details": StatusDetails, "status_transitions": StatusTransitions, "threshold_reason": ThresholdReason, "total_discount_amounts": TotalDiscountAmount, diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index dfda4fafd..fbb32e9fb 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -53,6 +53,12 @@ class InvoiceItem( OBJECT_NAME: ClassVar[Literal["invoiceitem"]] = "invoiceitem" + class InvoicingRule(StripeObject): + type: Union[Literal["defer_until_credited_items_resolved"], str] + """ + The type of invoicing rule. + """ + class Parent(StripeObject): class SubscriptionDetails(StripeObject): subscription: str @@ -148,7 +154,7 @@ class DiscountAmount(StripeObject): """ discount_amounts: List[DiscountAmount] """ - Discount amounts applied when the proration was created. + Discount amounts applied when the proration was created. This field is only populated for prorations created from subscriptions with `billing_mode=flexible`. """ _inner_class_types = { "credited_items": CreditedItems, @@ -205,6 +211,10 @@ class DiscountAmount(StripeObject): """ The ID of the invoice this invoice item belongs to. """ + invoicing_rules: Optional[List[InvoicingRule]] + """ + The rules that control when this invoice item is eligible for invoicing. All rules must be satisfied for the item to be invoiced. + """ livemode: bool """ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -479,6 +489,7 @@ async def retrieve_async( return instance _inner_class_types = { + "invoicing_rules": InvoicingRule, "parent": Parent, "period": Period, "pricing": Pricing, diff --git a/stripe/_invoice_payment.py b/stripe/_invoice_payment.py index 41d54abed..27bd7b680 100644 --- a/stripe/_invoice_payment.py +++ b/stripe/_invoice_payment.py @@ -24,7 +24,7 @@ class InvoicePayment(ListableAPIResource["InvoicePayment"]): """ Invoice Payments represent payments made against invoices. Invoice Payments can be accessed in two ways: - 1. By expanding the `payments` field on the [Invoice](https://api.stripe.com#invoice) resource. + 1. By expanding the `payments` field on the [Invoice](https://docs.stripe.com/api#invoice) resource. 2. By using the Invoice Payment retrieve and list endpoints. Invoice Payments include the mapping between payment objects, such as Payment Intent, and Invoices. @@ -37,7 +37,7 @@ class InvoicePayment(ListableAPIResource["InvoicePayment"]): class Payment(StripeObject): charge: Optional[ExpandableField["Charge"]] """ - ID of the successful charge for this payment when `type` is `charge`.Note: charge is only surfaced if the charge object is not associated with a payment intent. If the charge object does have a payment intent, the Invoice Payment surfaces the payment intent instead. + ID of the successful charge for this payment when `type` is `charge`. Note: charge is only surfaced if the charge object is not associated with a payment intent. If the charge object does have a payment intent, the Invoice Payment surfaces the payment intent instead. """ payment_intent: Optional[ExpandableField["PaymentIntent"]] """ diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index a201d0504..3062a9a91 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -163,7 +163,8 @@ def update( ) -> "Invoice": """ Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized), - monetary values, as well as collection_method, become uneditable. + you can no longer change most of its details, including monetary values and collection_method. For most invoices, + this also includes description. If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on, sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass @@ -188,7 +189,8 @@ async def update_async( ) -> "Invoice": """ Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized), - monetary values, as well as collection_method, become uneditable. + you can no longer change most of its details, including monetary values and collection_method. For most invoices, + this also includes description. If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on, sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass diff --git a/stripe/_line_item.py b/stripe/_line_item.py index 8bf726e48..1788e4fb9 100644 --- a/stripe/_line_item.py +++ b/stripe/_line_item.py @@ -29,7 +29,7 @@ class Discount(StripeObject): """ discount: "DiscountResource" """ - A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes). + A discount represents the actual application of a [coupon](https://docs.stripe.com/api#coupons) or [promotion code](https://docs.stripe.com/api#promotion_codes). It contains information about when the discount began, when it will end, and what it is applied to. Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts) diff --git a/stripe/_mandate.py b/stripe/_mandate.py index 4dda0d909..f31e6d649 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -125,8 +125,38 @@ class BacsDebit(StripeObject): The URL that will contain the mandate that the customer has signed. """ + class Blik(StripeObject): + expires_at: Optional[int] + """ + Date at which the mandate expires. + """ + type: Literal["off_session"] + """ + Type of the mandate. + """ + class Card(StripeObject): - pass + class India(StripeObject): + inactive_reason: Optional[ + Union[ + Literal[ + "canceled", + "card_not_supported", + "currency_not_supported", + "expired", + "issuer_not_supported", + "processing_error", + "undetermined", + ], + str, + ] + ] + """ + The reason why the mandate has an `inactive` status. This field is only populated if the mandate is inactive. + """ + + india: Optional[India] + _inner_class_types = {"india": India} class Cashapp(StripeObject): pass @@ -301,6 +331,7 @@ class UsBankAccount(StripeObject): amazon_pay: Optional[AmazonPay] au_becs_debit: Optional[AuBecsDebit] bacs_debit: Optional[BacsDebit] + blik: Optional[Blik] card: Optional[Card] cashapp: Optional[Cashapp] kakao_pay: Optional[KakaoPay] @@ -326,6 +357,7 @@ class UsBankAccount(StripeObject): "amazon_pay": AmazonPay, "au_becs_debit": AuBecsDebit, "bacs_debit": BacsDebit, + "blik": Blik, "card": Card, "cashapp": Cashapp, "kakao_pay": KakaoPay, diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py index d93383f5f..c9755d06b 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -23,6 +23,7 @@ "application": ("stripe._application", "Application"), "application_fee": ("stripe._application_fee", "ApplicationFee"), "fee_refund": ("stripe._application_fee_refund", "ApplicationFeeRefund"), + "apps.install": ("stripe.apps._install", "Install"), "apps.secret": ("stripe.apps._secret", "Secret"), "balance": ("stripe._balance", "Balance"), "balance_settings": ("stripe._balance_settings", "BalanceSettings"), @@ -200,6 +201,10 @@ "plan": ("stripe._plan", "Plan"), "price": ("stripe._price", "Price"), "product": ("stripe._product", "Product"), + "product_catalog.trial_offer": ( + "stripe.product_catalog._trial_offer", + "TrialOffer", + ), "product_feature": ("stripe._product_feature", "ProductFeature"), "promotion_code": ("stripe._promotion_code", "PromotionCode"), "quote": ("stripe._quote", "Quote"), @@ -253,6 +258,7 @@ "stripe.tax._calculation_line_item", "CalculationLineItem", ), + "tax.location": ("stripe.tax._location", "Location"), "tax.registration": ("stripe.tax._registration", "Registration"), "tax.settings": ("stripe.tax._settings", "Settings"), "tax.transaction": ("stripe.tax._transaction", "Transaction"), @@ -285,6 +291,10 @@ "stripe.test_helpers._test_clock", "TestClock", ), + "three_d_secure.authentication": ( + "stripe.three_d_secure._authentication", + "Authentication", + ), "token": ("stripe._token", "Token"), "topup": ("stripe._topup", "Topup"), "transfer": ("stripe._transfer", "Transfer"), diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 4b0aca536..67bebe320 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -276,7 +276,7 @@ class Card(StripeObject): """ card: Optional[Card] - type: Optional[Literal["card"]] + type: Optional[Union[Literal["card"], str]] """ funding type of the underlying payment method. """ @@ -561,7 +561,10 @@ class ThreeDSecure(StripeObject): Additional information about why 3D Secure succeeded or failed, based on the `result`. """ version: Optional[ - Union[Literal["1.0.2", "2.1.0", "2.2.0"], str] + Union[ + Literal["1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1"], + str, + ] ] """ The version of 3D Secure that was used. @@ -577,19 +580,24 @@ class ApplePay(StripeObject): class GooglePay(StripeObject): pass + class Link(StripeObject): + pass + apple_pay: Optional[ApplePay] dynamic_last4: Optional[str] """ (For tokenized numbers only.) The last four digits of the device account number. """ google_pay: Optional[GooglePay] + link: Optional[Link] type: str """ - The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. + The type of the card wallet, one of `apple_pay`, `google_pay`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. """ _inner_class_types = { "apple_pay": ApplePay, "google_pay": GooglePay, + "link": Link, } authorization_code: Optional[str] @@ -1430,6 +1438,10 @@ class Link(StripeObject): """ Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. """ + funding_source_group: Optional[str] + """ + The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time. + """ class MbWay(StripeObject): pass @@ -1463,6 +1475,16 @@ class Card(StripeObject): """ _inner_class_types = {"card": Card} + class Momo(StripeObject): + fingerprint: Optional[str] + """ + Uniquely identifies this particular MoMo account. You can use this attribute to check whether two MoMo accounts are the same. + """ + mandate: Optional[str] + """ + ID of the multi-use Mandate created by, or used to make, this MoMo payment. + """ + class Multibanco(StripeObject): entity: Optional[str] """ @@ -1640,6 +1662,9 @@ class SellerProtection(StripeObject): """ _inner_class_types = {"seller_protection": SellerProtection} + class Paypay(StripeObject): + pass + class Payto(StripeObject): bsb_number: Optional[str] """ @@ -1703,7 +1728,7 @@ class Card(StripeObject): """ card: Optional[Card] - type: Optional[Literal["card"]] + type: Optional[Union[Literal["card"], str]] """ Funding type of the underlying payment method. """ @@ -1782,6 +1807,12 @@ class SepaDebit(StripeObject): Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve). """ + class Sequra(StripeObject): + transaction_id: Optional[str] + """ + The SeQura transaction ID associated with this payment. + """ + class Sofort(StripeObject): bank_code: Optional[str] """ @@ -1967,6 +1998,7 @@ class Zip(StripeObject): link: Optional[Link] mb_way: Optional[MbWay] mobilepay: Optional[Mobilepay] + momo: Optional[Momo] multibanco: Optional[Multibanco] naver_pay: Optional[NaverPay] nz_bank_account: Optional[NzBankAccount] @@ -1980,6 +2012,7 @@ class Zip(StripeObject): """ paynow: Optional[Paynow] paypal: Optional[Paypal] + paypay: Optional[Paypay] payto: Optional[Payto] pix: Optional[Pix] promptpay: Optional[Promptpay] @@ -1989,6 +2022,7 @@ class Zip(StripeObject): scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] + sequra: Optional[Sequra] sofort: Optional[Sofort] stripe_account: Optional[StripeAccount] sunbit: Optional[Sunbit] @@ -2041,6 +2075,7 @@ class Zip(StripeObject): "link": Link, "mb_way": MbWay, "mobilepay": Mobilepay, + "momo": Momo, "multibanco": Multibanco, "naver_pay": NaverPay, "nz_bank_account": NzBankAccount, @@ -2050,6 +2085,7 @@ class Zip(StripeObject): "payco": Payco, "paynow": Paynow, "paypal": Paypal, + "paypay": Paypay, "payto": Payto, "pix": Pix, "promptpay": Promptpay, @@ -2059,6 +2095,7 @@ class Zip(StripeObject): "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, + "sequra": Sequra, "sofort": Sofort, "stripe_account": StripeAccount, "sunbit": Sunbit, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index dcaa81981..2c96be911 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -34,6 +34,7 @@ PaymentIntentAmountDetailsLineItem, ) from stripe._payment_method import PaymentMethod + from stripe._payment_record import PaymentRecord from stripe._review import Review from stripe._setup_intent import SetupIntent from stripe._source import Source @@ -256,6 +257,7 @@ class LastPaymentError(StripeObject): "customer_session_expired", "customer_tax_location_invalid", "debit_not_authorized", + "dispute_evidence_page_limit_exceeded", "email_invalid", "expired_card", "expired_payment_method", @@ -266,6 +268,8 @@ class LastPaymentError(StripeObject): "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", + "financial_connections_consent_locale_invalid", + "financial_connections_consent_locale_unsupported", "financial_connections_no_successful_transaction_refresh", "forwarding_api_inactive", "forwarding_api_invalid_parameter", @@ -319,6 +323,7 @@ class LastPaymentError(StripeObject): "parameter_missing", "parameter_unknown", "parameters_exclusive", + "payment_evaluation_on_api_version_not_supported", "payment_intent_action_required", "payment_intent_authentication_failure", "payment_intent_incompatible_payment_method", @@ -470,7 +475,7 @@ class LastPaymentError(StripeObject): """ 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. + Later, you can use [PaymentIntents](https://docs.stripe.com/api#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. @@ -481,9 +486,9 @@ class LastPaymentError(StripeObject): 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), + If you use the SetupIntent with a [Customer](https://docs.stripe.com/api#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 + We recommend using SetupIntents or [setup_future_usage](https://docs.stripe.com/api#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. @@ -1360,6 +1365,10 @@ class QrCode(StripeObject): """ The raw data string used to generate QR code, it should be used together with QR code library. """ + expires_at: int + """ + The timestamp at which the QR code expires. + """ image_url_png: str """ The image_url_png string used to render QR code @@ -1752,16 +1761,101 @@ class Bancontact(StripeObject): """ class Billie(StripeObject): + class CompanyDetails(StripeObject): + class RegisteredAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code. + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + registered_address: Optional[RegisteredAddress] + registered_name: Optional[str] + """ + Company or entity name. + """ + registration_number: Optional[str] + """ + The official registration number for the given registration type. + """ + registration_type: Optional[ + Union[ + Literal[ + "ch_ein", + "de_hrb", + "dk_cvr", + "es_cif", + "fi_tunnus", + "fr_siren", + "fr_siret", + "it_rea", + "nl_kvk", + "no_org_number", + "no_pno", + "se_org_number", + "se_pno", + "uk_crn", + ], + str, + ] + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: Optional[str] + """ + VAT id number + """ + _inner_class_types = {"registered_address": RegisteredAddress} + capture_method: Optional[Literal["manual"]] """ Controls when the funds will be captured from the customer's account. """ + company_details: Optional[CompanyDetails] + reference: Optional[str] + """ + An identifier or reference that this payment corresponds to. + """ + _inner_class_types = {"company_details": CompanyDetails} class Bizum(StripeObject): pass class Blik(StripeObject): - setup_future_usage: Optional[Literal["none"]] + class MandateOptions(StripeObject): + expires_at: Optional[int] + """ + Date at which the mandate expires. + """ + type: Optional[Literal["off_session"]] + """ + Type of the mandate. + """ + + mandate_options: Optional[MandateOptions] + setup_future_usage: Optional[ + Union[Literal["none", "off_session"], str] + ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1771,6 +1865,7 @@ class Blik(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). """ + _inner_class_types = {"mandate_options": MandateOptions} class Boleto(StripeObject): expires_after_days: int @@ -2433,6 +2528,9 @@ class Paypal(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 Paypay(StripeObject): + pass + class Payto(StripeObject): class MandateOptions(StripeObject): amount: Optional[int] @@ -2677,6 +2775,22 @@ class MandateOptions(StripeObject): """ _inner_class_types = {"mandate_options": MandateOptions} + class Sequra(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 Sofort(StripeObject): preferred_language: Optional[ Union[Literal["de", "en", "es", "fr", "it", "nl", "pl"], str] @@ -2853,7 +2967,7 @@ class WechatPay(StripeObject): """ The client type that the end customer will pay from """ - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Union[Literal["none"], str]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2916,6 +3030,7 @@ class Zip(StripeObject): payco: Optional[Payco] paynow: Optional[Paynow] paypal: Optional[Paypal] + paypay: Optional[Paypay] payto: Optional[Payto] pix: Optional[Pix] promptpay: Optional[Promptpay] @@ -2924,6 +3039,7 @@ class Zip(StripeObject): satispay: Optional[Satispay] scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] + sequra: Optional[Sequra] sofort: Optional[Sofort] sunbit: Optional[Sunbit] swish: Optional[Swish] @@ -2973,6 +3089,7 @@ class Zip(StripeObject): "payco": Payco, "paynow": Paynow, "paypal": Paypal, + "paypay": Paypay, "payto": Payto, "pix": Pix, "promptpay": Promptpay, @@ -2981,6 +3098,7 @@ class Zip(StripeObject): "satispay": Satispay, "scalapay": Scalapay, "sepa_debit": SepaDebit, + "sequra": Sequra, "sofort": Sofort, "sunbit": Sunbit, "swish": Swish, @@ -3123,6 +3241,7 @@ class PaymentData(StripeObject): "boleto", "capchase_pay", "card", + "card_present", "cashapp", "check_scan", "click_to_pay", @@ -3143,6 +3262,7 @@ class PaymentData(StripeObject): "grabpay", "id_bank_transfer", "ideal", + "interac_present", "kakao_pay", "klarna", "knet", @@ -3291,7 +3411,7 @@ class PaymentData(StripeObject): Payment methods attached to other Customers cannot be used with this PaymentIntent. - If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. + If [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. """ customer_account: Optional[str] """ @@ -3299,7 +3419,7 @@ class PaymentData(StripeObject): Payment methods attached to other Accounts cannot be used with this PaymentIntent. - If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead. + If [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead. """ description: Optional[str] """ @@ -3346,6 +3466,7 @@ class PaymentData(StripeObject): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -3354,6 +3475,7 @@ class PaymentData(StripeObject): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -3427,6 +3549,10 @@ class PaymentData(StripeObject): """ The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. A comprehensive list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). """ + payment_record: Optional[ExpandableField["PaymentRecord"]] + """ + ID of the [Payment Record object](https://docs.stripe.com/api/payment-record) created by this PaymentIntent. + """ presentment_details: Optional[PresentmentDetails] processing: Optional[Processing] """ @@ -4701,7 +4827,7 @@ def retrieve( You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string. - If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details. + If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details. """ instance = cls(id, **params) instance.refresh() @@ -4716,7 +4842,7 @@ async def retrieve_async( You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string. - If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details. + If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details. """ instance = cls(id, **params) await instance.refresh_async() diff --git a/stripe/_payment_intent_amount_details_line_item.py b/stripe/_payment_intent_amount_details_line_item.py index c0837ed2d..dec5e47d8 100644 --- a/stripe/_payment_intent_amount_details_line_item.py +++ b/stripe/_payment_intent_amount_details_line_item.py @@ -55,9 +55,9 @@ class Paypal(StripeObject): class Tax(StripeObject): total_tax_amount: int """ - The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. - This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. + This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. """ discount_amount: Optional[int] diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 694a3397c..ad5965545 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -183,7 +183,7 @@ def retrieve( You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string. - If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details. + If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details. """ return cast( "PaymentIntent", @@ -209,7 +209,7 @@ async def retrieve_async( You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string. - If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details. + If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details. """ return cast( "PaymentIntent", diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 4721e3f8d..3fbc4f17d 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -141,7 +141,7 @@ class Option(StripeObject): class Label(StripeObject): custom: Optional[str] """ - Custom text for the label, displayed to the customer. Up to 50 characters. + Custom text for the label, displayed to the customer. Up to 100 characters. """ type: Literal["custom"] """ @@ -916,11 +916,13 @@ class TransferData(StripeObject): "pay_by_bank", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", "satispay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 16bb9cb5f..1da0d2905 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -1289,6 +1289,9 @@ class Paypal(StripeObject): PayPal account PayerID. This identifier uniquely identifies the PayPal customer. """ + class Paypay(StripeObject): + pass + class Payto(StripeObject): bsb_number: Optional[str] """ @@ -1367,6 +1370,9 @@ class GeneratedFrom(StripeObject): """ _inner_class_types = {"generated_from": GeneratedFrom} + class Sequra(StripeObject): + pass + class Sofort(StripeObject): country: Optional[str] """ @@ -1566,6 +1572,7 @@ class Zip(StripeObject): payco: Optional[Payco] paynow: Optional[Paynow] paypal: Optional[Paypal] + paypay: Optional[Paypay] payto: Optional[Payto] pix: Optional[Pix] promptpay: Optional[Promptpay] @@ -1578,6 +1585,7 @@ class Zip(StripeObject): satispay: Optional[Satispay] scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] + sequra: Optional[Sequra] sofort: Optional[Sofort] sunbit: Optional[Sunbit] swish: Optional[Swish] @@ -1625,6 +1633,7 @@ class Zip(StripeObject): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -1633,6 +1642,7 @@ class Zip(StripeObject): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -2143,6 +2153,7 @@ async def retrieve_async( "payco": Payco, "paynow": Paynow, "paypal": Paypal, + "paypay": Paypay, "payto": Payto, "pix": Pix, "promptpay": Promptpay, @@ -2152,6 +2163,7 @@ async def retrieve_async( "satispay": Satispay, "scalapay": Scalapay, "sepa_debit": SepaDebit, + "sequra": Sequra, "sofort": Sofort, "sunbit": Sunbit, "swish": Swish, diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index 46b6857b9..bfce48ac2 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -974,6 +974,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Paypay(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: Union[Literal["none", "off", "on"], str] + """ + The account's display preference. + """ + value: Union[Literal["off", "on"], str] + """ + 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 Payto(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1150,6 +1172,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Sequra(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: Union[Literal["none", "off", "on"], str] + """ + The account's display preference. + """ + value: Union[Literal["off", "on"], str] + """ + 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 Sofort(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1400,6 +1444,7 @@ class DisplayPreference(StripeObject): payco: Optional[Payco] paynow: Optional[Paynow] paypal: Optional[Paypal] + paypay: Optional[Paypay] payto: Optional[Payto] pix: Optional[Pix] promptpay: Optional[Promptpay] @@ -1408,6 +1453,7 @@ class DisplayPreference(StripeObject): satispay: Optional[Satispay] scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] + sequra: Optional[Sequra] sofort: Optional[Sofort] sunbit: Optional[Sunbit] swish: Optional[Swish] @@ -1596,6 +1642,7 @@ async def retrieve_async( "payco": Payco, "paynow": Paynow, "paypal": Paypal, + "paypay": Paypay, "payto": Payto, "pix": Pix, "promptpay": Promptpay, @@ -1604,6 +1651,7 @@ async def retrieve_async( "satispay": Satispay, "scalapay": Scalapay, "sepa_debit": SepaDebit, + "sequra": Sequra, "sofort": Sofort, "sunbit": Sunbit, "swish": Swish, diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index 3a226e282..4315bf559 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -296,7 +296,7 @@ class Card(StripeObject): """ card: Optional[Card] - type: Optional[Literal["card"]] + type: Optional[Union[Literal["card"], str]] """ funding type of the underlying payment method. """ @@ -581,7 +581,10 @@ class ThreeDSecure(StripeObject): Additional information about why 3D Secure succeeded or failed, based on the `result`. """ version: Optional[ - Union[Literal["1.0.2", "2.1.0", "2.2.0"], str] + Union[ + Literal["1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1"], + str, + ] ] """ The version of 3D Secure that was used. @@ -597,19 +600,24 @@ class ApplePay(StripeObject): class GooglePay(StripeObject): pass + class Link(StripeObject): + pass + apple_pay: Optional[ApplePay] dynamic_last4: Optional[str] """ (For tokenized numbers only.) The last four digits of the device account number. """ google_pay: Optional[GooglePay] + link: Optional[Link] type: str """ - The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. + The type of the card wallet, one of `apple_pay`, `google_pay`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. """ _inner_class_types = { "apple_pay": ApplePay, "google_pay": GooglePay, + "link": Link, } authorization_code: Optional[str] @@ -1450,6 +1458,10 @@ class Link(StripeObject): """ Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. """ + funding_source_group: Optional[str] + """ + The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time. + """ class MbWay(StripeObject): pass @@ -1483,6 +1495,16 @@ class Card(StripeObject): """ _inner_class_types = {"card": Card} + class Momo(StripeObject): + fingerprint: Optional[str] + """ + Uniquely identifies this particular MoMo account. You can use this attribute to check whether two MoMo accounts are the same. + """ + mandate: Optional[str] + """ + ID of the multi-use Mandate created by, or used to make, this MoMo payment. + """ + class Multibanco(StripeObject): entity: Optional[str] """ @@ -1660,6 +1682,9 @@ class SellerProtection(StripeObject): """ _inner_class_types = {"seller_protection": SellerProtection} + class Paypay(StripeObject): + pass + class Payto(StripeObject): bsb_number: Optional[str] """ @@ -1723,7 +1748,7 @@ class Card(StripeObject): """ card: Optional[Card] - type: Optional[Literal["card"]] + type: Optional[Union[Literal["card"], str]] """ Funding type of the underlying payment method. """ @@ -1802,6 +1827,12 @@ class SepaDebit(StripeObject): Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve). """ + class Sequra(StripeObject): + transaction_id: Optional[str] + """ + The SeQura transaction ID associated with this payment. + """ + class Sofort(StripeObject): bank_code: Optional[str] """ @@ -1987,6 +2018,7 @@ class Zip(StripeObject): link: Optional[Link] mb_way: Optional[MbWay] mobilepay: Optional[Mobilepay] + momo: Optional[Momo] multibanco: Optional[Multibanco] naver_pay: Optional[NaverPay] nz_bank_account: Optional[NzBankAccount] @@ -2000,6 +2032,7 @@ class Zip(StripeObject): """ paynow: Optional[Paynow] paypal: Optional[Paypal] + paypay: Optional[Paypay] payto: Optional[Payto] pix: Optional[Pix] promptpay: Optional[Promptpay] @@ -2009,6 +2042,7 @@ class Zip(StripeObject): scalapay: Optional[Scalapay] sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] + sequra: Optional[Sequra] sofort: Optional[Sofort] stripe_account: Optional[StripeAccount] sunbit: Optional[Sunbit] @@ -2061,6 +2095,7 @@ class Zip(StripeObject): "link": Link, "mb_way": MbWay, "mobilepay": Mobilepay, + "momo": Momo, "multibanco": Multibanco, "naver_pay": NaverPay, "nz_bank_account": NzBankAccount, @@ -2070,6 +2105,7 @@ class Zip(StripeObject): "payco": Payco, "paynow": Paynow, "paypal": Paypal, + "paypay": Paypay, "payto": Payto, "pix": Pix, "promptpay": Promptpay, @@ -2079,6 +2115,7 @@ class Zip(StripeObject): "scalapay": Scalapay, "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, + "sequra": Sequra, "sofort": Sofort, "stripe_account": StripeAccount, "sunbit": Sunbit, diff --git a/stripe/_person.py b/stripe/_person.py index 8f90a7163..3cba73387 100644 --- a/stripe/_person.py +++ b/stripe/_person.py @@ -160,8 +160,10 @@ class Error(StripeObject): "external_request", "information_missing", "invalid_address_city_state_postal_code", + "invalid_address_cmra_address", "invalid_address_highway_contract_box", "invalid_address_private_mailbox", + "invalid_address_registered_agent_address", "invalid_business_profile_name", "invalid_business_profile_name_denylisted", "invalid_company_name_denylisted", @@ -369,8 +371,10 @@ class Error(StripeObject): "external_request", "information_missing", "invalid_address_city_state_postal_code", + "invalid_address_cmra_address", "invalid_address_highway_contract_box", "invalid_address_private_mailbox", + "invalid_address_registered_agent_address", "invalid_business_profile_name", "invalid_business_profile_name_denylisted", "invalid_company_name_denylisted", @@ -591,7 +595,7 @@ class Verification(StripeObject): class AdditionalDocument(StripeObject): back: Optional[ExpandableField["File"]] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ details: Optional[str] """ @@ -603,13 +607,13 @@ class AdditionalDocument(StripeObject): """ front: Optional[ExpandableField["File"]] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ class Document(StripeObject): back: Optional[ExpandableField["File"]] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ details: Optional[str] """ @@ -621,7 +625,7 @@ class Document(StripeObject): """ front: Optional[ExpandableField["File"]] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ additional_document: Optional[AdditionalDocument] diff --git a/stripe/_plan.py b/stripe/_plan.py index e365c3c7f..3c8786874 100644 --- a/stripe/_plan.py +++ b/stripe/_plan.py @@ -28,10 +28,10 @@ class Plan( UpdateableAPIResource["Plan"], ): """ - You can now model subscriptions more flexibly using the [Prices API](https://api.stripe.com#prices). It replaces the Plans API and is backwards compatible to simplify your migration. + You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration. Plans define the base price, currency, and billing cycle for recurring purchases of products. - [Products](https://api.stripe.com#products) help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme. + [Products](https://docs.stripe.com/api#products) help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme. For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year. diff --git a/stripe/_price.py b/stripe/_price.py index 9f55b83b0..66ab763dd 100644 --- a/stripe/_price.py +++ b/stripe/_price.py @@ -38,7 +38,7 @@ class Price( ): """ Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. - [Products](https://api.stripe.com#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. + [Products](https://docs.stripe.com/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once. diff --git a/stripe/_product.py b/stripe/_product.py index e63587b5b..15b0161ac 100644 --- a/stripe/_product.py +++ b/stripe/_product.py @@ -58,7 +58,7 @@ class Product( """ Products describe the specific goods or services you offer to your customers. For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product. - They can be used in conjunction with [Prices](https://api.stripe.com#prices) to configure pricing in Payment Links, Checkout, and Subscriptions. + They can be used in conjunction with [Prices](https://docs.stripe.com/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions. Related guides: [Set up a subscription](https://docs.stripe.com/billing/subscriptions/set-up-subscription), [share a Payment Link](https://docs.stripe.com/payment-links), @@ -92,6 +92,16 @@ class PackageDimensions(StripeObject): Width, in inches. """ + class TaxDetails(StripeObject): + performance_location: Optional[str] + """ + The ID of a tax location with type `performance`, representing where the performance takes place. + """ + tax_code: Optional[str] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + active: bool """ Whether the product is currently available for purchase. @@ -156,6 +166,10 @@ class PackageDimensions(StripeObject): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: Optional[TaxDetails] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ type: Union[Literal["good", "service"], str] """ The type of the product. The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans. @@ -590,4 +604,5 @@ async def create_feature_async( _inner_class_types = { "marketing_features": MarketingFeature, "package_dimensions": PackageDimensions, + "tax_details": TaxDetails, } diff --git a/stripe/_product_catalog_service.py b/stripe/_product_catalog_service.py new file mode 100644 index 000000000..dd7561b5d --- /dev/null +++ b/stripe/_product_catalog_service.py @@ -0,0 +1,38 @@ +# -*- 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.product_catalog._trial_offer_service import TrialOfferService + +_subservices = { + "trial_offers": [ + "stripe.product_catalog._trial_offer_service", + "TrialOfferService", + ], +} + + +class ProductCatalogService(StripeService): + trial_offers: "TrialOfferService" + + 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/_quote.py b/stripe/_quote.py index 2e334843e..87717da9d 100644 --- a/stripe/_quote.py +++ b/stripe/_quote.py @@ -95,7 +95,7 @@ class Discount(StripeObject): """ discount: "DiscountResource" """ - A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes). + A discount represents the actual application of a [coupon](https://docs.stripe.com/api#coupons) or [promotion code](https://docs.stripe.com/api#promotion_codes). It contains information about when the discount began, when it will end, and what it is applied to. Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts) @@ -196,7 +196,7 @@ class Discount(StripeObject): """ discount: "DiscountResource" """ - A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes). + A discount represents the actual application of a [coupon](https://docs.stripe.com/api#coupons) or [promotion code](https://docs.stripe.com/api#promotion_codes). It contains information about when the discount began, when it will end, and what it is applied to. Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts) @@ -402,7 +402,7 @@ class Discount(StripeObject): """ discount: "DiscountResource" """ - A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes). + A discount represents the actual application of a [coupon](https://docs.stripe.com/api#coupons) or [promotion code](https://docs.stripe.com/api#promotion_codes). It contains information about when the discount began, when it will end, and what it is applied to. Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts) diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index c33417ba2..4585b3048 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -82,6 +82,12 @@ class Bancontact(StripeObject): (if supported) at the time of authorization or settlement. They cannot be set or mutated. """ + class Blik(StripeObject): + buyer_id: Optional[str] + """ + A unique and immutable identifier assigned by BLIK to every buyer. + """ + class Boleto(StripeObject): pass @@ -449,6 +455,7 @@ class UsBankAccount(StripeObject): au_becs_debit: Optional[AuBecsDebit] bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] + blik: Optional[Blik] boleto: Optional[Boleto] card: Optional[Card] card_present: Optional[CardPresent] @@ -480,6 +487,7 @@ class UsBankAccount(StripeObject): "au_becs_debit": AuBecsDebit, "bacs_debit": BacsDebit, "bancontact": Bancontact, + "blik": Blik, "boleto": Boleto, "card": Card, "card_present": CardPresent, @@ -567,6 +575,7 @@ class SetupError(StripeObject): "customer_session_expired", "customer_tax_location_invalid", "debit_not_authorized", + "dispute_evidence_page_limit_exceeded", "email_invalid", "expired_card", "expired_payment_method", @@ -577,6 +586,8 @@ class SetupError(StripeObject): "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", + "financial_connections_consent_locale_invalid", + "financial_connections_consent_locale_unsupported", "financial_connections_no_successful_transaction_refresh", "forwarding_api_inactive", "forwarding_api_invalid_parameter", @@ -630,6 +641,7 @@ class SetupError(StripeObject): "parameter_missing", "parameter_unknown", "parameters_exclusive", + "payment_evaluation_on_api_version_not_supported", "payment_intent_action_required", "payment_intent_authentication_failure", "payment_intent_incompatible_payment_method", @@ -781,7 +793,7 @@ class SetupError(StripeObject): """ 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. + Later, you can use [PaymentIntents](https://docs.stripe.com/api#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. @@ -792,9 +804,9 @@ class SetupError(StripeObject): 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), + If you use the SetupIntent with a [Customer](https://docs.stripe.com/api#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 + We recommend using SetupIntents or [setup_future_usage](https://docs.stripe.com/api#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. diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index b98824fbd..4b11dda71 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -50,7 +50,7 @@ class 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. + Later, you can use [PaymentIntents](https://docs.stripe.com/api#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. @@ -61,9 +61,9 @@ class SetupIntent( 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), + If you use the SetupIntent with a [Customer](https://docs.stripe.com/api#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 + We recommend using SetupIntents or [setup_future_usage](https://docs.stripe.com/api#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. @@ -149,6 +149,7 @@ class LastSetupError(StripeObject): "customer_session_expired", "customer_tax_location_invalid", "debit_not_authorized", + "dispute_evidence_page_limit_exceeded", "email_invalid", "expired_card", "expired_payment_method", @@ -159,6 +160,8 @@ class LastSetupError(StripeObject): "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", + "financial_connections_consent_locale_invalid", + "financial_connections_consent_locale_unsupported", "financial_connections_no_successful_transaction_refresh", "forwarding_api_inactive", "forwarding_api_invalid_parameter", @@ -212,6 +215,7 @@ class LastSetupError(StripeObject): "parameter_missing", "parameter_unknown", "parameters_exclusive", + "payment_evaluation_on_api_version_not_supported", "payment_intent_action_required", "payment_intent_authentication_failure", "payment_intent_incompatible_payment_method", @@ -363,7 +367,7 @@ class LastSetupError(StripeObject): """ 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. + Later, you can use [PaymentIntents](https://docs.stripe.com/api#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. @@ -374,9 +378,9 @@ class LastSetupError(StripeObject): 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), + If you use the SetupIntent with a [Customer](https://docs.stripe.com/api#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 + We recommend using SetupIntents or [setup_future_usage](https://docs.stripe.com/api#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. @@ -601,6 +605,20 @@ class MandateOptions(StripeObject): class Bizum(StripeObject): pass + class Blik(StripeObject): + class MandateOptions(StripeObject): + expires_at: Optional[int] + """ + Date at which the mandate expires. + """ + type: Optional[Literal["off_session"]] + """ + Type of the mandate. + """ + + mandate_options: Optional[MandateOptions] + _inner_class_types = {"mandate_options": MandateOptions} + class Card(StripeObject): class MandateOptions(StripeObject): amount: int @@ -921,6 +939,7 @@ class MandateOptions(StripeObject): amazon_pay: Optional[AmazonPay] bacs_debit: Optional[BacsDebit] bizum: Optional[Bizum] + blik: Optional[Blik] card: Optional[Card] card_present: Optional[CardPresent] klarna: Optional[Klarna] @@ -936,6 +955,7 @@ class MandateOptions(StripeObject): "amazon_pay": AmazonPay, "bacs_debit": BacsDebit, "bizum": Bizum, + "blik": Blik, "card": Card, "card_present": CardPresent, "klarna": Klarna, @@ -968,6 +988,7 @@ class MandateOptions(StripeObject): "boleto", "capchase_pay", "card", + "card_present", "cashapp", "check_scan", "click_to_pay", @@ -988,6 +1009,7 @@ class MandateOptions(StripeObject): "grabpay", "id_bank_transfer", "ideal", + "interac_present", "kakao_pay", "klarna", "knet", @@ -1144,6 +1166,7 @@ class MandateOptions(StripeObject): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -1152,6 +1175,7 @@ class MandateOptions(StripeObject): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", diff --git a/stripe/_stripe_client.py b/stripe/_stripe_client.py index 1db63f0c1..d6c669358 100644 --- a/stripe/_stripe_client.py +++ b/stripe/_stripe_client.py @@ -109,6 +109,7 @@ from stripe._plan_service import PlanService from stripe._price_service import PriceService from stripe._product_service import ProductService + from stripe._product_catalog_service import ProductCatalogService from stripe._promotion_code_service import PromotionCodeService from stripe._quote_service import QuoteService from stripe._radar_service import RadarService @@ -131,6 +132,7 @@ from stripe._tax_rate_service import TaxRateService from stripe._terminal_service import TerminalService from stripe._test_helpers_service import TestHelpersService + from stripe._three_d_secure_service import ThreeDSecureService from stripe._token_service import TokenService from stripe._topup_service import TopupService from stripe._transfer_service import TransferService @@ -936,6 +938,17 @@ def prices(self) -> "PriceService": def products(self) -> "ProductService": return self.v1.products + @property + @deprecated( + """ + StripeClient.product_catalog is deprecated, use StripeClient.v1.product_catalog instead. + All functionality under it has been copied over to StripeClient.v1.product_catalog. + See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace. + """, + ) + def product_catalog(self) -> "ProductCatalogService": + return self.v1.product_catalog + @property @deprecated( """ @@ -1156,6 +1169,17 @@ def terminal(self) -> "TerminalService": def test_helpers(self) -> "TestHelpersService": return self.v1.test_helpers + @property + @deprecated( + """ + StripeClient.three_d_secure is deprecated, use StripeClient.v1.three_d_secure instead. + All functionality under it has been copied over to StripeClient.v1.three_d_secure. + See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace. + """, + ) + def three_d_secure(self) -> "ThreeDSecureService": + return self.v1.three_d_secure + @property @deprecated( """ diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 839181733..2bcb0b641 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -55,6 +55,9 @@ from stripe.params._subscription_modify_params import ( SubscriptionModifyParams, ) + from stripe.params._subscription_pause_params import ( + SubscriptionPauseParams, + ) from stripe.params._subscription_resume_params import ( SubscriptionResumeParams, ) @@ -345,7 +348,83 @@ class Bancontact(StripeObject): """ class Billie(StripeObject): - pass + class CompanyDetails(StripeObject): + class RegisteredAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code. + """ + line1: Optional[str] + """ + Address line 1 (for example, street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (for example, apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + registered_address: Optional[RegisteredAddress] + registered_name: Optional[str] + """ + Company or entity name. + """ + registration_number: Optional[str] + """ + The official registration number for the given registration type. + """ + registration_type: Optional[ + Literal[ + "ch_ein", + "de_hrb", + "dk_cvr", + "es_cif", + "fi_tunnus", + "fr_siren", + "fr_siret", + "it_rea", + "nl_kvk", + "no_org_number", + "no_pno", + "se_org_number", + "se_pno", + "uk_crn", + ] + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: Optional[str] + """ + VAT ID number. + """ + _inner_class_types = { + "registered_address": RegisteredAddress, + } + + company_details: Optional[CompanyDetails] + _inner_class_types = {"company_details": CompanyDetails} + + class Blik(StripeObject): + class MandateOptions(StripeObject): + expires_at: Optional[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ + + mandate_options: Optional[MandateOptions] + _inner_class_types = {"mandate_options": MandateOptions} class Card(StripeObject): class MandateOptions(StripeObject): @@ -593,6 +672,10 @@ class Filters(StripeObject): """ This sub-hash contains details about the Billie payment method options to pass to invoices created by the subscription. """ + blik: Optional[Blik] + """ + This sub-hash contains details about the Blik payment method options to pass to invoices created by the subscription. + """ card: Optional[Card] """ This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription. @@ -629,6 +712,7 @@ class Filters(StripeObject): "acss_debit": AcssDebit, "bancontact": Bancontact, "billie": Billie, + "blik": Blik, "card": Card, "customer_balance": CustomerBalance, "konbini": Konbini, @@ -657,6 +741,7 @@ class Filters(StripeObject): "bacs_debit", "bancontact", "billie", + "blik", "boleto", "card", "cashapp", @@ -727,6 +812,10 @@ 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. """ + cancel_at_period_end: Optional[bool] + """ + Indicates whether this subscription should cancel at the end of the current period if the update is applied. + """ discount: Optional["Discount"] """ The pending subscription-level discount that will be applied when the pending update is applied. @@ -762,6 +851,41 @@ class PresentmentDetails(StripeObject): Currency used for customer payments. """ + class StatusDetails(StripeObject): + class Paused(StripeObject): + class Subscription(StripeObject): + type: Union[ + Literal[ + "pause_requested", + "system", + "trial_end_without_payment_method", + ], + str, + ] + """ + The reason that the subscription was paused. + """ + + subscription: Subscription + """ + Information on the `type=subscription` pause. + """ + transitioned_at: int + """ + Unix timestamp in seconds of when the subscription status transitioned to `paused`. + """ + type: Union[Literal["subscription"], str] + """ + The type of pause. + """ + _inner_class_types = {"subscription": Subscription} + + paused: Paused + """ + Indicates when and why the subscription transitioned to the paused status. + """ + _inner_class_types = {"paused": Paused} + class TransferData(StripeObject): amount_percent: Optional[float] """ @@ -774,6 +898,12 @@ class TransferData(StripeObject): class TrialSettings(StripeObject): class EndBehavior(StripeObject): + billing_cycle_anchor: Optional[ + Union[Literal["now", "unchanged"], str] + ] + """ + Indicates how the subscription's billing cycle anchor is reset when a trial ends. If not set, the default is `now`. + """ missing_payment_method: Union[ Literal["cancel", "create_invoice", "pause"], str ] @@ -978,6 +1108,10 @@ class EndBehavior(StripeObject): If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. """ + status_details: Optional[StatusDetails] + """ + Describes changes to the subscription's status. + """ test_clock: Optional[ExpandableField["TestClock"]] """ ID of the test clock this subscription belongs to. @@ -1539,6 +1673,116 @@ async def modify_async( ), ) + @classmethod + def _cls_pause( + cls, subscription: str, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + cls._static_request( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(subscription) + ), + params=params, + ), + ) + + @overload + @staticmethod + def pause( + subscription: str, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + ... + + @overload + def pause( + self, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + ... + + @class_method_variant("_cls_pause") + def pause( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + self._request( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + @classmethod + async def _cls_pause_async( + cls, subscription: str, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + await cls._static_request_async( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(subscription) + ), + params=params, + ), + ) + + @overload + @staticmethod + async def pause_async( + subscription: str, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + ... + + @overload + async def pause_async( + self, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + ... + + @class_method_variant("_cls_pause_async") + async def pause_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["SubscriptionPauseParams"] + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + await self._request_async( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + @classmethod def _cls_resume( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] @@ -1725,6 +1969,7 @@ async def search_auto_paging_iter_async( "pending_invoice_item_interval": PendingInvoiceItemInterval, "pending_update": PendingUpdate, "presentment_details": PresentmentDetails, + "status_details": StatusDetails, "transfer_data": TransferData, "trial_settings": TrialSettings, } diff --git a/stripe/_subscription_item.py b/stripe/_subscription_item.py index 782500154..6048715fa 100644 --- a/stripe/_subscription_item.py +++ b/stripe/_subscription_item.py @@ -52,6 +52,11 @@ class BillingThresholds(StripeObject): Usage threshold that triggers the subscription to create an invoice """ + class CurrentTrial(StripeObject): + end_date: int + start_date: int + trial_offer: str + billed_until: Optional[int] """ The time period the subscription item has been billed for. @@ -72,6 +77,10 @@ class BillingThresholds(StripeObject): """ The start time of this subscription item's current billing period. """ + current_trial: Optional[CurrentTrial] + """ + The current trial that is applied to this subscription item. + """ deleted: Optional[Literal[True]] """ Always true for a deleted object @@ -94,10 +103,10 @@ class BillingThresholds(StripeObject): """ plan: "Plan" """ - You can now model subscriptions more flexibly using the [Prices API](https://api.stripe.com#prices). It replaces the Plans API and is backwards compatible to simplify your migration. + You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration. Plans define the base price, currency, and billing cycle for recurring purchases of products. - [Products](https://api.stripe.com#products) help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme. + [Products](https://docs.stripe.com/api#products) help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme. For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year. @@ -106,7 +115,7 @@ class BillingThresholds(StripeObject): price: "Price" """ Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. - [Products](https://api.stripe.com#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. + [Products](https://docs.stripe.com/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once. @@ -351,4 +360,7 @@ async def retrieve_async( await instance.refresh_async() return instance - _inner_class_types = {"billing_thresholds": BillingThresholds} + _inner_class_types = { + "billing_thresholds": BillingThresholds, + "current_trial": CurrentTrial, + } diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 28236fdb0..4d641cd58 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -228,6 +228,147 @@ class TransferData(StripeObject): "transfer_data": TransferData, } + class PauseSchedule(StripeObject): + class Pause(StripeObject): + class Settings(StripeObject): + class BillFor(StripeObject): + class OutstandingUsageThrough(StripeObject): + type: Union[Literal["none", "pause_at"], str] + """ + The type of outstanding usage billing behavior. + """ + + class UnusedTimeFrom(StripeObject): + type: Union[ + Literal[ + "item_current_period_start", "none", "pause_at" + ], + str, + ] + """ + The type of unused time credit behavior. + """ + + outstanding_usage_through: OutstandingUsageThrough + unused_time_from: UnusedTimeFrom + _inner_class_types = { + "outstanding_usage_through": OutstandingUsageThrough, + "unused_time_from": UnusedTimeFrom, + } + + bill_for: BillFor + invoicing_behavior: Union[ + Literal["invoice", "pending_invoice_item"], str + ] + """ + Determines how to handle debits and credits when pausing. + """ + type: Union[Literal["subscription"], str] + """ + The type of pause settings. + """ + _inner_class_types = {"bill_for": BillFor} + + class Status(StripeObject): + class Error(StripeObject): + code: Optional[str] + """ + A machine-readable error code. + """ + message: str + """ + A description of the error. + """ + + error: Optional[Error] + type: Union[Literal["error", "scheduled", "succeeded"], str] + """ + The lifecycle state of the pause operation. + """ + _inner_class_types = {"error": Error} + + pause_at: int + """ + Time at which the subscription pauses. + """ + settings: Optional[Settings] + """ + Settings controlling billing behavior during the pause. + """ + status: Status + _inner_class_types = {"settings": Settings, "status": Status} + + class Resume(StripeObject): + class Settings(StripeObject): + billing_cycle_anchor: Union[ + Literal["resume_at", "unchanged"], str + ] + """ + The billing cycle anchor that applies when the subscription is resumed. + """ + payment_behavior: Union[ + Literal[ + "resume_on_payment_attempt", + "resume_on_payment_success", + ], + str, + ] + """ + Controls whether Stripe attempts payment on the resumption invoice and how that affects the subscription's status. + """ + proration_behavior: Union[ + Literal["always_invoice", "create_prorations", "none"], str + ] + """ + Determines how to handle prorations resulting from the billing_cycle_anchor change on resume. + """ + + class Status(StripeObject): + class Error(StripeObject): + code: Optional[str] + """ + A machine-readable error code. + """ + message: str + """ + A description of the error. + """ + + error: Optional[Error] + type: Union[ + Literal[ + "error", + "pending", + "requires_action", + "scheduled", + "succeeded", + ], + str, + ] + """ + The lifecycle state of the resume operation. + """ + _inner_class_types = {"error": Error} + + resume_at: int + """ + Time at which the subscription resumes. + """ + settings: Settings + status: Status + _inner_class_types = {"settings": Settings, "status": Status} + + key: str + """ + A unique identifier for this pause schedule. + """ + pause: Pause + resume: Optional[Resume] + """ + Details about when and how the subscription resumes. + """ + _inner_class_types = {"pause": Pause, "resume": Resume} + class Phase(StripeObject): class AddInvoiceItem(StripeObject): class Discount(StripeObject): @@ -619,6 +760,10 @@ class TransferData(StripeObject): """ String representing the object's type. Objects of the same type share the same value. """ + pause_schedules: Optional[List[PauseSchedule]] + """ + The pause schedules for this subscription schedule. + """ phases: List[Phase] """ Configuration for the subscription schedule's phases. @@ -1007,5 +1152,6 @@ async def retrieve_async( "billing_mode": BillingMode, "current_phase": CurrentPhase, "default_settings": DefaultSettings, + "pause_schedules": PauseSchedule, "phases": Phase, } diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index d2dec8d9e..4d56ab82e 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -24,6 +24,9 @@ from stripe.params._subscription_migrate_params import ( SubscriptionMigrateParams, ) + from stripe.params._subscription_pause_params import ( + SubscriptionPauseParams, + ) from stripe.params._subscription_resume_params import ( SubscriptionResumeParams, ) @@ -455,6 +458,50 @@ async def migrate_async( ), ) + def pause( + self, + subscription: str, + params: Optional["SubscriptionPauseParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + self._request( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(subscription), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def pause_async( + self, + subscription: str, + params: Optional["SubscriptionPauseParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Subscription": + """ + Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules. + """ + return cast( + "Subscription", + await self._request_async( + "post", + "/v1/subscriptions/{subscription}/pause".format( + subscription=sanitize_id(subscription), + ), + base_address="api", + params=params, + options=options, + ), + ) + def resume( self, subscription: str, diff --git a/stripe/_tax_code.py b/stripe/_tax_code.py index 281a4985a..f87a222db 100644 --- a/stripe/_tax_code.py +++ b/stripe/_tax_code.py @@ -2,7 +2,8 @@ # File generated from our OpenAPI spec from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource -from typing import ClassVar +from stripe._stripe_object import StripeObject +from typing import ClassVar, Optional, Union from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: @@ -16,6 +17,13 @@ class TaxCode(ListableAPIResource["TaxCode"]): """ OBJECT_NAME: ClassVar[Literal["tax_code"]] = "tax_code" + + class Requirements(StripeObject): + performance_location: Union[Literal["optional", "required"], str] + """ + Describes whether a performance location is required for a successful tax calculation with a tax code. + """ + description: str """ A detailed description of which types of products the tax code represents. @@ -32,6 +40,10 @@ class TaxCode(ListableAPIResource["TaxCode"]): """ String representing the object's type. Objects of the same type share the same value. """ + requirements: Optional[Requirements] + """ + An object that describes more information about the tax location required for this tax code. Some tax codes require a [performance location](https://docs.stripe.com/tax/location-sales#required-versus-optional-performance-locations) to calculate tax correctly. + """ @classmethod def list( @@ -94,3 +106,5 @@ async def retrieve_async( instance = cls(id, **params) await instance.refresh_async() return instance + + _inner_class_types = {"requirements": Requirements} diff --git a/stripe/_tax_rate.py b/stripe/_tax_rate.py index b39b580c8..1cd0d4d2c 100644 --- a/stripe/_tax_rate.py +++ b/stripe/_tax_rate.py @@ -121,6 +121,7 @@ class FlatAmount(StripeObject): Literal[ "amusement_tax", "communications_tax", + "digital_excise_tax", "gst", "hst", "igst", @@ -134,6 +135,7 @@ class FlatAmount(StripeObject): "rst", "sales_tax", "service_tax", + "utility_users_tax", "vat", ], str, diff --git a/stripe/_tax_service.py b/stripe/_tax_service.py index 1bd53e474..dbbab3a92 100644 --- a/stripe/_tax_service.py +++ b/stripe/_tax_service.py @@ -7,6 +7,7 @@ if TYPE_CHECKING: from stripe.tax._association_service import AssociationService from stripe.tax._calculation_service import CalculationService + from stripe.tax._location_service import LocationService from stripe.tax._registration_service import RegistrationService from stripe.tax._settings_service import SettingsService from stripe.tax._transaction_service import TransactionService @@ -14,6 +15,7 @@ _subservices = { "associations": ["stripe.tax._association_service", "AssociationService"], "calculations": ["stripe.tax._calculation_service", "CalculationService"], + "locations": ["stripe.tax._location_service", "LocationService"], "registrations": [ "stripe.tax._registration_service", "RegistrationService", @@ -26,6 +28,7 @@ class TaxService(StripeService): associations: "AssociationService" calculations: "CalculationService" + locations: "LocationService" registrations: "RegistrationService" settings: "SettingsService" transactions: "TransactionService" diff --git a/stripe/_three_d_secure_service.py b/stripe/_three_d_secure_service.py new file mode 100644 index 000000000..06b321711 --- /dev/null +++ b/stripe/_three_d_secure_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.three_d_secure._authentication_service import ( + AuthenticationService, + ) + +_subservices = { + "authentications": [ + "stripe.three_d_secure._authentication_service", + "AuthenticationService", + ], +} + + +class ThreeDSecureService(StripeService): + authentications: "AuthenticationService" + + 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/_transfer.py b/stripe/_transfer.py index 5d9bfd668..d651a7ac1 100644 --- a/stripe/_transfer.py +++ b/stripe/_transfer.py @@ -46,7 +46,7 @@ class Transfer( Before April 6, 2017, transfers also represented movement of funds from a Stripe account to a card or bank account. This behavior has since been split - out into a [Payout](https://api.stripe.com#payout_object) object, with corresponding payout endpoints. For more + out into a [Payout](https://docs.stripe.com/api#payout_object) object, with corresponding payout endpoints. For more information, read about the [transfer/payout split](https://docs.stripe.com/transfer-payout-split). diff --git a/stripe/_v1_services.py b/stripe/_v1_services.py index ca9cc05b8..1a71694d2 100644 --- a/stripe/_v1_services.py +++ b/stripe/_v1_services.py @@ -61,6 +61,7 @@ from stripe._payout_service import PayoutService from stripe._plan_service import PlanService from stripe._price_service import PriceService + from stripe._product_catalog_service import ProductCatalogService from stripe._product_service import ProductService from stripe._promotion_code_service import PromotionCodeService from stripe._quote_service import QuoteService @@ -84,6 +85,7 @@ from stripe._tax_service import TaxService from stripe._terminal_service import TerminalService from stripe._test_helpers_service import TestHelpersService + from stripe._three_d_secure_service import ThreeDSecureService from stripe._token_service import TokenService from stripe._topup_service import TopupService from stripe._transfer_service import TransferService @@ -189,6 +191,10 @@ "plans": ["stripe._plan_service", "PlanService"], "prices": ["stripe._price_service", "PriceService"], "products": ["stripe._product_service", "ProductService"], + "product_catalog": [ + "stripe._product_catalog_service", + "ProductCatalogService", + ], "promotion_codes": [ "stripe._promotion_code_service", "PromotionCodeService", @@ -218,6 +224,10 @@ "tax_rates": ["stripe._tax_rate_service", "TaxRateService"], "terminal": ["stripe._terminal_service", "TerminalService"], "test_helpers": ["stripe._test_helpers_service", "TestHelpersService"], + "three_d_secure": [ + "stripe._three_d_secure_service", + "ThreeDSecureService", + ], "tokens": ["stripe._token_service", "TokenService"], "topups": ["stripe._topup_service", "TopupService"], "transfers": ["stripe._transfer_service", "TransferService"], @@ -277,6 +287,7 @@ class V1Services(StripeService): plans: "PlanService" prices: "PriceService" products: "ProductService" + product_catalog: "ProductCatalogService" promotion_codes: "PromotionCodeService" quotes: "QuoteService" radar: "RadarService" @@ -297,6 +308,7 @@ class V1Services(StripeService): tax_rates: "TaxRateService" terminal: "TerminalService" test_helpers: "TestHelpersService" + three_d_secure: "ThreeDSecureService" tokens: "TokenService" topups: "TopupService" transfers: "TransferService" diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index 7921cca4b..b9a345c56 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -47,7 +47,7 @@ class WebhookEndpoint( OBJECT_NAME: ClassVar[Literal["webhook_endpoint"]] = "webhook_endpoint" api_version: Optional[str] """ - The API version events are rendered as for this webhook endpoint. + The API version that events are rendered as for this webhook endpoint. You can't change this value after you create the endpoint. """ application: Optional[str] """ diff --git a/stripe/apps/__init__.py b/stripe/apps/__init__.py index f4e11b24d..1d8f2463c 100644 --- a/stripe/apps/__init__.py +++ b/stripe/apps/__init__.py @@ -4,11 +4,15 @@ from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: + from stripe.apps._install import Install as Install + from stripe.apps._install_service import InstallService as InstallService from stripe.apps._secret import Secret as Secret from stripe.apps._secret_service import SecretService as SecretService # name -> (import_target, is_submodule) _import_map = { + "Install": ("stripe.apps._install", False), + "InstallService": ("stripe.apps._install_service", False), "Secret": ("stripe.apps._secret", False), "SecretService": ("stripe.apps._secret_service", False), } diff --git a/stripe/apps/_install.py b/stripe/apps/_install.py new file mode 100644 index 000000000..46c6c3ee2 --- /dev/null +++ b/stripe/apps/_install.py @@ -0,0 +1,368 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._createable_api_resource import CreateableAPIResource +from stripe._list_object import ListObject +from stripe._listable_api_resource import ListableAPIResource +from stripe._stripe_object import StripeObject +from stripe._updateable_api_resource import UpdateableAPIResource +from stripe._util import class_method_variant, sanitize_id +from typing import ClassVar, List, Optional, Union, cast, overload +from typing_extensions import Literal, Unpack, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.params.apps._install_create_params import InstallCreateParams + from stripe.params.apps._install_list_params import InstallListParams + from stripe.params.apps._install_modify_params import InstallModifyParams + from stripe.params.apps._install_retrieve_params import ( + InstallRetrieveParams, + ) + from stripe.params.apps._install_uninstall_params import ( + InstallUninstallParams, + ) + + +class Install( + CreateableAPIResource["Install"], + ListableAPIResource["Install"], + UpdateableAPIResource["Install"], +): + """ + An app install represents a Stripe App that is installed on an account. It reports the permissions, + content security policy entries, and endpoints that the installing account has authorized, along with any + that the app's latest version requests but the account has not authorized yet. Use the Install API to + install, reauthorize, and uninstall apps, and to check the state of existing installs. + """ + + OBJECT_NAME: ClassVar[Literal["apps.install"]] = "apps.install" + + class ContentSecurityPolicyGranted(StripeObject): + connect_src: List[str] + """ + The URLs that the app can make network requests to. + """ + image_src: List[str] + """ + The URLs that the app can load images from. + """ + + class ContentSecurityPolicyPending(StripeObject): + connect_src: List[str] + """ + The URLs that the app can make network requests to. + """ + image_src: List[str] + """ + The URLs that the app can load images from. + """ + + account: str + """ + The ID of the account that the app install belongs to. + """ + app: str + """ + The ID of the app installed. + """ + approval_required: bool + """ + Whether the installer must authorize pending permissions, content security policy entries, or endpoints. For private apps, `approval_required` stays `false`. Install a new version from the Dashboard to grant its permissions. + """ + auth_code: Optional[str] + """ + The authorization code for an oauth app install. + """ + channel: Union[ + Literal["private_live", "private_test", "public", "review", "testing"], + str, + ] + """ + The distribution channel associated with the app install. + """ + content_security_policy_granted: ContentSecurityPolicyGranted + content_security_policy_pending: ContentSecurityPolicyPending + created: int + """ + Time at which the object was created. Measured in seconds since the Unix epoch. + """ + created_by: Optional[str] + """ + The ID of the embedding platform that created the install, if applicable. + """ + endpoints_granted: List[str] + """ + The endpoint URLs authorized by the installer. + """ + endpoints_pending: List[str] + """ + The endpoint URLs requested by the latest app version that the installer has not authorized. + """ + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. + """ + object: Literal["apps.install"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + permissions_granted: List[str] + """ + The permissions authorized by the installer. + """ + permissions_pending: List[str] + """ + The permissions requested by the latest app version that the installer has not authorized. + """ + status: Union[ + Literal[ + "install_failed", + "installed", + "installing", + "uninstall_failed", + "uninstalling", + ], + str, + ] + """ + The status of the app install. + """ + + @classmethod + def create(cls, **params: Unpack["InstallCreateParams"]) -> "Install": + """ + Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer or embedding platform acting on a connected account through Stripe-Account installs or reinstalls its app there. Creating an install for a private app that is already installed at the channel's current version with nothing pending returns the existing install. + """ + return cast( + "Install", + cls._static_request( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + async def create_async( + cls, **params: Unpack["InstallCreateParams"] + ) -> "Install": + """ + Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer or embedding platform acting on a connected account through Stripe-Account installs or reinstalls its app there. Creating an install for a private app that is already installed at the channel's current version with nothing pending returns the existing install. + """ + return cast( + "Install", + await cls._static_request_async( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + def list( + cls, **params: Unpack["InstallListParams"] + ) -> ListObject["Install"]: + """ + Returns a list of app installs. An app developer or embedding platform filtering by its own app sees the installs across the accounts that installed it; other callers see the installs on their own account. The key selects the environment: a live key lists live installs, a sandbox API key lists the installs on that sandbox, and the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox. For existing accounts that still use legacy test mode, a test mode key lists legacy test mode installs. + """ + result = cls._static_request( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + async def list_async( + cls, **params: Unpack["InstallListParams"] + ) -> ListObject["Install"]: + """ + Returns a list of app installs. An app developer or embedding platform filtering by its own app sees the installs across the accounts that installed it; other callers see the installs on their own account. The key selects the environment: a live key lists live installs, a sandbox API key lists the installs on that sandbox, and the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox. For existing accounts that still use legacy test mode, a test mode key lists legacy test mode installs. + """ + result = await cls._static_request_async( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + def modify( + cls, id: str, **params: Unpack["InstallModifyParams"] + ) -> "Install": + """ + Reauthorizes an app install. The installer grants the permissions, content security policy entries, and endpoints that the latest published version of the app requests. An account reauthorizes its own installs on any channel with its own key; app developers and embedding platforms reauthorize installs on connected accounts through Stripe-Account. For private apps, install a new version from the Dashboard to grant its permissions. + """ + url = "%s/%s" % (cls.class_url(), sanitize_id(id)) + return cast( + "Install", + cls._static_request( + "post", + url, + params=params, + ), + ) + + @classmethod + async def modify_async( + cls, id: str, **params: Unpack["InstallModifyParams"] + ) -> "Install": + """ + Reauthorizes an app install. The installer grants the permissions, content security policy entries, and endpoints that the latest published version of the app requests. An account reauthorizes its own installs on any channel with its own key; app developers and embedding platforms reauthorize installs on connected accounts through Stripe-Account. For private apps, install a new version from the Dashboard to grant its permissions. + """ + url = "%s/%s" % (cls.class_url(), sanitize_id(id)) + return cast( + "Install", + await cls._static_request_async( + "post", + url, + params=params, + ), + ) + + @classmethod + def retrieve( + cls, id: str, **params: Unpack["InstallRetrieveParams"] + ) -> "Install": + """ + Retrieves an app install. The installing account, the app's developer (with the keys of the account that owns the app or of the app's managed sandbox), and the embedding platform that created the install can retrieve it. + """ + instance = cls(id, **params) + instance.refresh() + return instance + + @classmethod + async def retrieve_async( + cls, id: str, **params: Unpack["InstallRetrieveParams"] + ) -> "Install": + """ + Retrieves an app install. The installing account, the app's developer (with the keys of the account that owns the app or of the app's managed sandbox), and the embedding platform that created the install can retrieve it. + """ + instance = cls(id, **params) + await instance.refresh_async() + return instance + + @classmethod + def _cls_uninstall( + cls, id: str, **params: Unpack["InstallUninstallParams"] + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + return cast( + "Install", + cls._static_request( + "post", + "/v1/apps/installs/{id}/uninstall".format(id=sanitize_id(id)), + params=params, + ), + ) + + @overload + @staticmethod + def uninstall( + id: str, **params: Unpack["InstallUninstallParams"] + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + ... + + @overload + def uninstall( + self, **params: Unpack["InstallUninstallParams"] + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + ... + + @class_method_variant("_cls_uninstall") + def uninstall( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["InstallUninstallParams"] + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + return cast( + "Install", + self._request( + "post", + "/v1/apps/installs/{id}/uninstall".format( + id=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + @classmethod + async def _cls_uninstall_async( + cls, id: str, **params: Unpack["InstallUninstallParams"] + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + return cast( + "Install", + await cls._static_request_async( + "post", + "/v1/apps/installs/{id}/uninstall".format(id=sanitize_id(id)), + params=params, + ), + ) + + @overload + @staticmethod + async def uninstall_async( + id: str, **params: Unpack["InstallUninstallParams"] + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + ... + + @overload + async def uninstall_async( + self, **params: Unpack["InstallUninstallParams"] + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + ... + + @class_method_variant("_cls_uninstall_async") + async def uninstall_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["InstallUninstallParams"] + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + return cast( + "Install", + await self._request_async( + "post", + "/v1/apps/installs/{id}/uninstall".format( + id=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + _inner_class_types = { + "content_security_policy_granted": ContentSecurityPolicyGranted, + "content_security_policy_pending": ContentSecurityPolicyPending, + } diff --git a/stripe/apps/_install_service.py b/stripe/apps/_install_service.py new file mode 100644 index 000000000..3182525f7 --- /dev/null +++ b/stripe/apps/_install_service.py @@ -0,0 +1,218 @@ +# -*- 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._list_object import ListObject + from stripe._request_options import RequestOptions + from stripe.apps._install import Install + from stripe.params.apps._install_create_params import InstallCreateParams + from stripe.params.apps._install_list_params import InstallListParams + from stripe.params.apps._install_retrieve_params import ( + InstallRetrieveParams, + ) + from stripe.params.apps._install_uninstall_params import ( + InstallUninstallParams, + ) + from stripe.params.apps._install_update_params import InstallUpdateParams + + +class InstallService(StripeService): + def list( + self, + params: Optional["InstallListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Install]": + """ + Returns a list of app installs. An app developer or embedding platform filtering by its own app sees the installs across the accounts that installed it; other callers see the installs on their own account. The key selects the environment: a live key lists live installs, a sandbox API key lists the installs on that sandbox, and the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox. For existing accounts that still use legacy test mode, a test mode key lists legacy test mode installs. + """ + return cast( + "ListObject[Install]", + self._request( + "get", + "/v1/apps/installs", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: Optional["InstallListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Install]": + """ + Returns a list of app installs. An app developer or embedding platform filtering by its own app sees the installs across the accounts that installed it; other callers see the installs on their own account. The key selects the environment: a live key lists live installs, a sandbox API key lists the installs on that sandbox, and the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox. For existing accounts that still use legacy test mode, a test mode key lists legacy test mode installs. + """ + return cast( + "ListObject[Install]", + await self._request_async( + "get", + "/v1/apps/installs", + base_address="api", + params=params, + options=options, + ), + ) + + def create( + self, + params: "InstallCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "Install": + """ + Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer or embedding platform acting on a connected account through Stripe-Account installs or reinstalls its app there. Creating an install for a private app that is already installed at the channel's current version with nothing pending returns the existing install. + """ + return cast( + "Install", + self._request( + "post", + "/v1/apps/installs", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "InstallCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "Install": + """ + Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer or embedding platform acting on a connected account through Stripe-Account installs or reinstalls its app there. Creating an install for a private app that is already installed at the channel's current version with nothing pending returns the existing install. + """ + return cast( + "Install", + await self._request_async( + "post", + "/v1/apps/installs", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + id: str, + params: Optional["InstallRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Install": + """ + Retrieves an app install. The installing account, the app's developer (with the keys of the account that owns the app or of the app's managed sandbox), and the embedding platform that created the install can retrieve it. + """ + return cast( + "Install", + self._request( + "get", + "/v1/apps/installs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + params: Optional["InstallRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Install": + """ + Retrieves an app install. The installing account, the app's developer (with the keys of the account that owns the app or of the app's managed sandbox), and the embedding platform that created the install can retrieve it. + """ + return cast( + "Install", + await self._request_async( + "get", + "/v1/apps/installs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + def update( + self, + id: str, + params: Optional["InstallUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Install": + """ + Reauthorizes an app install. The installer grants the permissions, content security policy entries, and endpoints that the latest published version of the app requests. An account reauthorizes its own installs on any channel with its own key; app developers and embedding platforms reauthorize installs on connected accounts through Stripe-Account. For private apps, install a new version from the Dashboard to grant its permissions. + """ + return cast( + "Install", + self._request( + "post", + "/v1/apps/installs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def update_async( + self, + id: str, + params: Optional["InstallUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Install": + """ + Reauthorizes an app install. The installer grants the permissions, content security policy entries, and endpoints that the latest published version of the app requests. An account reauthorizes its own installs on any channel with its own key; app developers and embedding platforms reauthorize installs on connected accounts through Stripe-Account. For private apps, install a new version from the Dashboard to grant its permissions. + """ + return cast( + "Install", + await self._request_async( + "post", + "/v1/apps/installs/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + def uninstall( + self, + id: str, + params: Optional["InstallUninstallParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + return cast( + "Install", + self._request( + "post", + "/v1/apps/installs/{id}/uninstall".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def uninstall_async( + self, + id: str, + params: Optional["InstallUninstallParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Install": + """ + Uninstalls an app from the account that installed it. + """ + return cast( + "Install", + await self._request_async( + "post", + "/v1/apps/installs/{id}/uninstall".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/billing/_feedback_option.py b/stripe/billing/_feedback_option.py index c1b1da92c..ebf098a85 100644 --- a/stripe/billing/_feedback_option.py +++ b/stripe/billing/_feedback_option.py @@ -33,7 +33,11 @@ class FeedbackOption( UpdateableAPIResource["FeedbackOption"], ): """ - A resource for the feedback options model (for custom cancellation reasons) + A feedback option is a reason you can present to customers when they cancel a + subscription through the customer portal. Configure the set of options a customer + can choose from on a [portal configuration](https://docs.stripe.com/api/customer_portal/configuration). + + Related guide: [Customer management](https://docs.stripe.com/customer-management) """ OBJECT_NAME: ClassVar[Literal["billing.feedback_option"]] = ( @@ -215,7 +219,7 @@ def list( cls, **params: Unpack["FeedbackOptionListParams"] ) -> ListObject["FeedbackOption"]: """ - An API method for listing the feedback options model + Returns a list of your feedback options. """ result = cls._static_request( "get", @@ -235,7 +239,7 @@ async def list_async( cls, **params: Unpack["FeedbackOptionListParams"] ) -> ListObject["FeedbackOption"]: """ - An API method for listing the feedback options model + Returns a list of your feedback options. """ result = await cls._static_request_async( "get", @@ -289,7 +293,7 @@ def retrieve( cls, id: str, **params: Unpack["FeedbackOptionRetrieveParams"] ) -> "FeedbackOption": """ - Retrieves a feedback options object given an ID. + Retrieves a feedback option object given an ID. """ instance = cls(id, **params) instance.refresh() @@ -300,7 +304,7 @@ async def retrieve_async( cls, id: str, **params: Unpack["FeedbackOptionRetrieveParams"] ) -> "FeedbackOption": """ - Retrieves a feedback options object given an ID. + Retrieves a feedback option object given an ID. """ instance = cls(id, **params) await instance.refresh_async() diff --git a/stripe/billing/_feedback_option_service.py b/stripe/billing/_feedback_option_service.py index e8560ac3e..535ddd813 100644 --- a/stripe/billing/_feedback_option_service.py +++ b/stripe/billing/_feedback_option_service.py @@ -33,7 +33,7 @@ def list( options: Optional["RequestOptions"] = None, ) -> "ListObject[FeedbackOption]": """ - An API method for listing the feedback options model + Returns a list of your feedback options. """ return cast( "ListObject[FeedbackOption]", @@ -52,7 +52,7 @@ async def list_async( options: Optional["RequestOptions"] = None, ) -> "ListObject[FeedbackOption]": """ - An API method for listing the feedback options model + Returns a list of your feedback options. """ return cast( "ListObject[FeedbackOption]", @@ -110,7 +110,7 @@ def retrieve( options: Optional["RequestOptions"] = None, ) -> "FeedbackOption": """ - Retrieves a feedback options object given an ID. + Retrieves a feedback option object given an ID. """ return cast( "FeedbackOption", @@ -130,7 +130,7 @@ async def retrieve_async( options: Optional["RequestOptions"] = None, ) -> "FeedbackOption": """ - Retrieves a feedback options object given an ID. + Retrieves a feedback option object given an ID. """ return cast( "FeedbackOption", diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index eeda495c4..ea9d644ee 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -328,7 +328,7 @@ class Option(StripeObject): class Label(StripeObject): custom: Optional[str] """ - Custom text for the label, displayed to the customer. Up to 50 characters. + Custom text for the label, displayed to the customer. Up to 100 characters. """ type: Literal["custom"] """ @@ -872,7 +872,7 @@ class AfterpayClearpay(StripeObject): """ class Alipay(StripeObject): - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Union[Literal["none"], str]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -950,7 +950,9 @@ class MandateOptions(StripeObject): _inner_class_types = {"mandate_options": MandateOptions} class Bancontact(StripeObject): - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[ + Union[Literal["none", "off_session"], str] + ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1655,6 +1657,12 @@ class MandateOptions(StripeObject): """ _inner_class_types = {"mandate_options": MandateOptions} + class Sequra(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class Sofort(StripeObject): setup_future_usage: Optional[Literal["none"]] """ @@ -1817,7 +1825,7 @@ class WechatPay(StripeObject): """ The client type that the end customer will pay from """ - setup_future_usage: Optional[Literal["none"]] + setup_future_usage: Optional[Union[Literal["none"], str]] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1867,6 +1875,7 @@ class WechatPay(StripeObject): satispay: Optional[Satispay] scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] + sequra: Optional[Sequra] sofort: Optional[Sofort] sunbit: Optional[Sunbit] swish: Optional[Swish] @@ -1914,6 +1923,7 @@ class WechatPay(StripeObject): "satispay": Satispay, "scalapay": Scalapay, "sepa_debit": SepaDebit, + "sequra": Sequra, "sofort": Sofort, "sunbit": Sunbit, "swish": Swish, @@ -2315,7 +2325,7 @@ class Discount(StripeObject): """ discount: "DiscountResource" """ - A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes). + A discount represents the actual application of a [coupon](https://docs.stripe.com/api#coupons) or [promotion code](https://docs.stripe.com/api#promotion_codes). It contains information about when the discount began, when it will end, and what it is applied to. Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts) @@ -2409,6 +2419,10 @@ class Link(StripeObject): """ Enables user redeemable promotion codes. """ + allowed_payment_method_types: Optional[List[str]] + """ + A list of the types of payment methods (e.g., `card`) this Checkout Session can accept. + """ amount_subtotal: Optional[int] """ Total of all items before discounts or taxes are applied. diff --git a/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py index e15b8704b..ebb479694 100644 --- a/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py +++ b/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py @@ -5,7 +5,7 @@ from stripe._stripe_response import StripeResponse from stripe._util import get_api_mode from stripe.v2.core._event import Event, EventNotification, RelatedObject -from typing import Any, Dict, Optional, cast +from typing import Any, Dict, Optional, Union, cast from typing_extensions import Literal, TYPE_CHECKING, override if TYPE_CHECKING: @@ -98,7 +98,7 @@ class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent( class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData( StripeObject, ): - updated_capability: Literal["automatic_indirect_tax"] + updated_capability: Union[Literal["automatic_indirect_tax"], str] """ Open Enum. The capability which had its status updated. """ diff --git a/stripe/financial_connections/_account.py b/stripe/financial_connections/_account.py index 8345cef82..e8e7a7011 100644 --- a/stripe/financial_connections/_account.py +++ b/stripe/financial_connections/_account.py @@ -73,7 +73,9 @@ class AccountNumber(StripeObject): """ The type of account number associated with the account. """ - status: Union[Literal["deactivated", "transactable"], str] + status: Union[ + Literal["deactivated", "expired", "pending", "transactable"], str + ] """ Whether the account number is currently active and usable for transactions. """ @@ -683,7 +685,7 @@ def retrieve( cls, id: str, **params: Unpack["AccountRetrieveParams"] ) -> "Account": """ - Retrieves the details of an Financial Connections Account. + Retrieves the details of a Financial Connections Account. """ instance = cls(id, **params) instance.refresh() @@ -694,7 +696,7 @@ async def retrieve_async( cls, id: str, **params: Unpack["AccountRetrieveParams"] ) -> "Account": """ - Retrieves the details of an Financial Connections Account. + Retrieves the details of a Financial Connections Account. """ instance = cls(id, **params) await instance.refresh_async() diff --git a/stripe/financial_connections/_account_service.py b/stripe/financial_connections/_account_service.py index a036dc406..aadc65557 100644 --- a/stripe/financial_connections/_account_service.py +++ b/stripe/financial_connections/_account_service.py @@ -107,7 +107,7 @@ def retrieve( options: Optional["RequestOptions"] = None, ) -> "Account": """ - Retrieves the details of an Financial Connections Account. + Retrieves the details of a Financial Connections Account. """ return cast( "Account", @@ -129,7 +129,7 @@ async def retrieve_async( options: Optional["RequestOptions"] = None, ) -> "Account": """ - Retrieves the details of an Financial Connections Account. + Retrieves the details of a Financial Connections Account. """ return cast( "Account", diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py index a6598840a..6efdeddc5 100644 --- a/stripe/financial_connections/_session.py +++ b/stripe/financial_connections/_session.py @@ -64,10 +64,6 @@ class Filters(StripeObject): """ Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. """ - countries: Optional[List[str]] - """ - List of countries from which to filter accounts. - """ country: Optional[str] """ Country from which to filter accounts. diff --git a/stripe/issuing/_cardholder.py b/stripe/issuing/_cardholder.py index b0cd036b5..6b3c3450b 100644 --- a/stripe/issuing/_cardholder.py +++ b/stripe/issuing/_cardholder.py @@ -115,11 +115,11 @@ class Verification(StripeObject): class Document(StripeObject): back: Optional[ExpandableField["File"]] """ - The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The back of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ front: Optional[ExpandableField["File"]] """ - The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The front of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ document: Optional[Document] diff --git a/stripe/issuing/_token.py b/stripe/issuing/_token.py index d222b2f1d..9eed4f517 100644 --- a/stripe/issuing/_token.py +++ b/stripe/issuing/_token.py @@ -55,7 +55,7 @@ class Device(StripeObject): class Mastercard(StripeObject): card_reference_id: Optional[str] """ - A unique reference ID from MasterCard to represent the card account number. + A unique reference ID from Mastercard to represent the card account number. """ token_reference_id: str """ @@ -63,11 +63,11 @@ class Mastercard(StripeObject): """ token_requestor_id: str """ - The ID of the entity requesting tokenization, specific to MasterCard. + The ID of the entity requesting tokenization, specific to Mastercard. """ token_requestor_name: Optional[str] """ - The name of the entity requesting tokenization, if known. This is directly provided from MasterCard. + The name of the entity requesting tokenization, if known. This is directly provided from Mastercard. """ class Visa(StripeObject): diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index 853863f5d..73608233b 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -15,12 +15,14 @@ forwarding as forwarding, identity as identity, issuing as issuing, + product_catalog as product_catalog, radar as radar, reporting as reporting, sigma as sigma, tax as tax, terminal as terminal, test_helpers as test_helpers, + three_d_secure as three_d_secure, treasury as treasury, ) from stripe.params._account_capability_list_params import ( @@ -62,6 +64,7 @@ AccountCreateParamsCapabilitiesBilliePayments as AccountCreateParamsCapabilitiesBilliePayments, AccountCreateParamsCapabilitiesBizumPayments as AccountCreateParamsCapabilitiesBizumPayments, AccountCreateParamsCapabilitiesBlikPayments as AccountCreateParamsCapabilitiesBlikPayments, + AccountCreateParamsCapabilitiesBlikRecurringPayments as AccountCreateParamsCapabilitiesBlikRecurringPayments, AccountCreateParamsCapabilitiesBoletoPayments as AccountCreateParamsCapabilitiesBoletoPayments, AccountCreateParamsCapabilitiesCardIssuing as AccountCreateParamsCapabilitiesCardIssuing, AccountCreateParamsCapabilitiesCardPayments as AccountCreateParamsCapabilitiesCardPayments, @@ -94,6 +97,7 @@ AccountCreateParamsCapabilitiesPayByBankPayments as AccountCreateParamsCapabilitiesPayByBankPayments, AccountCreateParamsCapabilitiesPaycoPayments as AccountCreateParamsCapabilitiesPaycoPayments, AccountCreateParamsCapabilitiesPaynowPayments as AccountCreateParamsCapabilitiesPaynowPayments, + AccountCreateParamsCapabilitiesPaypayPayments as AccountCreateParamsCapabilitiesPaypayPayments, AccountCreateParamsCapabilitiesPaytoPayments as AccountCreateParamsCapabilitiesPaytoPayments, AccountCreateParamsCapabilitiesPixPayments as AccountCreateParamsCapabilitiesPixPayments, AccountCreateParamsCapabilitiesPromptpayPayments as AccountCreateParamsCapabilitiesPromptpayPayments, @@ -103,6 +107,7 @@ AccountCreateParamsCapabilitiesScalapayPayments as AccountCreateParamsCapabilitiesScalapayPayments, AccountCreateParamsCapabilitiesSepaBankTransferPayments as AccountCreateParamsCapabilitiesSepaBankTransferPayments, AccountCreateParamsCapabilitiesSepaDebitPayments as AccountCreateParamsCapabilitiesSepaDebitPayments, + AccountCreateParamsCapabilitiesSequraPayments as AccountCreateParamsCapabilitiesSequraPayments, AccountCreateParamsCapabilitiesSofortPayments as AccountCreateParamsCapabilitiesSofortPayments, AccountCreateParamsCapabilitiesSunbitPayments as AccountCreateParamsCapabilitiesSunbitPayments, AccountCreateParamsCapabilitiesSwishPayments as AccountCreateParamsCapabilitiesSwishPayments, @@ -165,6 +170,12 @@ AccountCreateParamsSettingsPayments as AccountCreateParamsSettingsPayments, AccountCreateParamsSettingsPayouts as AccountCreateParamsSettingsPayouts, AccountCreateParamsSettingsPayoutsSchedule as AccountCreateParamsSettingsPayoutsSchedule, + AccountCreateParamsSettingsPaypayPayments as AccountCreateParamsSettingsPaypayPayments, + AccountCreateParamsSettingsPaypayPaymentsSite as AccountCreateParamsSettingsPaypayPaymentsSite, + AccountCreateParamsSettingsPaypayPaymentsSiteAccessible as AccountCreateParamsSettingsPaypayPaymentsSiteAccessible, + AccountCreateParamsSettingsPaypayPaymentsSiteInDevelopment as AccountCreateParamsSettingsPaypayPaymentsSiteInDevelopment, + AccountCreateParamsSettingsPaypayPaymentsSiteRestricted as AccountCreateParamsSettingsPaypayPaymentsSiteRestricted, + AccountCreateParamsSettingsSepaDebitPayments as AccountCreateParamsSettingsSepaDebitPayments, AccountCreateParamsSettingsTreasury as AccountCreateParamsSettingsTreasury, AccountCreateParamsSettingsTreasuryTosAcceptance as AccountCreateParamsSettingsTreasuryTosAcceptance, AccountCreateParamsTosAcceptance as AccountCreateParamsTosAcceptance, @@ -415,6 +426,7 @@ AccountUpdateParamsCapabilitiesBilliePayments as AccountUpdateParamsCapabilitiesBilliePayments, AccountUpdateParamsCapabilitiesBizumPayments as AccountUpdateParamsCapabilitiesBizumPayments, AccountUpdateParamsCapabilitiesBlikPayments as AccountUpdateParamsCapabilitiesBlikPayments, + AccountUpdateParamsCapabilitiesBlikRecurringPayments as AccountUpdateParamsCapabilitiesBlikRecurringPayments, AccountUpdateParamsCapabilitiesBoletoPayments as AccountUpdateParamsCapabilitiesBoletoPayments, AccountUpdateParamsCapabilitiesCardIssuing as AccountUpdateParamsCapabilitiesCardIssuing, AccountUpdateParamsCapabilitiesCardPayments as AccountUpdateParamsCapabilitiesCardPayments, @@ -447,6 +459,7 @@ AccountUpdateParamsCapabilitiesPayByBankPayments as AccountUpdateParamsCapabilitiesPayByBankPayments, AccountUpdateParamsCapabilitiesPaycoPayments as AccountUpdateParamsCapabilitiesPaycoPayments, AccountUpdateParamsCapabilitiesPaynowPayments as AccountUpdateParamsCapabilitiesPaynowPayments, + AccountUpdateParamsCapabilitiesPaypayPayments as AccountUpdateParamsCapabilitiesPaypayPayments, AccountUpdateParamsCapabilitiesPaytoPayments as AccountUpdateParamsCapabilitiesPaytoPayments, AccountUpdateParamsCapabilitiesPixPayments as AccountUpdateParamsCapabilitiesPixPayments, AccountUpdateParamsCapabilitiesPromptpayPayments as AccountUpdateParamsCapabilitiesPromptpayPayments, @@ -456,6 +469,7 @@ AccountUpdateParamsCapabilitiesScalapayPayments as AccountUpdateParamsCapabilitiesScalapayPayments, AccountUpdateParamsCapabilitiesSepaBankTransferPayments as AccountUpdateParamsCapabilitiesSepaBankTransferPayments, AccountUpdateParamsCapabilitiesSepaDebitPayments as AccountUpdateParamsCapabilitiesSepaDebitPayments, + AccountUpdateParamsCapabilitiesSequraPayments as AccountUpdateParamsCapabilitiesSequraPayments, AccountUpdateParamsCapabilitiesSofortPayments as AccountUpdateParamsCapabilitiesSofortPayments, AccountUpdateParamsCapabilitiesSunbitPayments as AccountUpdateParamsCapabilitiesSunbitPayments, AccountUpdateParamsCapabilitiesSwishPayments as AccountUpdateParamsCapabilitiesSwishPayments, @@ -516,6 +530,11 @@ AccountUpdateParamsSettingsPayments as AccountUpdateParamsSettingsPayments, AccountUpdateParamsSettingsPayouts as AccountUpdateParamsSettingsPayouts, AccountUpdateParamsSettingsPayoutsSchedule as AccountUpdateParamsSettingsPayoutsSchedule, + AccountUpdateParamsSettingsPaypayPayments as AccountUpdateParamsSettingsPaypayPayments, + AccountUpdateParamsSettingsPaypayPaymentsSite as AccountUpdateParamsSettingsPaypayPaymentsSite, + AccountUpdateParamsSettingsPaypayPaymentsSiteAccessible as AccountUpdateParamsSettingsPaypayPaymentsSiteAccessible, + AccountUpdateParamsSettingsPaypayPaymentsSiteInDevelopment as AccountUpdateParamsSettingsPaypayPaymentsSiteInDevelopment, + AccountUpdateParamsSettingsPaypayPaymentsSiteRestricted as AccountUpdateParamsSettingsPaypayPaymentsSiteRestricted, AccountUpdateParamsSettingsSepaDebitPayments as AccountUpdateParamsSettingsSepaDebitPayments, AccountUpdateParamsSettingsTreasury as AccountUpdateParamsSettingsTreasury, AccountUpdateParamsSettingsTreasuryTosAcceptance as AccountUpdateParamsSettingsTreasuryTosAcceptance, @@ -688,6 +707,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataPayco as ConfirmationTokenCreateParamsPaymentMethodDataPayco, ConfirmationTokenCreateParamsPaymentMethodDataPaynow as ConfirmationTokenCreateParamsPaymentMethodDataPaynow, ConfirmationTokenCreateParamsPaymentMethodDataPaypal as ConfirmationTokenCreateParamsPaymentMethodDataPaypal, + ConfirmationTokenCreateParamsPaymentMethodDataPaypay as ConfirmationTokenCreateParamsPaymentMethodDataPaypay, ConfirmationTokenCreateParamsPaymentMethodDataPayto as ConfirmationTokenCreateParamsPaymentMethodDataPayto, ConfirmationTokenCreateParamsPaymentMethodDataPix as ConfirmationTokenCreateParamsPaymentMethodDataPix, ConfirmationTokenCreateParamsPaymentMethodDataPromptpay as ConfirmationTokenCreateParamsPaymentMethodDataPromptpay, @@ -697,6 +717,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, + ConfirmationTokenCreateParamsPaymentMethodDataSequra as ConfirmationTokenCreateParamsPaymentMethodDataSequra, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataSunbit as ConfirmationTokenCreateParamsPaymentMethodDataSunbit, ConfirmationTokenCreateParamsPaymentMethodDataSwish as ConfirmationTokenCreateParamsPaymentMethodDataSwish, @@ -1091,6 +1112,7 @@ InvoiceAddLinesParamsLinePeriod as InvoiceAddLinesParamsLinePeriod, InvoiceAddLinesParamsLinePriceData as InvoiceAddLinesParamsLinePriceData, InvoiceAddLinesParamsLinePriceDataProductData as InvoiceAddLinesParamsLinePriceDataProductData, + InvoiceAddLinesParamsLinePriceDataProductDataTaxDetails as InvoiceAddLinesParamsLinePriceDataProductDataTaxDetails, InvoiceAddLinesParamsLinePricing as InvoiceAddLinesParamsLinePricing, InvoiceAddLinesParamsLineTaxAmount as InvoiceAddLinesParamsLineTaxAmount, InvoiceAddLinesParamsLineTaxAmountTaxRateData as InvoiceAddLinesParamsLineTaxAmountTaxRateData, @@ -1112,6 +1134,9 @@ InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillie as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillie, + InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails, + InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, + InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan, @@ -1181,6 +1206,7 @@ InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring as InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring, InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData as InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData, InvoiceCreatePreviewParamsSubscriptionDetails as InvoiceCreatePreviewParamsSubscriptionDetails, + InvoiceCreatePreviewParamsSubscriptionDetailsBillingCycleAnchor as InvoiceCreatePreviewParamsSubscriptionDetailsBillingCycleAnchor, InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode as InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode, InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible as InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible, InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule as InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule, @@ -1189,9 +1215,14 @@ InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration, InvoiceCreatePreviewParamsSubscriptionDetailsItem as InvoiceCreatePreviewParamsSubscriptionDetailsItem, InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds as InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds, + InvoiceCreatePreviewParamsSubscriptionDetailsItemCurrentTrial as InvoiceCreatePreviewParamsSubscriptionDetailsItemCurrentTrial, InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount as InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount, InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData as InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData, InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring as InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring, + InvoiceCreatePreviewParamsSubscriptionDetailsPause as InvoiceCreatePreviewParamsSubscriptionDetailsPause, + InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor as InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor, + InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageThrough as InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageThrough, + InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom as InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom, ) from stripe.params._invoice_delete_params import ( InvoiceDeleteParams as InvoiceDeleteParams, @@ -1239,6 +1270,7 @@ InvoiceLineItemUpdateParamsPeriod as InvoiceLineItemUpdateParamsPeriod, InvoiceLineItemUpdateParamsPriceData as InvoiceLineItemUpdateParamsPriceData, InvoiceLineItemUpdateParamsPriceDataProductData as InvoiceLineItemUpdateParamsPriceDataProductData, + InvoiceLineItemUpdateParamsPriceDataProductDataTaxDetails as InvoiceLineItemUpdateParamsPriceDataProductDataTaxDetails, InvoiceLineItemUpdateParamsPricing as InvoiceLineItemUpdateParamsPricing, InvoiceLineItemUpdateParamsTaxAmount as InvoiceLineItemUpdateParamsTaxAmount, InvoiceLineItemUpdateParamsTaxAmountTaxRateData as InvoiceLineItemUpdateParamsTaxAmountTaxRateData, @@ -1267,6 +1299,9 @@ InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillie as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillie, + InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails, + InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, + InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan, @@ -1339,6 +1374,7 @@ InvoiceUpdateLinesParamsLinePeriod as InvoiceUpdateLinesParamsLinePeriod, InvoiceUpdateLinesParamsLinePriceData as InvoiceUpdateLinesParamsLinePriceData, InvoiceUpdateLinesParamsLinePriceDataProductData as InvoiceUpdateLinesParamsLinePriceDataProductData, + InvoiceUpdateLinesParamsLinePriceDataProductDataTaxDetails as InvoiceUpdateLinesParamsLinePriceDataProductDataTaxDetails, InvoiceUpdateLinesParamsLinePricing as InvoiceUpdateLinesParamsLinePricing, InvoiceUpdateLinesParamsLineTaxAmount as InvoiceUpdateLinesParamsLineTaxAmount, InvoiceUpdateLinesParamsLineTaxAmountTaxRateData as InvoiceUpdateLinesParamsLineTaxAmountTaxRateData, @@ -1356,6 +1392,9 @@ InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillie as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillie, + InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails, + InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, + InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan, @@ -1486,6 +1525,7 @@ PaymentIntentConfirmParamsPaymentMethodDataPayco as PaymentIntentConfirmParamsPaymentMethodDataPayco, PaymentIntentConfirmParamsPaymentMethodDataPaynow as PaymentIntentConfirmParamsPaymentMethodDataPaynow, PaymentIntentConfirmParamsPaymentMethodDataPaypal as PaymentIntentConfirmParamsPaymentMethodDataPaypal, + PaymentIntentConfirmParamsPaymentMethodDataPaypay as PaymentIntentConfirmParamsPaymentMethodDataPaypay, PaymentIntentConfirmParamsPaymentMethodDataPayto as PaymentIntentConfirmParamsPaymentMethodDataPayto, PaymentIntentConfirmParamsPaymentMethodDataPix as PaymentIntentConfirmParamsPaymentMethodDataPix, PaymentIntentConfirmParamsPaymentMethodDataPromptpay as PaymentIntentConfirmParamsPaymentMethodDataPromptpay, @@ -1495,6 +1535,7 @@ PaymentIntentConfirmParamsPaymentMethodDataSatispay as PaymentIntentConfirmParamsPaymentMethodDataSatispay, PaymentIntentConfirmParamsPaymentMethodDataScalapay as PaymentIntentConfirmParamsPaymentMethodDataScalapay, PaymentIntentConfirmParamsPaymentMethodDataSepaDebit as PaymentIntentConfirmParamsPaymentMethodDataSepaDebit, + PaymentIntentConfirmParamsPaymentMethodDataSequra as PaymentIntentConfirmParamsPaymentMethodDataSequra, PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort, PaymentIntentConfirmParamsPaymentMethodDataSunbit as PaymentIntentConfirmParamsPaymentMethodDataSunbit, PaymentIntentConfirmParamsPaymentMethodDataSwish as PaymentIntentConfirmParamsPaymentMethodDataSwish, @@ -1517,8 +1558,11 @@ PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsBancontact as PaymentIntentConfirmParamsPaymentMethodOptionsBancontact, PaymentIntentConfirmParamsPaymentMethodOptionsBillie as PaymentIntentConfirmParamsPaymentMethodOptionsBillie, + PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetails as PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetails, + PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, PaymentIntentConfirmParamsPaymentMethodOptionsBizum as PaymentIntentConfirmParamsPaymentMethodOptionsBizum, PaymentIntentConfirmParamsPaymentMethodOptionsBlik as PaymentIntentConfirmParamsPaymentMethodOptionsBlik, + PaymentIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsBoleto as PaymentIntentConfirmParamsPaymentMethodOptionsBoleto, PaymentIntentConfirmParamsPaymentMethodOptionsCard as PaymentIntentConfirmParamsPaymentMethodOptionsCard, PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments as PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments, @@ -1559,6 +1603,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsPayco as PaymentIntentConfirmParamsPaymentMethodOptionsPayco, PaymentIntentConfirmParamsPaymentMethodOptionsPaynow as PaymentIntentConfirmParamsPaymentMethodOptionsPaynow, PaymentIntentConfirmParamsPaymentMethodOptionsPaypal as PaymentIntentConfirmParamsPaymentMethodOptionsPaypal, + PaymentIntentConfirmParamsPaymentMethodOptionsPaypay as PaymentIntentConfirmParamsPaymentMethodOptionsPaypay, PaymentIntentConfirmParamsPaymentMethodOptionsPayto as PaymentIntentConfirmParamsPaymentMethodOptionsPayto, PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsPix as PaymentIntentConfirmParamsPaymentMethodOptionsPix, @@ -1570,6 +1615,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsScalapay as PaymentIntentConfirmParamsPaymentMethodOptionsScalapay, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions, + PaymentIntentConfirmParamsPaymentMethodOptionsSequra as PaymentIntentConfirmParamsPaymentMethodOptionsSequra, PaymentIntentConfirmParamsPaymentMethodOptionsSofort as PaymentIntentConfirmParamsPaymentMethodOptionsSofort, PaymentIntentConfirmParamsPaymentMethodOptionsSunbit as PaymentIntentConfirmParamsPaymentMethodOptionsSunbit, PaymentIntentConfirmParamsPaymentMethodOptionsSwish as PaymentIntentConfirmParamsPaymentMethodOptionsSwish, @@ -1650,6 +1696,7 @@ PaymentIntentCreateParamsPaymentMethodDataPayco as PaymentIntentCreateParamsPaymentMethodDataPayco, PaymentIntentCreateParamsPaymentMethodDataPaynow as PaymentIntentCreateParamsPaymentMethodDataPaynow, PaymentIntentCreateParamsPaymentMethodDataPaypal as PaymentIntentCreateParamsPaymentMethodDataPaypal, + PaymentIntentCreateParamsPaymentMethodDataPaypay as PaymentIntentCreateParamsPaymentMethodDataPaypay, PaymentIntentCreateParamsPaymentMethodDataPayto as PaymentIntentCreateParamsPaymentMethodDataPayto, PaymentIntentCreateParamsPaymentMethodDataPix as PaymentIntentCreateParamsPaymentMethodDataPix, PaymentIntentCreateParamsPaymentMethodDataPromptpay as PaymentIntentCreateParamsPaymentMethodDataPromptpay, @@ -1659,6 +1706,7 @@ PaymentIntentCreateParamsPaymentMethodDataSatispay as PaymentIntentCreateParamsPaymentMethodDataSatispay, PaymentIntentCreateParamsPaymentMethodDataScalapay as PaymentIntentCreateParamsPaymentMethodDataScalapay, PaymentIntentCreateParamsPaymentMethodDataSepaDebit as PaymentIntentCreateParamsPaymentMethodDataSepaDebit, + PaymentIntentCreateParamsPaymentMethodDataSequra as PaymentIntentCreateParamsPaymentMethodDataSequra, PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort, PaymentIntentCreateParamsPaymentMethodDataSunbit as PaymentIntentCreateParamsPaymentMethodDataSunbit, PaymentIntentCreateParamsPaymentMethodDataSwish as PaymentIntentCreateParamsPaymentMethodDataSwish, @@ -1681,8 +1729,11 @@ PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsBancontact as PaymentIntentCreateParamsPaymentMethodOptionsBancontact, PaymentIntentCreateParamsPaymentMethodOptionsBillie as PaymentIntentCreateParamsPaymentMethodOptionsBillie, + PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetails as PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetails, + PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, PaymentIntentCreateParamsPaymentMethodOptionsBizum as PaymentIntentCreateParamsPaymentMethodOptionsBizum, PaymentIntentCreateParamsPaymentMethodOptionsBlik as PaymentIntentCreateParamsPaymentMethodOptionsBlik, + PaymentIntentCreateParamsPaymentMethodOptionsBlikMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsBlikMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsBoleto as PaymentIntentCreateParamsPaymentMethodOptionsBoleto, PaymentIntentCreateParamsPaymentMethodOptionsCard as PaymentIntentCreateParamsPaymentMethodOptionsCard, PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments as PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments, @@ -1723,6 +1774,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsPayco as PaymentIntentCreateParamsPaymentMethodOptionsPayco, PaymentIntentCreateParamsPaymentMethodOptionsPaynow as PaymentIntentCreateParamsPaymentMethodOptionsPaynow, PaymentIntentCreateParamsPaymentMethodOptionsPaypal as PaymentIntentCreateParamsPaymentMethodOptionsPaypal, + PaymentIntentCreateParamsPaymentMethodOptionsPaypay as PaymentIntentCreateParamsPaymentMethodOptionsPaypay, PaymentIntentCreateParamsPaymentMethodOptionsPayto as PaymentIntentCreateParamsPaymentMethodOptionsPayto, PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsPix as PaymentIntentCreateParamsPaymentMethodOptionsPix, @@ -1734,6 +1786,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsScalapay as PaymentIntentCreateParamsPaymentMethodOptionsScalapay, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, + PaymentIntentCreateParamsPaymentMethodOptionsSequra as PaymentIntentCreateParamsPaymentMethodOptionsSequra, PaymentIntentCreateParamsPaymentMethodOptionsSofort as PaymentIntentCreateParamsPaymentMethodOptionsSofort, PaymentIntentCreateParamsPaymentMethodOptionsSunbit as PaymentIntentCreateParamsPaymentMethodOptionsSunbit, PaymentIntentCreateParamsPaymentMethodOptionsSwish as PaymentIntentCreateParamsPaymentMethodOptionsSwish, @@ -1836,6 +1889,7 @@ PaymentIntentModifyParamsPaymentMethodDataPayco as PaymentIntentModifyParamsPaymentMethodDataPayco, PaymentIntentModifyParamsPaymentMethodDataPaynow as PaymentIntentModifyParamsPaymentMethodDataPaynow, PaymentIntentModifyParamsPaymentMethodDataPaypal as PaymentIntentModifyParamsPaymentMethodDataPaypal, + PaymentIntentModifyParamsPaymentMethodDataPaypay as PaymentIntentModifyParamsPaymentMethodDataPaypay, PaymentIntentModifyParamsPaymentMethodDataPayto as PaymentIntentModifyParamsPaymentMethodDataPayto, PaymentIntentModifyParamsPaymentMethodDataPix as PaymentIntentModifyParamsPaymentMethodDataPix, PaymentIntentModifyParamsPaymentMethodDataPromptpay as PaymentIntentModifyParamsPaymentMethodDataPromptpay, @@ -1845,6 +1899,7 @@ PaymentIntentModifyParamsPaymentMethodDataSatispay as PaymentIntentModifyParamsPaymentMethodDataSatispay, PaymentIntentModifyParamsPaymentMethodDataScalapay as PaymentIntentModifyParamsPaymentMethodDataScalapay, PaymentIntentModifyParamsPaymentMethodDataSepaDebit as PaymentIntentModifyParamsPaymentMethodDataSepaDebit, + PaymentIntentModifyParamsPaymentMethodDataSequra as PaymentIntentModifyParamsPaymentMethodDataSequra, PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort, PaymentIntentModifyParamsPaymentMethodDataSunbit as PaymentIntentModifyParamsPaymentMethodDataSunbit, PaymentIntentModifyParamsPaymentMethodDataSwish as PaymentIntentModifyParamsPaymentMethodDataSwish, @@ -1867,8 +1922,11 @@ PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsBancontact as PaymentIntentModifyParamsPaymentMethodOptionsBancontact, PaymentIntentModifyParamsPaymentMethodOptionsBillie as PaymentIntentModifyParamsPaymentMethodOptionsBillie, + PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetails as PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetails, + PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, PaymentIntentModifyParamsPaymentMethodOptionsBizum as PaymentIntentModifyParamsPaymentMethodOptionsBizum, PaymentIntentModifyParamsPaymentMethodOptionsBlik as PaymentIntentModifyParamsPaymentMethodOptionsBlik, + PaymentIntentModifyParamsPaymentMethodOptionsBlikMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsBlikMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsBoleto as PaymentIntentModifyParamsPaymentMethodOptionsBoleto, PaymentIntentModifyParamsPaymentMethodOptionsCard as PaymentIntentModifyParamsPaymentMethodOptionsCard, PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments as PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments, @@ -1909,6 +1967,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsPayco as PaymentIntentModifyParamsPaymentMethodOptionsPayco, PaymentIntentModifyParamsPaymentMethodOptionsPaynow as PaymentIntentModifyParamsPaymentMethodOptionsPaynow, PaymentIntentModifyParamsPaymentMethodOptionsPaypal as PaymentIntentModifyParamsPaymentMethodOptionsPaypal, + PaymentIntentModifyParamsPaymentMethodOptionsPaypay as PaymentIntentModifyParamsPaymentMethodOptionsPaypay, PaymentIntentModifyParamsPaymentMethodOptionsPayto as PaymentIntentModifyParamsPaymentMethodOptionsPayto, PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsPix as PaymentIntentModifyParamsPaymentMethodOptionsPix, @@ -1920,6 +1979,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsScalapay as PaymentIntentModifyParamsPaymentMethodOptionsScalapay, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions, + PaymentIntentModifyParamsPaymentMethodOptionsSequra as PaymentIntentModifyParamsPaymentMethodOptionsSequra, PaymentIntentModifyParamsPaymentMethodOptionsSofort as PaymentIntentModifyParamsPaymentMethodOptionsSofort, PaymentIntentModifyParamsPaymentMethodOptionsSunbit as PaymentIntentModifyParamsPaymentMethodOptionsSunbit, PaymentIntentModifyParamsPaymentMethodOptionsSwish as PaymentIntentModifyParamsPaymentMethodOptionsSwish, @@ -2002,6 +2062,7 @@ PaymentIntentUpdateParamsPaymentMethodDataPayco as PaymentIntentUpdateParamsPaymentMethodDataPayco, PaymentIntentUpdateParamsPaymentMethodDataPaynow as PaymentIntentUpdateParamsPaymentMethodDataPaynow, PaymentIntentUpdateParamsPaymentMethodDataPaypal as PaymentIntentUpdateParamsPaymentMethodDataPaypal, + PaymentIntentUpdateParamsPaymentMethodDataPaypay as PaymentIntentUpdateParamsPaymentMethodDataPaypay, PaymentIntentUpdateParamsPaymentMethodDataPayto as PaymentIntentUpdateParamsPaymentMethodDataPayto, PaymentIntentUpdateParamsPaymentMethodDataPix as PaymentIntentUpdateParamsPaymentMethodDataPix, PaymentIntentUpdateParamsPaymentMethodDataPromptpay as PaymentIntentUpdateParamsPaymentMethodDataPromptpay, @@ -2011,6 +2072,7 @@ PaymentIntentUpdateParamsPaymentMethodDataSatispay as PaymentIntentUpdateParamsPaymentMethodDataSatispay, PaymentIntentUpdateParamsPaymentMethodDataScalapay as PaymentIntentUpdateParamsPaymentMethodDataScalapay, PaymentIntentUpdateParamsPaymentMethodDataSepaDebit as PaymentIntentUpdateParamsPaymentMethodDataSepaDebit, + PaymentIntentUpdateParamsPaymentMethodDataSequra as PaymentIntentUpdateParamsPaymentMethodDataSequra, PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort, PaymentIntentUpdateParamsPaymentMethodDataSunbit as PaymentIntentUpdateParamsPaymentMethodDataSunbit, PaymentIntentUpdateParamsPaymentMethodDataSwish as PaymentIntentUpdateParamsPaymentMethodDataSwish, @@ -2033,8 +2095,11 @@ PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsBancontact as PaymentIntentUpdateParamsPaymentMethodOptionsBancontact, PaymentIntentUpdateParamsPaymentMethodOptionsBillie as PaymentIntentUpdateParamsPaymentMethodOptionsBillie, + PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetails as PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetails, + PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, PaymentIntentUpdateParamsPaymentMethodOptionsBizum as PaymentIntentUpdateParamsPaymentMethodOptionsBizum, PaymentIntentUpdateParamsPaymentMethodOptionsBlik as PaymentIntentUpdateParamsPaymentMethodOptionsBlik, + PaymentIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsBoleto as PaymentIntentUpdateParamsPaymentMethodOptionsBoleto, PaymentIntentUpdateParamsPaymentMethodOptionsCard as PaymentIntentUpdateParamsPaymentMethodOptionsCard, PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments as PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments, @@ -2075,6 +2140,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsPayco as PaymentIntentUpdateParamsPaymentMethodOptionsPayco, PaymentIntentUpdateParamsPaymentMethodOptionsPaynow as PaymentIntentUpdateParamsPaymentMethodOptionsPaynow, PaymentIntentUpdateParamsPaymentMethodOptionsPaypal as PaymentIntentUpdateParamsPaymentMethodOptionsPaypal, + PaymentIntentUpdateParamsPaymentMethodOptionsPaypay as PaymentIntentUpdateParamsPaymentMethodOptionsPaypay, PaymentIntentUpdateParamsPaymentMethodOptionsPayto as PaymentIntentUpdateParamsPaymentMethodOptionsPayto, PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsPix as PaymentIntentUpdateParamsPaymentMethodOptionsPix, @@ -2086,6 +2152,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsScalapay as PaymentIntentUpdateParamsPaymentMethodOptionsScalapay, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions, + PaymentIntentUpdateParamsPaymentMethodOptionsSequra as PaymentIntentUpdateParamsPaymentMethodOptionsSequra, PaymentIntentUpdateParamsPaymentMethodOptionsSofort as PaymentIntentUpdateParamsPaymentMethodOptionsSofort, PaymentIntentUpdateParamsPaymentMethodOptionsSunbit as PaymentIntentUpdateParamsPaymentMethodOptionsSunbit, PaymentIntentUpdateParamsPaymentMethodOptionsSwish as PaymentIntentUpdateParamsPaymentMethodOptionsSwish, @@ -2136,6 +2203,7 @@ PaymentLinkCreateParamsLineItemAdjustableQuantity as PaymentLinkCreateParamsLineItemAdjustableQuantity, PaymentLinkCreateParamsLineItemPriceData as PaymentLinkCreateParamsLineItemPriceData, PaymentLinkCreateParamsLineItemPriceDataProductData as PaymentLinkCreateParamsLineItemPriceDataProductData, + PaymentLinkCreateParamsLineItemPriceDataProductDataTaxDetails as PaymentLinkCreateParamsLineItemPriceDataProductDataTaxDetails, PaymentLinkCreateParamsLineItemPriceDataRecurring as PaymentLinkCreateParamsLineItemPriceDataRecurring, PaymentLinkCreateParamsManagedPayments as PaymentLinkCreateParamsManagedPayments, PaymentLinkCreateParamsNameCollection as PaymentLinkCreateParamsNameCollection, @@ -2363,6 +2431,8 @@ PaymentMethodConfigurationCreateParamsPaynowDisplayPreference as PaymentMethodConfigurationCreateParamsPaynowDisplayPreference, PaymentMethodConfigurationCreateParamsPaypal as PaymentMethodConfigurationCreateParamsPaypal, PaymentMethodConfigurationCreateParamsPaypalDisplayPreference as PaymentMethodConfigurationCreateParamsPaypalDisplayPreference, + PaymentMethodConfigurationCreateParamsPaypay as PaymentMethodConfigurationCreateParamsPaypay, + PaymentMethodConfigurationCreateParamsPaypayDisplayPreference as PaymentMethodConfigurationCreateParamsPaypayDisplayPreference, PaymentMethodConfigurationCreateParamsPayto as PaymentMethodConfigurationCreateParamsPayto, PaymentMethodConfigurationCreateParamsPaytoDisplayPreference as PaymentMethodConfigurationCreateParamsPaytoDisplayPreference, PaymentMethodConfigurationCreateParamsPix as PaymentMethodConfigurationCreateParamsPix, @@ -2379,6 +2449,8 @@ PaymentMethodConfigurationCreateParamsScalapayDisplayPreference as PaymentMethodConfigurationCreateParamsScalapayDisplayPreference, PaymentMethodConfigurationCreateParamsSepaDebit as PaymentMethodConfigurationCreateParamsSepaDebit, PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference, + PaymentMethodConfigurationCreateParamsSequra as PaymentMethodConfigurationCreateParamsSequra, + PaymentMethodConfigurationCreateParamsSequraDisplayPreference as PaymentMethodConfigurationCreateParamsSequraDisplayPreference, PaymentMethodConfigurationCreateParamsSofort as PaymentMethodConfigurationCreateParamsSofort, PaymentMethodConfigurationCreateParamsSofortDisplayPreference as PaymentMethodConfigurationCreateParamsSofortDisplayPreference, PaymentMethodConfigurationCreateParamsSunbit as PaymentMethodConfigurationCreateParamsSunbit, @@ -2489,6 +2561,8 @@ PaymentMethodConfigurationModifyParamsPaynowDisplayPreference as PaymentMethodConfigurationModifyParamsPaynowDisplayPreference, PaymentMethodConfigurationModifyParamsPaypal as PaymentMethodConfigurationModifyParamsPaypal, PaymentMethodConfigurationModifyParamsPaypalDisplayPreference as PaymentMethodConfigurationModifyParamsPaypalDisplayPreference, + PaymentMethodConfigurationModifyParamsPaypay as PaymentMethodConfigurationModifyParamsPaypay, + PaymentMethodConfigurationModifyParamsPaypayDisplayPreference as PaymentMethodConfigurationModifyParamsPaypayDisplayPreference, PaymentMethodConfigurationModifyParamsPayto as PaymentMethodConfigurationModifyParamsPayto, PaymentMethodConfigurationModifyParamsPaytoDisplayPreference as PaymentMethodConfigurationModifyParamsPaytoDisplayPreference, PaymentMethodConfigurationModifyParamsPix as PaymentMethodConfigurationModifyParamsPix, @@ -2505,6 +2579,8 @@ PaymentMethodConfigurationModifyParamsScalapayDisplayPreference as PaymentMethodConfigurationModifyParamsScalapayDisplayPreference, PaymentMethodConfigurationModifyParamsSepaDebit as PaymentMethodConfigurationModifyParamsSepaDebit, PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference as PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference, + PaymentMethodConfigurationModifyParamsSequra as PaymentMethodConfigurationModifyParamsSequra, + PaymentMethodConfigurationModifyParamsSequraDisplayPreference as PaymentMethodConfigurationModifyParamsSequraDisplayPreference, PaymentMethodConfigurationModifyParamsSofort as PaymentMethodConfigurationModifyParamsSofort, PaymentMethodConfigurationModifyParamsSofortDisplayPreference as PaymentMethodConfigurationModifyParamsSofortDisplayPreference, PaymentMethodConfigurationModifyParamsSunbit as PaymentMethodConfigurationModifyParamsSunbit, @@ -2615,6 +2691,8 @@ PaymentMethodConfigurationUpdateParamsPaynowDisplayPreference as PaymentMethodConfigurationUpdateParamsPaynowDisplayPreference, PaymentMethodConfigurationUpdateParamsPaypal as PaymentMethodConfigurationUpdateParamsPaypal, PaymentMethodConfigurationUpdateParamsPaypalDisplayPreference as PaymentMethodConfigurationUpdateParamsPaypalDisplayPreference, + PaymentMethodConfigurationUpdateParamsPaypay as PaymentMethodConfigurationUpdateParamsPaypay, + PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference as PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference, PaymentMethodConfigurationUpdateParamsPayto as PaymentMethodConfigurationUpdateParamsPayto, PaymentMethodConfigurationUpdateParamsPaytoDisplayPreference as PaymentMethodConfigurationUpdateParamsPaytoDisplayPreference, PaymentMethodConfigurationUpdateParamsPix as PaymentMethodConfigurationUpdateParamsPix, @@ -2631,6 +2709,8 @@ PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference as PaymentMethodConfigurationUpdateParamsScalapayDisplayPreference, PaymentMethodConfigurationUpdateParamsSepaDebit as PaymentMethodConfigurationUpdateParamsSepaDebit, PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference, + PaymentMethodConfigurationUpdateParamsSequra as PaymentMethodConfigurationUpdateParamsSequra, + PaymentMethodConfigurationUpdateParamsSequraDisplayPreference as PaymentMethodConfigurationUpdateParamsSequraDisplayPreference, PaymentMethodConfigurationUpdateParamsSofort as PaymentMethodConfigurationUpdateParamsSofort, PaymentMethodConfigurationUpdateParamsSofortDisplayPreference as PaymentMethodConfigurationUpdateParamsSofortDisplayPreference, PaymentMethodConfigurationUpdateParamsSunbit as PaymentMethodConfigurationUpdateParamsSunbit, @@ -2694,6 +2774,7 @@ PaymentMethodCreateParamsPayco as PaymentMethodCreateParamsPayco, PaymentMethodCreateParamsPaynow as PaymentMethodCreateParamsPaynow, PaymentMethodCreateParamsPaypal as PaymentMethodCreateParamsPaypal, + PaymentMethodCreateParamsPaypay as PaymentMethodCreateParamsPaypay, PaymentMethodCreateParamsPayto as PaymentMethodCreateParamsPayto, PaymentMethodCreateParamsPix as PaymentMethodCreateParamsPix, PaymentMethodCreateParamsPromptpay as PaymentMethodCreateParamsPromptpay, @@ -2703,6 +2784,7 @@ PaymentMethodCreateParamsSatispay as PaymentMethodCreateParamsSatispay, PaymentMethodCreateParamsScalapay as PaymentMethodCreateParamsScalapay, PaymentMethodCreateParamsSepaDebit as PaymentMethodCreateParamsSepaDebit, + PaymentMethodCreateParamsSequra as PaymentMethodCreateParamsSequra, PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort, PaymentMethodCreateParamsSunbit as PaymentMethodCreateParamsSunbit, PaymentMethodCreateParamsSwish as PaymentMethodCreateParamsSwish, @@ -2743,7 +2825,6 @@ PaymentMethodModifyParamsBillingDetailsAddress as PaymentMethodModifyParamsBillingDetailsAddress, PaymentMethodModifyParamsCard as PaymentMethodModifyParamsCard, PaymentMethodModifyParamsCardNetworks as PaymentMethodModifyParamsCardNetworks, - PaymentMethodModifyParamsPayto as PaymentMethodModifyParamsPayto, PaymentMethodModifyParamsUsBankAccount as PaymentMethodModifyParamsUsBankAccount, ) from stripe.params._payment_method_retrieve_params import ( @@ -2755,7 +2836,6 @@ PaymentMethodUpdateParamsBillingDetailsAddress as PaymentMethodUpdateParamsBillingDetailsAddress, PaymentMethodUpdateParamsCard as PaymentMethodUpdateParamsCard, PaymentMethodUpdateParamsCardNetworks as PaymentMethodUpdateParamsCardNetworks, - PaymentMethodUpdateParamsPayto as PaymentMethodUpdateParamsPayto, PaymentMethodUpdateParamsUsBankAccount as PaymentMethodUpdateParamsUsBankAccount, ) from stripe.params._payment_record_list_params import ( @@ -2778,6 +2858,7 @@ ) from stripe.params._payment_record_report_payment_attempt_params import ( PaymentRecordReportPaymentAttemptParams as PaymentRecordReportPaymentAttemptParams, + PaymentRecordReportPaymentAttemptParamsCanceled as PaymentRecordReportPaymentAttemptParamsCanceled, PaymentRecordReportPaymentAttemptParamsFailed as PaymentRecordReportPaymentAttemptParamsFailed, PaymentRecordReportPaymentAttemptParamsGuaranteed as PaymentRecordReportPaymentAttemptParamsGuaranteed, PaymentRecordReportPaymentAttemptParamsPaymentMethodDetails as PaymentRecordReportPaymentAttemptParamsPaymentMethodDetails, @@ -2790,6 +2871,7 @@ from stripe.params._payment_record_report_payment_params import ( PaymentRecordReportPaymentParams as PaymentRecordReportPaymentParams, PaymentRecordReportPaymentParamsAmountRequested as PaymentRecordReportPaymentParamsAmountRequested, + PaymentRecordReportPaymentParamsCanceled as PaymentRecordReportPaymentParamsCanceled, PaymentRecordReportPaymentParamsCustomerDetails as PaymentRecordReportPaymentParamsCustomerDetails, PaymentRecordReportPaymentParamsFailed as PaymentRecordReportPaymentParamsFailed, PaymentRecordReportPaymentParamsGuaranteed as PaymentRecordReportPaymentParamsGuaranteed, @@ -2838,6 +2920,7 @@ from stripe.params._plan_create_params import ( PlanCreateParams as PlanCreateParams, PlanCreateParamsProduct as PlanCreateParamsProduct, + PlanCreateParamsProductTaxDetails as PlanCreateParamsProductTaxDetails, PlanCreateParamsTier as PlanCreateParamsTier, PlanCreateParamsTransformUsage as PlanCreateParamsTransformUsage, ) @@ -2864,6 +2947,7 @@ PriceCreateParamsCurrencyOptionsTier as PriceCreateParamsCurrencyOptionsTier, PriceCreateParamsCustomUnitAmount as PriceCreateParamsCustomUnitAmount, PriceCreateParamsProductData as PriceCreateParamsProductData, + PriceCreateParamsProductDataTaxDetails as PriceCreateParamsProductDataTaxDetails, PriceCreateParamsRecurring as PriceCreateParamsRecurring, PriceCreateParamsTier as PriceCreateParamsTier, PriceCreateParamsTransformQuantity as PriceCreateParamsTransformQuantity, @@ -2904,6 +2988,7 @@ ProductCreateParamsDefaultPriceDataRecurring as ProductCreateParamsDefaultPriceDataRecurring, ProductCreateParamsMarketingFeature as ProductCreateParamsMarketingFeature, ProductCreateParamsPackageDimensions as ProductCreateParamsPackageDimensions, + ProductCreateParamsTaxDetails as ProductCreateParamsTaxDetails, ) from stripe.params._product_delete_feature_params import ( ProductDeleteFeatureParams as ProductDeleteFeatureParams, @@ -2934,6 +3019,7 @@ ProductModifyParams as ProductModifyParams, ProductModifyParamsMarketingFeature as ProductModifyParamsMarketingFeature, ProductModifyParamsPackageDimensions as ProductModifyParamsPackageDimensions, + ProductModifyParamsTaxDetails as ProductModifyParamsTaxDetails, ) from stripe.params._product_retrieve_feature_params import ( ProductRetrieveFeatureParams as ProductRetrieveFeatureParams, @@ -2948,6 +3034,7 @@ ProductUpdateParams as ProductUpdateParams, ProductUpdateParamsMarketingFeature as ProductUpdateParamsMarketingFeature, ProductUpdateParamsPackageDimensions as ProductUpdateParamsPackageDimensions, + ProductUpdateParamsTaxDetails as ProductUpdateParamsTaxDetails, ) from stripe.params._promotion_code_create_params import ( PromotionCodeCreateParams as PromotionCodeCreateParams, @@ -3137,6 +3224,7 @@ SetupIntentConfirmParamsPaymentMethodDataPayco as SetupIntentConfirmParamsPaymentMethodDataPayco, SetupIntentConfirmParamsPaymentMethodDataPaynow as SetupIntentConfirmParamsPaymentMethodDataPaynow, SetupIntentConfirmParamsPaymentMethodDataPaypal as SetupIntentConfirmParamsPaymentMethodDataPaypal, + SetupIntentConfirmParamsPaymentMethodDataPaypay as SetupIntentConfirmParamsPaymentMethodDataPaypay, SetupIntentConfirmParamsPaymentMethodDataPayto as SetupIntentConfirmParamsPaymentMethodDataPayto, SetupIntentConfirmParamsPaymentMethodDataPix as SetupIntentConfirmParamsPaymentMethodDataPix, SetupIntentConfirmParamsPaymentMethodDataPromptpay as SetupIntentConfirmParamsPaymentMethodDataPromptpay, @@ -3146,6 +3234,7 @@ SetupIntentConfirmParamsPaymentMethodDataSatispay as SetupIntentConfirmParamsPaymentMethodDataSatispay, SetupIntentConfirmParamsPaymentMethodDataScalapay as SetupIntentConfirmParamsPaymentMethodDataScalapay, SetupIntentConfirmParamsPaymentMethodDataSepaDebit as SetupIntentConfirmParamsPaymentMethodDataSepaDebit, + SetupIntentConfirmParamsPaymentMethodDataSequra as SetupIntentConfirmParamsPaymentMethodDataSequra, SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort, SetupIntentConfirmParamsPaymentMethodDataSunbit as SetupIntentConfirmParamsPaymentMethodDataSunbit, SetupIntentConfirmParamsPaymentMethodDataSwish as SetupIntentConfirmParamsPaymentMethodDataSwish, @@ -3162,6 +3251,8 @@ SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit, SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, SetupIntentConfirmParamsPaymentMethodOptionsBizum as SetupIntentConfirmParamsPaymentMethodOptionsBizum, + SetupIntentConfirmParamsPaymentMethodOptionsBlik as SetupIntentConfirmParamsPaymentMethodOptionsBlik, + SetupIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions, SetupIntentConfirmParamsPaymentMethodOptionsCard as SetupIntentConfirmParamsPaymentMethodOptionsCard, SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions, SetupIntentConfirmParamsPaymentMethodOptionsCardPresent as SetupIntentConfirmParamsPaymentMethodOptionsCardPresent, @@ -3237,6 +3328,7 @@ SetupIntentCreateParamsPaymentMethodDataPayco as SetupIntentCreateParamsPaymentMethodDataPayco, SetupIntentCreateParamsPaymentMethodDataPaynow as SetupIntentCreateParamsPaymentMethodDataPaynow, SetupIntentCreateParamsPaymentMethodDataPaypal as SetupIntentCreateParamsPaymentMethodDataPaypal, + SetupIntentCreateParamsPaymentMethodDataPaypay as SetupIntentCreateParamsPaymentMethodDataPaypay, SetupIntentCreateParamsPaymentMethodDataPayto as SetupIntentCreateParamsPaymentMethodDataPayto, SetupIntentCreateParamsPaymentMethodDataPix as SetupIntentCreateParamsPaymentMethodDataPix, SetupIntentCreateParamsPaymentMethodDataPromptpay as SetupIntentCreateParamsPaymentMethodDataPromptpay, @@ -3246,6 +3338,7 @@ SetupIntentCreateParamsPaymentMethodDataSatispay as SetupIntentCreateParamsPaymentMethodDataSatispay, SetupIntentCreateParamsPaymentMethodDataScalapay as SetupIntentCreateParamsPaymentMethodDataScalapay, SetupIntentCreateParamsPaymentMethodDataSepaDebit as SetupIntentCreateParamsPaymentMethodDataSepaDebit, + SetupIntentCreateParamsPaymentMethodDataSequra as SetupIntentCreateParamsPaymentMethodDataSequra, SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort, SetupIntentCreateParamsPaymentMethodDataSunbit as SetupIntentCreateParamsPaymentMethodDataSunbit, SetupIntentCreateParamsPaymentMethodDataSwish as SetupIntentCreateParamsPaymentMethodDataSwish, @@ -3262,6 +3355,8 @@ SetupIntentCreateParamsPaymentMethodOptionsBacsDebit as SetupIntentCreateParamsPaymentMethodOptionsBacsDebit, SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, SetupIntentCreateParamsPaymentMethodOptionsBizum as SetupIntentCreateParamsPaymentMethodOptionsBizum, + SetupIntentCreateParamsPaymentMethodOptionsBlik as SetupIntentCreateParamsPaymentMethodOptionsBlik, + SetupIntentCreateParamsPaymentMethodOptionsBlikMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsBlikMandateOptions, SetupIntentCreateParamsPaymentMethodOptionsCard as SetupIntentCreateParamsPaymentMethodOptionsCard, SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentCreateParamsPaymentMethodOptionsCardPresent as SetupIntentCreateParamsPaymentMethodOptionsCardPresent, @@ -3337,6 +3432,7 @@ SetupIntentModifyParamsPaymentMethodDataPayco as SetupIntentModifyParamsPaymentMethodDataPayco, SetupIntentModifyParamsPaymentMethodDataPaynow as SetupIntentModifyParamsPaymentMethodDataPaynow, SetupIntentModifyParamsPaymentMethodDataPaypal as SetupIntentModifyParamsPaymentMethodDataPaypal, + SetupIntentModifyParamsPaymentMethodDataPaypay as SetupIntentModifyParamsPaymentMethodDataPaypay, SetupIntentModifyParamsPaymentMethodDataPayto as SetupIntentModifyParamsPaymentMethodDataPayto, SetupIntentModifyParamsPaymentMethodDataPix as SetupIntentModifyParamsPaymentMethodDataPix, SetupIntentModifyParamsPaymentMethodDataPromptpay as SetupIntentModifyParamsPaymentMethodDataPromptpay, @@ -3346,6 +3442,7 @@ SetupIntentModifyParamsPaymentMethodDataSatispay as SetupIntentModifyParamsPaymentMethodDataSatispay, SetupIntentModifyParamsPaymentMethodDataScalapay as SetupIntentModifyParamsPaymentMethodDataScalapay, SetupIntentModifyParamsPaymentMethodDataSepaDebit as SetupIntentModifyParamsPaymentMethodDataSepaDebit, + SetupIntentModifyParamsPaymentMethodDataSequra as SetupIntentModifyParamsPaymentMethodDataSequra, SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort, SetupIntentModifyParamsPaymentMethodDataSunbit as SetupIntentModifyParamsPaymentMethodDataSunbit, SetupIntentModifyParamsPaymentMethodDataSwish as SetupIntentModifyParamsPaymentMethodDataSwish, @@ -3362,6 +3459,8 @@ SetupIntentModifyParamsPaymentMethodOptionsBacsDebit as SetupIntentModifyParamsPaymentMethodOptionsBacsDebit, SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, SetupIntentModifyParamsPaymentMethodOptionsBizum as SetupIntentModifyParamsPaymentMethodOptionsBizum, + SetupIntentModifyParamsPaymentMethodOptionsBlik as SetupIntentModifyParamsPaymentMethodOptionsBlik, + SetupIntentModifyParamsPaymentMethodOptionsBlikMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsBlikMandateOptions, SetupIntentModifyParamsPaymentMethodOptionsCard as SetupIntentModifyParamsPaymentMethodOptionsCard, SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions, SetupIntentModifyParamsPaymentMethodOptionsCardPresent as SetupIntentModifyParamsPaymentMethodOptionsCardPresent, @@ -3435,6 +3534,7 @@ SetupIntentUpdateParamsPaymentMethodDataPayco as SetupIntentUpdateParamsPaymentMethodDataPayco, SetupIntentUpdateParamsPaymentMethodDataPaynow as SetupIntentUpdateParamsPaymentMethodDataPaynow, SetupIntentUpdateParamsPaymentMethodDataPaypal as SetupIntentUpdateParamsPaymentMethodDataPaypal, + SetupIntentUpdateParamsPaymentMethodDataPaypay as SetupIntentUpdateParamsPaymentMethodDataPaypay, SetupIntentUpdateParamsPaymentMethodDataPayto as SetupIntentUpdateParamsPaymentMethodDataPayto, SetupIntentUpdateParamsPaymentMethodDataPix as SetupIntentUpdateParamsPaymentMethodDataPix, SetupIntentUpdateParamsPaymentMethodDataPromptpay as SetupIntentUpdateParamsPaymentMethodDataPromptpay, @@ -3444,6 +3544,7 @@ SetupIntentUpdateParamsPaymentMethodDataSatispay as SetupIntentUpdateParamsPaymentMethodDataSatispay, SetupIntentUpdateParamsPaymentMethodDataScalapay as SetupIntentUpdateParamsPaymentMethodDataScalapay, SetupIntentUpdateParamsPaymentMethodDataSepaDebit as SetupIntentUpdateParamsPaymentMethodDataSepaDebit, + SetupIntentUpdateParamsPaymentMethodDataSequra as SetupIntentUpdateParamsPaymentMethodDataSequra, SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort, SetupIntentUpdateParamsPaymentMethodDataSunbit as SetupIntentUpdateParamsPaymentMethodDataSunbit, SetupIntentUpdateParamsPaymentMethodDataSwish as SetupIntentUpdateParamsPaymentMethodDataSwish, @@ -3460,6 +3561,8 @@ SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit, SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, SetupIntentUpdateParamsPaymentMethodOptionsBizum as SetupIntentUpdateParamsPaymentMethodOptionsBizum, + SetupIntentUpdateParamsPaymentMethodOptionsBlik as SetupIntentUpdateParamsPaymentMethodOptionsBlik, + SetupIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions, SetupIntentUpdateParamsPaymentMethodOptionsCard as SetupIntentUpdateParamsPaymentMethodOptionsCard, SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions, SetupIntentUpdateParamsPaymentMethodOptionsCardPresent as SetupIntentUpdateParamsPaymentMethodOptionsCardPresent, @@ -3598,6 +3701,7 @@ SubscriptionCreateParamsInvoiceSettingsIssuer as SubscriptionCreateParamsInvoiceSettingsIssuer, SubscriptionCreateParamsItem as SubscriptionCreateParamsItem, SubscriptionCreateParamsItemBillingThresholds as SubscriptionCreateParamsItemBillingThresholds, + SubscriptionCreateParamsItemCurrentTrial as SubscriptionCreateParamsItemCurrentTrial, SubscriptionCreateParamsItemDiscount as SubscriptionCreateParamsItemDiscount, SubscriptionCreateParamsItemPriceData as SubscriptionCreateParamsItemPriceData, SubscriptionCreateParamsItemPriceDataRecurring as SubscriptionCreateParamsItemPriceDataRecurring, @@ -3607,6 +3711,10 @@ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillie as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillie, + SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails, + SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, + SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik, + SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance, @@ -3634,6 +3742,7 @@ from stripe.params._subscription_item_create_params import ( SubscriptionItemCreateParams as SubscriptionItemCreateParams, SubscriptionItemCreateParamsBillingThresholds as SubscriptionItemCreateParamsBillingThresholds, + SubscriptionItemCreateParamsCurrentTrial as SubscriptionItemCreateParamsCurrentTrial, SubscriptionItemCreateParamsDiscount as SubscriptionItemCreateParamsDiscount, SubscriptionItemCreateParamsPriceData as SubscriptionItemCreateParamsPriceData, SubscriptionItemCreateParamsPriceDataRecurring as SubscriptionItemCreateParamsPriceDataRecurring, @@ -3647,6 +3756,7 @@ from stripe.params._subscription_item_modify_params import ( SubscriptionItemModifyParams as SubscriptionItemModifyParams, SubscriptionItemModifyParamsBillingThresholds as SubscriptionItemModifyParamsBillingThresholds, + SubscriptionItemModifyParamsCurrentTrial as SubscriptionItemModifyParamsCurrentTrial, SubscriptionItemModifyParamsDiscount as SubscriptionItemModifyParamsDiscount, SubscriptionItemModifyParamsPriceData as SubscriptionItemModifyParamsPriceData, SubscriptionItemModifyParamsPriceDataRecurring as SubscriptionItemModifyParamsPriceDataRecurring, @@ -3657,6 +3767,7 @@ from stripe.params._subscription_item_update_params import ( SubscriptionItemUpdateParams as SubscriptionItemUpdateParams, SubscriptionItemUpdateParamsBillingThresholds as SubscriptionItemUpdateParamsBillingThresholds, + SubscriptionItemUpdateParamsCurrentTrial as SubscriptionItemUpdateParamsCurrentTrial, SubscriptionItemUpdateParamsDiscount as SubscriptionItemUpdateParamsDiscount, SubscriptionItemUpdateParamsPriceData as SubscriptionItemUpdateParamsPriceData, SubscriptionItemUpdateParamsPriceDataRecurring as SubscriptionItemUpdateParamsPriceDataRecurring, @@ -3683,6 +3794,7 @@ SubscriptionModifyParamsAddInvoiceItemPriceData as SubscriptionModifyParamsAddInvoiceItemPriceData, SubscriptionModifyParamsAutomaticTax as SubscriptionModifyParamsAutomaticTax, SubscriptionModifyParamsAutomaticTaxLiability as SubscriptionModifyParamsAutomaticTaxLiability, + SubscriptionModifyParamsBillingCycleAnchor as SubscriptionModifyParamsBillingCycleAnchor, SubscriptionModifyParamsBillingSchedule as SubscriptionModifyParamsBillingSchedule, SubscriptionModifyParamsBillingScheduleAppliesTo as SubscriptionModifyParamsBillingScheduleAppliesTo, SubscriptionModifyParamsBillingScheduleBillUntil as SubscriptionModifyParamsBillingScheduleBillUntil, @@ -3695,6 +3807,7 @@ SubscriptionModifyParamsInvoiceSettingsIssuer as SubscriptionModifyParamsInvoiceSettingsIssuer, SubscriptionModifyParamsItem as SubscriptionModifyParamsItem, SubscriptionModifyParamsItemBillingThresholds as SubscriptionModifyParamsItemBillingThresholds, + SubscriptionModifyParamsItemCurrentTrial as SubscriptionModifyParamsItemCurrentTrial, SubscriptionModifyParamsItemDiscount as SubscriptionModifyParamsItemDiscount, SubscriptionModifyParamsItemPriceData as SubscriptionModifyParamsItemPriceData, SubscriptionModifyParamsItemPriceDataRecurring as SubscriptionModifyParamsItemPriceDataRecurring, @@ -3705,6 +3818,10 @@ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillie as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillie, + SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails, + SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, + SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik, + SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance, @@ -3726,8 +3843,15 @@ SubscriptionModifyParamsTrialSettings as SubscriptionModifyParamsTrialSettings, SubscriptionModifyParamsTrialSettingsEndBehavior as SubscriptionModifyParamsTrialSettingsEndBehavior, ) + from stripe.params._subscription_pause_params import ( + SubscriptionPauseParams as SubscriptionPauseParams, + SubscriptionPauseParamsBillFor as SubscriptionPauseParamsBillFor, + SubscriptionPauseParamsBillForOutstandingUsageThrough as SubscriptionPauseParamsBillForOutstandingUsageThrough, + SubscriptionPauseParamsBillForUnusedTimeFrom as SubscriptionPauseParamsBillForUnusedTimeFrom, + ) from stripe.params._subscription_resume_params import ( SubscriptionResumeParams as SubscriptionResumeParams, + SubscriptionResumeParamsBillingCycleAnchor as SubscriptionResumeParamsBillingCycleAnchor, ) from stripe.params._subscription_retrieve_params import ( SubscriptionRetrieveParams as SubscriptionRetrieveParams, @@ -3747,6 +3871,17 @@ SubscriptionScheduleCreateParamsDefaultSettingsInvoiceSettingsCustomField as SubscriptionScheduleCreateParamsDefaultSettingsInvoiceSettingsCustomField, SubscriptionScheduleCreateParamsDefaultSettingsInvoiceSettingsIssuer as SubscriptionScheduleCreateParamsDefaultSettingsInvoiceSettingsIssuer, SubscriptionScheduleCreateParamsDefaultSettingsTransferData as SubscriptionScheduleCreateParamsDefaultSettingsTransferData, + SubscriptionScheduleCreateParamsPauseSchedule as SubscriptionScheduleCreateParamsPauseSchedule, + SubscriptionScheduleCreateParamsPauseSchedulePause as SubscriptionScheduleCreateParamsPauseSchedulePause, + SubscriptionScheduleCreateParamsPauseSchedulePausePauseAt as SubscriptionScheduleCreateParamsPauseSchedulePausePauseAt, + SubscriptionScheduleCreateParamsPauseSchedulePauseSettings as SubscriptionScheduleCreateParamsPauseSchedulePauseSettings, + SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillFor as SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillFor, + SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough as SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough, + SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom as SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom, + SubscriptionScheduleCreateParamsPauseScheduleResume as SubscriptionScheduleCreateParamsPauseScheduleResume, + SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAt as SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAt, + SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAtDuration as SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAtDuration, + SubscriptionScheduleCreateParamsPauseScheduleResumeSettings as SubscriptionScheduleCreateParamsPauseScheduleResumeSettings, SubscriptionScheduleCreateParamsPhase as SubscriptionScheduleCreateParamsPhase, SubscriptionScheduleCreateParamsPhaseAddInvoiceItem as SubscriptionScheduleCreateParamsPhaseAddInvoiceItem, SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscount as SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscount, @@ -3786,6 +3921,17 @@ SubscriptionScheduleModifyParamsDefaultSettingsInvoiceSettingsCustomField as SubscriptionScheduleModifyParamsDefaultSettingsInvoiceSettingsCustomField, SubscriptionScheduleModifyParamsDefaultSettingsInvoiceSettingsIssuer as SubscriptionScheduleModifyParamsDefaultSettingsInvoiceSettingsIssuer, SubscriptionScheduleModifyParamsDefaultSettingsTransferData as SubscriptionScheduleModifyParamsDefaultSettingsTransferData, + SubscriptionScheduleModifyParamsPauseSchedule as SubscriptionScheduleModifyParamsPauseSchedule, + SubscriptionScheduleModifyParamsPauseSchedulePause as SubscriptionScheduleModifyParamsPauseSchedulePause, + SubscriptionScheduleModifyParamsPauseSchedulePausePauseAt as SubscriptionScheduleModifyParamsPauseSchedulePausePauseAt, + SubscriptionScheduleModifyParamsPauseSchedulePauseSettings as SubscriptionScheduleModifyParamsPauseSchedulePauseSettings, + SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillFor as SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillFor, + SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough as SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough, + SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom as SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom, + SubscriptionScheduleModifyParamsPauseScheduleResume as SubscriptionScheduleModifyParamsPauseScheduleResume, + SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAt as SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAt, + SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAtDuration as SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAtDuration, + SubscriptionScheduleModifyParamsPauseScheduleResumeSettings as SubscriptionScheduleModifyParamsPauseScheduleResumeSettings, SubscriptionScheduleModifyParamsPhase as SubscriptionScheduleModifyParamsPhase, SubscriptionScheduleModifyParamsPhaseAddInvoiceItem as SubscriptionScheduleModifyParamsPhaseAddInvoiceItem, SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount as SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount, @@ -3824,6 +3970,17 @@ SubscriptionScheduleUpdateParamsDefaultSettingsInvoiceSettingsCustomField as SubscriptionScheduleUpdateParamsDefaultSettingsInvoiceSettingsCustomField, SubscriptionScheduleUpdateParamsDefaultSettingsInvoiceSettingsIssuer as SubscriptionScheduleUpdateParamsDefaultSettingsInvoiceSettingsIssuer, SubscriptionScheduleUpdateParamsDefaultSettingsTransferData as SubscriptionScheduleUpdateParamsDefaultSettingsTransferData, + SubscriptionScheduleUpdateParamsPauseSchedule as SubscriptionScheduleUpdateParamsPauseSchedule, + SubscriptionScheduleUpdateParamsPauseSchedulePause as SubscriptionScheduleUpdateParamsPauseSchedulePause, + SubscriptionScheduleUpdateParamsPauseSchedulePausePauseAt as SubscriptionScheduleUpdateParamsPauseSchedulePausePauseAt, + SubscriptionScheduleUpdateParamsPauseSchedulePauseSettings as SubscriptionScheduleUpdateParamsPauseSchedulePauseSettings, + SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillFor as SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillFor, + SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough as SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough, + SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom as SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom, + SubscriptionScheduleUpdateParamsPauseScheduleResume as SubscriptionScheduleUpdateParamsPauseScheduleResume, + SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAt as SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAt, + SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAtDuration as SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAtDuration, + SubscriptionScheduleUpdateParamsPauseScheduleResumeSettings as SubscriptionScheduleUpdateParamsPauseScheduleResumeSettings, SubscriptionScheduleUpdateParamsPhase as SubscriptionScheduleUpdateParamsPhase, SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem, SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount, @@ -3859,6 +4016,7 @@ SubscriptionUpdateParamsAddInvoiceItemPriceData as SubscriptionUpdateParamsAddInvoiceItemPriceData, SubscriptionUpdateParamsAutomaticTax as SubscriptionUpdateParamsAutomaticTax, SubscriptionUpdateParamsAutomaticTaxLiability as SubscriptionUpdateParamsAutomaticTaxLiability, + SubscriptionUpdateParamsBillingCycleAnchor as SubscriptionUpdateParamsBillingCycleAnchor, SubscriptionUpdateParamsBillingSchedule as SubscriptionUpdateParamsBillingSchedule, SubscriptionUpdateParamsBillingScheduleAppliesTo as SubscriptionUpdateParamsBillingScheduleAppliesTo, SubscriptionUpdateParamsBillingScheduleBillUntil as SubscriptionUpdateParamsBillingScheduleBillUntil, @@ -3871,6 +4029,7 @@ SubscriptionUpdateParamsInvoiceSettingsIssuer as SubscriptionUpdateParamsInvoiceSettingsIssuer, SubscriptionUpdateParamsItem as SubscriptionUpdateParamsItem, SubscriptionUpdateParamsItemBillingThresholds as SubscriptionUpdateParamsItemBillingThresholds, + SubscriptionUpdateParamsItemCurrentTrial as SubscriptionUpdateParamsItemCurrentTrial, SubscriptionUpdateParamsItemDiscount as SubscriptionUpdateParamsItemDiscount, SubscriptionUpdateParamsItemPriceData as SubscriptionUpdateParamsItemPriceData, SubscriptionUpdateParamsItemPriceDataRecurring as SubscriptionUpdateParamsItemPriceDataRecurring, @@ -3881,6 +4040,10 @@ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillie as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillie, + SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails, + SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress, + SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik, + SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance, @@ -4084,12 +4247,14 @@ "forwarding": ("stripe.params.forwarding", True), "identity": ("stripe.params.identity", True), "issuing": ("stripe.params.issuing", True), + "product_catalog": ("stripe.params.product_catalog", True), "radar": ("stripe.params.radar", True), "reporting": ("stripe.params.reporting", True), "sigma": ("stripe.params.sigma", True), "tax": ("stripe.params.tax", True), "terminal": ("stripe.params.terminal", True), "test_helpers": ("stripe.params.test_helpers", True), + "three_d_secure": ("stripe.params.three_d_secure", True), "treasury": ("stripe.params.treasury", True), "AccountCapabilityListParams": ( "stripe.params._account_capability_list_params", @@ -4200,6 +4365,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesBlikRecurringPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesBoletoPayments": ( "stripe.params._account_create_params", False, @@ -4328,6 +4497,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesPaypayPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesPaytoPayments": ( "stripe.params._account_create_params", False, @@ -4364,6 +4537,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesSequraPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesSofortPayments": ( "stripe.params._account_create_params", False, @@ -4609,6 +4786,30 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsSettingsPaypayPayments": ( + "stripe.params._account_create_params", + False, + ), + "AccountCreateParamsSettingsPaypayPaymentsSite": ( + "stripe.params._account_create_params", + False, + ), + "AccountCreateParamsSettingsPaypayPaymentsSiteAccessible": ( + "stripe.params._account_create_params", + False, + ), + "AccountCreateParamsSettingsPaypayPaymentsSiteInDevelopment": ( + "stripe.params._account_create_params", + False, + ), + "AccountCreateParamsSettingsPaypayPaymentsSiteRestricted": ( + "stripe.params._account_create_params", + False, + ), + "AccountCreateParamsSettingsSepaDebitPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsSettingsTreasury": ( "stripe.params._account_create_params", False, @@ -5321,6 +5522,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesBlikRecurringPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesBoletoPayments": ( "stripe.params._account_update_params", False, @@ -5449,6 +5654,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesPaypayPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesPaytoPayments": ( "stripe.params._account_update_params", False, @@ -5485,6 +5694,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesSequraPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesSofortPayments": ( "stripe.params._account_update_params", False, @@ -5722,6 +5935,26 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsSettingsPaypayPayments": ( + "stripe.params._account_update_params", + False, + ), + "AccountUpdateParamsSettingsPaypayPaymentsSite": ( + "stripe.params._account_update_params", + False, + ), + "AccountUpdateParamsSettingsPaypayPaymentsSiteAccessible": ( + "stripe.params._account_update_params", + False, + ), + "AccountUpdateParamsSettingsPaypayPaymentsSiteInDevelopment": ( + "stripe.params._account_update_params", + False, + ), + "AccountUpdateParamsSettingsPaypayPaymentsSiteRestricted": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsSettingsSepaDebitPayments": ( "stripe.params._account_update_params", False, @@ -6116,6 +6349,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataPaypay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataPayto": ( "stripe.params._confirmation_token_create_params", False, @@ -6152,6 +6389,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataSequra": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSofort": ( "stripe.params._confirmation_token_create_params", False, @@ -6907,6 +7148,10 @@ "stripe.params._invoice_add_lines_params", False, ), + "InvoiceAddLinesParamsLinePriceDataProductDataTaxDetails": ( + "stripe.params._invoice_add_lines_params", + False, + ), "InvoiceAddLinesParamsLinePricing": ( "stripe.params._invoice_add_lines_params", False, @@ -6972,6 +7217,18 @@ "stripe.params._invoice_create_params", False, ), + "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._invoice_create_params", + False, + ), + "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._invoice_create_params", + False, + ), + "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._invoice_create_params", + False, + ), "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._invoice_create_params", False, @@ -7240,6 +7497,10 @@ "stripe.params._invoice_create_preview_params", False, ), + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingCycleAnchor": ( + "stripe.params._invoice_create_preview_params", + False, + ), "InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode": ( "stripe.params._invoice_create_preview_params", False, @@ -7272,6 +7533,10 @@ "stripe.params._invoice_create_preview_params", False, ), + "InvoiceCreatePreviewParamsSubscriptionDetailsItemCurrentTrial": ( + "stripe.params._invoice_create_preview_params", + False, + ), "InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount": ( "stripe.params._invoice_create_preview_params", False, @@ -7284,6 +7549,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, + ), "InvoiceDeleteParams": ("stripe.params._invoice_delete_params", False), "InvoiceFinalizeInvoiceParams": ( "stripe.params._invoice_finalize_invoice_params", @@ -7389,6 +7670,10 @@ "stripe.params._invoice_line_item_update_params", False, ), + "InvoiceLineItemUpdateParamsPriceDataProductDataTaxDetails": ( + "stripe.params._invoice_line_item_update_params", + False, + ), "InvoiceLineItemUpdateParamsPricing": ( "stripe.params._invoice_line_item_update_params", False, @@ -7457,6 +7742,18 @@ "stripe.params._invoice_modify_params", False, ), + "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._invoice_modify_params", + False, + ), + "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._invoice_modify_params", + False, + ), + "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._invoice_modify_params", + False, + ), "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._invoice_modify_params", False, @@ -7640,6 +7937,10 @@ "stripe.params._invoice_update_lines_params", False, ), + "InvoiceUpdateLinesParamsLinePriceDataProductDataTaxDetails": ( + "stripe.params._invoice_update_lines_params", + False, + ), "InvoiceUpdateLinesParamsLinePricing": ( "stripe.params._invoice_update_lines_params", False, @@ -7697,6 +7998,18 @@ "stripe.params._invoice_update_params", False, ), + "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._invoice_update_params", + False, + ), + "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._invoice_update_params", + False, + ), + "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._invoice_update_params", + False, + ), "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._invoice_update_params", False, @@ -8142,6 +8455,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataPaypay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataPayto": ( "stripe.params._payment_intent_confirm_params", False, @@ -8178,6 +8495,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataSequra": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataSofort": ( "stripe.params._payment_intent_confirm_params", False, @@ -8266,6 +8587,14 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsBizum": ( "stripe.params._payment_intent_confirm_params", False, @@ -8274,6 +8603,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsBoleto": ( "stripe.params._payment_intent_confirm_params", False, @@ -8434,6 +8767,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsPaypay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsPayto": ( "stripe.params._payment_intent_confirm_params", False, @@ -8478,6 +8815,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsSequra": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsSofort": ( "stripe.params._payment_intent_confirm_params", False, @@ -8790,6 +9131,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataPaypay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataPayto": ( "stripe.params._payment_intent_create_params", False, @@ -8826,6 +9171,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataSequra": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataSofort": ( "stripe.params._payment_intent_create_params", False, @@ -8914,6 +9263,14 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsBizum": ( "stripe.params._payment_intent_create_params", False, @@ -8922,6 +9279,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsBoleto": ( "stripe.params._payment_intent_create_params", False, @@ -9082,6 +9443,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsPaypay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsPayto": ( "stripe.params._payment_intent_create_params", False, @@ -9126,6 +9491,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsSequra": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsSofort": ( "stripe.params._payment_intent_create_params", False, @@ -9502,6 +9871,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataPaypay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataPayto": ( "stripe.params._payment_intent_modify_params", False, @@ -9538,6 +9911,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataSequra": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataSofort": ( "stripe.params._payment_intent_modify_params", False, @@ -9626,6 +10003,14 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsBizum": ( "stripe.params._payment_intent_modify_params", False, @@ -9634,6 +10019,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsBoleto": ( "stripe.params._payment_intent_modify_params", False, @@ -9794,6 +10183,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsPaypay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsPayto": ( "stripe.params._payment_intent_modify_params", False, @@ -9838,6 +10231,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsSequra": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsSofort": ( "stripe.params._payment_intent_modify_params", False, @@ -10142,6 +10539,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataPaypay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataPayto": ( "stripe.params._payment_intent_update_params", False, @@ -10178,6 +10579,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataSequra": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataSofort": ( "stripe.params._payment_intent_update_params", False, @@ -10266,6 +10671,14 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsBizum": ( "stripe.params._payment_intent_update_params", False, @@ -10274,6 +10687,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsBoleto": ( "stripe.params._payment_intent_update_params", False, @@ -10434,6 +10851,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsPaypay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsPayto": ( "stripe.params._payment_intent_update_params", False, @@ -10478,6 +10899,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsSequra": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsSofort": ( "stripe.params._payment_intent_update_params", False, @@ -10662,6 +11087,10 @@ "stripe.params._payment_link_create_params", False, ), + "PaymentLinkCreateParamsLineItemPriceDataProductDataTaxDetails": ( + "stripe.params._payment_link_create_params", + False, + ), "PaymentLinkCreateParamsLineItemPriceDataRecurring": ( "stripe.params._payment_link_create_params", False, @@ -11506,6 +11935,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsPaypay": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsPaypayDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsPayto": ( "stripe.params._payment_method_configuration_create_params", False, @@ -11570,6 +12007,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsSequra": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsSequraDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsSofort": ( "stripe.params._payment_method_configuration_create_params", False, @@ -11994,6 +12439,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsPaypay": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsPaypayDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsPayto": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -12058,6 +12511,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsSequra": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsSequraDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsSofort": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -12482,6 +12943,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsPaypay": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsPayto": ( "stripe.params._payment_method_configuration_update_params", False, @@ -12546,6 +13015,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsSequra": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsSequraDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsSofort": ( "stripe.params._payment_method_configuration_update_params", False, @@ -12790,6 +13267,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsPaypay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsPayto": ( "stripe.params._payment_method_create_params", False, @@ -12826,6 +13307,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsSequra": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsSofort": ( "stripe.params._payment_method_create_params", False, @@ -12914,10 +13399,6 @@ "stripe.params._payment_method_modify_params", False, ), - "PaymentMethodModifyParamsPayto": ( - "stripe.params._payment_method_modify_params", - False, - ), "PaymentMethodModifyParamsUsBankAccount": ( "stripe.params._payment_method_modify_params", False, @@ -12946,10 +13427,6 @@ "stripe.params._payment_method_update_params", False, ), - "PaymentMethodUpdateParamsPayto": ( - "stripe.params._payment_method_update_params", - False, - ), "PaymentMethodUpdateParamsUsBankAccount": ( "stripe.params._payment_method_update_params", False, @@ -12990,6 +13467,10 @@ "stripe.params._payment_record_report_payment_attempt_params", False, ), + "PaymentRecordReportPaymentAttemptParamsCanceled": ( + "stripe.params._payment_record_report_payment_attempt_params", + False, + ), "PaymentRecordReportPaymentAttemptParamsFailed": ( "stripe.params._payment_record_report_payment_attempt_params", False, @@ -13030,6 +13511,10 @@ "stripe.params._payment_record_report_payment_params", False, ), + "PaymentRecordReportPaymentParamsCanceled": ( + "stripe.params._payment_record_report_payment_params", + False, + ), "PaymentRecordReportPaymentParamsCustomerDetails": ( "stripe.params._payment_record_report_payment_params", False, @@ -13112,6 +13597,10 @@ "PayoutUpdateParams": ("stripe.params._payout_update_params", False), "PlanCreateParams": ("stripe.params._plan_create_params", False), "PlanCreateParamsProduct": ("stripe.params._plan_create_params", False), + "PlanCreateParamsProductTaxDetails": ( + "stripe.params._plan_create_params", + False, + ), "PlanCreateParamsTier": ("stripe.params._plan_create_params", False), "PlanCreateParamsTransformUsage": ( "stripe.params._plan_create_params", @@ -13144,6 +13633,10 @@ "stripe.params._price_create_params", False, ), + "PriceCreateParamsProductDataTaxDetails": ( + "stripe.params._price_create_params", + False, + ), "PriceCreateParamsRecurring": ( "stripe.params._price_create_params", False, @@ -13221,6 +13714,10 @@ "stripe.params._product_create_params", False, ), + "ProductCreateParamsTaxDetails": ( + "stripe.params._product_create_params", + False, + ), "ProductDeleteFeatureParams": ( "stripe.params._product_delete_feature_params", False, @@ -13257,6 +13754,10 @@ "stripe.params._product_modify_params", False, ), + "ProductModifyParamsTaxDetails": ( + "stripe.params._product_modify_params", + False, + ), "ProductRetrieveFeatureParams": ( "stripe.params._product_retrieve_feature_params", False, @@ -13272,6 +13773,10 @@ "stripe.params._product_update_params", False, ), + "ProductUpdateParamsTaxDetails": ( + "stripe.params._product_update_params", + False, + ), "PromotionCodeCreateParams": ( "stripe.params._promotion_code_create_params", False, @@ -13702,6 +14207,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataPaypay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataPayto": ( "stripe.params._setup_intent_confirm_params", False, @@ -13738,6 +14247,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataSequra": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataSofort": ( "stripe.params._setup_intent_confirm_params", False, @@ -13802,6 +14315,14 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodOptionsBlik": ( + "stripe.params._setup_intent_confirm_params", + False, + ), + "SetupIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_confirm_params", False, @@ -14094,6 +14615,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataPaypay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataPayto": ( "stripe.params._setup_intent_create_params", False, @@ -14130,6 +14655,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataSequra": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataSofort": ( "stripe.params._setup_intent_create_params", False, @@ -14194,6 +14723,14 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodOptionsBlik": ( + "stripe.params._setup_intent_create_params", + False, + ), + "SetupIntentCreateParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_create_params", False, @@ -14478,6 +15015,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataPaypay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataPayto": ( "stripe.params._setup_intent_modify_params", False, @@ -14514,6 +15055,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataSequra": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataSofort": ( "stripe.params._setup_intent_modify_params", False, @@ -14578,6 +15123,14 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodOptionsBlik": ( + "stripe.params._setup_intent_modify_params", + False, + ), + "SetupIntentModifyParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_modify_params", False, @@ -14854,6 +15407,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataPaypay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataPayto": ( "stripe.params._setup_intent_update_params", False, @@ -14890,6 +15447,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataSequra": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataSofort": ( "stripe.params._setup_intent_update_params", False, @@ -14954,6 +15515,14 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodOptionsBlik": ( + "stripe.params._setup_intent_update_params", + False, + ), + "SetupIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodOptionsCard": ( "stripe.params._setup_intent_update_params", False, @@ -15351,6 +15920,10 @@ "stripe.params._subscription_create_params", False, ), + "SubscriptionCreateParamsItemCurrentTrial": ( + "stripe.params._subscription_create_params", + False, + ), "SubscriptionCreateParamsItemDiscount": ( "stripe.params._subscription_create_params", False, @@ -15387,6 +15960,22 @@ "stripe.params._subscription_create_params", False, ), + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._subscription_create_params", + False, + ), "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._subscription_create_params", False, @@ -15479,6 +16068,10 @@ "stripe.params._subscription_item_create_params", False, ), + "SubscriptionItemCreateParamsCurrentTrial": ( + "stripe.params._subscription_item_create_params", + False, + ), "SubscriptionItemCreateParamsDiscount": ( "stripe.params._subscription_item_create_params", False, @@ -15507,6 +16100,10 @@ "stripe.params._subscription_item_modify_params", False, ), + "SubscriptionItemModifyParamsCurrentTrial": ( + "stripe.params._subscription_item_modify_params", + False, + ), "SubscriptionItemModifyParamsDiscount": ( "stripe.params._subscription_item_modify_params", False, @@ -15531,6 +16128,10 @@ "stripe.params._subscription_item_update_params", False, ), + "SubscriptionItemUpdateParamsCurrentTrial": ( + "stripe.params._subscription_item_update_params", + False, + ), "SubscriptionItemUpdateParamsDiscount": ( "stripe.params._subscription_item_update_params", False, @@ -15611,6 +16212,10 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsBillingCycleAnchor": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsBillingSchedule": ( "stripe.params._subscription_modify_params", False, @@ -15659,6 +16264,10 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsItemCurrentTrial": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsItemDiscount": ( "stripe.params._subscription_modify_params", False, @@ -15699,6 +16308,22 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._subscription_modify_params", False, @@ -15779,10 +16404,30 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionPauseParams": ( + "stripe.params._subscription_pause_params", + False, + ), + "SubscriptionPauseParamsBillFor": ( + "stripe.params._subscription_pause_params", + False, + ), + "SubscriptionPauseParamsBillForOutstandingUsageThrough": ( + "stripe.params._subscription_pause_params", + False, + ), + "SubscriptionPauseParamsBillForUnusedTimeFrom": ( + "stripe.params._subscription_pause_params", + False, + ), "SubscriptionResumeParams": ( "stripe.params._subscription_resume_params", False, ), + "SubscriptionResumeParamsBillingCycleAnchor": ( + "stripe.params._subscription_resume_params", + False, + ), "SubscriptionRetrieveParams": ( "stripe.params._subscription_retrieve_params", False, @@ -15835,6 +16480,50 @@ "stripe.params._subscription_schedule_create_params", False, ), + "SubscriptionScheduleCreateParamsPauseSchedule": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseSchedulePause": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseSchedulePausePauseAt": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseSchedulePauseSettings": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillFor": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseScheduleResume": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAt": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAtDuration": ( + "stripe.params._subscription_schedule_create_params", + False, + ), + "SubscriptionScheduleCreateParamsPauseScheduleResumeSettings": ( + "stripe.params._subscription_schedule_create_params", + False, + ), "SubscriptionScheduleCreateParamsPhase": ( "stripe.params._subscription_schedule_create_params", False, @@ -15975,6 +16664,50 @@ "stripe.params._subscription_schedule_modify_params", False, ), + "SubscriptionScheduleModifyParamsPauseSchedule": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseSchedulePause": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseSchedulePausePauseAt": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseSchedulePauseSettings": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillFor": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseScheduleResume": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAt": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAtDuration": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), + "SubscriptionScheduleModifyParamsPauseScheduleResumeSettings": ( + "stripe.params._subscription_schedule_modify_params", + False, + ), "SubscriptionScheduleModifyParamsPhase": ( "stripe.params._subscription_schedule_modify_params", False, @@ -16103,6 +16836,50 @@ "stripe.params._subscription_schedule_update_params", False, ), + "SubscriptionScheduleUpdateParamsPauseSchedule": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseSchedulePause": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseSchedulePausePauseAt": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseSchedulePauseSettings": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillFor": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseScheduleResume": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAt": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAtDuration": ( + "stripe.params._subscription_schedule_update_params", + False, + ), + "SubscriptionScheduleUpdateParamsPauseScheduleResumeSettings": ( + "stripe.params._subscription_schedule_update_params", + False, + ), "SubscriptionScheduleUpdateParamsPhase": ( "stripe.params._subscription_schedule_update_params", False, @@ -16227,6 +17004,10 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsBillingCycleAnchor": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsBillingSchedule": ( "stripe.params._subscription_update_params", False, @@ -16275,6 +17056,10 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsItemCurrentTrial": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsItemDiscount": ( "stripe.params._subscription_update_params", False, @@ -16315,6 +17100,22 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._subscription_update_params", False, diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 80e129c0e..67a86174a 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -9,7 +9,7 @@ class AccountCreateParams(RequestOptions): account_token: NotRequired[str] """ - An [account token](https://api.stripe.com#create_account_token), used to securely provide details to the account. + An [account token](https://docs.stripe.com/api#create_account_token), used to securely provide details to the account. """ business_profile: NotRequired["AccountCreateParamsBusinessProfile"] """ @@ -142,6 +142,10 @@ class AccountCreateParamsBusinessProfile(TypedDict): """ Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes. """ + specified_commercial_transactions_act_url: NotRequired["Literal['']|str"] + """ + A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Used by the Checkout product and for Japanese payment methods. + """ support_address: NotRequired[ "AccountCreateParamsBusinessProfileSupportAddress" ] @@ -292,6 +296,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The blik_payments capability. """ + blik_recurring_payments: NotRequired[ + "AccountCreateParamsCapabilitiesBlikRecurringPayments" + ] + """ + The blik_recurring_payments capability. + """ boleto_payments: NotRequired[ "AccountCreateParamsCapabilitiesBoletoPayments" ] @@ -464,6 +474,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The paynow_payments capability. """ + paypay_payments: NotRequired[ + "AccountCreateParamsCapabilitiesPaypayPayments" + ] + """ + The paypay_payments capability. + """ payto_payments: NotRequired["AccountCreateParamsCapabilitiesPaytoPayments"] """ The payto_payments capability. @@ -514,6 +530,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The sepa_debit_payments capability. """ + sequra_payments: NotRequired[ + "AccountCreateParamsCapabilitiesSequraPayments" + ] + """ + The sequra_payments capability. + """ sofort_payments: NotRequired[ "AccountCreateParamsCapabilitiesSofortPayments" ] @@ -667,6 +689,13 @@ class AccountCreateParamsCapabilitiesBlikPayments(TypedDict): """ +class AccountCreateParamsCapabilitiesBlikRecurringPayments(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 AccountCreateParamsCapabilitiesBoletoPayments(TypedDict): requested: NotRequired[bool] """ @@ -891,6 +920,13 @@ class AccountCreateParamsCapabilitiesPaynowPayments(TypedDict): """ +class AccountCreateParamsCapabilitiesPaypayPayments(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 AccountCreateParamsCapabilitiesPaytoPayments(TypedDict): requested: NotRequired[bool] """ @@ -954,6 +990,13 @@ class AccountCreateParamsCapabilitiesSepaDebitPayments(TypedDict): """ +class AccountCreateParamsCapabilitiesSequraPayments(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 AccountCreateParamsCapabilitiesSofortPayments(TypedDict): requested: NotRequired[bool] """ @@ -1372,11 +1415,11 @@ class AccountCreateParamsCompanyVerification(TypedDict): class AccountCreateParamsCompanyVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ @@ -1472,49 +1515,49 @@ class AccountCreateParamsDocuments(TypedDict): class AccountCreateParamsDocumentsBankAccountOwnershipVerification(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountCreateParamsDocumentsCompanyLicense(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountCreateParamsDocumentsCompanyMemorandumOfAssociation(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountCreateParamsDocumentsCompanyMinisterialDecree(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountCreateParamsDocumentsCompanyRegistrationVerification(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountCreateParamsDocumentsCompanyTaxIdVerification(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountCreateParamsDocumentsProofOfAddress(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ @@ -1523,7 +1566,7 @@ class AccountCreateParamsDocumentsProofOfUltimateBeneficialOwnership( ): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ signer: NotRequired[ "AccountCreateParamsDocumentsProofOfUltimateBeneficialOwnershipSigner" @@ -1873,22 +1916,22 @@ class AccountCreateParamsIndividualVerification(TypedDict): class AccountCreateParamsIndividualVerificationAdditionalDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ class AccountCreateParamsIndividualVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ @@ -1923,6 +1966,16 @@ class AccountCreateParamsSettings(TypedDict): """ Settings specific to the account's payouts. """ + paypay_payments: NotRequired["AccountCreateParamsSettingsPaypayPayments"] + """ + Settings specific to the PayPay payments method. + """ + sepa_debit_payments: NotRequired[ + "AccountCreateParamsSettingsSepaDebitPayments" + ] + """ + Settings specific to SEPA Direct Debit payments. + """ treasury: NotRequired["AccountCreateParamsSettingsTreasury"] """ Settings specific to the account's Treasury FinancialAccounts. @@ -2088,6 +2141,75 @@ class AccountCreateParamsSettingsPayoutsSchedule(TypedDict): """ +class AccountCreateParamsSettingsPaypayPayments(TypedDict): + additional_files: NotRequired[List[str]] + """ + Additional files that are required to support the onboarding process of your business. + """ + goods_type: NotRequired[Literal["digital_content", "other"]] + """ + The type of goods your business sells. Use `digital_content` if you sell digital content. Use `other` for all other types of goods or services. + """ + site: NotRequired["AccountCreateParamsSettingsPaypayPaymentsSite"] + """ + Details regarding your business's website. + """ + + +class AccountCreateParamsSettingsPaypayPaymentsSite(TypedDict): + accessible: NotRequired[ + "AccountCreateParamsSettingsPaypayPaymentsSiteAccessible" + ] + """ + Additional information about your business's website. + """ + in_development: NotRequired[ + "AccountCreateParamsSettingsPaypayPaymentsSiteInDevelopment" + ] + """ + Additional information about your business's website. + """ + restricted: NotRequired[ + "AccountCreateParamsSettingsPaypayPaymentsSiteRestricted" + ] + """ + Additional information about your business's website. + """ + type: NotRequired[Literal["accessible", "in_development", "restricted"]] + """ + The status of your business's website. + """ + + +class AccountCreateParamsSettingsPaypayPaymentsSiteAccessible(TypedDict): + pass + + +class AccountCreateParamsSettingsPaypayPaymentsSiteInDevelopment(TypedDict): + password: str + """ + The password needed to access your business's website. + """ + username: NotRequired[str] + """ + The username needed to access your business's website. + """ + + +class AccountCreateParamsSettingsPaypayPaymentsSiteRestricted(TypedDict): + payment_flow_file: NotRequired[str] + """ + The file explaining the payment flow for your business. + """ + + +class AccountCreateParamsSettingsSepaDebitPayments(TypedDict): + creditor_id: NotRequired[str] + """ + The business creditor id for european payments. + """ + + class AccountCreateParamsSettingsTreasury(TypedDict): tos_acceptance: NotRequired[ "AccountCreateParamsSettingsTreasuryTosAcceptance" diff --git a/stripe/params/_account_create_person_params.py b/stripe/params/_account_create_person_params.py index bf931c4cc..740ce5f50 100644 --- a/stripe/params/_account_create_person_params.py +++ b/stripe/params/_account_create_person_params.py @@ -285,21 +285,21 @@ class AccountCreatePersonParamsDocuments(TypedDict): class AccountCreatePersonParamsDocumentsCompanyAuthorization(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountCreatePersonParamsDocumentsPassport(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountCreatePersonParamsDocumentsVisa(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ @@ -467,20 +467,20 @@ class AccountCreatePersonParamsVerification(TypedDict): class AccountCreatePersonParamsVerificationAdditionalDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ class AccountCreatePersonParamsVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ diff --git a/stripe/params/_account_external_account_update_params.py b/stripe/params/_account_external_account_update_params.py index 3149e110e..5dabbe5bd 100644 --- a/stripe/params/_account_external_account_update_params.py +++ b/stripe/params/_account_external_account_update_params.py @@ -92,5 +92,5 @@ class AccountExternalAccountUpdateParamsDocumentsBankAccountOwnershipVerificatio ): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ diff --git a/stripe/params/_account_modify_external_account_params.py b/stripe/params/_account_modify_external_account_params.py index 06184111d..e0e45d1fe 100644 --- a/stripe/params/_account_modify_external_account_params.py +++ b/stripe/params/_account_modify_external_account_params.py @@ -93,5 +93,5 @@ class AccountModifyExternalAccountParamsDocumentsBankAccountOwnershipVerificatio ): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ diff --git a/stripe/params/_account_modify_person_params.py b/stripe/params/_account_modify_person_params.py index 49bfd097c..d51aed0fd 100644 --- a/stripe/params/_account_modify_person_params.py +++ b/stripe/params/_account_modify_person_params.py @@ -285,21 +285,21 @@ class AccountModifyPersonParamsDocuments(TypedDict): class AccountModifyPersonParamsDocumentsCompanyAuthorization(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountModifyPersonParamsDocumentsPassport(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountModifyPersonParamsDocumentsVisa(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ @@ -467,20 +467,20 @@ class AccountModifyPersonParamsVerification(TypedDict): class AccountModifyPersonParamsVerificationAdditionalDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ class AccountModifyPersonParamsVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ diff --git a/stripe/params/_account_person_create_params.py b/stripe/params/_account_person_create_params.py index 04397606d..87b602ce9 100644 --- a/stripe/params/_account_person_create_params.py +++ b/stripe/params/_account_person_create_params.py @@ -284,21 +284,21 @@ class AccountPersonCreateParamsDocuments(TypedDict): class AccountPersonCreateParamsDocumentsCompanyAuthorization(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountPersonCreateParamsDocumentsPassport(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountPersonCreateParamsDocumentsVisa(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ @@ -466,20 +466,20 @@ class AccountPersonCreateParamsVerification(TypedDict): class AccountPersonCreateParamsVerificationAdditionalDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ class AccountPersonCreateParamsVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ diff --git a/stripe/params/_account_person_update_params.py b/stripe/params/_account_person_update_params.py index 5a00cb530..c8d5d94de 100644 --- a/stripe/params/_account_person_update_params.py +++ b/stripe/params/_account_person_update_params.py @@ -284,21 +284,21 @@ class AccountPersonUpdateParamsDocuments(TypedDict): class AccountPersonUpdateParamsDocumentsCompanyAuthorization(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountPersonUpdateParamsDocumentsPassport(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountPersonUpdateParamsDocumentsVisa(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ @@ -466,20 +466,20 @@ class AccountPersonUpdateParamsVerification(TypedDict): class AccountPersonUpdateParamsVerificationAdditionalDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ class AccountPersonUpdateParamsVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ diff --git a/stripe/params/_account_reject_params.py b/stripe/params/_account_reject_params.py index 4e1be3a1a..629e546fc 100644 --- a/stripe/params/_account_reject_params.py +++ b/stripe/params/_account_reject_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 @@ -14,7 +14,18 @@ class AccountRejectParams(RequestOptions): """ Whether to pause payouts on the account as part of the rejection. Defaults to `pause`. Use `none` to leave payouts enabled. """ - reason: str + reason: Union[ + Literal[ + "credit", + "fraud_no_intent_to_fulfill", + "fraud_other", + "fraud_payment_method_casher", + "fraud_payment_method_tester", + "other", + "terms_of_service", + ], + str, + ] """ - The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`. + The reason for rejecting the account. Can be `fraud_payment_method_casher`, `fraud_payment_method_tester`, `fraud_no_intent_to_fulfill`, `fraud_other`, `credit`, `terms_of_service`, or `other`. """ diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index be49da7ed..705dbb1f7 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -8,7 +8,7 @@ class AccountUpdateParams(TypedDict): account_token: NotRequired[str] """ - An [account token](https://api.stripe.com#create_account_token), used to securely provide details to the account. + An [account token](https://docs.stripe.com/api#create_account_token), used to securely provide details to the account. """ business_profile: NotRequired["AccountUpdateParamsBusinessProfile"] """ @@ -129,6 +129,10 @@ class AccountUpdateParamsBusinessProfile(TypedDict): """ Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes. """ + specified_commercial_transactions_act_url: NotRequired["Literal['']|str"] + """ + A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan. + """ support_address: NotRequired[ "AccountUpdateParamsBusinessProfileSupportAddress" ] @@ -279,6 +283,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The blik_payments capability. """ + blik_recurring_payments: NotRequired[ + "AccountUpdateParamsCapabilitiesBlikRecurringPayments" + ] + """ + The blik_recurring_payments capability. + """ boleto_payments: NotRequired[ "AccountUpdateParamsCapabilitiesBoletoPayments" ] @@ -451,6 +461,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The paynow_payments capability. """ + paypay_payments: NotRequired[ + "AccountUpdateParamsCapabilitiesPaypayPayments" + ] + """ + The paypay_payments capability. + """ payto_payments: NotRequired["AccountUpdateParamsCapabilitiesPaytoPayments"] """ The payto_payments capability. @@ -501,6 +517,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The sepa_debit_payments capability. """ + sequra_payments: NotRequired[ + "AccountUpdateParamsCapabilitiesSequraPayments" + ] + """ + The sequra_payments capability. + """ sofort_payments: NotRequired[ "AccountUpdateParamsCapabilitiesSofortPayments" ] @@ -654,6 +676,13 @@ class AccountUpdateParamsCapabilitiesBlikPayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesBlikRecurringPayments(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 AccountUpdateParamsCapabilitiesBoletoPayments(TypedDict): requested: NotRequired[bool] """ @@ -878,6 +907,13 @@ class AccountUpdateParamsCapabilitiesPaynowPayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesPaypayPayments(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 AccountUpdateParamsCapabilitiesPaytoPayments(TypedDict): requested: NotRequired[bool] """ @@ -941,6 +977,13 @@ class AccountUpdateParamsCapabilitiesSepaDebitPayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesSequraPayments(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 AccountUpdateParamsCapabilitiesSofortPayments(TypedDict): requested: NotRequired[bool] """ @@ -1356,11 +1399,11 @@ class AccountUpdateParamsCompanyVerification(TypedDict): class AccountUpdateParamsCompanyVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ @@ -1420,56 +1463,56 @@ class AccountUpdateParamsDocuments(TypedDict): class AccountUpdateParamsDocumentsBankAccountOwnershipVerification(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountUpdateParamsDocumentsCompanyLicense(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountUpdateParamsDocumentsCompanyMemorandumOfAssociation(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountUpdateParamsDocumentsCompanyMinisterialDecree(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountUpdateParamsDocumentsCompanyRegistrationVerification(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountUpdateParamsDocumentsCompanyTaxIdVerification(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountUpdateParamsDocumentsProofOfAddress(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class AccountUpdateParamsDocumentsProofOfRegistration(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ signer: NotRequired[ "AccountUpdateParamsDocumentsProofOfRegistrationSigner" @@ -1491,7 +1534,7 @@ class AccountUpdateParamsDocumentsProofOfUltimateBeneficialOwnership( ): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ signer: NotRequired[ "AccountUpdateParamsDocumentsProofOfUltimateBeneficialOwnershipSigner" @@ -1841,22 +1884,22 @@ class AccountUpdateParamsIndividualVerification(TypedDict): class AccountUpdateParamsIndividualVerificationAdditionalDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ class AccountUpdateParamsIndividualVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ @@ -1891,6 +1934,10 @@ class AccountUpdateParamsSettings(TypedDict): """ Settings specific to the account's payouts. """ + paypay_payments: NotRequired["AccountUpdateParamsSettingsPaypayPayments"] + """ + Settings specific to the PayPay payments method. + """ sepa_debit_payments: NotRequired[ "AccountUpdateParamsSettingsSepaDebitPayments" ] @@ -2066,6 +2113,68 @@ class AccountUpdateParamsSettingsPayoutsSchedule(TypedDict): """ +class AccountUpdateParamsSettingsPaypayPayments(TypedDict): + additional_files: NotRequired[List[str]] + """ + Additional files that are required to support the onboarding process of your business. + """ + goods_type: NotRequired[Literal["digital_content", "other"]] + """ + The type of goods your business sells. Use `digital_content` if you sell digital content. Use `other` for all other types of goods or services. + """ + site: NotRequired["AccountUpdateParamsSettingsPaypayPaymentsSite"] + """ + Details regarding your business's website. + """ + + +class AccountUpdateParamsSettingsPaypayPaymentsSite(TypedDict): + accessible: NotRequired[ + "AccountUpdateParamsSettingsPaypayPaymentsSiteAccessible" + ] + """ + Additional information about your business's website. + """ + in_development: NotRequired[ + "AccountUpdateParamsSettingsPaypayPaymentsSiteInDevelopment" + ] + """ + Additional information about your business's website. + """ + restricted: NotRequired[ + "AccountUpdateParamsSettingsPaypayPaymentsSiteRestricted" + ] + """ + Additional information about your business's website. + """ + type: NotRequired[Literal["accessible", "in_development", "restricted"]] + """ + The status of your business's website. + """ + + +class AccountUpdateParamsSettingsPaypayPaymentsSiteAccessible(TypedDict): + pass + + +class AccountUpdateParamsSettingsPaypayPaymentsSiteInDevelopment(TypedDict): + password: str + """ + The password needed to access your business's website. + """ + username: NotRequired[str] + """ + The username needed to access your business's website. + """ + + +class AccountUpdateParamsSettingsPaypayPaymentsSiteRestricted(TypedDict): + payment_flow_file: NotRequired[str] + """ + The file explaining the payment flow for your business. + """ + + class AccountUpdateParamsSettingsSepaDebitPayments(TypedDict): creditor_id: NotRequired[str] """ diff --git a/stripe/params/_balance_transaction_list_params.py b/stripe/params/_balance_transaction_list_params.py index 04d0554ca..3f7cced0b 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: `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`. + 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_dispute_provisional_credit`, `issuing_dispute_provisional_credit_reversal`, `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/_charge_create_params.py b/stripe/params/_charge_create_params.py index 6d5b58deb..cfa3e339b 100644 --- a/stripe/params/_charge_create_params.py +++ b/stripe/params/_charge_create_params.py @@ -18,7 +18,7 @@ class ChargeCreateParams(RequestOptions): """ capture: NotRequired[bool] """ - Whether to immediately capture the charge. Defaults to `true`. When `false`, the charge issues an authorization (or pre-authorization), and will need to be [captured](https://api.stripe.com#capture_charge) later. Uncaptured charges expire after a set number of days (7 by default). For more information, see the [authorizing charges and settling later](https://docs.stripe.com/charges/placing-a-hold) documentation. + Whether to immediately capture the charge. Defaults to `true`. When `false`, the charge issues an authorization (or pre-authorization), and will need to be [captured](https://docs.stripe.com/api#capture_charge) later. Uncaptured charges expire after a set number of days (7 by default). For more information, see the [authorizing charges and settling later](https://docs.stripe.com/charges/placing-a-hold) documentation. """ currency: NotRequired[str] """ diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index f92a01130..44c01682d 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -72,13 +72,13 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ alma: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit" @@ -250,6 +250,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -300,6 +304,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -355,6 +363,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -363,6 +372,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -727,6 +737,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataPaypal(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataPaypay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -780,6 +794,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataSequra(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ diff --git a/stripe/params/_customer_create_params.py b/stripe/params/_customer_create_params.py index 7903ff669..47ee9ecd3 100644 --- a/stripe/params/_customer_create_params.py +++ b/stripe/params/_customer_create_params.py @@ -41,7 +41,7 @@ class CustomerCreateParams(RequestOptions): """ invoice_prefix: NotRequired[str] """ - The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers. + The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase letters or numbers. """ invoice_settings: NotRequired["CustomerCreateParamsInvoiceSettings"] """ diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py index dd149493a..4360de5fe 100644 --- a/stripe/params/_customer_list_payment_methods_params.py +++ b/stripe/params/_customer_list_payment_methods_params.py @@ -29,7 +29,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', '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']|str" + "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']|str" ] """ An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. diff --git a/stripe/params/_customer_modify_params.py b/stripe/params/_customer_modify_params.py index 31190633c..49ce2e0d1 100644 --- a/stripe/params/_customer_modify_params.py +++ b/stripe/params/_customer_modify_params.py @@ -49,7 +49,7 @@ class CustomerModifyParams(RequestOptions): """ invoice_prefix: NotRequired[str] """ - The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers. + The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase letters or numbers. """ invoice_settings: NotRequired["CustomerModifyParamsInvoiceSettings"] """ diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py index e47585fa8..a0116a97c 100644 --- a/stripe/params/_customer_payment_method_list_params.py +++ b/stripe/params/_customer_payment_method_list_params.py @@ -28,7 +28,7 @@ class CustomerPaymentMethodListParams(TypedDict): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', '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']|str" + "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']|str" ] """ An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. diff --git a/stripe/params/_customer_update_params.py b/stripe/params/_customer_update_params.py index 779fa949a..a07528cfe 100644 --- a/stripe/params/_customer_update_params.py +++ b/stripe/params/_customer_update_params.py @@ -48,7 +48,7 @@ class CustomerUpdateParams(TypedDict): """ invoice_prefix: NotRequired[str] """ - The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers. + The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase letters or numbers. """ invoice_settings: NotRequired["CustomerUpdateParamsInvoiceSettings"] """ diff --git a/stripe/params/_file_create_params.py b/stripe/params/_file_create_params.py index 9105b6868..0e03f42de 100644 --- a/stripe/params/_file_create_params.py +++ b/stripe/params/_file_create_params.py @@ -17,7 +17,7 @@ class FileCreateParams(RequestOptions): """ file_link_data: NotRequired["FileCreateParamsFileLinkData"] """ - Optional parameters that automatically create a [file link](https://api.stripe.com#file_links) for the newly created file. + Optional parameters that automatically create a [file link](https://docs.stripe.com/api#file_links) for the newly created file. """ purpose: Union[ Literal[ diff --git a/stripe/params/_invoice_add_lines_params.py b/stripe/params/_invoice_add_lines_params.py index 2f85fb150..e7cde9cf0 100644 --- a/stripe/params/_invoice_add_lines_params.py +++ b/stripe/params/_invoice_add_lines_params.py @@ -161,12 +161,29 @@ class InvoiceAddLinesParamsLinePriceDataProductData(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired[ + "InvoiceAddLinesParamsLinePriceDataProductDataTaxDetails" + ] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class InvoiceAddLinesParamsLinePriceDataProductDataTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class InvoiceAddLinesParamsLinePricing(TypedDict): price: NotRequired[str] """ @@ -233,7 +250,7 @@ class InvoiceAddLinesParamsLineTaxAmountTaxRateData(TypedDict): [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. """ tax_type: NotRequired[ - "Literal['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']|str" + "Literal['amusement_tax', 'communications_tax', 'digital_excise_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'utility_users_tax', 'vat']|str" ] """ The high-level tax type, such as `vat` or `sales_tax`. diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index 8f5be0c51..ba1653ed9 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -125,7 +125,7 @@ class InvoiceCreateParams(RequestOptions): """ rendering: NotRequired["InvoiceCreateParamsRendering"] """ - The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. + The rendering-related settings that control how invoices render in customer-facing interfaces such as the PDF or hosted invoice page. """ shipping_cost: NotRequired["InvoiceCreateParamsShippingCost"] """ @@ -231,7 +231,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -257,6 +257,12 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -343,6 +349,77 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact( class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillie(TypedDict): + company_details: NotRequired[ + "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + reference: NotRequired[str] + """ + An identifier or reference that this payment corresponds to. + """ + + +class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT ID number. + """ + + +class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (for example, street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (for example, apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik(TypedDict): pass diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index 5fc28ab6c..de5d02ab1 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -989,7 +989,9 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData(TypedDict): class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict): - billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str|int"] + billing_cycle_anchor: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsBillingCycleAnchor" + ] """ For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set to `now` or `unchanged`. """ @@ -1035,6 +1037,14 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict): """ 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`. """ + 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. + """ proration_behavior: NotRequired[ "Literal['always_invoice', 'create_prorations', 'none']|str" ] @@ -1059,6 +1069,19 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict): """ +class InvoiceCreatePreviewParamsSubscriptionDetailsBillingCycleAnchor( + TypedDict, +): + timestamp: NotRequired[int] + """ + A timestamp to use as the subscription's billing cycle anchor. Only valid when `type` is `timestamp`. + """ + type: Union[Literal["now", "timestamp", "unchanged"], str] + """ + Determines how the subscription's billing cycle anchor behaves for the invoice preview. + """ + + class InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode(TypedDict): flexible: NotRequired[ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible" @@ -1158,6 +1181,12 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItem(TypedDict): """ Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ + current_trial: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsItemCurrentTrial" + ] + """ + The trial offer to apply to this subscription item. + """ deleted: NotRequired[bool] """ A flag that, if set to `true`, will delete the specified item. @@ -1184,13 +1213,13 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired[ "InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData" ] """ - Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required. + Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. """ quantity: NotRequired[int] """ @@ -1211,6 +1240,13 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds( """ +class InvoiceCreatePreviewParamsSubscriptionDetailsItemCurrentTrial(TypedDict): + trial_offer: str + """ + The ID of the trial offer to apply to the subscription item. + """ + + class InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount(TypedDict): coupon: NotRequired[str] """ @@ -1268,3 +1304,55 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring( """ The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsPause(TypedDict): + bill_for: NotRequired[ + "InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor" + ] + """ + Controls what to bill for when pausing the subscription. + """ + invoicing_behavior: NotRequired[ + "Literal['invoice', 'pending_invoice_item']|str" + ] + """ + Determines how to handle debits and credits when pausing. Defaults to `pending_invoice_item`. + """ + type: NotRequired["Literal['subscription']|str"] + """ + 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: Union[Literal["none", "now"], str] + """ + When to bill metered usage in the current period. + """ + + +class InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom( + TypedDict, +): + type: Union[Literal["item_current_period_start", "none", "now"], str] + """ + When to credit for unused time. + """ diff --git a/stripe/params/_invoice_item_modify_params.py b/stripe/params/_invoice_item_modify_params.py index fbf797986..d3062a1af 100644 --- a/stripe/params/_invoice_item_modify_params.py +++ b/stripe/params/_invoice_item_modify_params.py @@ -28,6 +28,10 @@ class InvoiceItemModifyParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ + invoicing_rules: NotRequired[Literal[""]] + """ + Pass an empty string to remove previously-defined invoicing rules. Setting invoicing rules is not supported. + """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" ] diff --git a/stripe/params/_invoice_item_update_params.py b/stripe/params/_invoice_item_update_params.py index efd676c51..19c1dc7c6 100644 --- a/stripe/params/_invoice_item_update_params.py +++ b/stripe/params/_invoice_item_update_params.py @@ -27,6 +27,10 @@ class InvoiceItemUpdateParams(TypedDict): """ Specifies which fields in the response should be expanded. """ + invoicing_rules: NotRequired[Literal[""]] + """ + Pass an empty string to remove previously-defined invoicing rules. Setting invoicing rules is not supported. + """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" ] diff --git a/stripe/params/_invoice_line_item_update_params.py b/stripe/params/_invoice_line_item_update_params.py index 193400666..a6098e2d6 100644 --- a/stripe/params/_invoice_line_item_update_params.py +++ b/stripe/params/_invoice_line_item_update_params.py @@ -145,12 +145,29 @@ class InvoiceLineItemUpdateParamsPriceDataProductData(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired[ + "InvoiceLineItemUpdateParamsPriceDataProductDataTaxDetails" + ] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class InvoiceLineItemUpdateParamsPriceDataProductDataTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class InvoiceLineItemUpdateParamsPricing(TypedDict): price: NotRequired[str] """ @@ -217,7 +234,7 @@ class InvoiceLineItemUpdateParamsTaxAmountTaxRateData(TypedDict): [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. """ tax_type: NotRequired[ - "Literal['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']|str" + "Literal['amusement_tax', 'communications_tax', 'digital_excise_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'utility_users_tax', 'vat']|str" ] """ The high-level tax type, such as `vat` or `sales_tax`. diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index a30012902..264a99804 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -103,7 +103,7 @@ class InvoiceModifyParams(RequestOptions): """ rendering: NotRequired["InvoiceModifyParamsRendering"] """ - The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. + The rendering-related settings that control how invoices render in customer-facing interfaces such as the PDF or hosted invoice page. """ shipping_cost: NotRequired["Literal['']|InvoiceModifyParamsShippingCost"] """ @@ -196,7 +196,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -222,6 +222,12 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -308,6 +314,77 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact( class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillie(TypedDict): + company_details: NotRequired[ + "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + reference: NotRequired[str] + """ + An identifier or reference that this payment corresponds to. + """ + + +class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT ID number. + """ + + +class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (for example, street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (for example, apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik(TypedDict): pass diff --git a/stripe/params/_invoice_update_lines_params.py b/stripe/params/_invoice_update_lines_params.py index 23184d47b..425698693 100644 --- a/stripe/params/_invoice_update_lines_params.py +++ b/stripe/params/_invoice_update_lines_params.py @@ -163,12 +163,29 @@ class InvoiceUpdateLinesParamsLinePriceDataProductData(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired[ + "InvoiceUpdateLinesParamsLinePriceDataProductDataTaxDetails" + ] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class InvoiceUpdateLinesParamsLinePriceDataProductDataTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class InvoiceUpdateLinesParamsLinePricing(TypedDict): price: NotRequired[str] """ @@ -235,7 +252,7 @@ class InvoiceUpdateLinesParamsLineTaxAmountTaxRateData(TypedDict): [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. """ tax_type: NotRequired[ - "Literal['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']|str" + "Literal['amusement_tax', 'communications_tax', 'digital_excise_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'utility_users_tax', 'vat']|str" ] """ The high-level tax type, such as `vat` or `sales_tax`. diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index 9917c3eb0..36c819ed2 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -102,7 +102,7 @@ class InvoiceUpdateParams(TypedDict): """ rendering: NotRequired["InvoiceUpdateParamsRendering"] """ - The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. + The rendering-related settings that control how invoices render in customer-facing interfaces such as the PDF or hosted invoice page. """ shipping_cost: NotRequired["Literal['']|InvoiceUpdateParamsShippingCost"] """ @@ -195,7 +195,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -221,6 +221,12 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -307,6 +313,77 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact( class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillie(TypedDict): + company_details: NotRequired[ + "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + reference: NotRequired[str] + """ + An identifier or reference that this payment corresponds to. + """ + + +class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT ID number. + """ + + +class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (for example, street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (for example, apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik(TypedDict): pass diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 34ad18d3a..738a404a7 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -27,6 +27,7 @@ class PaymentIntentConfirmParams(RequestOptions): "boleto", "capchase_pay", "card", + "card_present", "cashapp", "check_scan", "click_to_pay", @@ -47,6 +48,7 @@ class PaymentIntentConfirmParams(RequestOptions): "grabpay", "id_bank_transfer", "ideal", + "interac_present", "kakao_pay", "klarna", "knet", @@ -143,7 +145,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[Union[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'], str]]" + "Literal['']|List[Union[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', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -176,7 +178,7 @@ class PaymentIntentConfirmParams(RequestOptions): payment_method: NotRequired[str] """ ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. - If the payment method is attached to a Customer, it must match the [customer](https://api.stripe.com#create_payment_intent-customer) that is set on this PaymentIntent. + If the payment method is attached to a Customer, it must match the [customer](https://docs.stripe.com/api#create_payment_intent-customer) that is set on this PaymentIntent. """ payment_method_data: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodData" @@ -192,10 +194,6 @@ class PaymentIntentConfirmParams(RequestOptions): """ Payment method-specific configuration for this PaymentIntent. """ - payment_method_types: NotRequired[List[str]] - """ - The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). - """ radar_options: NotRequired["PaymentIntentConfirmParamsRadarOptions"] """ Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session). @@ -542,13 +540,13 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ alma: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit" @@ -710,6 +708,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -760,6 +762,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -815,6 +821,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -823,6 +830,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -1185,6 +1193,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataPaypal(TypedDict): pass +class PaymentIntentConfirmParamsPaymentMethodDataPaypay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -1238,6 +1250,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodDataSequra(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ @@ -1557,6 +1573,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. """ + paypay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaypay" + ] + """ + If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + """ payto: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayto" ] @@ -1605,6 +1627,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. """ + sequra: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSequra" + ] + """ + If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options. + """ sofort: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSofort" ] @@ -1908,6 +1936,74 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(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. """ + company_details: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + reference: NotRequired[str] + """ + An identifier or reference that this payment corresponds to. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT id number + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ class PaymentIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): @@ -1919,7 +2015,15 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ - setup_future_usage: NotRequired["Literal['']|Literal['none']"] + mandate_options: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Details of the BLIK mandate + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']|str" + ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1933,6 +2037,15 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_at: NotRequired[int] + """ + Expiry date of the mandate. + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired[int] """ @@ -2874,6 +2987,10 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPaypal(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsPaypay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodOptionsPayto(TypedDict): mandate_options: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions" @@ -3129,6 +3246,29 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions( """ +class PaymentIntentConfirmParamsPaymentMethodOptionsSequra(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). + + If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ "Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']|str" @@ -3365,7 +3505,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay(TypedDict): """ The client type that the end customer will pay from """ - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired["Literal['none']|str"] """ 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 551cc20aa..415047d03 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -27,6 +27,7 @@ class PaymentIntentCreateParams(RequestOptions): "boleto", "capchase_pay", "card", + "card_present", "cashapp", "check_scan", "click_to_pay", @@ -47,6 +48,7 @@ class PaymentIntentCreateParams(RequestOptions): "grabpay", "id_bank_transfer", "ideal", + "interac_present", "kakao_pay", "klarna", "knet", @@ -164,7 +166,7 @@ class PaymentIntentCreateParams(RequestOptions): Payment methods attached to other Customers cannot be used with this PaymentIntent. - If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. + If [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. """ customer_account: NotRequired[str] """ @@ -172,7 +174,7 @@ class PaymentIntentCreateParams(RequestOptions): Payment methods attached to other Accounts cannot be used with this PaymentIntent. - If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead. + If [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead. """ description: NotRequired[str] """ @@ -223,6 +225,7 @@ class PaymentIntentCreateParams(RequestOptions): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -231,6 +234,7 @@ class PaymentIntentCreateParams(RequestOptions): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -286,7 +290,7 @@ class PaymentIntentCreateParams(RequestOptions): ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods#compatibility) object) to attach to this PaymentIntent. If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward. - If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://api.stripe.com#create_payment_intent-customer) parameter of this PaymentIntent. + If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://docs.stripe.com/api#create_payment_intent-customer) parameter of this PaymentIntent. end """ payment_method_configuration: NotRequired[str] @@ -307,10 +311,6 @@ class PaymentIntentCreateParams(RequestOptions): """ Payment method-specific configuration for this PaymentIntent. """ - payment_method_types: NotRequired[List[str]] - """ - The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). - """ radar_options: NotRequired["PaymentIntentCreateParamsRadarOptions"] """ Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session). @@ -681,13 +681,13 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ alma: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit" @@ -849,6 +849,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -895,6 +899,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -950,6 +958,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -958,6 +967,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -1320,6 +1330,10 @@ class PaymentIntentCreateParamsPaymentMethodDataPaypal(TypedDict): pass +class PaymentIntentCreateParamsPaymentMethodDataPaypay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -1373,6 +1387,10 @@ class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodDataSequra(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ @@ -1692,6 +1710,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. """ + paypay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypay" + ] + """ + If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + """ payto: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayto" ] @@ -1740,6 +1764,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. """ + sequra: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSequra" + ] + """ + If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options. + """ sofort: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSofort" ] @@ -2041,6 +2071,74 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBillie(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. """ + company_details: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + reference: NotRequired[str] + """ + An identifier or reference that this payment corresponds to. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT id number + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ class PaymentIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): @@ -2052,7 +2150,15 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ - setup_future_usage: NotRequired["Literal['']|Literal['none']"] + mandate_options: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Details of the BLIK mandate + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']|str" + ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2066,6 +2172,15 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_at: NotRequired[int] + """ + Expiry date of the mandate. + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired[int] """ @@ -3003,6 +3118,10 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPaypal(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsPaypay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodOptionsPayto(TypedDict): mandate_options: NotRequired[ "PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions" @@ -3258,6 +3377,29 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions( """ +class PaymentIntentCreateParamsPaymentMethodOptionsSequra(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). + + If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ "Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']|str" @@ -3494,7 +3636,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsWechatPay(TypedDict): """ The client type that the end customer will pay from """ - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired["Literal['none']|str"] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index a245fb194..b6b7a2362 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -27,6 +27,7 @@ class PaymentIntentModifyParams(RequestOptions): "boleto", "capchase_pay", "card", + "card_present", "cashapp", "check_scan", "click_to_pay", @@ -47,6 +48,7 @@ class PaymentIntentModifyParams(RequestOptions): "grabpay", "id_bank_transfer", "ideal", + "interac_present", "kakao_pay", "klarna", "knet", @@ -146,7 +148,7 @@ class PaymentIntentModifyParams(RequestOptions): Payment methods attached to other Customers cannot be used with this PaymentIntent. - If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. + If [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. """ customer_account: NotRequired[str] """ @@ -154,14 +156,14 @@ class PaymentIntentModifyParams(RequestOptions): Payment methods attached to other Accounts cannot be used with this PaymentIntent. - If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead. + If [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead. """ description: NotRequired[str] """ An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[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'], str]]" + "Literal['']|List[Union[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', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -208,10 +210,6 @@ class PaymentIntentModifyParams(RequestOptions): """ Payment-method-specific configuration for this PaymentIntent. """ - payment_method_types: NotRequired[List[str]] - """ - The list of payment method types (for example, card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). - """ receipt_email: NotRequired["Literal['']|str"] """ 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). @@ -513,13 +511,13 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ alma: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit" @@ -681,6 +679,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -727,6 +729,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -782,6 +788,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -790,6 +797,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -1152,6 +1160,10 @@ class PaymentIntentModifyParamsPaymentMethodDataPaypal(TypedDict): pass +class PaymentIntentModifyParamsPaymentMethodDataPaypay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -1205,6 +1217,10 @@ class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodDataSequra(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ @@ -1524,6 +1540,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. """ + paypay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaypay" + ] + """ + If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + """ payto: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayto" ] @@ -1572,6 +1594,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. """ + sequra: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSequra" + ] + """ + If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options. + """ sofort: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSofort" ] @@ -1873,6 +1901,74 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBillie(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. """ + company_details: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + reference: NotRequired[str] + """ + An identifier or reference that this payment corresponds to. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT id number + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ class PaymentIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): @@ -1884,7 +1980,15 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ - setup_future_usage: NotRequired["Literal['']|Literal['none']"] + mandate_options: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Details of the BLIK mandate + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']|str" + ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1898,6 +2002,15 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_at: NotRequired[int] + """ + Expiry date of the mandate. + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired[int] """ @@ -2835,6 +2948,10 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPaypal(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsPaypay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodOptionsPayto(TypedDict): mandate_options: NotRequired[ "PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions" @@ -3090,6 +3207,29 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions( """ +class PaymentIntentModifyParamsPaymentMethodOptionsSequra(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). + + If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ "Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']|str" @@ -3326,7 +3466,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsWechatPay(TypedDict): """ The client type that the end customer will pay from """ - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired["Literal['none']|str"] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index cd3c5cf6e..7400f1e0f 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -26,6 +26,7 @@ class PaymentIntentUpdateParams(TypedDict): "boleto", "capchase_pay", "card", + "card_present", "cashapp", "check_scan", "click_to_pay", @@ -46,6 +47,7 @@ class PaymentIntentUpdateParams(TypedDict): "grabpay", "id_bank_transfer", "ideal", + "interac_present", "kakao_pay", "klarna", "knet", @@ -145,7 +147,7 @@ class PaymentIntentUpdateParams(TypedDict): Payment methods attached to other Customers cannot be used with this PaymentIntent. - If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. + If [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. """ customer_account: NotRequired[str] """ @@ -153,14 +155,14 @@ class PaymentIntentUpdateParams(TypedDict): Payment methods attached to other Accounts cannot be used with this PaymentIntent. - If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead. + If [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead. """ description: NotRequired[str] """ An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[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'], str]]" + "Literal['']|List[Union[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', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -207,10 +209,6 @@ class PaymentIntentUpdateParams(TypedDict): """ Payment-method-specific configuration for this PaymentIntent. """ - payment_method_types: NotRequired[List[str]] - """ - The list of payment method types (for example, card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). - """ receipt_email: NotRequired["Literal['']|str"] """ 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). @@ -512,13 +510,13 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ alma: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit" @@ -680,6 +678,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -726,6 +728,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -781,6 +787,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -789,6 +796,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -1151,6 +1159,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataPaypal(TypedDict): pass +class PaymentIntentUpdateParamsPaymentMethodDataPaypay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -1204,6 +1216,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodDataSequra(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ @@ -1523,6 +1539,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. """ + paypay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaypay" + ] + """ + If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + """ payto: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayto" ] @@ -1571,6 +1593,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. """ + sequra: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSequra" + ] + """ + If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options. + """ sofort: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSofort" ] @@ -1872,6 +1900,74 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(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. """ + company_details: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + reference: NotRequired[str] + """ + An identifier or reference that this payment corresponds to. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT id number + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ class PaymentIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): @@ -1883,7 +1979,15 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): """ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. """ - setup_future_usage: NotRequired["Literal['']|Literal['none']"] + mandate_options: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Details of the BLIK mandate + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']|str" + ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1897,6 +2001,15 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_at: NotRequired[int] + """ + Expiry date of the mandate. + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired[int] """ @@ -2834,6 +2947,10 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPaypal(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsPaypay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodOptionsPayto(TypedDict): mandate_options: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions" @@ -3089,6 +3206,29 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions( """ +class PaymentIntentUpdateParamsPaymentMethodOptionsSequra(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). + + If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsSofort(TypedDict): preferred_language: NotRequired[ "Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']|str" @@ -3325,7 +3465,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay(TypedDict): """ The client type that the end customer will pay from """ - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired["Literal['none']|str"] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index fff786069..282042bca 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -145,11 +145,13 @@ class PaymentLinkCreateParams(RequestOptions): "pay_by_bank", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", "satispay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -351,7 +353,7 @@ class PaymentLinkCreateParamsCustomFieldDropdownOption(TypedDict): class PaymentLinkCreateParamsCustomFieldLabel(TypedDict): custom: str """ - Custom text for the label, displayed to the customer. Up to 50 characters. + Custom text for the label, displayed to the customer. Up to 100 characters. """ type: Literal["custom"] """ @@ -623,12 +625,29 @@ class PaymentLinkCreateParamsLineItemPriceDataProductData(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired[ + "PaymentLinkCreateParamsLineItemPriceDataProductDataTaxDetails" + ] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class PaymentLinkCreateParamsLineItemPriceDataProductDataTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class PaymentLinkCreateParamsLineItemPriceDataRecurring(TypedDict): interval: Union[Literal["day", "month", "week", "year"], str] """ diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py index a4f6b479e..96f26750d 100644 --- a/stripe/params/_payment_link_modify_params.py +++ b/stripe/params/_payment_link_modify_params.py @@ -114,7 +114,7 @@ class PaymentLinkModifyParams(RequestOptions): Payment-method-specific configuration. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[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'], str]]" + "Literal['']|List[Union[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', 'paypay', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ 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). @@ -308,7 +308,7 @@ class PaymentLinkModifyParamsCustomFieldDropdownOption(TypedDict): class PaymentLinkModifyParamsCustomFieldLabel(TypedDict): custom: str """ - Custom text for the label, displayed to the customer. Up to 50 characters. + Custom text for the label, displayed to the customer. Up to 100 characters. """ type: Literal["custom"] """ diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py index 4a3d7b329..85556d0ff 100644 --- a/stripe/params/_payment_link_update_params.py +++ b/stripe/params/_payment_link_update_params.py @@ -113,7 +113,7 @@ class PaymentLinkUpdateParams(TypedDict): Payment-method-specific configuration. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[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'], str]]" + "Literal['']|List[Union[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', 'paypay', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ 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). @@ -307,7 +307,7 @@ class PaymentLinkUpdateParamsCustomFieldDropdownOption(TypedDict): class PaymentLinkUpdateParamsCustomFieldLabel(TypedDict): custom: str """ - Custom text for the label, displayed to the customer. Up to 50 characters. + Custom text for the label, displayed to the customer. Up to 100 characters. """ type: Literal["custom"] """ diff --git a/stripe/params/_payment_method_configuration_create_params.py b/stripe/params/_payment_method_configuration_create_params.py index cb5cd1b16..d5ef3d5cf 100644 --- a/stripe/params/_payment_method_configuration_create_params.py +++ b/stripe/params/_payment_method_configuration_create_params.py @@ -208,6 +208,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details. """ + paypay: NotRequired["PaymentMethodConfigurationCreateParamsPaypay"] + """ + Customers can pay with PayPay online or using the PayPay app. + """ payto: NotRequired["PaymentMethodConfigurationCreateParamsPayto"] """ PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details. @@ -244,6 +248,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ 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. """ + sequra: NotRequired["PaymentMethodConfigurationCreateParamsSequra"] + """ + SeQura is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers customers payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with SeQura, 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. + """ sofort: NotRequired["PaymentMethodConfigurationCreateParamsSofort"] """ Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details. @@ -1028,6 +1036,22 @@ class PaymentMethodConfigurationCreateParamsPaypalDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationCreateParamsPaypay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsPaypayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsPaypayDisplayPreference(TypedDict): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsPayto(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsPaytoDisplayPreference" @@ -1168,6 +1192,22 @@ class PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference( """ +class PaymentMethodConfigurationCreateParamsSequra(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsSequraDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsSequraDisplayPreference(TypedDict): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsSofort(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsSofortDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_modify_params.py b/stripe/params/_payment_method_configuration_modify_params.py index d4f6b855a..cf8cf604f 100644 --- a/stripe/params/_payment_method_configuration_modify_params.py +++ b/stripe/params/_payment_method_configuration_modify_params.py @@ -208,6 +208,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details. """ + paypay: NotRequired["PaymentMethodConfigurationModifyParamsPaypay"] + """ + Customers can pay with PayPay online or using the PayPay app. + """ payto: NotRequired["PaymentMethodConfigurationModifyParamsPayto"] """ PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details. @@ -244,6 +248,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ 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. """ + sequra: NotRequired["PaymentMethodConfigurationModifyParamsSequra"] + """ + SeQura is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers customers payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with SeQura, 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. + """ sofort: NotRequired["PaymentMethodConfigurationModifyParamsSofort"] """ Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details. @@ -1028,6 +1036,22 @@ class PaymentMethodConfigurationModifyParamsPaypalDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationModifyParamsPaypay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsPaypayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsPaypayDisplayPreference(TypedDict): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsPayto(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsPaytoDisplayPreference" @@ -1168,6 +1192,22 @@ class PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference( """ +class PaymentMethodConfigurationModifyParamsSequra(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsSequraDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsSequraDisplayPreference(TypedDict): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsSofort(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsSofortDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_update_params.py b/stripe/params/_payment_method_configuration_update_params.py index ab228fabb..9b03cd1ea 100644 --- a/stripe/params/_payment_method_configuration_update_params.py +++ b/stripe/params/_payment_method_configuration_update_params.py @@ -207,6 +207,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details. """ + paypay: NotRequired["PaymentMethodConfigurationUpdateParamsPaypay"] + """ + Customers can pay with PayPay online or using the PayPay app. + """ payto: NotRequired["PaymentMethodConfigurationUpdateParamsPayto"] """ PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details. @@ -243,6 +247,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ 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. """ + sequra: NotRequired["PaymentMethodConfigurationUpdateParamsSequra"] + """ + SeQura is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers customers payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with SeQura, 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. + """ sofort: NotRequired["PaymentMethodConfigurationUpdateParamsSofort"] """ Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details. @@ -1027,6 +1035,22 @@ class PaymentMethodConfigurationUpdateParamsPaypalDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationUpdateParamsPaypay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference(TypedDict): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsPayto(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsPaytoDisplayPreference" @@ -1167,6 +1191,22 @@ class PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference( """ +class PaymentMethodConfigurationUpdateParamsSequra(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsSequraDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsSequraDisplayPreference(TypedDict): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsSofort(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsSofortDisplayPreference" diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 813f90eb2..afcef6bb0 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -31,11 +31,11 @@ class PaymentMethodCreateParams(RequestOptions): """ alma: NotRequired["PaymentMethodCreateParamsAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired["PaymentMethodCreateParamsAmazonPay"] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired["PaymentMethodCreateParamsAuBecsDebit"] """ @@ -193,6 +193,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["PaymentMethodCreateParamsPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["PaymentMethodCreateParamsPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -229,6 +233,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["PaymentMethodCreateParamsSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["PaymentMethodCreateParamsSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -246,7 +254,7 @@ class PaymentMethodCreateParams(RequestOptions): If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', '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']|str" + "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']|str" ] """ The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. @@ -636,6 +644,10 @@ class PaymentMethodCreateParamsPaypal(TypedDict): pass +class PaymentMethodCreateParamsPaypay(TypedDict): + pass + + class PaymentMethodCreateParamsPayto(TypedDict): account_number: NotRequired[str] """ @@ -689,6 +701,10 @@ class PaymentMethodCreateParamsSepaDebit(TypedDict): """ +class PaymentMethodCreateParamsSequra(TypedDict): + pass + + class PaymentMethodCreateParamsSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py index ef84564bf..760ededb3 100644 --- a/stripe/params/_payment_method_list_params.py +++ b/stripe/params/_payment_method_list_params.py @@ -37,7 +37,7 @@ class PaymentMethodListParams(RequestOptions): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', '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']|str" + "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']|str" ] """ Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload. diff --git a/stripe/params/_payment_method_modify_params.py b/stripe/params/_payment_method_modify_params.py index 89c62df5f..ad7683066 100644 --- a/stripe/params/_payment_method_modify_params.py +++ b/stripe/params/_payment_method_modify_params.py @@ -31,10 +31,6 @@ class PaymentMethodModifyParams(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`. """ - payto: NotRequired["PaymentMethodModifyParamsPayto"] - """ - If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. - """ us_bank_account: NotRequired["PaymentMethodModifyParamsUsBankAccount"] """ If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. @@ -117,21 +113,6 @@ class PaymentMethodModifyParamsCardNetworks(TypedDict): """ -class PaymentMethodModifyParamsPayto(TypedDict): - account_number: NotRequired[str] - """ - The account number for the bank account. - """ - bsb_number: NotRequired[str] - """ - Bank-State-Branch number of the bank account. - """ - pay_id: NotRequired[str] - """ - The PayID alias for the bank account. - """ - - class PaymentMethodModifyParamsUsBankAccount(TypedDict): account_holder_type: NotRequired["Literal['company', 'individual']|str"] """ diff --git a/stripe/params/_payment_method_update_params.py b/stripe/params/_payment_method_update_params.py index 4bd40a7b1..7e9ec72b0 100644 --- a/stripe/params/_payment_method_update_params.py +++ b/stripe/params/_payment_method_update_params.py @@ -30,10 +30,6 @@ class PaymentMethodUpdateParams(TypedDict): """ 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`. """ - payto: NotRequired["PaymentMethodUpdateParamsPayto"] - """ - If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. - """ us_bank_account: NotRequired["PaymentMethodUpdateParamsUsBankAccount"] """ If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. @@ -116,21 +112,6 @@ class PaymentMethodUpdateParamsCardNetworks(TypedDict): """ -class PaymentMethodUpdateParamsPayto(TypedDict): - account_number: NotRequired[str] - """ - The account number for the bank account. - """ - bsb_number: NotRequired[str] - """ - Bank-State-Branch number of the bank account. - """ - pay_id: NotRequired[str] - """ - The PayID alias for the bank account. - """ - - class PaymentMethodUpdateParamsUsBankAccount(TypedDict): account_holder_type: NotRequired["Literal['company', 'individual']|str"] """ diff --git a/stripe/params/_payment_record_report_payment_attempt_params.py b/stripe/params/_payment_record_report_payment_attempt_params.py index 64fefbab7..06eac213e 100644 --- a/stripe/params/_payment_record_report_payment_attempt_params.py +++ b/stripe/params/_payment_record_report_payment_attempt_params.py @@ -7,6 +7,10 @@ class PaymentRecordReportPaymentAttemptParams(RequestOptions): + canceled: NotRequired["PaymentRecordReportPaymentAttemptParamsCanceled"] + """ + Information about the payment attempt cancelation. + """ description: NotRequired[str] """ An arbitrary string attached to the object. Often useful for displaying to users. @@ -35,7 +39,7 @@ class PaymentRecordReportPaymentAttemptParams(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`. """ - outcome: NotRequired["Literal['failed', 'guaranteed']|str"] + outcome: NotRequired["Literal['canceled', 'failed', 'guaranteed']|str"] """ The outcome of the reported payment. """ @@ -53,6 +57,13 @@ class PaymentRecordReportPaymentAttemptParams(RequestOptions): """ +class PaymentRecordReportPaymentAttemptParamsCanceled(TypedDict): + canceled_at: int + """ + When the reported payment was canceled. Measured in seconds since the Unix epoch. + """ + + class PaymentRecordReportPaymentAttemptParamsFailed(TypedDict): failed_at: int """ diff --git a/stripe/params/_payment_record_report_payment_params.py b/stripe/params/_payment_record_report_payment_params.py index 76dea78ce..244b1e3b8 100644 --- a/stripe/params/_payment_record_report_payment_params.py +++ b/stripe/params/_payment_record_report_payment_params.py @@ -11,6 +11,10 @@ class PaymentRecordReportPaymentParams(RequestOptions): """ The amount you initially requested for this payment. """ + canceled: NotRequired["PaymentRecordReportPaymentParamsCanceled"] + """ + Information about the payment attempt cancelation. + """ customer_details: NotRequired[ "PaymentRecordReportPaymentParamsCustomerDetails" ] @@ -47,7 +51,7 @@ class PaymentRecordReportPaymentParams(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`. """ - outcome: NotRequired["Literal['failed', 'guaranteed']|str"] + outcome: NotRequired["Literal['canceled', 'failed', 'guaranteed']|str"] """ The outcome of the reported payment. """ @@ -82,6 +86,13 @@ class PaymentRecordReportPaymentParamsAmountRequested(TypedDict): """ +class PaymentRecordReportPaymentParamsCanceled(TypedDict): + canceled_at: int + """ + When the reported payment was canceled. Measured in seconds since the Unix epoch. + """ + + class PaymentRecordReportPaymentParamsCustomerDetails(TypedDict): customer: NotRequired[str] """ diff --git a/stripe/params/_payout_create_params.py b/stripe/params/_payout_create_params.py index bf98c6d19..1b1d439b2 100644 --- a/stripe/params/_payout_create_params.py +++ b/stripe/params/_payout_create_params.py @@ -9,7 +9,7 @@ class PayoutCreateParams(RequestOptions): amount: int """ - A positive integer in cents representing how much to payout. + A positive integer in cents representing how much to pay out. """ currency: str """ diff --git a/stripe/params/_plan_create_params.py b/stripe/params/_plan_create_params.py index 32d8e1693..cdf68a865 100644 --- a/stripe/params/_plan_create_params.py +++ b/stripe/params/_plan_create_params.py @@ -108,12 +108,27 @@ class PlanCreateParamsProduct(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired["PlanCreateParamsProductTaxDetails"] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class PlanCreateParamsProductTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class PlanCreateParamsTier(TypedDict): flat_amount: NotRequired[int] """ diff --git a/stripe/params/_price_create_params.py b/stripe/params/_price_create_params.py index 3089d980b..fb51f1a6a 100644 --- a/stripe/params/_price_create_params.py +++ b/stripe/params/_price_create_params.py @@ -205,12 +205,27 @@ class PriceCreateParamsProductData(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired["PriceCreateParamsProductDataTaxDetails"] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class PriceCreateParamsProductDataTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class PriceCreateParamsRecurring(TypedDict): interval: Union[Literal["day", "month", "week", "year"], str] """ diff --git a/stripe/params/_product_create_params.py b/stripe/params/_product_create_params.py index 1c8962cca..70db0ded7 100644 --- a/stripe/params/_product_create_params.py +++ b/stripe/params/_product_create_params.py @@ -65,6 +65,10 @@ class ProductCreateParams(RequestOptions): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired["ProductCreateParamsTaxDetails"] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ type: NotRequired["Literal['good', 'service']|str"] """ The type of the product. Defaults to `service` if not explicitly specified, enabling use of this product with Subscriptions and Plans. Set this parameter to `good` to use this product with Orders and SKUs. On API versions before `2018-02-05`, this field defaults to `good` for compatibility reasons. @@ -247,3 +251,14 @@ class ProductCreateParamsPackageDimensions(TypedDict): """ Width, in inches. Maximum precision is 2 decimal places. """ + + +class ProductCreateParamsTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ diff --git a/stripe/params/_product_list_params.py b/stripe/params/_product_list_params.py index 280732a53..a235f2a5d 100644 --- a/stripe/params/_product_list_params.py +++ b/stripe/params/_product_list_params.py @@ -24,7 +24,7 @@ class ProductListParams(RequestOptions): """ ids: NotRequired[List[str]] """ - Only return products with the given IDs. Cannot be used with [starting_after](https://api.stripe.com#list_products-starting_after) or [ending_before](https://api.stripe.com#list_products-ending_before). + Only return products with the given IDs. Cannot be used with [starting_after](https://docs.stripe.com/api#list_products-starting_after) or [ending_before](https://docs.stripe.com/api#list_products-ending_before). """ limit: NotRequired[int] """ diff --git a/stripe/params/_product_modify_params.py b/stripe/params/_product_modify_params.py index c0bfb9d49..6aab00d0a 100644 --- a/stripe/params/_product_modify_params.py +++ b/stripe/params/_product_modify_params.py @@ -64,6 +64,10 @@ class ProductModifyParams(RequestOptions): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired["Literal['']|ProductModifyParamsTaxDetails"] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired["Literal['']|str"] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set if `type=service`. @@ -98,3 +102,14 @@ class ProductModifyParamsPackageDimensions(TypedDict): """ Width, in inches. Maximum precision is 2 decimal places. """ + + +class ProductModifyParamsTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ diff --git a/stripe/params/_product_update_params.py b/stripe/params/_product_update_params.py index 2b5d89561..a3605914f 100644 --- a/stripe/params/_product_update_params.py +++ b/stripe/params/_product_update_params.py @@ -63,6 +63,10 @@ class ProductUpdateParams(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired["Literal['']|ProductUpdateParamsTaxDetails"] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired["Literal['']|str"] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set if `type=service`. @@ -97,3 +101,14 @@ class ProductUpdateParamsPackageDimensions(TypedDict): """ Width, in inches. Maximum precision is 2 decimal places. """ + + +class ProductUpdateParamsTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index 235bc561d..5902d3868 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -27,6 +27,7 @@ class SetupIntentConfirmParams(RequestOptions): "boleto", "capchase_pay", "card", + "card_present", "cashapp", "check_scan", "click_to_pay", @@ -47,6 +48,7 @@ class SetupIntentConfirmParams(RequestOptions): "grabpay", "id_bank_transfer", "ideal", + "interac_present", "kakao_pay", "klarna", "knet", @@ -234,13 +236,13 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ alma: NotRequired["SetupIntentConfirmParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "SetupIntentConfirmParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "SetupIntentConfirmParamsPaymentMethodDataAuBecsDebit" @@ -398,6 +400,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["SetupIntentConfirmParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -444,6 +450,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -499,6 +509,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -507,6 +518,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -869,6 +881,10 @@ class SetupIntentConfirmParamsPaymentMethodDataPaypal(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodDataPaypay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -922,6 +938,10 @@ class SetupIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): """ +class SetupIntentConfirmParamsPaymentMethodDataSequra(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ @@ -1023,6 +1043,10 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. """ + blik: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsBlik"] + """ + If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + """ card: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1147,6 +1171,28 @@ class SetupIntentConfirmParamsPaymentMethodOptionsBizum(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): + code: NotRequired[str] + """ + The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + """ + mandate_options: NotRequired[ + "SetupIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Details of the BLIK mandate + """ + + +class SetupIntentConfirmParamsPaymentMethodOptionsBlikMandateOptions( + TypedDict +): + expires_at: NotRequired[int] + """ + Expiry date of the mandate. + """ + + 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 4980b33c7..d8e9299c3 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -27,6 +27,7 @@ class SetupIntentCreateParams(RequestOptions): "boleto", "capchase_pay", "card", + "card_present", "cashapp", "check_scan", "click_to_pay", @@ -47,6 +48,7 @@ class SetupIntentCreateParams(RequestOptions): "grabpay", "id_bank_transfer", "ideal", + "interac_present", "kakao_pay", "klarna", "knet", @@ -195,6 +197,7 @@ class SetupIntentCreateParams(RequestOptions): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -203,6 +206,7 @@ class SetupIntentCreateParams(RequestOptions): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -264,10 +268,6 @@ class SetupIntentCreateParams(RequestOptions): """ Payment method-specific configuration for this SetupIntent. """ - payment_method_types: NotRequired[List[str]] - """ - The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). - """ 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. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm). @@ -375,13 +375,13 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ alma: NotRequired["SetupIntentCreateParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "SetupIntentCreateParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "SetupIntentCreateParamsPaymentMethodDataAuBecsDebit" @@ -537,6 +537,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["SetupIntentCreateParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["SetupIntentCreateParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -581,6 +585,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["SetupIntentCreateParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["SetupIntentCreateParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -636,6 +644,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -644,6 +653,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -1004,6 +1014,10 @@ class SetupIntentCreateParamsPaymentMethodDataPaypal(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodDataPaypay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -1057,6 +1071,10 @@ class SetupIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataSequra(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ @@ -1158,6 +1176,10 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. """ + blik: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsBlik"] + """ + If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + """ card: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1282,6 +1304,26 @@ class SetupIntentCreateParamsPaymentMethodOptionsBizum(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): + code: NotRequired[str] + """ + The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + """ + mandate_options: NotRequired[ + "SetupIntentCreateParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Details of the BLIK mandate + """ + + +class SetupIntentCreateParamsPaymentMethodOptionsBlikMandateOptions(TypedDict): + expires_at: NotRequired[int] + """ + Expiry date of the mandate. + """ + + 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 c60fbb808..08841aee3 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -8,7 +8,7 @@ class SetupIntentModifyParams(RequestOptions): allowed_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" ] """ The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). @@ -36,7 +36,7 @@ class SetupIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[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'], str]]" + "Literal['']|List[Union[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', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -80,10 +80,6 @@ class SetupIntentModifyParams(RequestOptions): """ Payment method-specific configuration for this SetupIntent. """ - payment_method_types: NotRequired[List[str]] - """ - The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). - """ class SetupIntentModifyParamsPaymentMethodData(TypedDict): @@ -115,13 +111,13 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ alma: NotRequired["SetupIntentModifyParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "SetupIntentModifyParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "SetupIntentModifyParamsPaymentMethodDataAuBecsDebit" @@ -277,6 +273,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["SetupIntentModifyParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["SetupIntentModifyParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -321,6 +321,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["SetupIntentModifyParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["SetupIntentModifyParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -376,6 +380,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -384,6 +389,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -744,6 +750,10 @@ class SetupIntentModifyParamsPaymentMethodDataPaypal(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodDataPaypay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -797,6 +807,10 @@ class SetupIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataSequra(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ @@ -898,6 +912,10 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. """ + blik: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsBlik"] + """ + If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + """ card: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1022,6 +1040,26 @@ class SetupIntentModifyParamsPaymentMethodOptionsBizum(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): + code: NotRequired[str] + """ + The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + """ + mandate_options: NotRequired[ + "SetupIntentModifyParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Details of the BLIK mandate + """ + + +class SetupIntentModifyParamsPaymentMethodOptionsBlikMandateOptions(TypedDict): + expires_at: NotRequired[int] + """ + Expiry date of the mandate. + """ + + 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 160182d69..38e8edfa5 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -7,7 +7,7 @@ class SetupIntentUpdateParams(TypedDict): allowed_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" ] """ The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). @@ -35,7 +35,7 @@ class SetupIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[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'], str]]" + "Literal['']|List[Union[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', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -79,10 +79,6 @@ class SetupIntentUpdateParams(TypedDict): """ Payment method-specific configuration for this SetupIntent. """ - payment_method_types: NotRequired[List[str]] - """ - The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). - """ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): @@ -114,13 +110,13 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ alma: NotRequired["SetupIntentUpdateParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "SetupIntentUpdateParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "SetupIntentUpdateParamsPaymentMethodDataAuBecsDebit" @@ -276,6 +272,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["SetupIntentUpdateParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -320,6 +320,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -375,6 +379,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -383,6 +388,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -743,6 +749,10 @@ class SetupIntentUpdateParamsPaymentMethodDataPaypal(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodDataPaypay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -796,6 +806,10 @@ class SetupIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataSequra(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ @@ -897,6 +911,10 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. """ + blik: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsBlik"] + """ + If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + """ card: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsCard"] """ Configuration for any card setup attempted on this SetupIntent. @@ -1021,6 +1039,26 @@ class SetupIntentUpdateParamsPaymentMethodOptionsBizum(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): + code: NotRequired[str] + """ + The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + """ + mandate_options: NotRequired[ + "SetupIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Details of the BLIK mandate + """ + + +class SetupIntentUpdateParamsPaymentMethodOptionsBlikMandateOptions(TypedDict): + expires_at: NotRequired[int] + """ + Expiry date of the mandate. + """ + + class SetupIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): mandate_options: NotRequired[ "SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions" diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index 176880283..579282cee 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -485,6 +485,10 @@ class SubscriptionCreateParamsItem(TypedDict): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. """ + current_trial: NotRequired["SubscriptionCreateParamsItemCurrentTrial"] + """ + The trial offer to apply to this subscription item. + """ discounts: NotRequired[ "Literal['']|List[SubscriptionCreateParamsItemDiscount]" ] @@ -524,6 +528,13 @@ class SubscriptionCreateParamsItemBillingThresholds(TypedDict): """ +class SubscriptionCreateParamsItemCurrentTrial(TypedDict): + trial_offer: str + """ + The ID of the trial offer to apply to the subscription item. + """ + + class SubscriptionCreateParamsItemDiscount(TypedDict): coupon: NotRequired[str] """ @@ -587,7 +598,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -619,6 +630,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -707,7 +724,90 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact( class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillie( TypedDict, ): - pass + company_details: NotRequired[ + "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + + +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT ID number. + """ + + +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (for example, street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (for example, apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_at: NotRequired[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard( @@ -985,8 +1085,12 @@ class SubscriptionCreateParamsTrialSettings(TypedDict): class SubscriptionCreateParamsTrialSettingsEndBehavior(TypedDict): - missing_payment_method: Union[ - Literal["cancel", "create_invoice", "pause"], str + billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] + """ + Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`. + """ + missing_payment_method: NotRequired[ + "Literal['cancel', 'create_invoice', 'pause']|str" ] """ Indicates how the subscription should change when the trial ends if the user did not provide a payment method. diff --git a/stripe/params/_subscription_item_create_params.py b/stripe/params/_subscription_item_create_params.py index 751afee49..5516326b2 100644 --- a/stripe/params/_subscription_item_create_params.py +++ b/stripe/params/_subscription_item_create_params.py @@ -14,6 +14,10 @@ class SubscriptionItemCreateParams(RequestOptions): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. """ + current_trial: NotRequired["SubscriptionItemCreateParamsCurrentTrial"] + """ + The trial offer to apply to this subscription item. + """ discounts: NotRequired[ "Literal['']|List[SubscriptionItemCreateParamsDiscount]" ] @@ -77,6 +81,13 @@ class SubscriptionItemCreateParamsBillingThresholds(TypedDict): """ +class SubscriptionItemCreateParamsCurrentTrial(TypedDict): + trial_offer: str + """ + The ID of the trial offer to apply to the subscription item. + """ + + class SubscriptionItemCreateParamsDiscount(TypedDict): coupon: NotRequired[str] """ diff --git a/stripe/params/_subscription_item_modify_params.py b/stripe/params/_subscription_item_modify_params.py index 2c79037d0..a11b53b1b 100644 --- a/stripe/params/_subscription_item_modify_params.py +++ b/stripe/params/_subscription_item_modify_params.py @@ -14,6 +14,10 @@ class SubscriptionItemModifyParams(RequestOptions): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. """ + current_trial: NotRequired["SubscriptionItemModifyParamsCurrentTrial"] + """ + The trial offer to apply to this subscription item. + """ discounts: NotRequired[ "Literal['']|List[SubscriptionItemModifyParamsDiscount]" ] @@ -46,11 +50,11 @@ class SubscriptionItemModifyParams(RequestOptions): """ price: NotRequired[str] """ - The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired["SubscriptionItemModifyParamsPriceData"] """ - Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required. + Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. """ proration_behavior: NotRequired[ "Literal['always_invoice', 'create_prorations', 'none']|str" @@ -79,6 +83,13 @@ class SubscriptionItemModifyParamsBillingThresholds(TypedDict): """ +class SubscriptionItemModifyParamsCurrentTrial(TypedDict): + trial_offer: str + """ + The ID of the trial offer to apply to the subscription item. + """ + + class SubscriptionItemModifyParamsDiscount(TypedDict): coupon: NotRequired[str] """ diff --git a/stripe/params/_subscription_item_update_params.py b/stripe/params/_subscription_item_update_params.py index bfa2299eb..a526e4cdc 100644 --- a/stripe/params/_subscription_item_update_params.py +++ b/stripe/params/_subscription_item_update_params.py @@ -13,6 +13,10 @@ class SubscriptionItemUpdateParams(TypedDict): """ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. """ + current_trial: NotRequired["SubscriptionItemUpdateParamsCurrentTrial"] + """ + The trial offer to apply to this subscription item. + """ discounts: NotRequired[ "Literal['']|List[SubscriptionItemUpdateParamsDiscount]" ] @@ -45,11 +49,11 @@ class SubscriptionItemUpdateParams(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired["SubscriptionItemUpdateParamsPriceData"] """ - Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required. + Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. """ proration_behavior: NotRequired[ "Literal['always_invoice', 'create_prorations', 'none']|str" @@ -78,6 +82,13 @@ class SubscriptionItemUpdateParamsBillingThresholds(TypedDict): """ +class SubscriptionItemUpdateParamsCurrentTrial(TypedDict): + trial_offer: str + """ + The ID of the trial offer to apply to the subscription item. + """ + + class SubscriptionItemUpdateParamsDiscount(TypedDict): coupon: NotRequired[str] """ diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index ebc3779cd..39dbbb6a9 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -22,9 +22,11 @@ class SubscriptionModifyParams(RequestOptions): """ Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed. """ - billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] + billing_cycle_anchor: NotRequired[ + "SubscriptionModifyParamsBillingCycleAnchor" + ] """ - 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). + Controls how the subscription's billing cycle anchor changes. Set `type` to `now` to reset the billing cycle anchor to the current time (in UTC), or `unchanged` to preserve it. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ billing_schedules: NotRequired[ "Literal['']|List[SubscriptionModifyParamsBillingSchedule]" @@ -296,6 +298,13 @@ class SubscriptionModifyParamsAutomaticTaxLiability(TypedDict): """ +class SubscriptionModifyParamsBillingCycleAnchor(TypedDict): + type: Union[Literal["now", "unchanged"], str] + """ + Determines how the billing cycle anchor changes when the subscription is updated. + """ + + class SubscriptionModifyParamsBillingSchedule(TypedDict): applies_to: NotRequired[ List["SubscriptionModifyParamsBillingScheduleAppliesTo"] @@ -453,6 +462,10 @@ class SubscriptionModifyParamsItem(TypedDict): """ Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ + current_trial: NotRequired["SubscriptionModifyParamsItemCurrentTrial"] + """ + The trial offer to apply to this subscription item. + """ deleted: NotRequired[bool] """ A flag that, if set to `true`, will delete the specified item. @@ -479,11 +492,11 @@ class SubscriptionModifyParamsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired["SubscriptionModifyParamsItemPriceData"] """ - Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required. + Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. """ quantity: NotRequired[int] """ @@ -502,6 +515,13 @@ class SubscriptionModifyParamsItemBillingThresholds(TypedDict): """ +class SubscriptionModifyParamsItemCurrentTrial(TypedDict): + trial_offer: str + """ + The ID of the trial offer to apply to the subscription item. + """ + + class SubscriptionModifyParamsItemDiscount(TypedDict): coupon: NotRequired[str] """ @@ -578,7 +598,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -610,6 +630,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -698,7 +724,90 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact( class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillie( TypedDict, ): - pass + company_details: NotRequired[ + "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + + +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT ID number. + """ + + +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (for example, street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (for example, apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_at: NotRequired[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard( @@ -976,8 +1085,12 @@ class SubscriptionModifyParamsTrialSettings(TypedDict): class SubscriptionModifyParamsTrialSettingsEndBehavior(TypedDict): - missing_payment_method: Union[ - Literal["cancel", "create_invoice", "pause"], str + billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] + """ + Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`. + """ + missing_payment_method: NotRequired[ + "Literal['cancel', 'create_invoice', 'pause']|str" ] """ Indicates how the subscription should change when the trial ends if the user did not provide a payment method. diff --git a/stripe/params/_subscription_pause_params.py b/stripe/params/_subscription_pause_params.py new file mode 100644 index 000000000..41e9e5257 --- /dev/null +++ b/stripe/params/_subscription_pause_params.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List, Union +from typing_extensions import Literal, NotRequired, TypedDict + + +class SubscriptionPauseParams(RequestOptions): + bill_for: NotRequired["SubscriptionPauseParamsBillFor"] + """ + Controls what to bill for when pausing the subscription. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + invoicing_behavior: NotRequired[ + "Literal['invoice', 'pending_invoice_item']|str" + ] + """ + Determines how to handle debits and credits when pausing. Defaults to `pending_invoice_item`. + """ + type: NotRequired["Literal['subscription']|str"] + """ + The type of pause to apply. Defaults to `subscription`. + """ + + +class SubscriptionPauseParamsBillFor(TypedDict): + outstanding_usage_through: NotRequired[ + "SubscriptionPauseParamsBillForOutstandingUsageThrough" + ] + """ + Controls when to bill for metered usage in the current period. Defaults to `{ type: "now" }`. + """ + unused_time_from: NotRequired[ + "SubscriptionPauseParamsBillForUnusedTimeFrom" + ] + """ + Controls when to credit for unused time on licensed items. Defaults to `{ type: "now" }`. + """ + + +class SubscriptionPauseParamsBillForOutstandingUsageThrough(TypedDict): + type: Union[Literal["none", "now"], str] + """ + When to bill metered usage in the current period. + """ + + +class SubscriptionPauseParamsBillForUnusedTimeFrom(TypedDict): + type: Union[Literal["item_current_period_start", "none", "now"], str] + """ + When to credit for unused time. + """ diff --git a/stripe/params/_subscription_resume_params.py b/stripe/params/_subscription_resume_params.py index e27735cb7..5e4cd9e3b 100644 --- a/stripe/params/_subscription_resume_params.py +++ b/stripe/params/_subscription_resume_params.py @@ -1,12 +1,14 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._request_options import RequestOptions -from typing import List -from typing_extensions import Literal, NotRequired +from typing import List, Union +from typing_extensions import Literal, NotRequired, TypedDict class SubscriptionResumeParams(RequestOptions): - billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] + billing_cycle_anchor: NotRequired[ + "SubscriptionResumeParamsBillingCycleAnchor" + ] """ The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ @@ -14,6 +16,12 @@ class SubscriptionResumeParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ + payment_behavior: NotRequired[ + "Literal['resume_on_payment_attempt', 'resume_on_payment_success']|str" + ] + """ + Controls whether Stripe attempts payment on the resumption invoice in the resume request, and how payment on that invoice affects the subscription's status. The default is `resume_on_payment_attempt`. + """ proration_behavior: NotRequired[ "Literal['always_invoice', 'create_prorations', 'none']|str" ] @@ -24,3 +32,10 @@ class SubscriptionResumeParams(RequestOptions): """ If set, prorations will be calculated as though the subscription was resumed at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. """ + + +class SubscriptionResumeParamsBillingCycleAnchor(TypedDict): + type: Union[Literal["now", "unchanged"], str] + """ + Determines how the billing cycle anchor changes when the subscription resumes. + """ diff --git a/stripe/params/_subscription_schedule_create_params.py b/stripe/params/_subscription_schedule_create_params.py index f516084b5..e23d72203 100644 --- a/stripe/params/_subscription_schedule_create_params.py +++ b/stripe/params/_subscription_schedule_create_params.py @@ -46,6 +46,12 @@ class SubscriptionScheduleCreateParams(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`. """ + pause_schedules: NotRequired[ + List["SubscriptionScheduleCreateParamsPauseSchedule"] + ] + """ + Configures the subscription's pause behavior and, optionally, its resume behavior. Only one entry is supported. + """ phases: NotRequired[List["SubscriptionScheduleCreateParamsPhase"]] """ List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. @@ -231,6 +237,163 @@ class SubscriptionScheduleCreateParamsDefaultSettingsTransferData(TypedDict): """ +class SubscriptionScheduleCreateParamsPauseSchedule(TypedDict): + key: NotRequired[str] + """ + A unique identifier for this pause schedule entry. + """ + pause: NotRequired["SubscriptionScheduleCreateParamsPauseSchedulePause"] + """ + Configuration for when and how the subscription pauses. + """ + resume: NotRequired["SubscriptionScheduleCreateParamsPauseScheduleResume"] + """ + Configuration for when and how the subscription resumes. + """ + + +class SubscriptionScheduleCreateParamsPauseSchedulePause(TypedDict): + pause_at: "SubscriptionScheduleCreateParamsPauseSchedulePausePauseAt" + """ + When to pause the subscription. + """ + settings: NotRequired[ + "SubscriptionScheduleCreateParamsPauseSchedulePauseSettings" + ] + """ + Settings controlling billing behavior during the pause. + """ + + +class SubscriptionScheduleCreateParamsPauseSchedulePausePauseAt(TypedDict): + timestamp: NotRequired[int] + """ + The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`. + """ + type: Union[Literal["now", "timestamp"], str] + """ + When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time. + """ + + +class SubscriptionScheduleCreateParamsPauseSchedulePauseSettings(TypedDict): + bill_for: NotRequired[ + "SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillFor" + ] + """ + Controls what to bill for when pausing the subscription. + """ + invoicing_behavior: NotRequired[ + "Literal['invoice', 'pending_invoice_item']|str" + ] + """ + Determines whether to generate an invoice for outstanding amounts when pausing. + """ + type: NotRequired["Literal['subscription']|str"] + """ + The pause type. Currently only `subscription` is supported. + """ + + +class SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillFor( + TypedDict, +): + outstanding_usage_through: NotRequired[ + "SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough" + ] + """ + Controls whether to collect metered usage accrued up to the pause date. + """ + unused_time_from: NotRequired[ + "SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom" + ] + """ + Controls how unused time on subscription items is credited when pausing. + """ + + +class SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough( + TypedDict, +): + type: NotRequired["Literal['none', 'pause_at']|str"] + """ + Determines whether to collect metered usage accrued up to the pause date. + """ + + +class SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom( + TypedDict, +): + type: NotRequired[ + "Literal['item_current_period_start', 'none', 'pause_at']|str" + ] + """ + Determines which point in the billing period unused time is credited from. + """ + + +class SubscriptionScheduleCreateParamsPauseScheduleResume(TypedDict): + resume_at: "SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAt" + """ + When to resume the subscription. + """ + settings: NotRequired[ + "SubscriptionScheduleCreateParamsPauseScheduleResumeSettings" + ] + """ + Settings controlling how the subscription resumes. + """ + + +class SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAt(TypedDict): + duration: NotRequired[ + "SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAtDuration" + ] + """ + The duration after which to resume the subscription. Required when `type` is `duration`. + """ + timestamp: NotRequired[int] + """ + The Unix timestamp at which to resume the subscription. Required when `type` is `timestamp`. + """ + type: Union[Literal["duration", "now", "timestamp"], str] + """ + When to resume the subscription. Use `now` to resume immediately, `duration` to resume after a set duration, or `timestamp` to resume at a specific time. + """ + + +class SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAtDuration( + TypedDict, +): + interval: Union[Literal["day", "month", "week", "year"], str] + """ + The time unit for the resume duration. One of `day`, `week`, `month`, or `year`. + """ + interval_count: NotRequired[int] + """ + The number of intervals after which the subscription resumes. + """ + + +class SubscriptionScheduleCreateParamsPauseScheduleResumeSettings(TypedDict): + billing_cycle_anchor: NotRequired["Literal['resume_at', 'unchanged']|str"] + """ + Controls the billing cycle anchor when the subscription resumes. + """ + payment_behavior: NotRequired[ + "Literal['resume_on_payment_attempt', 'resume_on_payment_success']|str" + ] + """ + Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. + """ + proration_behavior: NotRequired[ + "Literal['always_invoice', 'create_prorations', 'none']|str" + ] + """ + Determines how to handle prorations when the subscription resumes. The default is `create_prorations`. + """ + + class SubscriptionScheduleCreateParamsPhase(TypedDict): add_invoice_items: NotRequired[ List["SubscriptionScheduleCreateParamsPhaseAddInvoiceItem"] diff --git a/stripe/params/_subscription_schedule_modify_params.py b/stripe/params/_subscription_schedule_modify_params.py index 4bf865c57..f9483a9e1 100644 --- a/stripe/params/_subscription_schedule_modify_params.py +++ b/stripe/params/_subscription_schedule_modify_params.py @@ -30,6 +30,12 @@ class SubscriptionScheduleModifyParams(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`. """ + pause_schedules: NotRequired[ + "Literal['']|List[SubscriptionScheduleModifyParamsPauseSchedule]" + ] + """ + Configures the subscription's pause behavior and, optionally, its resume behavior. Only one entry is supported. Include a key to update an existing entry. Omit to leave an existing pause schedule unchanged, or pass "" to clear it. + """ phases: NotRequired[List["SubscriptionScheduleModifyParamsPhase"]] """ List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted. @@ -197,6 +203,169 @@ class SubscriptionScheduleModifyParamsDefaultSettingsTransferData(TypedDict): """ +class SubscriptionScheduleModifyParamsPauseSchedule(TypedDict): + key: NotRequired[str] + """ + A unique identifier for this pause schedule entry. + """ + pause: NotRequired["SubscriptionScheduleModifyParamsPauseSchedulePause"] + """ + Configuration for when and how the subscription pauses. + """ + resume: NotRequired[ + "Literal['']|SubscriptionScheduleModifyParamsPauseScheduleResume" + ] + """ + Configuration for when and how the subscription resumes. + """ + + +class SubscriptionScheduleModifyParamsPauseSchedulePause(TypedDict): + pause_at: NotRequired[ + "SubscriptionScheduleModifyParamsPauseSchedulePausePauseAt" + ] + """ + When to pause the subscription. + """ + settings: NotRequired[ + "SubscriptionScheduleModifyParamsPauseSchedulePauseSettings" + ] + """ + Settings controlling billing behavior during the pause. + """ + + +class SubscriptionScheduleModifyParamsPauseSchedulePausePauseAt(TypedDict): + timestamp: NotRequired[int] + """ + The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`. + """ + type: Union[Literal["now", "timestamp"], str] + """ + When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time. + """ + + +class SubscriptionScheduleModifyParamsPauseSchedulePauseSettings(TypedDict): + bill_for: NotRequired[ + "SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillFor" + ] + """ + Controls what to bill for when pausing the subscription. + """ + invoicing_behavior: NotRequired[ + "Literal['invoice', 'pending_invoice_item']|str" + ] + """ + Determines whether to generate an invoice for outstanding amounts when pausing. + """ + type: NotRequired["Literal['subscription']|str"] + """ + The pause type. Currently only `subscription` is supported. + """ + + +class SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillFor( + TypedDict, +): + outstanding_usage_through: NotRequired[ + "SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough" + ] + """ + Controls whether to collect metered usage accrued up to the pause date. + """ + unused_time_from: NotRequired[ + "SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom" + ] + """ + Controls how unused time on subscription items is credited when pausing. + """ + + +class SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough( + TypedDict, +): + type: NotRequired["Literal['none', 'pause_at']|str"] + """ + Determines whether to collect metered usage accrued up to the pause date. + """ + + +class SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom( + TypedDict, +): + type: NotRequired[ + "Literal['item_current_period_start', 'none', 'pause_at']|str" + ] + """ + Determines which point in the billing period unused time is credited from. + """ + + +class SubscriptionScheduleModifyParamsPauseScheduleResume(TypedDict): + resume_at: NotRequired[ + "SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAt" + ] + """ + When to resume the subscription. + """ + settings: NotRequired[ + "SubscriptionScheduleModifyParamsPauseScheduleResumeSettings" + ] + """ + Settings controlling how the subscription resumes. + """ + + +class SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAt(TypedDict): + duration: NotRequired[ + "SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAtDuration" + ] + """ + The duration after which to resume the subscription. Required when `type` is `duration`. + """ + timestamp: NotRequired[int] + """ + The Unix timestamp at which to resume the subscription. Required when `type` is `timestamp`. + """ + type: Union[Literal["duration", "now", "timestamp"], str] + """ + When to resume the subscription. Use `now` to resume immediately, `duration` to resume after a set duration, or `timestamp` to resume at a specific time. + """ + + +class SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAtDuration( + TypedDict, +): + interval: Union[Literal["day", "month", "week", "year"], str] + """ + The time unit for the resume duration. One of `day`, `week`, `month`, or `year`. + """ + interval_count: NotRequired[int] + """ + The number of intervals after which the subscription resumes. + """ + + +class SubscriptionScheduleModifyParamsPauseScheduleResumeSettings(TypedDict): + billing_cycle_anchor: NotRequired["Literal['resume_at', 'unchanged']|str"] + """ + Controls the billing cycle anchor when the subscription resumes. + """ + payment_behavior: NotRequired[ + "Literal['resume_on_payment_attempt', 'resume_on_payment_success']|str" + ] + """ + Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. + """ + proration_behavior: NotRequired[ + "Literal['always_invoice', 'create_prorations', 'none']|str" + ] + """ + Determines how to handle prorations when the subscription resumes. The default is `create_prorations`. + """ + + class SubscriptionScheduleModifyParamsPhase(TypedDict): add_invoice_items: NotRequired[ List["SubscriptionScheduleModifyParamsPhaseAddInvoiceItem"] diff --git a/stripe/params/_subscription_schedule_update_params.py b/stripe/params/_subscription_schedule_update_params.py index e363a54f3..ca077ccfd 100644 --- a/stripe/params/_subscription_schedule_update_params.py +++ b/stripe/params/_subscription_schedule_update_params.py @@ -29,6 +29,12 @@ class SubscriptionScheduleUpdateParams(TypedDict): """ 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`. """ + pause_schedules: NotRequired[ + "Literal['']|List[SubscriptionScheduleUpdateParamsPauseSchedule]" + ] + """ + Configures the subscription's pause behavior and, optionally, its resume behavior. Only one entry is supported. Include a key to update an existing entry. Omit to leave an existing pause schedule unchanged, or pass "" to clear it. + """ phases: NotRequired[List["SubscriptionScheduleUpdateParamsPhase"]] """ List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted. @@ -196,6 +202,169 @@ class SubscriptionScheduleUpdateParamsDefaultSettingsTransferData(TypedDict): """ +class SubscriptionScheduleUpdateParamsPauseSchedule(TypedDict): + key: NotRequired[str] + """ + A unique identifier for this pause schedule entry. + """ + pause: NotRequired["SubscriptionScheduleUpdateParamsPauseSchedulePause"] + """ + Configuration for when and how the subscription pauses. + """ + resume: NotRequired[ + "Literal['']|SubscriptionScheduleUpdateParamsPauseScheduleResume" + ] + """ + Configuration for when and how the subscription resumes. + """ + + +class SubscriptionScheduleUpdateParamsPauseSchedulePause(TypedDict): + pause_at: NotRequired[ + "SubscriptionScheduleUpdateParamsPauseSchedulePausePauseAt" + ] + """ + When to pause the subscription. + """ + settings: NotRequired[ + "SubscriptionScheduleUpdateParamsPauseSchedulePauseSettings" + ] + """ + Settings controlling billing behavior during the pause. + """ + + +class SubscriptionScheduleUpdateParamsPauseSchedulePausePauseAt(TypedDict): + timestamp: NotRequired[int] + """ + The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`. + """ + type: Union[Literal["now", "timestamp"], str] + """ + When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time. + """ + + +class SubscriptionScheduleUpdateParamsPauseSchedulePauseSettings(TypedDict): + bill_for: NotRequired[ + "SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillFor" + ] + """ + Controls what to bill for when pausing the subscription. + """ + invoicing_behavior: NotRequired[ + "Literal['invoice', 'pending_invoice_item']|str" + ] + """ + Determines whether to generate an invoice for outstanding amounts when pausing. + """ + type: NotRequired["Literal['subscription']|str"] + """ + The pause type. Currently only `subscription` is supported. + """ + + +class SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillFor( + TypedDict, +): + outstanding_usage_through: NotRequired[ + "SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough" + ] + """ + Controls whether to collect metered usage accrued up to the pause date. + """ + unused_time_from: NotRequired[ + "SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom" + ] + """ + Controls how unused time on subscription items is credited when pausing. + """ + + +class SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough( + TypedDict, +): + type: NotRequired["Literal['none', 'pause_at']|str"] + """ + Determines whether to collect metered usage accrued up to the pause date. + """ + + +class SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom( + TypedDict, +): + type: NotRequired[ + "Literal['item_current_period_start', 'none', 'pause_at']|str" + ] + """ + Determines which point in the billing period unused time is credited from. + """ + + +class SubscriptionScheduleUpdateParamsPauseScheduleResume(TypedDict): + resume_at: NotRequired[ + "SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAt" + ] + """ + When to resume the subscription. + """ + settings: NotRequired[ + "SubscriptionScheduleUpdateParamsPauseScheduleResumeSettings" + ] + """ + Settings controlling how the subscription resumes. + """ + + +class SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAt(TypedDict): + duration: NotRequired[ + "SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAtDuration" + ] + """ + The duration after which to resume the subscription. Required when `type` is `duration`. + """ + timestamp: NotRequired[int] + """ + The Unix timestamp at which to resume the subscription. Required when `type` is `timestamp`. + """ + type: Union[Literal["duration", "now", "timestamp"], str] + """ + When to resume the subscription. Use `now` to resume immediately, `duration` to resume after a set duration, or `timestamp` to resume at a specific time. + """ + + +class SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAtDuration( + TypedDict, +): + interval: Union[Literal["day", "month", "week", "year"], str] + """ + The time unit for the resume duration. One of `day`, `week`, `month`, or `year`. + """ + interval_count: NotRequired[int] + """ + The number of intervals after which the subscription resumes. + """ + + +class SubscriptionScheduleUpdateParamsPauseScheduleResumeSettings(TypedDict): + billing_cycle_anchor: NotRequired["Literal['resume_at', 'unchanged']|str"] + """ + Controls the billing cycle anchor when the subscription resumes. + """ + payment_behavior: NotRequired[ + "Literal['resume_on_payment_attempt', 'resume_on_payment_success']|str" + ] + """ + Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. + """ + proration_behavior: NotRequired[ + "Literal['always_invoice', 'create_prorations', 'none']|str" + ] + """ + Determines how to handle prorations when the subscription resumes. The default is `create_prorations`. + """ + + class SubscriptionScheduleUpdateParamsPhase(TypedDict): add_invoice_items: NotRequired[ List["SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem"] diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index a76150bab..0b1ac615f 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -21,9 +21,11 @@ class SubscriptionUpdateParams(TypedDict): """ Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed. """ - billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] + billing_cycle_anchor: NotRequired[ + "SubscriptionUpdateParamsBillingCycleAnchor" + ] """ - 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). + Controls how the subscription's billing cycle anchor changes. Set `type` to `now` to reset the billing cycle anchor to the current time (in UTC), or `unchanged` to preserve it. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ billing_schedules: NotRequired[ "Literal['']|List[SubscriptionUpdateParamsBillingSchedule]" @@ -295,6 +297,13 @@ class SubscriptionUpdateParamsAutomaticTaxLiability(TypedDict): """ +class SubscriptionUpdateParamsBillingCycleAnchor(TypedDict): + type: Union[Literal["now", "unchanged"], str] + """ + Determines how the billing cycle anchor changes when the subscription is updated. + """ + + class SubscriptionUpdateParamsBillingSchedule(TypedDict): applies_to: NotRequired[ List["SubscriptionUpdateParamsBillingScheduleAppliesTo"] @@ -452,6 +461,10 @@ class SubscriptionUpdateParamsItem(TypedDict): """ Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. """ + current_trial: NotRequired["SubscriptionUpdateParamsItemCurrentTrial"] + """ + The trial offer to apply to this subscription item. + """ deleted: NotRequired[bool] """ A flag that, if set to `true`, will delete the specified item. @@ -478,11 +491,11 @@ class SubscriptionUpdateParamsItem(TypedDict): """ price: NotRequired[str] """ - The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. + The ID of the price object. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided. """ price_data: NotRequired["SubscriptionUpdateParamsItemPriceData"] """ - Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required. + Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. You can use either `price` or `price_data`, but not both, to set or change this item's price. If you're updating an existing item without changing its price, omit both. """ quantity: NotRequired[int] """ @@ -501,6 +514,13 @@ class SubscriptionUpdateParamsItemBillingThresholds(TypedDict): """ +class SubscriptionUpdateParamsItemCurrentTrial(TypedDict): + trial_offer: str + """ + The ID of the trial offer to apply to the subscription item. + """ + + class SubscriptionUpdateParamsItemDiscount(TypedDict): coupon: NotRequired[str] """ @@ -577,7 +597,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" + "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', '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', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -609,6 +629,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -697,7 +723,90 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact( class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillie( TypedDict, ): - pass + company_details: NotRequired[ + "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails" + ] + """ + Registration details about the buyer's organization. + """ + + +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetails( + TypedDict, +): + registered_address: NotRequired[ + "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress" + ] + """ + The address the company or entity is registered with. + """ + registered_name: NotRequired[str] + """ + Company or entity name. + """ + registration_number: NotRequired[str] + """ + The official registration number for the given registration type. + """ + registration_type: NotRequired[ + "Literal['']|Literal['ch_ein', 'de_hrb', 'dk_cvr', 'es_cif', 'fi_tunnus', 'fr_siren', 'fr_siret', 'it_rea', 'nl_kvk', 'no_org_number', 'no_pno', 'se_org_number', 'se_pno', 'uk_crn']|str" + ] + """ + Type of registration the company or entity holds in their registered country. + """ + vat: NotRequired[str] + """ + VAT ID number. + """ + + +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillieCompanyDetailsRegisteredAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code. + """ + line1: NotRequired[str] + """ + Address line 1 (for example, street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (for example, apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_at: NotRequired[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard( @@ -975,8 +1084,12 @@ class SubscriptionUpdateParamsTrialSettings(TypedDict): class SubscriptionUpdateParamsTrialSettingsEndBehavior(TypedDict): - missing_payment_method: Union[ - Literal["cancel", "create_invoice", "pause"], str + billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] + """ + Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`. + """ + missing_payment_method: NotRequired[ + "Literal['cancel', 'create_invoice', 'pause']|str" ] """ Indicates how the subscription should change when the trial ends if the user did not provide a payment method. diff --git a/stripe/params/_tax_rate_create_params.py b/stripe/params/_tax_rate_create_params.py index fd468e032..2ca0e360c 100644 --- a/stripe/params/_tax_rate_create_params.py +++ b/stripe/params/_tax_rate_create_params.py @@ -48,7 +48,7 @@ class TaxRateCreateParams(RequestOptions): [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. """ tax_type: NotRequired[ - "Literal['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']|str" + "Literal['amusement_tax', 'communications_tax', 'digital_excise_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'utility_users_tax', 'vat']|str" ] """ The high-level tax type, such as `vat` or `sales_tax`. diff --git a/stripe/params/_tax_rate_modify_params.py b/stripe/params/_tax_rate_modify_params.py index f80102138..d31f79dec 100644 --- a/stripe/params/_tax_rate_modify_params.py +++ b/stripe/params/_tax_rate_modify_params.py @@ -42,7 +42,7 @@ class TaxRateModifyParams(RequestOptions): [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. """ tax_type: NotRequired[ - "Literal['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']|str" + "Literal['amusement_tax', 'communications_tax', 'digital_excise_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'utility_users_tax', 'vat']|str" ] """ The high-level tax type, such as `vat` or `sales_tax`. diff --git a/stripe/params/_tax_rate_update_params.py b/stripe/params/_tax_rate_update_params.py index 6b7fff635..5394fe4e6 100644 --- a/stripe/params/_tax_rate_update_params.py +++ b/stripe/params/_tax_rate_update_params.py @@ -41,7 +41,7 @@ class TaxRateUpdateParams(TypedDict): [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. """ tax_type: NotRequired[ - "Literal['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']|str" + "Literal['amusement_tax', 'communications_tax', 'digital_excise_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'mass_transit_parking_tax', 'parking_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'utility_users_tax', 'vat']|str" ] """ The high-level tax type, such as `vat` or `sales_tax`. diff --git a/stripe/params/_token_create_params.py b/stripe/params/_token_create_params.py index c12dbfaae..0a541b75a 100644 --- a/stripe/params/_token_create_params.py +++ b/stripe/params/_token_create_params.py @@ -402,11 +402,11 @@ class TokenCreateParamsAccountCompanyVerification(TypedDict): class TokenCreateParamsAccountCompanyVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ @@ -685,22 +685,22 @@ class TokenCreateParamsAccountIndividualVerificationAdditionalDocument( ): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ class TokenCreateParamsAccountIndividualVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ @@ -1081,21 +1081,21 @@ class TokenCreateParamsPersonDocuments(TypedDict): class TokenCreateParamsPersonDocumentsCompanyAuthorization(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class TokenCreateParamsPersonDocumentsPassport(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ class TokenCreateParamsPersonDocumentsVisa(TypedDict): files: NotRequired[List[str]] """ - One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. + One or more document ids returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `account_requirement`. """ @@ -1263,22 +1263,22 @@ class TokenCreateParamsPersonVerification(TypedDict): class TokenCreateParamsPersonVerificationAdditionalDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ class TokenCreateParamsPersonVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. """ diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 0cf10fcfd..70d2f2673 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -136,6 +136,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2026-06-24.dahlia", "2026-07-29.dahlia", "2026-08-26.dahlia", + "2026-09-30.endive", ] ] """ @@ -161,6 +162,9 @@ class WebhookEndpointCreateParams(RequestOptions): "application_fee.created", "application_fee.refund.updated", "application_fee.refunded", + "apps.install.created", + "apps.install.deleted", + "apps.install.updated", "balance.available", "balance_settings.updated", "billing.alert.triggered", diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py index 80b294a40..d872d71ae 100644 --- a/stripe/params/_webhook_endpoint_modify_params.py +++ b/stripe/params/_webhook_endpoint_modify_params.py @@ -28,6 +28,9 @@ class WebhookEndpointModifyParams(RequestOptions): "application_fee.created", "application_fee.refund.updated", "application_fee.refunded", + "apps.install.created", + "apps.install.deleted", + "apps.install.updated", "balance.available", "balance_settings.updated", "billing.alert.triggered", diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py index 5c37f6f69..3c78fac79 100644 --- a/stripe/params/_webhook_endpoint_update_params.py +++ b/stripe/params/_webhook_endpoint_update_params.py @@ -27,6 +27,9 @@ class WebhookEndpointUpdateParams(TypedDict): "application_fee.created", "application_fee.refund.updated", "application_fee.refunded", + "apps.install.created", + "apps.install.deleted", + "apps.install.updated", "balance.available", "balance_settings.updated", "billing.alert.triggered", diff --git a/stripe/params/apps/__init__.py b/stripe/params/apps/__init__.py index dd5370ee8..a169a47af 100644 --- a/stripe/params/apps/__init__.py +++ b/stripe/params/apps/__init__.py @@ -4,6 +4,25 @@ from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: + from stripe.params.apps._install_create_params import ( + InstallCreateParams as InstallCreateParams, + ) + from stripe.params.apps._install_list_params import ( + InstallListParams as InstallListParams, + InstallListParamsCreated as InstallListParamsCreated, + ) + from stripe.params.apps._install_modify_params import ( + InstallModifyParams as InstallModifyParams, + ) + from stripe.params.apps._install_retrieve_params import ( + InstallRetrieveParams as InstallRetrieveParams, + ) + from stripe.params.apps._install_uninstall_params import ( + InstallUninstallParams as InstallUninstallParams, + ) + from stripe.params.apps._install_update_params import ( + InstallUpdateParams as InstallUpdateParams, + ) from stripe.params.apps._secret_create_params import ( SecretCreateParams as SecretCreateParams, SecretCreateParamsScope as SecretCreateParamsScope, @@ -23,6 +42,31 @@ # name -> (import_target, is_submodule) _import_map = { + "InstallCreateParams": ( + "stripe.params.apps._install_create_params", + False, + ), + "InstallListParams": ("stripe.params.apps._install_list_params", False), + "InstallListParamsCreated": ( + "stripe.params.apps._install_list_params", + False, + ), + "InstallModifyParams": ( + "stripe.params.apps._install_modify_params", + False, + ), + "InstallRetrieveParams": ( + "stripe.params.apps._install_retrieve_params", + False, + ), + "InstallUninstallParams": ( + "stripe.params.apps._install_uninstall_params", + False, + ), + "InstallUpdateParams": ( + "stripe.params.apps._install_update_params", + False, + ), "SecretCreateParams": ("stripe.params.apps._secret_create_params", False), "SecretCreateParamsScope": ( "stripe.params.apps._secret_create_params", diff --git a/stripe/params/apps/_install_create_params.py b/stripe/params/apps/_install_create_params.py new file mode 100644 index 000000000..a287a4696 --- /dev/null +++ b/stripe/params/apps/_install_create_params.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import Literal, NotRequired + + +class InstallCreateParams(RequestOptions): + app: str + """ + The ID of the app to install. + """ + channel: NotRequired[ + "Literal['private_live', 'private_test', 'public', 'testing']|str" + ] + """ + The distribution channel to install from. Defaults to `public`. A private app must be installed on `private_test` or `private_live`, matching the mode of the API key. + """ + code_challenge: NotRequired[str] + """ + For OAuth apps, the PKCE code challenge used to issue the `auth_code` returned on the install. Must be 43 to 128 characters and contain only letters, numbers, `-`, `.`, `_`, and `~`. Only applies to installs made by the app developer or an embedding platform; ignored when an account installs its own private app. + """ + code_challenge_method: NotRequired[str] + """ + The method used to derive `code_challenge`. Required when `code_challenge` is provided, and must be `S256`. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/apps/_install_list_params.py b/stripe/params/apps/_install_list_params.py new file mode 100644 index 000000000..0b17bd1ac --- /dev/null +++ b/stripe/params/apps/_install_list_params.py @@ -0,0 +1,75 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import Literal, NotRequired, TypedDict + + +class InstallListParams(RequestOptions): + account: NotRequired[str] + """ + Only return installs made by this account. Only useful to app developers and embedding platforms, whose lists span the accounts that installed their app. + """ + app: NotRequired[str] + """ + Only return installs for the app specified by this app ID. + """ + approval_required: NotRequired[bool] + """ + Only return installs whose installer must authorize pending permissions, content security policy entries, or endpoints. + """ + channel: NotRequired[ + "Literal['private_live', 'private_test', 'public', 'testing']|str" + ] + """ + Only return installs in the distribution channel specified by this channel name. + """ + created: NotRequired["InstallListParamsCreated|int"] + """ + Only return app installs that were created during the given date interval. + """ + created_by: NotRequired[str] + """ + Only return installs created by the embedding platform specified by this account ID. + """ + ending_before: NotRequired[str] + """ + A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + limit: NotRequired[int] + """ + A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + """ + starting_after: NotRequired[str] + """ + A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + """ + status: NotRequired[ + "Literal['install_failed', 'installed', 'installing', 'uninstall_failed', 'uninstalling']|str" + ] + """ + Only return installs with the given status. + """ + + +class InstallListParamsCreated(TypedDict): + gt: NotRequired[int] + """ + Minimum value to filter by (exclusive) + """ + gte: NotRequired[int] + """ + Minimum value to filter by (inclusive) + """ + lt: NotRequired[int] + """ + Maximum value to filter by (exclusive) + """ + lte: NotRequired[int] + """ + Maximum value to filter by (inclusive) + """ diff --git a/stripe/params/apps/_install_modify_params.py b/stripe/params/apps/_install_modify_params.py new file mode 100644 index 000000000..b2e10ef43 --- /dev/null +++ b/stripe/params/apps/_install_modify_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class InstallModifyParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/apps/_install_retrieve_params.py b/stripe/params/apps/_install_retrieve_params.py new file mode 100644 index 000000000..ee3371f49 --- /dev/null +++ b/stripe/params/apps/_install_retrieve_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class InstallRetrieveParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/apps/_install_uninstall_params.py b/stripe/params/apps/_install_uninstall_params.py new file mode 100644 index 000000000..e9a49f93f --- /dev/null +++ b/stripe/params/apps/_install_uninstall_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class InstallUninstallParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/apps/_install_update_params.py b/stripe/params/apps/_install_update_params.py new file mode 100644 index 000000000..bd02faf89 --- /dev/null +++ b/stripe/params/apps/_install_update_params.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing import List +from typing_extensions import NotRequired, TypedDict + + +class InstallUpdateParams(TypedDict): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/billing/_feedback_option_create_params.py b/stripe/params/billing/_feedback_option_create_params.py index 5676db13f..dab92123a 100644 --- a/stripe/params/billing/_feedback_option_create_params.py +++ b/stripe/params/billing/_feedback_option_create_params.py @@ -7,6 +7,9 @@ class FeedbackOptionCreateParams(RequestOptions): description: str + """ + The text of the feedback option, which customers see when canceling. Maximum 100 characters. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. diff --git a/stripe/params/billing/_feedback_option_modify_params.py b/stripe/params/billing/_feedback_option_modify_params.py index a84f24863..6a55d21b2 100644 --- a/stripe/params/billing/_feedback_option_modify_params.py +++ b/stripe/params/billing/_feedback_option_modify_params.py @@ -7,6 +7,9 @@ class FeedbackOptionModifyParams(RequestOptions): description: NotRequired[str] + """ + The text of the feedback option, which customers see when canceling. Maximum 100 characters. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. diff --git a/stripe/params/billing/_feedback_option_update_params.py b/stripe/params/billing/_feedback_option_update_params.py index 29704b4a7..36a6bdee1 100644 --- a/stripe/params/billing/_feedback_option_update_params.py +++ b/stripe/params/billing/_feedback_option_update_params.py @@ -6,6 +6,9 @@ class FeedbackOptionUpdateParams(TypedDict): description: NotRequired[str] + """ + The text of the feedback option, which customers see when canceling. Maximum 100 characters. + """ expand: NotRequired[List[str]] """ Specifies which fields in the response should be expanded. diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index 0c865ab53..79199601b 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -38,6 +38,7 @@ SessionCreateParamsLineItemAdjustableQuantity as SessionCreateParamsLineItemAdjustableQuantity, SessionCreateParamsLineItemPriceData as SessionCreateParamsLineItemPriceData, SessionCreateParamsLineItemPriceDataProductData as SessionCreateParamsLineItemPriceDataProductData, + SessionCreateParamsLineItemPriceDataProductDataTaxDetails as SessionCreateParamsLineItemPriceDataProductDataTaxDetails, SessionCreateParamsLineItemPriceDataRecurring as SessionCreateParamsLineItemPriceDataRecurring, SessionCreateParamsManagedPayments as SessionCreateParamsManagedPayments, SessionCreateParamsNameCollection as SessionCreateParamsNameCollection, @@ -63,6 +64,8 @@ SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsBancontact as SessionCreateParamsPaymentMethodOptionsBancontact, SessionCreateParamsPaymentMethodOptionsBillie as SessionCreateParamsPaymentMethodOptionsBillie, + SessionCreateParamsPaymentMethodOptionsBlik as SessionCreateParamsPaymentMethodOptionsBlik, + SessionCreateParamsPaymentMethodOptionsBlikMandateOptions as SessionCreateParamsPaymentMethodOptionsBlikMandateOptions, SessionCreateParamsPaymentMethodOptionsBoleto as SessionCreateParamsPaymentMethodOptionsBoleto, SessionCreateParamsPaymentMethodOptionsCard as SessionCreateParamsPaymentMethodOptionsCard, SessionCreateParamsPaymentMethodOptionsCardInstallments as SessionCreateParamsPaymentMethodOptionsCardInstallments, @@ -104,6 +107,7 @@ SessionCreateParamsPaymentMethodOptionsScalapay as SessionCreateParamsPaymentMethodOptionsScalapay, SessionCreateParamsPaymentMethodOptionsSepaDebit as SessionCreateParamsPaymentMethodOptionsSepaDebit, SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, + SessionCreateParamsPaymentMethodOptionsSequra as SessionCreateParamsPaymentMethodOptionsSequra, SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort, SessionCreateParamsPaymentMethodOptionsSunbit as SessionCreateParamsPaymentMethodOptionsSunbit, SessionCreateParamsPaymentMethodOptionsSwish as SessionCreateParamsPaymentMethodOptionsSwish, @@ -162,6 +166,7 @@ SessionModifyParamsLineItemAdjustableQuantity as SessionModifyParamsLineItemAdjustableQuantity, SessionModifyParamsLineItemPriceData as SessionModifyParamsLineItemPriceData, SessionModifyParamsLineItemPriceDataProductData as SessionModifyParamsLineItemPriceDataProductData, + SessionModifyParamsLineItemPriceDataProductDataTaxDetails as SessionModifyParamsLineItemPriceDataProductDataTaxDetails, SessionModifyParamsLineItemPriceDataRecurring as SessionModifyParamsLineItemPriceDataRecurring, SessionModifyParamsShippingOption as SessionModifyParamsShippingOption, SessionModifyParamsShippingOptionShippingRateData as SessionModifyParamsShippingOptionShippingRateData, @@ -183,6 +188,7 @@ SessionUpdateParamsLineItemAdjustableQuantity as SessionUpdateParamsLineItemAdjustableQuantity, SessionUpdateParamsLineItemPriceData as SessionUpdateParamsLineItemPriceData, SessionUpdateParamsLineItemPriceDataProductData as SessionUpdateParamsLineItemPriceDataProductData, + SessionUpdateParamsLineItemPriceDataProductDataTaxDetails as SessionUpdateParamsLineItemPriceDataProductDataTaxDetails, SessionUpdateParamsLineItemPriceDataRecurring as SessionUpdateParamsLineItemPriceDataRecurring, SessionUpdateParamsShippingOption as SessionUpdateParamsShippingOption, SessionUpdateParamsShippingOptionShippingRateData as SessionUpdateParamsShippingOptionShippingRateData, @@ -327,6 +333,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsLineItemPriceDataProductDataTaxDetails": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsLineItemPriceDataRecurring": ( "stripe.params.checkout._session_create_params", False, @@ -427,6 +437,14 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsBlik": ( + "stripe.params.checkout._session_create_params", + False, + ), + "SessionCreateParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsBoleto": ( "stripe.params.checkout._session_create_params", False, @@ -591,6 +609,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsSequra": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsSofort": ( "stripe.params.checkout._session_create_params", False, @@ -783,6 +805,10 @@ "stripe.params.checkout._session_modify_params", False, ), + "SessionModifyParamsLineItemPriceDataProductDataTaxDetails": ( + "stripe.params.checkout._session_modify_params", + False, + ), "SessionModifyParamsLineItemPriceDataRecurring": ( "stripe.params.checkout._session_modify_params", False, @@ -851,6 +877,10 @@ "stripe.params.checkout._session_update_params", False, ), + "SessionUpdateParamsLineItemPriceDataProductDataTaxDetails": ( + "stripe.params.checkout._session_update_params", + False, + ), "SessionUpdateParamsLineItemPriceDataRecurring": ( "stripe.params.checkout._session_update_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index bb1904127..885461971 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -20,6 +20,78 @@ class SessionCreateParams(RequestOptions): """ Enables user redeemable promotion codes. """ + allowed_payment_method_types: NotRequired[ + List[ + Union[ + 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", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "paypay", + "payto", + "pix", + "promptpay", + "revolut_pay", + "samsung_pay", + "satispay", + "scalapay", + "sepa_debit", + "sequra", + "sofort", + "sunbit", + "swish", + "twint", + "upi", + "us_bank_account", + "wechat_pay", + "zip", + ], + str, + ] + ] + ] + """ + A list of the types of payment methods (e.g., `card`) this Checkout Session can accept. + + Unlike `payment_method_types`, this acts as a filter on the dynamically computed set of + eligible payment methods rather than an explicit static list. Only payment methods that + are both dynamically eligible and present in this list will be offered to the customer. + """ automatic_tax: NotRequired["SessionCreateParamsAutomaticTax"] """ Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions. @@ -145,6 +217,7 @@ class SessionCreateParams(RequestOptions): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -153,6 +226,7 @@ class SessionCreateParams(RequestOptions): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -229,7 +303,7 @@ class SessionCreateParams(RequestOptions): For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices. - You can't set this parameter if `ui_mode` is `custom`. + You can't set this parameter if `ui_mode` is `elements` or `form`. """ origin_context: NotRequired["Literal['mobile_app', 'web']|str"] """ @@ -264,82 +338,6 @@ class SessionCreateParams(RequestOptions): """ Payment-method-specific configuration. """ - payment_method_types: NotRequired[ - List[ - Union[ - 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", - "link", - "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", - ], - str, - ] - ] - ] - """ - A list of the types of payment methods (e.g., `card`) this Checkout Session can accept. - - You can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). - See [Dynamic Payment Methods](https://docs.stripe.com/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details. - - Read more about the supported payment methods and their requirements in our [payment - method details guide](https://docs.stripe.com/docs/payments/checkout/payment-methods). - - If multiple payment methods are passed, Checkout will dynamically reorder them to - prioritize the most relevant payment methods based on the customer's location and - other characteristics. - """ permissions: NotRequired["SessionCreateParamsPermissions"] """ This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions. @@ -627,7 +625,7 @@ class SessionCreateParamsCustomFieldDropdownOption(TypedDict): class SessionCreateParamsCustomFieldLabel(TypedDict): custom: str """ - Custom text for the label, displayed to the customer. Up to 50 characters. + Custom text for the label, displayed to the customer. Up to 100 characters. """ type: Literal["custom"] """ @@ -927,12 +925,29 @@ class SessionCreateParamsLineItemPriceDataProductData(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired[ + "SessionCreateParamsLineItemPriceDataProductDataTaxDetails" + ] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class SessionCreateParamsLineItemPriceDataProductDataTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class SessionCreateParamsLineItemPriceDataRecurring(TypedDict): interval: Union[Literal["day", "month", "week", "year"], str] """ @@ -1206,6 +1221,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Billie payment method options. """ + blik: NotRequired["SessionCreateParamsPaymentMethodOptionsBlik"] + """ + contains details about the BLIK payment method options. + """ boleto: NotRequired["SessionCreateParamsPaymentMethodOptionsBoleto"] """ contains details about the Boleto payment method options. @@ -1344,6 +1363,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Sepa Debit payment method options. """ + sequra: NotRequired["SessionCreateParamsPaymentMethodOptionsSequra"] + """ + contains details about the SeQura payment method options. + """ sofort: NotRequired["SessionCreateParamsPaymentMethodOptionsSofort"] """ contains details about the Sofort payment method options. @@ -1477,7 +1500,7 @@ class SessionCreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): class SessionCreateParamsPaymentMethodOptionsAlipay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired["Literal['none']|str"] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1565,7 +1588,7 @@ class SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions( class SessionCreateParamsPaymentMethodOptionsBancontact(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired["Literal['none', 'off_session']|str"] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1584,6 +1607,25 @@ class SessionCreateParamsPaymentMethodOptionsBillie(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsBlik(TypedDict): + mandate_options: NotRequired[ + "SessionCreateParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']|str" + ] + + +class SessionCreateParamsPaymentMethodOptionsBlikMandateOptions(TypedDict): + expires_at: NotRequired[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ + + class SessionCreateParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired[int] """ @@ -2365,6 +2407,13 @@ class SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions( """ +class SessionCreateParamsPaymentMethodOptionsSequra(TypedDict): + capture_method: NotRequired[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + + class SessionCreateParamsPaymentMethodOptionsSofort(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -2508,7 +2557,7 @@ class SessionCreateParamsPaymentMethodOptionsWechatPay(TypedDict): """ The client type that the end customer will pay from """ - setup_future_usage: NotRequired[Literal["none"]] + setup_future_usage: NotRequired["Literal['none']|str"] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/checkout/_session_modify_params.py b/stripe/params/checkout/_session_modify_params.py index 15156068e..2ad1395b2 100644 --- a/stripe/params/checkout/_session_modify_params.py +++ b/stripe/params/checkout/_session_modify_params.py @@ -201,12 +201,29 @@ class SessionModifyParamsLineItemPriceDataProductData(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired[ + "SessionModifyParamsLineItemPriceDataProductDataTaxDetails" + ] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class SessionModifyParamsLineItemPriceDataProductDataTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class SessionModifyParamsLineItemPriceDataRecurring(TypedDict): interval: Union[Literal["day", "month", "week", "year"], str] """ diff --git a/stripe/params/checkout/_session_update_params.py b/stripe/params/checkout/_session_update_params.py index f00cb9a73..1a5609789 100644 --- a/stripe/params/checkout/_session_update_params.py +++ b/stripe/params/checkout/_session_update_params.py @@ -200,12 +200,29 @@ class SessionUpdateParamsLineItemPriceDataProductData(TypedDict): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: NotRequired[ + "SessionUpdateParamsLineItemPriceDataProductDataTaxDetails" + ] + """ + Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. + """ unit_label: NotRequired[str] """ A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. """ +class SessionUpdateParamsLineItemPriceDataProductDataTaxDetails(TypedDict): + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ + tax_code: NotRequired["Literal['']|str"] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + + class SessionUpdateParamsLineItemPriceDataRecurring(TypedDict): interval: Union[Literal["day", "month", "week", "year"], str] """ diff --git a/stripe/params/financial_connections/_session_create_params.py b/stripe/params/financial_connections/_session_create_params.py index 79c8747af..24d366262 100644 --- a/stripe/params/financial_connections/_session_create_params.py +++ b/stripe/params/financial_connections/_session_create_params.py @@ -86,9 +86,9 @@ class SessionCreateParamsFilters(TypedDict): """ Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. """ - countries: NotRequired[List[str]] + country: NotRequired[str] """ - List of countries from which to collect accounts. + Country from which to collect accounts. """ require_payment_method_support: NotRequired[ Literal["all", "at_least_one", "none"] diff --git a/stripe/params/issuing/_cardholder_create_params.py b/stripe/params/issuing/_cardholder_create_params.py index e20d2baa8..ff353f286 100644 --- a/stripe/params/issuing/_cardholder_create_params.py +++ b/stripe/params/issuing/_cardholder_create_params.py @@ -177,11 +177,11 @@ class CardholderCreateParamsIndividualVerification(TypedDict): class CardholderCreateParamsIndividualVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ diff --git a/stripe/params/issuing/_cardholder_modify_params.py b/stripe/params/issuing/_cardholder_modify_params.py index 0965a2c61..34ab02be9 100644 --- a/stripe/params/issuing/_cardholder_modify_params.py +++ b/stripe/params/issuing/_cardholder_modify_params.py @@ -169,11 +169,11 @@ class CardholderModifyParamsIndividualVerification(TypedDict): class CardholderModifyParamsIndividualVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ diff --git a/stripe/params/issuing/_cardholder_update_params.py b/stripe/params/issuing/_cardholder_update_params.py index 4bb2ad334..874184977 100644 --- a/stripe/params/issuing/_cardholder_update_params.py +++ b/stripe/params/issuing/_cardholder_update_params.py @@ -168,11 +168,11 @@ class CardholderUpdateParamsIndividualVerification(TypedDict): class CardholderUpdateParamsIndividualVerificationDocument(TypedDict): back: NotRequired[str] """ - The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The back of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ front: NotRequired[str] """ - The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. + The front of an ID returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `identity_document`. """ diff --git a/stripe/params/product_catalog/__init__.py b/stripe/params/product_catalog/__init__.py new file mode 100644 index 000000000..3ad2e93c2 --- /dev/null +++ b/stripe/params/product_catalog/__init__.py @@ -0,0 +1,85 @@ +# -*- 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.product_catalog._trial_offer_create_params import ( + TrialOfferCreateParams as TrialOfferCreateParams, + TrialOfferCreateParamsDuration as TrialOfferCreateParamsDuration, + TrialOfferCreateParamsDurationRelative as TrialOfferCreateParamsDurationRelative, + TrialOfferCreateParamsEndBehavior as TrialOfferCreateParamsEndBehavior, + TrialOfferCreateParamsEndBehaviorTransition as TrialOfferCreateParamsEndBehaviorTransition, + ) + from stripe.params.product_catalog._trial_offer_list_params import ( + TrialOfferListParams as TrialOfferListParams, + TrialOfferListParamsCreated as TrialOfferListParamsCreated, + ) + from stripe.params.product_catalog._trial_offer_modify_params import ( + TrialOfferModifyParams as TrialOfferModifyParams, + ) + from stripe.params.product_catalog._trial_offer_retrieve_params import ( + TrialOfferRetrieveParams as TrialOfferRetrieveParams, + ) + from stripe.params.product_catalog._trial_offer_update_params import ( + TrialOfferUpdateParams as TrialOfferUpdateParams, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "TrialOfferCreateParams": ( + "stripe.params.product_catalog._trial_offer_create_params", + False, + ), + "TrialOfferCreateParamsDuration": ( + "stripe.params.product_catalog._trial_offer_create_params", + False, + ), + "TrialOfferCreateParamsDurationRelative": ( + "stripe.params.product_catalog._trial_offer_create_params", + False, + ), + "TrialOfferCreateParamsEndBehavior": ( + "stripe.params.product_catalog._trial_offer_create_params", + False, + ), + "TrialOfferCreateParamsEndBehaviorTransition": ( + "stripe.params.product_catalog._trial_offer_create_params", + False, + ), + "TrialOfferListParams": ( + "stripe.params.product_catalog._trial_offer_list_params", + False, + ), + "TrialOfferListParamsCreated": ( + "stripe.params.product_catalog._trial_offer_list_params", + False, + ), + "TrialOfferModifyParams": ( + "stripe.params.product_catalog._trial_offer_modify_params", + False, + ), + "TrialOfferRetrieveParams": ( + "stripe.params.product_catalog._trial_offer_retrieve_params", + False, + ), + "TrialOfferUpdateParams": ( + "stripe.params.product_catalog._trial_offer_update_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/product_catalog/_trial_offer_create_params.py b/stripe/params/product_catalog/_trial_offer_create_params.py new file mode 100644 index 000000000..34fdda067 --- /dev/null +++ b/stripe/params/product_catalog/_trial_offer_create_params.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List, Union +from typing_extensions import Literal, NotRequired, TypedDict + + +class TrialOfferCreateParams(RequestOptions): + active: NotRequired[bool] + """ + Whether the trial offer can be used for new subscriptions. Defaults to true. + """ + duration: "TrialOfferCreateParamsDuration" + """ + Duration of one service period of the trial. + """ + end_behavior: "TrialOfferCreateParamsEndBehavior" + """ + Define behavior that occurs at the end of the trial. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + nickname: NotRequired[str] + """ + A brief description of the trial offer, hidden from customers. + """ + price: str + """ + Price configuration during the trial period (amount, billing scheme, etc). + """ + + +class TrialOfferCreateParamsDuration(TypedDict): + relative: NotRequired["TrialOfferCreateParamsDurationRelative"] + """ + The relative duration of the trial period computed as the number of recurring price intervals. + """ + type: Union[Literal["relative"], str] + """ + Specifies how the trial offer duration is determined. + """ + + +class TrialOfferCreateParamsDurationRelative(TypedDict): + iterations: int + """ + The number of recurring price's interval to apply for the trial period. + """ + + +class TrialOfferCreateParamsEndBehavior(TypedDict): + transition: "TrialOfferCreateParamsEndBehaviorTransition" + """ + The transition to apply when the trial offer ends. + """ + + +class TrialOfferCreateParamsEndBehaviorTransition(TypedDict): + price: str + """ + The price to transition the recurring item to when the trial offer ends. + """ diff --git a/stripe/params/product_catalog/_trial_offer_list_params.py b/stripe/params/product_catalog/_trial_offer_list_params.py new file mode 100644 index 000000000..0ff6b9759 --- /dev/null +++ b/stripe/params/product_catalog/_trial_offer_list_params.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired, TypedDict + + +class TrialOfferListParams(RequestOptions): + active: NotRequired[bool] + """ + Only return trial offers that are active (`true`) or archived (`false`). If omitted, both active and archived trial offers are returned. + """ + created: NotRequired["TrialOfferListParamsCreated|int"] + """ + Only return trial offers that were created during the given date interval. + """ + ending_before: NotRequired[str] + """ + A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + limit: NotRequired[int] + """ + A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + """ + prices: NotRequired[List[str]] + """ + Only return trial offers that reference these prices (during the trial period). + """ + starting_after: NotRequired[str] + """ + A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + """ + + +class TrialOfferListParamsCreated(TypedDict): + gt: NotRequired[int] + """ + Minimum value to filter by (exclusive) + """ + gte: NotRequired[int] + """ + Minimum value to filter by (inclusive) + """ + lt: NotRequired[int] + """ + Maximum value to filter by (exclusive) + """ + lte: NotRequired[int] + """ + Maximum value to filter by (inclusive) + """ diff --git a/stripe/params/product_catalog/_trial_offer_modify_params.py b/stripe/params/product_catalog/_trial_offer_modify_params.py new file mode 100644 index 000000000..9b6cb3423 --- /dev/null +++ b/stripe/params/product_catalog/_trial_offer_modify_params.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class TrialOfferModifyParams(RequestOptions): + active: NotRequired[bool] + """ + Whether the trial offer can be used for new purchases. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/product_catalog/_trial_offer_retrieve_params.py b/stripe/params/product_catalog/_trial_offer_retrieve_params.py new file mode 100644 index 000000000..ea22d8d8e --- /dev/null +++ b/stripe/params/product_catalog/_trial_offer_retrieve_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class TrialOfferRetrieveParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/product_catalog/_trial_offer_update_params.py b/stripe/params/product_catalog/_trial_offer_update_params.py new file mode 100644 index 000000000..5093edd44 --- /dev/null +++ b/stripe/params/product_catalog/_trial_offer_update_params.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing import List +from typing_extensions import NotRequired, TypedDict + + +class TrialOfferUpdateParams(TypedDict): + active: NotRequired[bool] + """ + Whether the trial offer can be used for new purchases. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/radar/_payment_evaluation_create_params.py b/stripe/params/radar/_payment_evaluation_create_params.py index b575ad3a3..bc2360774 100644 --- a/stripe/params/radar/_payment_evaluation_create_params.py +++ b/stripe/params/radar/_payment_evaluation_create_params.py @@ -105,11 +105,11 @@ class PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetails( "PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsCard" ] """ - Describes card money movement details for the payment evaluation. + Describes card money movement details. """ money_movement_type: Literal["card"] """ - Describes the type of money movement. Currently only `card` is supported. + Describes the type of money movement. """ diff --git a/stripe/params/tax/__init__.py b/stripe/params/tax/__init__.py index bb07a15ce..4eec90bd0 100644 --- a/stripe/params/tax/__init__.py +++ b/stripe/params/tax/__init__.py @@ -26,6 +26,16 @@ from stripe.params.tax._calculation_retrieve_params import ( CalculationRetrieveParams as CalculationRetrieveParams, ) + from stripe.params.tax._location_create_params import ( + LocationCreateParams as LocationCreateParams, + LocationCreateParamsAddress as LocationCreateParamsAddress, + ) + from stripe.params.tax._location_list_params import ( + LocationListParams as LocationListParams, + ) + from stripe.params.tax._location_retrieve_params import ( + LocationRetrieveParams as LocationRetrieveParams, + ) from stripe.params.tax._registration_create_params import ( RegistrationCreateParams as RegistrationCreateParams, RegistrationCreateParamsCountryOptions as RegistrationCreateParamsCountryOptions, @@ -37,7 +47,6 @@ RegistrationCreateParamsCountryOptionsAo as RegistrationCreateParamsCountryOptionsAo, RegistrationCreateParamsCountryOptionsAoStandard as RegistrationCreateParamsCountryOptionsAoStandard, RegistrationCreateParamsCountryOptionsAt as RegistrationCreateParamsCountryOptionsAt, - RegistrationCreateParamsCountryOptionsAtIgic as RegistrationCreateParamsCountryOptionsAtIgic, RegistrationCreateParamsCountryOptionsAtStandard as RegistrationCreateParamsCountryOptionsAtStandard, RegistrationCreateParamsCountryOptionsAu as RegistrationCreateParamsCountryOptionsAu, RegistrationCreateParamsCountryOptionsAuStandard as RegistrationCreateParamsCountryOptionsAuStandard, @@ -51,12 +60,10 @@ RegistrationCreateParamsCountryOptionsBd as RegistrationCreateParamsCountryOptionsBd, RegistrationCreateParamsCountryOptionsBdStandard as RegistrationCreateParamsCountryOptionsBdStandard, RegistrationCreateParamsCountryOptionsBe as RegistrationCreateParamsCountryOptionsBe, - RegistrationCreateParamsCountryOptionsBeIgic as RegistrationCreateParamsCountryOptionsBeIgic, RegistrationCreateParamsCountryOptionsBeStandard as RegistrationCreateParamsCountryOptionsBeStandard, RegistrationCreateParamsCountryOptionsBf as RegistrationCreateParamsCountryOptionsBf, RegistrationCreateParamsCountryOptionsBfStandard as RegistrationCreateParamsCountryOptionsBfStandard, RegistrationCreateParamsCountryOptionsBg as RegistrationCreateParamsCountryOptionsBg, - RegistrationCreateParamsCountryOptionsBgIgic as RegistrationCreateParamsCountryOptionsBgIgic, RegistrationCreateParamsCountryOptionsBgStandard as RegistrationCreateParamsCountryOptionsBgStandard, RegistrationCreateParamsCountryOptionsBh as RegistrationCreateParamsCountryOptionsBh, RegistrationCreateParamsCountryOptionsBhStandard as RegistrationCreateParamsCountryOptionsBhStandard, @@ -76,32 +83,24 @@ RegistrationCreateParamsCountryOptionsCr as RegistrationCreateParamsCountryOptionsCr, RegistrationCreateParamsCountryOptionsCv as RegistrationCreateParamsCountryOptionsCv, RegistrationCreateParamsCountryOptionsCy as RegistrationCreateParamsCountryOptionsCy, - RegistrationCreateParamsCountryOptionsCyIgic as RegistrationCreateParamsCountryOptionsCyIgic, RegistrationCreateParamsCountryOptionsCyStandard as RegistrationCreateParamsCountryOptionsCyStandard, RegistrationCreateParamsCountryOptionsCz as RegistrationCreateParamsCountryOptionsCz, - RegistrationCreateParamsCountryOptionsCzIgic as RegistrationCreateParamsCountryOptionsCzIgic, RegistrationCreateParamsCountryOptionsCzStandard as RegistrationCreateParamsCountryOptionsCzStandard, RegistrationCreateParamsCountryOptionsDe as RegistrationCreateParamsCountryOptionsDe, - RegistrationCreateParamsCountryOptionsDeIgic as RegistrationCreateParamsCountryOptionsDeIgic, RegistrationCreateParamsCountryOptionsDeStandard as RegistrationCreateParamsCountryOptionsDeStandard, RegistrationCreateParamsCountryOptionsDk as RegistrationCreateParamsCountryOptionsDk, - RegistrationCreateParamsCountryOptionsDkIgic as RegistrationCreateParamsCountryOptionsDkIgic, RegistrationCreateParamsCountryOptionsDkStandard as RegistrationCreateParamsCountryOptionsDkStandard, RegistrationCreateParamsCountryOptionsEc as RegistrationCreateParamsCountryOptionsEc, RegistrationCreateParamsCountryOptionsEe as RegistrationCreateParamsCountryOptionsEe, - RegistrationCreateParamsCountryOptionsEeIgic as RegistrationCreateParamsCountryOptionsEeIgic, RegistrationCreateParamsCountryOptionsEeStandard as RegistrationCreateParamsCountryOptionsEeStandard, RegistrationCreateParamsCountryOptionsEg as RegistrationCreateParamsCountryOptionsEg, RegistrationCreateParamsCountryOptionsEs as RegistrationCreateParamsCountryOptionsEs, - RegistrationCreateParamsCountryOptionsEsIgic as RegistrationCreateParamsCountryOptionsEsIgic, RegistrationCreateParamsCountryOptionsEsStandard as RegistrationCreateParamsCountryOptionsEsStandard, RegistrationCreateParamsCountryOptionsEt as RegistrationCreateParamsCountryOptionsEt, RegistrationCreateParamsCountryOptionsEtStandard as RegistrationCreateParamsCountryOptionsEtStandard, RegistrationCreateParamsCountryOptionsFi as RegistrationCreateParamsCountryOptionsFi, - RegistrationCreateParamsCountryOptionsFiIgic as RegistrationCreateParamsCountryOptionsFiIgic, RegistrationCreateParamsCountryOptionsFiStandard as RegistrationCreateParamsCountryOptionsFiStandard, RegistrationCreateParamsCountryOptionsFr as RegistrationCreateParamsCountryOptionsFr, - RegistrationCreateParamsCountryOptionsFrIgic as RegistrationCreateParamsCountryOptionsFrIgic, RegistrationCreateParamsCountryOptionsFrStandard as RegistrationCreateParamsCountryOptionsFrStandard, RegistrationCreateParamsCountryOptionsGb as RegistrationCreateParamsCountryOptionsGb, RegistrationCreateParamsCountryOptionsGbStandard as RegistrationCreateParamsCountryOptionsGbStandard, @@ -109,23 +108,18 @@ RegistrationCreateParamsCountryOptionsGn as RegistrationCreateParamsCountryOptionsGn, RegistrationCreateParamsCountryOptionsGnStandard as RegistrationCreateParamsCountryOptionsGnStandard, RegistrationCreateParamsCountryOptionsGr as RegistrationCreateParamsCountryOptionsGr, - RegistrationCreateParamsCountryOptionsGrIgic as RegistrationCreateParamsCountryOptionsGrIgic, RegistrationCreateParamsCountryOptionsGrStandard as RegistrationCreateParamsCountryOptionsGrStandard, RegistrationCreateParamsCountryOptionsHr as RegistrationCreateParamsCountryOptionsHr, - RegistrationCreateParamsCountryOptionsHrIgic as RegistrationCreateParamsCountryOptionsHrIgic, RegistrationCreateParamsCountryOptionsHrStandard as RegistrationCreateParamsCountryOptionsHrStandard, RegistrationCreateParamsCountryOptionsHu as RegistrationCreateParamsCountryOptionsHu, - RegistrationCreateParamsCountryOptionsHuIgic as RegistrationCreateParamsCountryOptionsHuIgic, RegistrationCreateParamsCountryOptionsHuStandard as RegistrationCreateParamsCountryOptionsHuStandard, RegistrationCreateParamsCountryOptionsId as RegistrationCreateParamsCountryOptionsId, RegistrationCreateParamsCountryOptionsIe as RegistrationCreateParamsCountryOptionsIe, - RegistrationCreateParamsCountryOptionsIeIgic as RegistrationCreateParamsCountryOptionsIeIgic, RegistrationCreateParamsCountryOptionsIeStandard as RegistrationCreateParamsCountryOptionsIeStandard, RegistrationCreateParamsCountryOptionsIn as RegistrationCreateParamsCountryOptionsIn, RegistrationCreateParamsCountryOptionsIs as RegistrationCreateParamsCountryOptionsIs, RegistrationCreateParamsCountryOptionsIsStandard as RegistrationCreateParamsCountryOptionsIsStandard, RegistrationCreateParamsCountryOptionsIt as RegistrationCreateParamsCountryOptionsIt, - RegistrationCreateParamsCountryOptionsItIgic as RegistrationCreateParamsCountryOptionsItIgic, RegistrationCreateParamsCountryOptionsItStandard as RegistrationCreateParamsCountryOptionsItStandard, RegistrationCreateParamsCountryOptionsJp as RegistrationCreateParamsCountryOptionsJp, RegistrationCreateParamsCountryOptionsJpStandard as RegistrationCreateParamsCountryOptionsJpStandard, @@ -137,13 +131,10 @@ RegistrationCreateParamsCountryOptionsLa as RegistrationCreateParamsCountryOptionsLa, RegistrationCreateParamsCountryOptionsLk as RegistrationCreateParamsCountryOptionsLk, RegistrationCreateParamsCountryOptionsLt as RegistrationCreateParamsCountryOptionsLt, - RegistrationCreateParamsCountryOptionsLtIgic as RegistrationCreateParamsCountryOptionsLtIgic, RegistrationCreateParamsCountryOptionsLtStandard as RegistrationCreateParamsCountryOptionsLtStandard, RegistrationCreateParamsCountryOptionsLu as RegistrationCreateParamsCountryOptionsLu, - RegistrationCreateParamsCountryOptionsLuIgic as RegistrationCreateParamsCountryOptionsLuIgic, RegistrationCreateParamsCountryOptionsLuStandard as RegistrationCreateParamsCountryOptionsLuStandard, RegistrationCreateParamsCountryOptionsLv as RegistrationCreateParamsCountryOptionsLv, - RegistrationCreateParamsCountryOptionsLvIgic as RegistrationCreateParamsCountryOptionsLvIgic, RegistrationCreateParamsCountryOptionsLvStandard as RegistrationCreateParamsCountryOptionsLvStandard, RegistrationCreateParamsCountryOptionsMa as RegistrationCreateParamsCountryOptionsMa, RegistrationCreateParamsCountryOptionsMd as RegistrationCreateParamsCountryOptionsMd, @@ -154,13 +145,11 @@ RegistrationCreateParamsCountryOptionsMr as RegistrationCreateParamsCountryOptionsMr, RegistrationCreateParamsCountryOptionsMrStandard as RegistrationCreateParamsCountryOptionsMrStandard, RegistrationCreateParamsCountryOptionsMt as RegistrationCreateParamsCountryOptionsMt, - RegistrationCreateParamsCountryOptionsMtIgic as RegistrationCreateParamsCountryOptionsMtIgic, RegistrationCreateParamsCountryOptionsMtStandard as RegistrationCreateParamsCountryOptionsMtStandard, RegistrationCreateParamsCountryOptionsMx as RegistrationCreateParamsCountryOptionsMx, RegistrationCreateParamsCountryOptionsMy as RegistrationCreateParamsCountryOptionsMy, RegistrationCreateParamsCountryOptionsNg as RegistrationCreateParamsCountryOptionsNg, RegistrationCreateParamsCountryOptionsNl as RegistrationCreateParamsCountryOptionsNl, - RegistrationCreateParamsCountryOptionsNlIgic as RegistrationCreateParamsCountryOptionsNlIgic, RegistrationCreateParamsCountryOptionsNlStandard as RegistrationCreateParamsCountryOptionsNlStandard, RegistrationCreateParamsCountryOptionsNo as RegistrationCreateParamsCountryOptionsNo, RegistrationCreateParamsCountryOptionsNoStandard as RegistrationCreateParamsCountryOptionsNoStandard, @@ -172,28 +161,22 @@ RegistrationCreateParamsCountryOptionsPe as RegistrationCreateParamsCountryOptionsPe, RegistrationCreateParamsCountryOptionsPh as RegistrationCreateParamsCountryOptionsPh, RegistrationCreateParamsCountryOptionsPl as RegistrationCreateParamsCountryOptionsPl, - RegistrationCreateParamsCountryOptionsPlIgic as RegistrationCreateParamsCountryOptionsPlIgic, RegistrationCreateParamsCountryOptionsPlStandard as RegistrationCreateParamsCountryOptionsPlStandard, RegistrationCreateParamsCountryOptionsPt as RegistrationCreateParamsCountryOptionsPt, - RegistrationCreateParamsCountryOptionsPtIgic as RegistrationCreateParamsCountryOptionsPtIgic, RegistrationCreateParamsCountryOptionsPtStandard as RegistrationCreateParamsCountryOptionsPtStandard, RegistrationCreateParamsCountryOptionsRo as RegistrationCreateParamsCountryOptionsRo, - RegistrationCreateParamsCountryOptionsRoIgic as RegistrationCreateParamsCountryOptionsRoIgic, RegistrationCreateParamsCountryOptionsRoStandard as RegistrationCreateParamsCountryOptionsRoStandard, RegistrationCreateParamsCountryOptionsRs as RegistrationCreateParamsCountryOptionsRs, RegistrationCreateParamsCountryOptionsRsStandard as RegistrationCreateParamsCountryOptionsRsStandard, RegistrationCreateParamsCountryOptionsRu as RegistrationCreateParamsCountryOptionsRu, RegistrationCreateParamsCountryOptionsSa as RegistrationCreateParamsCountryOptionsSa, RegistrationCreateParamsCountryOptionsSe as RegistrationCreateParamsCountryOptionsSe, - RegistrationCreateParamsCountryOptionsSeIgic as RegistrationCreateParamsCountryOptionsSeIgic, RegistrationCreateParamsCountryOptionsSeStandard as RegistrationCreateParamsCountryOptionsSeStandard, RegistrationCreateParamsCountryOptionsSg as RegistrationCreateParamsCountryOptionsSg, RegistrationCreateParamsCountryOptionsSgStandard as RegistrationCreateParamsCountryOptionsSgStandard, RegistrationCreateParamsCountryOptionsSi as RegistrationCreateParamsCountryOptionsSi, - RegistrationCreateParamsCountryOptionsSiIgic as RegistrationCreateParamsCountryOptionsSiIgic, RegistrationCreateParamsCountryOptionsSiStandard as RegistrationCreateParamsCountryOptionsSiStandard, RegistrationCreateParamsCountryOptionsSk as RegistrationCreateParamsCountryOptionsSk, - RegistrationCreateParamsCountryOptionsSkIgic as RegistrationCreateParamsCountryOptionsSkIgic, RegistrationCreateParamsCountryOptionsSkStandard as RegistrationCreateParamsCountryOptionsSkStandard, RegistrationCreateParamsCountryOptionsSn as RegistrationCreateParamsCountryOptionsSn, RegistrationCreateParamsCountryOptionsSr as RegistrationCreateParamsCountryOptionsSr, @@ -206,12 +189,20 @@ RegistrationCreateParamsCountryOptionsUa as RegistrationCreateParamsCountryOptionsUa, RegistrationCreateParamsCountryOptionsUg as RegistrationCreateParamsCountryOptionsUg, RegistrationCreateParamsCountryOptionsUs as RegistrationCreateParamsCountryOptionsUs, + RegistrationCreateParamsCountryOptionsUsAdmissionsTax as RegistrationCreateParamsCountryOptionsUsAdmissionsTax, + RegistrationCreateParamsCountryOptionsUsAttendanceTax as RegistrationCreateParamsCountryOptionsUsAttendanceTax, + RegistrationCreateParamsCountryOptionsUsEntertainmentTax as RegistrationCreateParamsCountryOptionsUsEntertainmentTax, + RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax as RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax, + RegistrationCreateParamsCountryOptionsUsHospitalityTax as RegistrationCreateParamsCountryOptionsUsHospitalityTax, RegistrationCreateParamsCountryOptionsUsLocalAmusementTax as RegistrationCreateParamsCountryOptionsUsLocalAmusementTax, RegistrationCreateParamsCountryOptionsUsLocalLeaseTax as RegistrationCreateParamsCountryOptionsUsLocalLeaseTax, + RegistrationCreateParamsCountryOptionsUsLuxuryTax as RegistrationCreateParamsCountryOptionsUsLuxuryTax, RegistrationCreateParamsCountryOptionsUsMassTransitParkingTax as RegistrationCreateParamsCountryOptionsUsMassTransitParkingTax, RegistrationCreateParamsCountryOptionsUsParkingTax as RegistrationCreateParamsCountryOptionsUsParkingTax, + RegistrationCreateParamsCountryOptionsUsResortTax as RegistrationCreateParamsCountryOptionsUsResortTax, RegistrationCreateParamsCountryOptionsUsStateSalesTax as RegistrationCreateParamsCountryOptionsUsStateSalesTax, RegistrationCreateParamsCountryOptionsUsStateSalesTaxElection as RegistrationCreateParamsCountryOptionsUsStateSalesTaxElection, + RegistrationCreateParamsCountryOptionsUsTourismTax as RegistrationCreateParamsCountryOptionsUsTourismTax, RegistrationCreateParamsCountryOptionsUy as RegistrationCreateParamsCountryOptionsUy, RegistrationCreateParamsCountryOptionsUyStandard as RegistrationCreateParamsCountryOptionsUyStandard, RegistrationCreateParamsCountryOptionsUz as RegistrationCreateParamsCountryOptionsUz, @@ -317,6 +308,19 @@ "stripe.params.tax._calculation_retrieve_params", False, ), + "LocationCreateParams": ( + "stripe.params.tax._location_create_params", + False, + ), + "LocationCreateParamsAddress": ( + "stripe.params.tax._location_create_params", + False, + ), + "LocationListParams": ("stripe.params.tax._location_list_params", False), + "LocationRetrieveParams": ( + "stripe.params.tax._location_retrieve_params", + False, + ), "RegistrationCreateParams": ( "stripe.params.tax._registration_create_params", False, @@ -357,10 +361,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsAtIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsAtStandard": ( "stripe.params.tax._registration_create_params", False, @@ -413,10 +413,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsBeIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsBeStandard": ( "stripe.params.tax._registration_create_params", False, @@ -433,10 +429,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsBgIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsBgStandard": ( "stripe.params.tax._registration_create_params", False, @@ -513,10 +505,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsCyIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsCyStandard": ( "stripe.params.tax._registration_create_params", False, @@ -525,10 +513,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsCzIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsCzStandard": ( "stripe.params.tax._registration_create_params", False, @@ -537,10 +521,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsDeIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsDeStandard": ( "stripe.params.tax._registration_create_params", False, @@ -549,10 +529,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsDkIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsDkStandard": ( "stripe.params.tax._registration_create_params", False, @@ -565,10 +541,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsEeIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsEeStandard": ( "stripe.params.tax._registration_create_params", False, @@ -581,10 +553,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsEsIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsEsStandard": ( "stripe.params.tax._registration_create_params", False, @@ -601,10 +569,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsFiIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsFiStandard": ( "stripe.params.tax._registration_create_params", False, @@ -613,10 +577,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsFrIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsFrStandard": ( "stripe.params.tax._registration_create_params", False, @@ -645,10 +605,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsGrIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsGrStandard": ( "stripe.params.tax._registration_create_params", False, @@ -657,10 +613,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsHrIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsHrStandard": ( "stripe.params.tax._registration_create_params", False, @@ -669,10 +621,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsHuIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsHuStandard": ( "stripe.params.tax._registration_create_params", False, @@ -685,10 +633,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsIeIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsIeStandard": ( "stripe.params.tax._registration_create_params", False, @@ -709,10 +653,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsItIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsItStandard": ( "stripe.params.tax._registration_create_params", False, @@ -757,10 +697,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsLtIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsLtStandard": ( "stripe.params.tax._registration_create_params", False, @@ -769,10 +705,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsLuIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsLuStandard": ( "stripe.params.tax._registration_create_params", False, @@ -781,10 +713,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsLvIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsLvStandard": ( "stripe.params.tax._registration_create_params", False, @@ -825,10 +753,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsMtIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsMtStandard": ( "stripe.params.tax._registration_create_params", False, @@ -849,10 +773,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsNlIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsNlStandard": ( "stripe.params.tax._registration_create_params", False, @@ -897,10 +817,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsPlIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsPlStandard": ( "stripe.params.tax._registration_create_params", False, @@ -909,10 +825,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsPtIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsPtStandard": ( "stripe.params.tax._registration_create_params", False, @@ -921,10 +833,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsRoIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsRoStandard": ( "stripe.params.tax._registration_create_params", False, @@ -949,10 +857,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsSeIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsSeStandard": ( "stripe.params.tax._registration_create_params", False, @@ -969,10 +873,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsSiIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsSiStandard": ( "stripe.params.tax._registration_create_params", False, @@ -981,10 +881,6 @@ "stripe.params.tax._registration_create_params", False, ), - "RegistrationCreateParamsCountryOptionsSkIgic": ( - "stripe.params.tax._registration_create_params", - False, - ), "RegistrationCreateParamsCountryOptionsSkStandard": ( "stripe.params.tax._registration_create_params", False, @@ -1033,6 +929,26 @@ "stripe.params.tax._registration_create_params", False, ), + "RegistrationCreateParamsCountryOptionsUsAdmissionsTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsAttendanceTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsEntertainmentTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsHospitalityTax": ( + "stripe.params.tax._registration_create_params", + False, + ), "RegistrationCreateParamsCountryOptionsUsLocalAmusementTax": ( "stripe.params.tax._registration_create_params", False, @@ -1041,6 +957,10 @@ "stripe.params.tax._registration_create_params", False, ), + "RegistrationCreateParamsCountryOptionsUsLuxuryTax": ( + "stripe.params.tax._registration_create_params", + False, + ), "RegistrationCreateParamsCountryOptionsUsMassTransitParkingTax": ( "stripe.params.tax._registration_create_params", False, @@ -1049,6 +969,10 @@ "stripe.params.tax._registration_create_params", False, ), + "RegistrationCreateParamsCountryOptionsUsResortTax": ( + "stripe.params.tax._registration_create_params", + False, + ), "RegistrationCreateParamsCountryOptionsUsStateSalesTax": ( "stripe.params.tax._registration_create_params", False, @@ -1057,6 +981,10 @@ "stripe.params.tax._registration_create_params", False, ), + "RegistrationCreateParamsCountryOptionsUsTourismTax": ( + "stripe.params.tax._registration_create_params", + False, + ), "RegistrationCreateParamsCountryOptionsUy": ( "stripe.params.tax._registration_create_params", False, diff --git a/stripe/params/tax/_calculation_create_params.py b/stripe/params/tax/_calculation_create_params.py index 59e5c3e13..44ea1631e 100644 --- a/stripe/params/tax/_calculation_create_params.py +++ b/stripe/params/tax/_calculation_create_params.py @@ -235,6 +235,10 @@ class CalculationCreateParamsLineItem(TypedDict): """ 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. """ + performance_location: NotRequired[str] + """ + A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported. + """ product: NotRequired[str] """ If provided, the product's `tax_code` will be used as the line item's `tax_code`. diff --git a/stripe/params/tax/_location_create_params.py b/stripe/params/tax/_location_create_params.py new file mode 100644 index 000000000..8aa5abfca --- /dev/null +++ b/stripe/params/tax/_location_create_params.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import Literal, NotRequired, TypedDict + + +class LocationCreateParams(RequestOptions): + address: "LocationCreateParamsAddress" + """ + The physical address of the tax location. + """ + description: NotRequired[str] + """ + Details to identify the tax location by its venue, types of events held, or available services, such as "A spacious auditorium suitable for large concerts and events.". + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + type: Literal["performance"] + """ + The type of tax location. The only supported value is "performance". + """ + + +class LocationCreateParamsAddress(TypedDict): + city: NotRequired["Literal['']|str"] + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired["Literal['']|str"] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired["Literal['']|str"] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired["Literal['']|str"] + """ + ZIP or postal code. + """ + state: NotRequired["Literal['']|str"] + """ + State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX". + """ diff --git a/stripe/params/tax/_location_list_params.py b/stripe/params/tax/_location_list_params.py new file mode 100644 index 000000000..cbe266706 --- /dev/null +++ b/stripe/params/tax/_location_list_params.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import Literal, NotRequired + + +class LocationListParams(RequestOptions): + ending_before: NotRequired[str] + """ + A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + limit: NotRequired[int] + """ + A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + """ + starting_after: NotRequired[str] + """ + A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + """ + type: Literal["performance"] + """ + Type of the tax location. Currently the only option is `performance`. + """ diff --git a/stripe/params/tax/_location_retrieve_params.py b/stripe/params/tax/_location_retrieve_params.py new file mode 100644 index 000000000..107563bb5 --- /dev/null +++ b/stripe/params/tax/_location_retrieve_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class LocationRetrieveParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/tax/_registration_create_params.py b/stripe/params/tax/_registration_create_params.py index 54501d240..38f814bfa 100644 --- a/stripe/params/tax/_registration_create_params.py +++ b/stripe/params/tax/_registration_create_params.py @@ -506,10 +506,6 @@ class RegistrationCreateParamsCountryOptionsAoStandard(TypedDict): class RegistrationCreateParamsCountryOptionsAt(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsAtIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsAtStandard"] """ Options for the standard registration. @@ -520,13 +516,6 @@ class RegistrationCreateParamsCountryOptionsAt(TypedDict): """ -class RegistrationCreateParamsCountryOptionsAtIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsAtStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -644,10 +633,6 @@ class RegistrationCreateParamsCountryOptionsBdStandard(TypedDict): class RegistrationCreateParamsCountryOptionsBe(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsBeIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsBeStandard"] """ Options for the standard registration. @@ -658,13 +643,6 @@ class RegistrationCreateParamsCountryOptionsBe(TypedDict): """ -class RegistrationCreateParamsCountryOptionsBeIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsBeStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -695,10 +673,6 @@ class RegistrationCreateParamsCountryOptionsBfStandard(TypedDict): class RegistrationCreateParamsCountryOptionsBg(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsBgIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsBgStandard"] """ Options for the standard registration. @@ -709,13 +683,6 @@ class RegistrationCreateParamsCountryOptionsBg(TypedDict): """ -class RegistrationCreateParamsCountryOptionsBgIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsBgStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -875,10 +842,6 @@ class RegistrationCreateParamsCountryOptionsCv(TypedDict): class RegistrationCreateParamsCountryOptionsCy(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsCyIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsCyStandard"] """ Options for the standard registration. @@ -889,13 +852,6 @@ class RegistrationCreateParamsCountryOptionsCy(TypedDict): """ -class RegistrationCreateParamsCountryOptionsCyIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsCyStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -906,10 +862,6 @@ class RegistrationCreateParamsCountryOptionsCyStandard(TypedDict): class RegistrationCreateParamsCountryOptionsCz(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsCzIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsCzStandard"] """ Options for the standard registration. @@ -920,13 +872,6 @@ class RegistrationCreateParamsCountryOptionsCz(TypedDict): """ -class RegistrationCreateParamsCountryOptionsCzIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsCzStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -937,10 +882,6 @@ class RegistrationCreateParamsCountryOptionsCzStandard(TypedDict): class RegistrationCreateParamsCountryOptionsDe(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsDeIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsDeStandard"] """ Options for the standard registration. @@ -951,13 +892,6 @@ class RegistrationCreateParamsCountryOptionsDe(TypedDict): """ -class RegistrationCreateParamsCountryOptionsDeIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsDeStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -968,10 +902,6 @@ class RegistrationCreateParamsCountryOptionsDeStandard(TypedDict): class RegistrationCreateParamsCountryOptionsDk(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsDkIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsDkStandard"] """ Options for the standard registration. @@ -982,13 +912,6 @@ class RegistrationCreateParamsCountryOptionsDk(TypedDict): """ -class RegistrationCreateParamsCountryOptionsDkIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsDkStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1006,10 +929,6 @@ class RegistrationCreateParamsCountryOptionsEc(TypedDict): class RegistrationCreateParamsCountryOptionsEe(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsEeIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsEeStandard"] """ Options for the standard registration. @@ -1020,13 +939,6 @@ class RegistrationCreateParamsCountryOptionsEe(TypedDict): """ -class RegistrationCreateParamsCountryOptionsEeIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsEeStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1044,24 +956,13 @@ class RegistrationCreateParamsCountryOptionsEg(TypedDict): class RegistrationCreateParamsCountryOptionsEs(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsEsIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsEsStandard"] """ Options for the standard registration. """ type: Union[Literal["ioss", "oss_non_union", "oss_union", "standard"], str] """ - Type of registration to be created in an EU country. - """ - - -class RegistrationCreateParamsCountryOptionsEsIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. + Type of registration to be created in ES. """ @@ -1095,10 +996,6 @@ class RegistrationCreateParamsCountryOptionsEtStandard(TypedDict): class RegistrationCreateParamsCountryOptionsFi(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsFiIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsFiStandard"] """ Options for the standard registration. @@ -1109,13 +1006,6 @@ class RegistrationCreateParamsCountryOptionsFi(TypedDict): """ -class RegistrationCreateParamsCountryOptionsFiIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsFiStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1126,10 +1016,6 @@ class RegistrationCreateParamsCountryOptionsFiStandard(TypedDict): class RegistrationCreateParamsCountryOptionsFr(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsFrIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsFrStandard"] """ Options for the standard registration. @@ -1140,13 +1026,6 @@ class RegistrationCreateParamsCountryOptionsFr(TypedDict): """ -class RegistrationCreateParamsCountryOptionsFrIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsFrStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1204,10 +1083,6 @@ class RegistrationCreateParamsCountryOptionsGnStandard(TypedDict): class RegistrationCreateParamsCountryOptionsGr(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsGrIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsGrStandard"] """ Options for the standard registration. @@ -1218,13 +1093,6 @@ class RegistrationCreateParamsCountryOptionsGr(TypedDict): """ -class RegistrationCreateParamsCountryOptionsGrIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsGrStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1235,10 +1103,6 @@ class RegistrationCreateParamsCountryOptionsGrStandard(TypedDict): class RegistrationCreateParamsCountryOptionsHr(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsHrIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsHrStandard"] """ Options for the standard registration. @@ -1249,13 +1113,6 @@ class RegistrationCreateParamsCountryOptionsHr(TypedDict): """ -class RegistrationCreateParamsCountryOptionsHrIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsHrStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1266,10 +1123,6 @@ class RegistrationCreateParamsCountryOptionsHrStandard(TypedDict): class RegistrationCreateParamsCountryOptionsHu(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsHuIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsHuStandard"] """ Options for the standard registration. @@ -1280,13 +1133,6 @@ class RegistrationCreateParamsCountryOptionsHu(TypedDict): """ -class RegistrationCreateParamsCountryOptionsHuIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsHuStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1304,10 +1150,6 @@ class RegistrationCreateParamsCountryOptionsId(TypedDict): class RegistrationCreateParamsCountryOptionsIe(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsIeIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsIeStandard"] """ Options for the standard registration. @@ -1318,13 +1160,6 @@ class RegistrationCreateParamsCountryOptionsIe(TypedDict): """ -class RegistrationCreateParamsCountryOptionsIeIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsIeStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1362,10 +1197,6 @@ class RegistrationCreateParamsCountryOptionsIsStandard(TypedDict): class RegistrationCreateParamsCountryOptionsIt(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsItIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsItStandard"] """ Options for the standard registration. @@ -1376,13 +1207,6 @@ class RegistrationCreateParamsCountryOptionsIt(TypedDict): """ -class RegistrationCreateParamsCountryOptionsItIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsItStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1462,10 +1286,6 @@ class RegistrationCreateParamsCountryOptionsLk(TypedDict): class RegistrationCreateParamsCountryOptionsLt(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsLtIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsLtStandard"] """ Options for the standard registration. @@ -1476,13 +1296,6 @@ class RegistrationCreateParamsCountryOptionsLt(TypedDict): """ -class RegistrationCreateParamsCountryOptionsLtIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsLtStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1493,10 +1306,6 @@ class RegistrationCreateParamsCountryOptionsLtStandard(TypedDict): class RegistrationCreateParamsCountryOptionsLu(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsLuIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsLuStandard"] """ Options for the standard registration. @@ -1507,13 +1316,6 @@ class RegistrationCreateParamsCountryOptionsLu(TypedDict): """ -class RegistrationCreateParamsCountryOptionsLuIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsLuStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1524,10 +1326,6 @@ class RegistrationCreateParamsCountryOptionsLuStandard(TypedDict): class RegistrationCreateParamsCountryOptionsLv(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsLvIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsLvStandard"] """ Options for the standard registration. @@ -1538,13 +1336,6 @@ class RegistrationCreateParamsCountryOptionsLv(TypedDict): """ -class RegistrationCreateParamsCountryOptionsLvIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsLvStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1629,10 +1420,6 @@ class RegistrationCreateParamsCountryOptionsMrStandard(TypedDict): class RegistrationCreateParamsCountryOptionsMt(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsMtIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsMtStandard"] """ Options for the standard registration. @@ -1643,13 +1430,6 @@ class RegistrationCreateParamsCountryOptionsMt(TypedDict): """ -class RegistrationCreateParamsCountryOptionsMtIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsMtStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1681,10 +1461,6 @@ class RegistrationCreateParamsCountryOptionsNg(TypedDict): class RegistrationCreateParamsCountryOptionsNl(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsNlIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsNlStandard"] """ Options for the standard registration. @@ -1695,13 +1471,6 @@ class RegistrationCreateParamsCountryOptionsNl(TypedDict): """ -class RegistrationCreateParamsCountryOptionsNlIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsNlStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1793,10 +1562,6 @@ class RegistrationCreateParamsCountryOptionsPh(TypedDict): class RegistrationCreateParamsCountryOptionsPl(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsPlIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsPlStandard"] """ Options for the standard registration. @@ -1807,13 +1572,6 @@ class RegistrationCreateParamsCountryOptionsPl(TypedDict): """ -class RegistrationCreateParamsCountryOptionsPlIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsPlStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1824,10 +1582,6 @@ class RegistrationCreateParamsCountryOptionsPlStandard(TypedDict): class RegistrationCreateParamsCountryOptionsPt(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsPtIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsPtStandard"] """ Options for the standard registration. @@ -1838,13 +1592,6 @@ class RegistrationCreateParamsCountryOptionsPt(TypedDict): """ -class RegistrationCreateParamsCountryOptionsPtIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsPtStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1855,10 +1602,6 @@ class RegistrationCreateParamsCountryOptionsPtStandard(TypedDict): class RegistrationCreateParamsCountryOptionsRo(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsRoIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsRoStandard"] """ Options for the standard registration. @@ -1869,13 +1612,6 @@ class RegistrationCreateParamsCountryOptionsRo(TypedDict): """ -class RegistrationCreateParamsCountryOptionsRoIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsRoStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1920,10 +1656,6 @@ class RegistrationCreateParamsCountryOptionsSa(TypedDict): class RegistrationCreateParamsCountryOptionsSe(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsSeIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsSeStandard"] """ Options for the standard registration. @@ -1934,13 +1666,6 @@ class RegistrationCreateParamsCountryOptionsSe(TypedDict): """ -class RegistrationCreateParamsCountryOptionsSeIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsSeStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1971,10 +1696,6 @@ class RegistrationCreateParamsCountryOptionsSgStandard(TypedDict): class RegistrationCreateParamsCountryOptionsSi(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsSiIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsSiStandard"] """ Options for the standard registration. @@ -1985,13 +1706,6 @@ class RegistrationCreateParamsCountryOptionsSi(TypedDict): """ -class RegistrationCreateParamsCountryOptionsSiIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsSiStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -2002,10 +1716,6 @@ class RegistrationCreateParamsCountryOptionsSiStandard(TypedDict): class RegistrationCreateParamsCountryOptionsSk(TypedDict): - igic: NotRequired["RegistrationCreateParamsCountryOptionsSkIgic"] - """ - Options for the IGIC registration. - """ standard: NotRequired["RegistrationCreateParamsCountryOptionsSkStandard"] """ Options for the standard registration. @@ -2016,13 +1726,6 @@ class RegistrationCreateParamsCountryOptionsSk(TypedDict): """ -class RegistrationCreateParamsCountryOptionsSkIgic(TypedDict): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - - class RegistrationCreateParamsCountryOptionsSkStandard(TypedDict): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -2060,7 +1763,7 @@ class RegistrationCreateParamsCountryOptionsSrStandard(TypedDict): class RegistrationCreateParamsCountryOptionsTh(TypedDict): - type: Literal["simplified"] + type: Union[Literal["simplified"], str] """ Type of registration to be created in `country`. """ @@ -2109,6 +1812,36 @@ class RegistrationCreateParamsCountryOptionsUg(TypedDict): class RegistrationCreateParamsCountryOptionsUs(TypedDict): + admissions_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsAdmissionsTax" + ] + """ + Options for the admission tax registration. + """ + attendance_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsAttendanceTax" + ] + """ + Options for the attendance tax registration. + """ + entertainment_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsEntertainmentTax" + ] + """ + Options for the entertainment tax registration. + """ + gross_receipts_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax" + ] + """ + Options for the gross receipts tax registration. + """ + hospitality_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsHospitalityTax" + ] + """ + Options for the hospitality tax registration. + """ local_amusement_tax: NotRequired[ "RegistrationCreateParamsCountryOptionsUsLocalAmusementTax" ] @@ -2121,6 +1854,12 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): """ Options for the local lease tax registration. """ + luxury_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsLuxuryTax" + ] + """ + Options for the luxury tax registration. + """ mass_transit_parking_tax: NotRequired[ "RegistrationCreateParamsCountryOptionsUsMassTransitParkingTax" ] @@ -2133,6 +1872,12 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): """ Options for the parking tax registration. """ + resort_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsResortTax" + ] + """ + Options for the resort tax registration. + """ state: str """ Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). @@ -2143,15 +1888,29 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): """ Options for the state sales tax registration. """ + tourism_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsTourismTax" + ] + """ + Options for the tourism tax registration. + """ type: Union[ Literal[ + "admissions_tax", + "attendance_tax", + "entertainment_tax", + "gross_receipts_tax", + "hospitality_tax", "local_amusement_tax", "local_lease_tax", + "luxury_tax", "mass_transit_parking_tax", "parking_tax", + "resort_tax", "state_communications_tax", "state_retail_delivery_fee", "state_sales_tax", + "tourism_tax", ], str, ] @@ -2160,6 +1919,41 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): """ +class RegistrationCreateParamsCountryOptionsUsAdmissionsTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=admissions_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsAttendanceTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=attendance_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsEntertainmentTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=entertainment_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=gross_receipts_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsHospitalityTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=hospitality_tax#registration-types). + """ + + class RegistrationCreateParamsCountryOptionsUsLocalAmusementTax(TypedDict): jurisdiction: str """ @@ -2174,6 +1968,13 @@ class RegistrationCreateParamsCountryOptionsUsLocalLeaseTax(TypedDict): """ +class RegistrationCreateParamsCountryOptionsUsLuxuryTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=luxury_tax#registration-types). + """ + + class RegistrationCreateParamsCountryOptionsUsMassTransitParkingTax(TypedDict): jurisdiction: str """ @@ -2188,6 +1989,13 @@ class RegistrationCreateParamsCountryOptionsUsParkingTax(TypedDict): """ +class RegistrationCreateParamsCountryOptionsUsResortTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=resort_tax#registration-types). + """ + + class RegistrationCreateParamsCountryOptionsUsStateSalesTax(TypedDict): elections: List[ "RegistrationCreateParamsCountryOptionsUsStateSalesTaxElection" @@ -2215,6 +2023,13 @@ class RegistrationCreateParamsCountryOptionsUsStateSalesTaxElection(TypedDict): """ +class RegistrationCreateParamsCountryOptionsUsTourismTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=tourism_tax#registration-types). + """ + + class RegistrationCreateParamsCountryOptionsUy(TypedDict): standard: NotRequired["RegistrationCreateParamsCountryOptionsUyStandard"] """ diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py index ad5a16626..4514df315 100644 --- a/stripe/params/test_helpers/__init__.py +++ b/stripe/params/test_helpers/__init__.py @@ -53,6 +53,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataPayco as ConfirmationTokenCreateParamsPaymentMethodDataPayco, ConfirmationTokenCreateParamsPaymentMethodDataPaynow as ConfirmationTokenCreateParamsPaymentMethodDataPaynow, ConfirmationTokenCreateParamsPaymentMethodDataPaypal as ConfirmationTokenCreateParamsPaymentMethodDataPaypal, + ConfirmationTokenCreateParamsPaymentMethodDataPaypay as ConfirmationTokenCreateParamsPaymentMethodDataPaypay, ConfirmationTokenCreateParamsPaymentMethodDataPayto as ConfirmationTokenCreateParamsPaymentMethodDataPayto, ConfirmationTokenCreateParamsPaymentMethodDataPix as ConfirmationTokenCreateParamsPaymentMethodDataPix, ConfirmationTokenCreateParamsPaymentMethodDataPromptpay as ConfirmationTokenCreateParamsPaymentMethodDataPromptpay, @@ -62,6 +63,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay, ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, + ConfirmationTokenCreateParamsPaymentMethodDataSequra as ConfirmationTokenCreateParamsPaymentMethodDataSequra, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataSunbit as ConfirmationTokenCreateParamsPaymentMethodDataSunbit, ConfirmationTokenCreateParamsPaymentMethodDataSwish as ConfirmationTokenCreateParamsPaymentMethodDataSwish, @@ -277,6 +279,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataPaypay": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataPayto": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -313,6 +319,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataSequra": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSofort": ( "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 490c475b6..c3bc193a7 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -71,13 +71,13 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ alma: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAlma"] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + If this is an Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay" ] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + If this is an AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit" @@ -249,6 +249,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. """ + paypay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ payto: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPayto"] """ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. @@ -299,6 +303,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + sequra: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSequra"] + """ + If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. + """ sofort: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSofort"] """ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -354,6 +362,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "payco", "paynow", "paypal", + "paypay", "payto", "pix", "promptpay", @@ -362,6 +371,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "satispay", "scalapay", "sepa_debit", + "sequra", "sofort", "sunbit", "swish", @@ -726,6 +736,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataPaypal(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataPaypay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataPayto(TypedDict): account_number: NotRequired[str] """ @@ -779,6 +793,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataSequra(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSofort(TypedDict): country: Union[Literal["AT", "BE", "DE", "ES", "IT", "NL"], str] """ diff --git a/stripe/params/test_helpers/treasury/_received_credit_create_params.py b/stripe/params/test_helpers/treasury/_received_credit_create_params.py index d8afca2dd..b4d250b04 100644 --- a/stripe/params/test_helpers/treasury/_received_credit_create_params.py +++ b/stripe/params/test_helpers/treasury/_received_credit_create_params.py @@ -31,7 +31,7 @@ class ReceivedCreditCreateParams(TypedDict): """ Initiating payment method details for the object. """ - network: Union[Literal["ach", "us_domestic_wire"], str] + network: Union[Literal["ach", "rtp", "us_domestic_wire"], str] """ Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. """ diff --git a/stripe/params/three_d_secure/__init__.py b/stripe/params/three_d_secure/__init__.py new file mode 100644 index 000000000..0af5982e0 --- /dev/null +++ b/stripe/params/three_d_secure/__init__.py @@ -0,0 +1,155 @@ +# -*- 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.three_d_secure._authentication_cancel_params import ( + AuthenticationCancelParams as AuthenticationCancelParams, + ) + from stripe.params.three_d_secure._authentication_create_params import ( + AuthenticationCreateParams as AuthenticationCreateParams, + AuthenticationCreateParamsAcquirerDetails as AuthenticationCreateParamsAcquirerDetails, + AuthenticationCreateParamsChannel as AuthenticationCreateParamsChannel, + AuthenticationCreateParamsChannelBrowser as AuthenticationCreateParamsChannelBrowser, + AuthenticationCreateParamsChannelThreeRI as AuthenticationCreateParamsChannelThreeRI, + AuthenticationCreateParamsFlowPreference as AuthenticationCreateParamsFlowPreference, + AuthenticationCreateParamsFlowPreferenceChallenge as AuthenticationCreateParamsFlowPreferenceChallenge, + AuthenticationCreateParamsFlowPreferenceDataShare as AuthenticationCreateParamsFlowPreferenceDataShare, + AuthenticationCreateParamsFlowPreferenceFrictionless as AuthenticationCreateParamsFlowPreferenceFrictionless, + AuthenticationCreateParamsFutureUsage as AuthenticationCreateParamsFutureUsage, + AuthenticationCreateParamsFutureUsageInstallment as AuthenticationCreateParamsFutureUsageInstallment, + AuthenticationCreateParamsFutureUsageInstallmentExpiry as AuthenticationCreateParamsFutureUsageInstallmentExpiry, + AuthenticationCreateParamsFutureUsageRecurring as AuthenticationCreateParamsFutureUsageRecurring, + AuthenticationCreateParamsFutureUsageRecurringExpiry as AuthenticationCreateParamsFutureUsageRecurringExpiry, + AuthenticationCreateParamsPaymentMethodData as AuthenticationCreateParamsPaymentMethodData, + AuthenticationCreateParamsPaymentMethodDataBillingDetails as AuthenticationCreateParamsPaymentMethodDataBillingDetails, + AuthenticationCreateParamsPaymentMethodDataBillingDetailsAddress as AuthenticationCreateParamsPaymentMethodDataBillingDetailsAddress, + AuthenticationCreateParamsPaymentMethodDataCard as AuthenticationCreateParamsPaymentMethodDataCard, + AuthenticationCreateParamsShippingAddress as AuthenticationCreateParamsShippingAddress, + ) + from stripe.params.three_d_secure._authentication_list_params import ( + AuthenticationListParams as AuthenticationListParams, + AuthenticationListParamsCreated as AuthenticationListParamsCreated, + ) + from stripe.params.three_d_secure._authentication_retrieve_params import ( + AuthenticationRetrieveParams as AuthenticationRetrieveParams, + ) + from stripe.params.three_d_secure._authentication_submit_params import ( + AuthenticationSubmitParams as AuthenticationSubmitParams, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "AuthenticationCancelParams": ( + "stripe.params.three_d_secure._authentication_cancel_params", + False, + ), + "AuthenticationCreateParams": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsAcquirerDetails": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsChannel": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsChannelBrowser": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsChannelThreeRI": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFlowPreference": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFlowPreferenceChallenge": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFlowPreferenceDataShare": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFlowPreferenceFrictionless": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFutureUsage": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFutureUsageInstallment": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFutureUsageInstallmentExpiry": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFutureUsageRecurring": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsFutureUsageRecurringExpiry": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsPaymentMethodData": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsPaymentMethodDataBillingDetails": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsPaymentMethodDataBillingDetailsAddress": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsPaymentMethodDataCard": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationCreateParamsShippingAddress": ( + "stripe.params.three_d_secure._authentication_create_params", + False, + ), + "AuthenticationListParams": ( + "stripe.params.three_d_secure._authentication_list_params", + False, + ), + "AuthenticationListParamsCreated": ( + "stripe.params.three_d_secure._authentication_list_params", + False, + ), + "AuthenticationRetrieveParams": ( + "stripe.params.three_d_secure._authentication_retrieve_params", + False, + ), + "AuthenticationSubmitParams": ( + "stripe.params.three_d_secure._authentication_submit_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/three_d_secure/_authentication_cancel_params.py b/stripe/params/three_d_secure/_authentication_cancel_params.py new file mode 100644 index 000000000..972a963c4 --- /dev/null +++ b/stripe/params/three_d_secure/_authentication_cancel_params.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from stripe._stripe_object import UntypedStripeObject +from typing import Dict, List +from typing_extensions import Literal, NotRequired + + +class AuthenticationCancelParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ diff --git a/stripe/params/three_d_secure/_authentication_create_params.py b/stripe/params/three_d_secure/_authentication_create_params.py new file mode 100644 index 000000000..75a28293c --- /dev/null +++ b/stripe/params/three_d_secure/_authentication_create_params.py @@ -0,0 +1,430 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from stripe._stripe_object import UntypedStripeObject +from typing import Dict, List, Union +from typing_extensions import Literal, NotRequired, TypedDict + + +class AuthenticationCreateParams(RequestOptions): + acquirer_details: NotRequired["AuthenticationCreateParamsAcquirerDetails"] + """ + Contains additional details about the acquirer for this 3DS Authentication. + + Refer to the [Pass acquirer details and directory server section of the standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#pass-acquirer-details-and-directory-server) for more information. + """ + amount: NotRequired[int] + """ + A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). You can't include this parameter if `message_category` is `non_payment_authentication` + """ + channel: "AuthenticationCreateParamsChannel" + """ + Contains additional details on the channel used for this 3DS Authentication. + """ + currency: NotRequired[str] + """ + 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). + """ + directory_server: NotRequired[ + "Literal['american_express', 'cartes_bancaires', 'discover', 'mastercard', 'visa']|str" + ] + """ + The 3DS directory server with which this 3DS Authentication was processed. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + flow_preference: NotRequired["AuthenticationCreateParamsFlowPreference"] + """ + Contains additional details on your flow preference for this 3DS Authentication. + + Refer to the [Specify a flow preference section of the standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#specify-a-flow-preference) for more information. + """ + future_usage: NotRequired["AuthenticationCreateParamsFutureUsage"] + """ + Contains information about future usage of this 3DS Authentication + """ + message_category: Union[ + Literal["non_payment_authentication", "payment_authentication"], str + ] + """ + Indicates whether this 3DS Authentication is being performed for a payment or non-payment use case. + """ + 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. 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] + """ + ID of the payment method (a PaymentMethod object) to attach to this 3DS Authentication. + """ + payment_method_data: NotRequired[ + "AuthenticationCreateParamsPaymentMethodData" + ] + """ + Hash used to generate the PaymentMethod to be used for this Authentication. This is mutually exclusive with the `payment_method` parameter. + """ + reason: NotRequired[ + "Literal['cardholder_authentication', 'issuer_requested', 'liability_shift', 'processing_costs', 'regulatory_compliance']|str" + ] + """ + The reason for invoking standalone 3DS. This is tailored specifically for cases when you want Stripe to help determine the standalone 3DS flow to fit your use case instead of needing to select a specific 3DS flow. + + This parameter is exclusive with `flow_preference`. You can either use `reason` for controlling 3DS according to your business requirements, or use `flow_preference` for having fine-grained control over your 3DS flow preference. + """ + shipping_address: NotRequired["AuthenticationCreateParamsShippingAddress"] + """ + The shipping address requested by the cardholder. You should try to include as complete address information as possible. + """ + submit: NotRequired[ + "Literal['always', 'if_fingerprinting_not_supported', 'never']|str" + ] + """ + Set to `always` to skip the fingerprinting step and submit this Authentication immediately or `if_fingerprinting_not_supported` to submit this Authentication only if fingerprinting is not available. This parameter defaults to `never`. + + Refer to the [Submit at creation section of the standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-at-creation) for more information. + """ + + +class AuthenticationCreateParamsAcquirerDetails(TypedDict): + acquirer_bin: str + """ + The Acquirer BIN (specific to the directory_server). + """ + acquirer_country: str + """ + The two-letter country code of the acquirer ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + acquirer_merchant_id: str + """ + The Merchant ID (or Card Acceptor ID) that your acquirer assigned you (specific to the directory_server). + """ + mcc: NotRequired[str] + """ + The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) as defined by each payment system or directory server. + """ + merchant_name: NotRequired[str] + """ + The merchant name assigned by the acquirer or payment system. Same name used in the authorization message as defined in [ISO 8583](https://en.wikipedia.org/wiki/ISO_8583). + """ + requestor_id: NotRequired[str] + """ + Requestor ID if you're enrolled in the card network's 3DS program. Otherwise, you can omit this field because Stripe assigns a Requestor ID with the card networks. + """ + + +class AuthenticationCreateParamsChannel(TypedDict): + browser: NotRequired["AuthenticationCreateParamsChannelBrowser"] + """ + Contains additional details about the browser details you collected. + """ + three_r_i: NotRequired["AuthenticationCreateParamsChannelThreeRI"] + """ + Contains additional details about the 3DS Requestor Initiated (3RI) channel. + """ + type: Union[Literal["browser", "three_r_i"], str] + """ + Type of channel you would prefer to use for this 3DS Authentication. + """ + + +class AuthenticationCreateParamsChannelBrowser(TypedDict): + accept_header: str + """ + The HTTP accept headers from the cardholder's browser. Collected server-side. + """ + color_depth: NotRequired[int] + """ + The color depth of the cardholder's screen. + + Returned from the `screen.colorDepth` property. + """ + device_id: NotRequired[str] + """ + Unique and immutable identifier linked to a device that is consistent across 3DS transactions for the specific user device. For example: hardware device ID or a platform-calculated device fingerprint. + """ + ip_address: str + """ + The IP address of the browser. Included in the HTTP request to your server before you create the 3DS Authentication. + + Collected server-side. + """ + java_enabled: NotRequired[bool] + """ + The cardholder browser's ability to execute Java. Returned from the navigator.javaEnabled property. + """ + javascript_enabled: bool + """ + The cardholder browser's ability to execute JavaScript. + """ + language: str + """ + An IETF BCP 47 language tag representing the browser language. Typically returned from the `navigator.language` property, but might also be returned from `navigator.languages` or `navigator.browserLanguage`. + + In some cases, this value might be an array. To cast it to a string or null value, you can use the `getBrowserLanguage()` [example function](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#pass-client-side-collected-channel-information). + """ + screen_height: NotRequired[int] + """ + The total height of the cardholder's screen in pixels. + + Returned from the `screen.height` property. + """ + screen_width: NotRequired[int] + """ + The total width of the cardholder's screen in pixels. + + Returned from the `screen.width` property. + """ + timezone_offset: NotRequired[int] + """ + The time difference between UTC time and the local time of the cardholder's browser, in minutes. + + Returned by `new Date().getTimezoneOffset()` + """ + user_agent: str + """ + The browser user agent. You can retrieve this value on the client side using the `navigator.userAgent` property, or in the HTTP request to your server before you create the 3DS Authentication. + """ + + +class AuthenticationCreateParamsChannelThreeRI(TypedDict): + previous_authentication: str + """ + ID of a prior `Authentication`. For example, the first recurring transaction that was authenticated by the cardholder. + """ + type: Union[ + Literal[ + "delayed_shipment", "other_payment", "recurring", "split_shipment" + ], + str, + ] + """ + It provides additional information to the ACS to determine the best approach for handling a 3RI request. + """ + + +class AuthenticationCreateParamsFlowPreference(TypedDict): + challenge: NotRequired["AuthenticationCreateParamsFlowPreferenceChallenge"] + """ + Contains additional details about your challenge flow preference for this 3DS Authentication. + """ + data_share: NotRequired[ + "AuthenticationCreateParamsFlowPreferenceDataShare" + ] + """ + Contains additional details about your data share only flow preference for this 3DS Authentication. + """ + frictionless: NotRequired[ + "AuthenticationCreateParamsFlowPreferenceFrictionless" + ] + """ + Contains additional details about your frictionless flow preference for this 3DS Authentication. + """ + type: Union[Literal["challenge", "data_share", "frictionless"], str] + """ + Type of flow you requested for this 3DS Authentication. + """ + + +class AuthenticationCreateParamsFlowPreferenceChallenge(TypedDict): + type: Union[Literal["mandated", "preferred"], str] + """ + Type of challenge flow you requested for this 3DS Authentication. + """ + + +class AuthenticationCreateParamsFlowPreferenceDataShare(TypedDict): + type: Union[Literal["ds_specific", "emv_standard"], str] + """ + Type of data share only flow you requested for this 3DS Authentication. + """ + + +class AuthenticationCreateParamsFlowPreferenceFrictionless(TypedDict): + type: Union[Literal["low_risk", "none"], str] + """ + Type of frictionless flow you requested for this 3DS Authentication. + """ + + +class AuthenticationCreateParamsFutureUsage(TypedDict): + installment: NotRequired[ + "AuthenticationCreateParamsFutureUsageInstallment" + ] + """ + Parameters related to an installment payment. + """ + recurring: NotRequired["AuthenticationCreateParamsFutureUsageRecurring"] + """ + Parameters related to a recurring payment. + """ + type: Union[Literal["card_on_file", "installment", "recurring"], str] + """ + The type of future usage declared for this 3DS Authentication + """ + + +class AuthenticationCreateParamsFutureUsageInstallment(TypedDict): + amount: int + """ + A non-negative integer representing the future authorizations' amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + """ + expiry: "AuthenticationCreateParamsFutureUsageInstallmentExpiry" + """ + Information about the expiry of the future usage of this authentication. + """ + interval: NotRequired[Literal["day"]] + """ + The unit of time for `interval_count`. + """ + interval_count: NotRequired[int] + """ + The minimum number of time intervals between authorizations. Must be greater than 0, and defaults to 1. + """ + number: int + """ + The maximum number of installments. Must be greater than 1. + """ + + +class AuthenticationCreateParamsFutureUsageInstallmentExpiry(TypedDict): + date: NotRequired[str] + """ + The date before which the last authorization related to this authentication will occur. + """ + type: Union[Literal["date", "never"], str] + """ + The type of expiry for the future use of this authentication. + """ + + +class AuthenticationCreateParamsFutureUsageRecurring(TypedDict): + amount: int + """ + A non-negative integer representing the future authorizations' amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + """ + expiry: "AuthenticationCreateParamsFutureUsageRecurringExpiry" + """ + Information about the expiry of the future usage of this authentication. + """ + interval: NotRequired[Literal["day"]] + """ + The unit of time for `interval_count`. + """ + interval_count: NotRequired[int] + """ + The minimum number of time intervals between authorizations. Must be greater than 0, and defaults to 1. + """ + + +class AuthenticationCreateParamsFutureUsageRecurringExpiry(TypedDict): + date: NotRequired[str] + """ + The date before which the last authorization related to this authentication will occur. + """ + type: Union[Literal["date", "never"], str] + """ + The type of expiry for the future use of this authentication. + """ + + +class AuthenticationCreateParamsPaymentMethodData(TypedDict): + billing_details: NotRequired[ + "AuthenticationCreateParamsPaymentMethodDataBillingDetails" + ] + """ + Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + """ + card: "AuthenticationCreateParamsPaymentMethodDataCard" + type: Literal["card"] + """ + The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. + """ + + +class AuthenticationCreateParamsPaymentMethodDataBillingDetails(TypedDict): + address: NotRequired[ + "AuthenticationCreateParamsPaymentMethodDataBillingDetailsAddress" + ] + """ + Billing address. + """ + email: NotRequired[str] + """ + Email address. + """ + name: NotRequired[str] + """ + Full name. + """ + phone: NotRequired[str] + """ + Billing phone number (including extension). + """ + + +class AuthenticationCreateParamsPaymentMethodDataBillingDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + Country subdivision code defined in ISO 3166-2. + """ + + +class AuthenticationCreateParamsPaymentMethodDataCard(TypedDict): + cvc: NotRequired[str] + exp_month: NotRequired[int] + exp_year: NotRequired[int] + number: NotRequired[str] + token: NotRequired[str] + + +class AuthenticationCreateParamsShippingAddress(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + Country subdivision code defined in ISO 3166-2. + """ diff --git a/stripe/params/three_d_secure/_authentication_list_params.py b/stripe/params/three_d_secure/_authentication_list_params.py new file mode 100644 index 000000000..4cdd49167 --- /dev/null +++ b/stripe/params/three_d_secure/_authentication_list_params.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import Literal, NotRequired, TypedDict + + +class AuthenticationListParams(RequestOptions): + created: NotRequired["AuthenticationListParamsCreated|int"] + """ + A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp or a dictionary with a number of different query options. + """ + ending_before: NotRequired[str] + """ + A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + limit: NotRequired[int] + """ + A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + """ + starting_after: NotRequired[str] + """ + A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + """ + status: NotRequired[ + "Literal['canceled', 'error', 'failed', 'requires_challenge', 'requires_submission', 'succeeded']|str" + ] + """ + Only return 3D Secure Authentications for specified status. + """ + + +class AuthenticationListParamsCreated(TypedDict): + gt: NotRequired[int] + """ + Minimum value to filter by (exclusive) + """ + gte: NotRequired[int] + """ + Minimum value to filter by (inclusive) + """ + lt: NotRequired[int] + """ + Maximum value to filter by (exclusive) + """ + lte: NotRequired[int] + """ + Maximum value to filter by (inclusive) + """ diff --git a/stripe/params/three_d_secure/_authentication_retrieve_params.py b/stripe/params/three_d_secure/_authentication_retrieve_params.py new file mode 100644 index 000000000..c331c241a --- /dev/null +++ b/stripe/params/three_d_secure/_authentication_retrieve_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class AuthenticationRetrieveParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/three_d_secure/_authentication_submit_params.py b/stripe/params/three_d_secure/_authentication_submit_params.py new file mode 100644 index 000000000..84bdd02ee --- /dev/null +++ b/stripe/params/three_d_secure/_authentication_submit_params.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from stripe._stripe_object import UntypedStripeObject +from typing import Dict, List +from typing_extensions import Literal, NotRequired + + +class AuthenticationSubmitParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + fingerprinting_result: NotRequired[str] + """ + The fingerprinting result of the issuer fingerprinting step. + + Refer to the [Issuer fingerprinting section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#issuer-fingerprinting) for more information. + """ + 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ diff --git a/stripe/params/treasury/_received_credit_create_params.py b/stripe/params/treasury/_received_credit_create_params.py index 92275d41a..8e6700573 100644 --- a/stripe/params/treasury/_received_credit_create_params.py +++ b/stripe/params/treasury/_received_credit_create_params.py @@ -32,7 +32,7 @@ class ReceivedCreditCreateParams(RequestOptions): """ Initiating payment method details for the object. """ - network: Union[Literal["ach", "us_domestic_wire"], str] + network: Union[Literal["ach", "rtp", "us_domestic_wire"], str] """ Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. """ 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 b39cc81f2..2de4e99d4 100644 --- a/stripe/params/v2/billing/_meter_event_adjustment_create_params.py +++ b/stripe/params/v2/billing/_meter_event_adjustment_create_params.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +from typing import Union from typing_extensions import Literal, TypedDict @@ -12,7 +13,7 @@ class MeterEventAdjustmentCreateParams(TypedDict): """ The name of the meter event. Corresponds with the `event_name` field on a meter. """ - type: Literal["cancel"] + type: Union[Literal["cancel"], str] """ Specifies the type of cancellation. Currently supports canceling a single event. """ diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py index 2b3a9ed70..e15f9ad42 100644 --- a/stripe/params/v2/core/_account_create_params.py +++ b/stripe/params/v2/core/_account_create_params.py @@ -1719,7 +1719,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVer """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1732,7 +1732,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1745,7 +1745,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumOfAsso """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1758,7 +1758,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyMinisterialDecre """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1771,7 +1771,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyRegistrationVeri """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1784,7 +1784,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerificatio """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1797,7 +1797,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerification( """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -1823,7 +1823,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1842,7 +1842,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration( """ Person that is signing the document. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1870,7 +1870,7 @@ class AccountCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBenefici """ Person that is signing the document. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -2374,7 +2374,7 @@ class AccountCreateParamsIdentityIndividualDocumentsCompanyAuthorization( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -2385,7 +2385,7 @@ class AccountCreateParamsIdentityIndividualDocumentsPassport(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -2398,7 +2398,7 @@ class AccountCreateParamsIdentityIndividualDocumentsPrimaryVerification( """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -2424,7 +2424,7 @@ class AccountCreateParamsIdentityIndividualDocumentsSecondaryVerification( """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -2448,7 +2448,7 @@ class AccountCreateParamsIdentityIndividualDocumentsVisa(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py index 35b792af6..b7fc2b86c 100644 --- a/stripe/params/v2/core/_account_token_create_params.py +++ b/stripe/params/v2/core/_account_token_create_params.py @@ -377,7 +377,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnersh """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -390,7 +390,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -403,7 +403,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumO """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -416,7 +416,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMinisterial """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -429,7 +429,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyRegistratio """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -442,7 +442,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerifi """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -455,7 +455,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificatio """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -481,7 +481,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -500,7 +500,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistratio """ Person that is signing the document. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -528,7 +528,7 @@ class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBen """ Person that is signing the document. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1048,7 +1048,7 @@ class AccountTokenCreateParamsIdentityIndividualDocumentsCompanyAuthorization( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1059,7 +1059,7 @@ class AccountTokenCreateParamsIdentityIndividualDocumentsPassport(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1072,7 +1072,7 @@ class AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerification( """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -1098,7 +1098,7 @@ class AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerification( """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -1122,7 +1122,7 @@ class AccountTokenCreateParamsIdentityIndividualDocumentsVisa(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py index 7d0c4b91e..81d7c8dc6 100644 --- a/stripe/params/v2/core/_account_update_params.py +++ b/stripe/params/v2/core/_account_update_params.py @@ -1787,7 +1787,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVer """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1800,7 +1800,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyLicense( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1813,7 +1813,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumOfAsso """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1826,7 +1826,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyMinisterialDecre """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1839,7 +1839,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyRegistrationVeri """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1852,7 +1852,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerificatio """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1865,7 +1865,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsPrimaryVerification( """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -1891,7 +1891,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfAddress( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1910,7 +1910,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfRegistration( """ Person that is signing the document. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -1938,7 +1938,7 @@ class AccountUpdateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBenefici """ Person that is signing the document. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -2444,7 +2444,7 @@ class AccountUpdateParamsIdentityIndividualDocumentsCompanyAuthorization( """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -2455,7 +2455,7 @@ class AccountUpdateParamsIdentityIndividualDocumentsPassport(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -2468,7 +2468,7 @@ class AccountUpdateParamsIdentityIndividualDocumentsPrimaryVerification( """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -2494,7 +2494,7 @@ class AccountUpdateParamsIdentityIndividualDocumentsSecondaryVerification( """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -2518,7 +2518,7 @@ class AccountUpdateParamsIdentityIndividualDocumentsVisa(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ diff --git a/stripe/params/v2/core/_event_destination_list_params.py b/stripe/params/v2/core/_event_destination_list_params.py index c0320468a..d0cd324a3 100644 --- a/stripe/params/v2/core/_event_destination_list_params.py +++ b/stripe/params/v2/core/_event_destination_list_params.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec -from typing import List +from typing import List, Union from typing_extensions import Literal, NotRequired, TypedDict class EventDestinationListParams(TypedDict): - include: NotRequired[List[Literal["webhook_endpoint.url"]]] + include: NotRequired[List[Union[Literal["webhook_endpoint.url"], str]]] """ Additional fields to include in the response. Currently supports `webhook_endpoint.url`. """ diff --git a/stripe/params/v2/core/_event_destination_retrieve_params.py b/stripe/params/v2/core/_event_destination_retrieve_params.py index d43606b1d..ad0200416 100644 --- a/stripe/params/v2/core/_event_destination_retrieve_params.py +++ b/stripe/params/v2/core/_event_destination_retrieve_params.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec -from typing import List +from typing import List, Union from typing_extensions import Literal, NotRequired, TypedDict class EventDestinationRetrieveParams(TypedDict): - include: NotRequired[List[Literal["webhook_endpoint.url"]]] + include: NotRequired[List[Union[Literal["webhook_endpoint.url"], str]]] """ Additional fields to include in the response. """ diff --git a/stripe/params/v2/core/_event_destination_update_params.py b/stripe/params/v2/core/_event_destination_update_params.py index bc0feb0b8..b9b59ba83 100644 --- a/stripe/params/v2/core/_event_destination_update_params.py +++ b/stripe/params/v2/core/_event_destination_update_params.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_object import UntypedStripeObject -from typing import Dict, List, Optional +from typing import Dict, List, Optional, Union from typing_extensions import Literal, NotRequired, TypedDict @@ -14,7 +14,7 @@ class EventDestinationUpdateParams(TypedDict): """ The list of events to enable for this endpoint. """ - include: NotRequired[List[Literal["webhook_endpoint.url"]]] + include: NotRequired[List[Union[Literal["webhook_endpoint.url"], str]]] """ Additional fields to include in the response. Currently supports `webhook_endpoint.url`. """ diff --git a/stripe/params/v2/core/accounts/_person_create_params.py b/stripe/params/v2/core/accounts/_person_create_params.py index 4e7b02531..74e36cf35 100644 --- a/stripe/params/v2/core/accounts/_person_create_params.py +++ b/stripe/params/v2/core/accounts/_person_create_params.py @@ -245,7 +245,7 @@ class PersonCreateParamsDocumentsCompanyAuthorization(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -256,7 +256,7 @@ class PersonCreateParamsDocumentsPassport(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -267,7 +267,7 @@ class PersonCreateParamsDocumentsPrimaryVerification(TypedDict): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -289,7 +289,7 @@ class PersonCreateParamsDocumentsSecondaryVerification(TypedDict): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -311,7 +311,7 @@ class PersonCreateParamsDocumentsVisa(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ diff --git a/stripe/params/v2/core/accounts/_person_token_create_params.py b/stripe/params/v2/core/accounts/_person_token_create_params.py index 15a321f83..3b1b8fc23 100644 --- a/stripe/params/v2/core/accounts/_person_token_create_params.py +++ b/stripe/params/v2/core/accounts/_person_token_create_params.py @@ -239,7 +239,7 @@ class PersonTokenCreateParamsDocumentsCompanyAuthorization(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -250,7 +250,7 @@ class PersonTokenCreateParamsDocumentsPassport(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -261,7 +261,7 @@ class PersonTokenCreateParamsDocumentsPrimaryVerification(TypedDict): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -285,7 +285,7 @@ class PersonTokenCreateParamsDocumentsSecondaryVerification(TypedDict): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -309,7 +309,7 @@ class PersonTokenCreateParamsDocumentsVisa(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ diff --git a/stripe/params/v2/core/accounts/_person_update_params.py b/stripe/params/v2/core/accounts/_person_update_params.py index ed45a4816..2318e45f2 100644 --- a/stripe/params/v2/core/accounts/_person_update_params.py +++ b/stripe/params/v2/core/accounts/_person_update_params.py @@ -247,7 +247,7 @@ class PersonUpdateParamsDocumentsCompanyAuthorization(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -258,7 +258,7 @@ class PersonUpdateParamsDocumentsPassport(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -269,7 +269,7 @@ class PersonUpdateParamsDocumentsPrimaryVerification(TypedDict): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -291,7 +291,7 @@ class PersonUpdateParamsDocumentsSecondaryVerification(TypedDict): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -313,7 +313,7 @@ class PersonUpdateParamsDocumentsVisa(TypedDict): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ diff --git a/stripe/product_catalog/__init__.py b/stripe/product_catalog/__init__.py new file mode 100644 index 000000000..e9169be92 --- /dev/null +++ b/stripe/product_catalog/__init__.py @@ -0,0 +1,34 @@ +# -*- 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.product_catalog._trial_offer import TrialOffer as TrialOffer + from stripe.product_catalog._trial_offer_service import ( + TrialOfferService as TrialOfferService, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "TrialOffer": ("stripe.product_catalog._trial_offer", False), + "TrialOfferService": ( + "stripe.product_catalog._trial_offer_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/product_catalog/_trial_offer.py b/stripe/product_catalog/_trial_offer.py new file mode 100644 index 000000000..1fbd76496 --- /dev/null +++ b/stripe/product_catalog/_trial_offer.py @@ -0,0 +1,229 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._createable_api_resource import CreateableAPIResource +from stripe._expandable_field import ExpandableField +from stripe._list_object import ListObject +from stripe._listable_api_resource import ListableAPIResource +from stripe._stripe_object import StripeObject +from stripe._updateable_api_resource import UpdateableAPIResource +from stripe._util import sanitize_id +from typing import ClassVar, Optional, Union, cast +from typing_extensions import Literal, Unpack, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._price import Price + from stripe.params.product_catalog._trial_offer_create_params import ( + TrialOfferCreateParams, + ) + from stripe.params.product_catalog._trial_offer_list_params import ( + TrialOfferListParams, + ) + from stripe.params.product_catalog._trial_offer_modify_params import ( + TrialOfferModifyParams, + ) + from stripe.params.product_catalog._trial_offer_retrieve_params import ( + TrialOfferRetrieveParams, + ) + + +class TrialOffer( + CreateableAPIResource["TrialOffer"], + ListableAPIResource["TrialOffer"], + UpdateableAPIResource["TrialOffer"], +): + """ + Trial offers let you define free or paid introductory pricing for a subscription item. + A TrialOffer specifies the price to charge during the trial, how many billing intervals + the trial lasts, and what price the subscription item transitions to when the trial ends. + You attach a TrialOffer to a subscription item + using `items[current_trial][trial_offer]` when creating or updating a subscription. + """ + + OBJECT_NAME: ClassVar[Literal["product_catalog.trial_offer"]] = ( + "product_catalog.trial_offer" + ) + + class Duration(StripeObject): + class Relative(StripeObject): + iterations: int + """ + The number of iterations of the price's interval for this trial offer. + """ + + relative: Optional[Relative] + type: Union[Literal["relative"], str] + """ + The type of trial offer duration. + """ + _inner_class_types = {"relative": Relative} + + class EndBehavior(StripeObject): + class Transition(StripeObject): + price: ExpandableField["Price"] + """ + The new price to use at the end of the trial offer period. + """ + + transition: Optional[Transition] + type: Union[Literal["transition"], str] + """ + The type of behavior when the trial offer ends. + """ + _inner_class_types = {"transition": Transition} + + active: bool + """ + Whether the trial offer is active. Set to false to archive the trial offer. + """ + duration: Duration + end_behavior: EndBehavior + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. + """ + nickname: Optional[str] + """ + A brief description of the trial offer, hidden from customers. + """ + object: Literal["product_catalog.trial_offer"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + price: ExpandableField["Price"] + """ + The price during the trial offer. + """ + + @classmethod + def create( + cls, **params: Unpack["TrialOfferCreateParams"] + ) -> "TrialOffer": + """ + Creates a trial offer. + """ + return cast( + "TrialOffer", + cls._static_request( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + async def create_async( + cls, **params: Unpack["TrialOfferCreateParams"] + ) -> "TrialOffer": + """ + Creates a trial offer. + """ + return cast( + "TrialOffer", + await cls._static_request_async( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + def list( + cls, **params: Unpack["TrialOfferListParams"] + ) -> ListObject["TrialOffer"]: + """ + Returns a list of trial offers. + """ + result = cls._static_request( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + async def list_async( + cls, **params: Unpack["TrialOfferListParams"] + ) -> ListObject["TrialOffer"]: + """ + Returns a list of trial offers. + """ + result = await cls._static_request_async( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + def modify( + cls, id: str, **params: Unpack["TrialOfferModifyParams"] + ) -> "TrialOffer": + """ + Updates the specified trial offer by setting the values of the parameters passed. Any parameters not provided are left unchanged. + """ + url = "%s/%s" % (cls.class_url(), sanitize_id(id)) + return cast( + "TrialOffer", + cls._static_request( + "post", + url, + params=params, + ), + ) + + @classmethod + async def modify_async( + cls, id: str, **params: Unpack["TrialOfferModifyParams"] + ) -> "TrialOffer": + """ + Updates the specified trial offer by setting the values of the parameters passed. Any parameters not provided are left unchanged. + """ + url = "%s/%s" % (cls.class_url(), sanitize_id(id)) + return cast( + "TrialOffer", + await cls._static_request_async( + "post", + url, + params=params, + ), + ) + + @classmethod + def retrieve( + cls, id: str, **params: Unpack["TrialOfferRetrieveParams"] + ) -> "TrialOffer": + """ + Retrieves the trial offer with the given ID. + """ + instance = cls(id, **params) + instance.refresh() + return instance + + @classmethod + async def retrieve_async( + cls, id: str, **params: Unpack["TrialOfferRetrieveParams"] + ) -> "TrialOffer": + """ + Retrieves the trial offer with the given ID. + """ + instance = cls(id, **params) + await instance.refresh_async() + return instance + + _inner_class_types = {"duration": Duration, "end_behavior": EndBehavior} diff --git a/stripe/product_catalog/_trial_offer_service.py b/stripe/product_catalog/_trial_offer_service.py new file mode 100644 index 000000000..42d7c17ef --- /dev/null +++ b/stripe/product_catalog/_trial_offer_service.py @@ -0,0 +1,189 @@ +# -*- 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._list_object import ListObject + from stripe._request_options import RequestOptions + from stripe.params.product_catalog._trial_offer_create_params import ( + TrialOfferCreateParams, + ) + from stripe.params.product_catalog._trial_offer_list_params import ( + TrialOfferListParams, + ) + from stripe.params.product_catalog._trial_offer_retrieve_params import ( + TrialOfferRetrieveParams, + ) + from stripe.params.product_catalog._trial_offer_update_params import ( + TrialOfferUpdateParams, + ) + from stripe.product_catalog._trial_offer import TrialOffer + + +class TrialOfferService(StripeService): + def list( + self, + params: Optional["TrialOfferListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[TrialOffer]": + """ + Returns a list of trial offers. + """ + return cast( + "ListObject[TrialOffer]", + self._request( + "get", + "/v1/product_catalog/trial_offers", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: Optional["TrialOfferListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[TrialOffer]": + """ + Returns a list of trial offers. + """ + return cast( + "ListObject[TrialOffer]", + await self._request_async( + "get", + "/v1/product_catalog/trial_offers", + base_address="api", + params=params, + options=options, + ), + ) + + def create( + self, + params: "TrialOfferCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "TrialOffer": + """ + Creates a trial offer. + """ + return cast( + "TrialOffer", + self._request( + "post", + "/v1/product_catalog/trial_offers", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "TrialOfferCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "TrialOffer": + """ + Creates a trial offer. + """ + return cast( + "TrialOffer", + await self._request_async( + "post", + "/v1/product_catalog/trial_offers", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + id: str, + params: Optional["TrialOfferRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "TrialOffer": + """ + Retrieves the trial offer with the given ID. + """ + return cast( + "TrialOffer", + self._request( + "get", + "/v1/product_catalog/trial_offers/{id}".format( + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + params: Optional["TrialOfferRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "TrialOffer": + """ + Retrieves the trial offer with the given ID. + """ + return cast( + "TrialOffer", + await self._request_async( + "get", + "/v1/product_catalog/trial_offers/{id}".format( + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + def update( + self, + id: str, + params: Optional["TrialOfferUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "TrialOffer": + """ + Updates the specified trial offer by setting the values of the parameters passed. Any parameters not provided are left unchanged. + """ + return cast( + "TrialOffer", + self._request( + "post", + "/v1/product_catalog/trial_offers/{id}".format( + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def update_async( + self, + id: str, + params: Optional["TrialOfferUpdateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "TrialOffer": + """ + Updates the specified trial offer by setting the values of the parameters passed. Any parameters not provided are left unchanged. + """ + return cast( + "TrialOffer", + await self._request_async( + "post", + "/v1/product_catalog/trial_offers/{id}".format( + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index 0365c797b..2757495ab 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -298,7 +298,14 @@ class Card(StripeObject): Details of a succeeded outcome attached to this payment evaluation. """ type: Union[ - Literal["failed", "merchant_blocked", "rejected", "succeeded"], str + Literal[ + "failed", + "merchant_blocked", + "rejected", + "rerouted", + "succeeded", + ], + str, ] """ Indicates the outcome of the payment evaluation. @@ -335,11 +342,11 @@ class Card(StripeObject): card: Optional[Card] """ - Describes card money movement details for the payment evaluation. + Describes card money movement details. """ money_movement_type: Literal["card"] """ - Describes the type of money movement. Currently only `card` is supported. + Describes the type of money movement. """ _inner_class_types = {"card": Card} @@ -475,6 +482,54 @@ class Address(StripeObject): } class Signals(StripeObject): + class EarlyFraudWarning(StripeObject): + evaluated_at: int + """ + The time when this signal was evaluated. + """ + risk_level: Union[ + Literal[ + "elevated", + "highest", + "low", + "normal", + "not_assessed", + "unknown", + ], + str, + ] + """ + Risk level of this signal, based on the score. + """ + score: Optional[float] + """ + Numeric score for this signal, returned with two decimal places. Possible values for evaluated payments are between 0 and 100, where higher scores indicate a higher likelihood of the signal being true. + """ + + class FraudulentDispute(StripeObject): + evaluated_at: int + """ + The time when this signal was evaluated. + """ + risk_level: Union[ + Literal[ + "elevated", + "highest", + "low", + "normal", + "not_assessed", + "unknown", + ], + str, + ] + """ + Risk level of this signal, based on the score. + """ + score: Optional[float] + """ + Numeric score for this signal, returned with two decimal places. Possible values for evaluated payments are between 0 and 100, where higher scores indicate a higher likelihood of the signal being true. + """ + class FraudulentPayment(StripeObject): evaluated_at: int """ @@ -494,16 +549,28 @@ class FraudulentPayment(StripeObject): """ Risk level of this signal, based on the score. """ - score: float + score: Optional[float] """ - Score for this signal. Possible values for evaluated payments are between 0 and 100. The value is returned with two decimal places and higher scores indicate a higher likelihood of the signal being true. A score of -1 is returned when a model evaluation was not performed, such as requests from incomplete integrations. + Numeric score for this signal, returned with two decimal places. Possible values for evaluated payments are between 0 and 100, where higher scores indicate a higher likelihood of the signal being true. """ + early_fraud_warning: Optional[EarlyFraudWarning] + """ + The likelihood that this `PaymentEvaluation` results in an early fraud warning. + """ + fraudulent_dispute: Optional[FraudulentDispute] + """ + The likelihood that this `PaymentEvaluation` results in a dispute with reason code `fraudulent`. + """ fraudulent_payment: FraudulentPayment """ A payment evaluation signal with evaluated_at, risk_level, and score fields. """ - _inner_class_types = {"fraudulent_payment": FraudulentPayment} + _inner_class_types = { + "early_fraud_warning": EarlyFraudWarning, + "fraudulent_dispute": FraudulentDispute, + "fraudulent_payment": FraudulentPayment, + } client_device_metadata_details: Optional[ClientDeviceMetadataDetails] """ diff --git a/stripe/reserve/_hold.py b/stripe/reserve/_hold.py index 0f19b9ac4..5d2c3f4ce 100644 --- a/stripe/reserve/_hold.py +++ b/stripe/reserve/_hold.py @@ -57,6 +57,10 @@ class ReleaseSchedule(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). """ + destination: Literal["other", "risk_reserved", "settlement_reserved"] + """ + The balance destination to which the reserved funds are sent. + """ id: str """ Unique identifier for the object. diff --git a/stripe/reserve/_plan.py b/stripe/reserve/_plan.py index 61cf24268..5d189674c 100644 --- a/stripe/reserve/_plan.py +++ b/stripe/reserve/_plan.py @@ -22,6 +22,9 @@ class FixedRelease(StripeObject): The time at which reserved funds are scheduled for release, automatically set to midnight UTC of the day after `release_after`. """ + class ManualRelease(StripeObject): + pass + class RollingRelease(StripeObject): days_after_charge: int """ @@ -44,6 +47,10 @@ class RollingRelease(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). An unset currency indicates that the plan applies to all currencies. """ + destination: Literal["other", "risk_reserved", "settlement_reserved"] + """ + The balance destination to which the reserved funds are sent. + """ disabled_at: Optional[int] """ Time at which the ReservePlan was disabled. @@ -57,6 +64,7 @@ class RollingRelease(StripeObject): """ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. """ + manual_release: Optional[ManualRelease] 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. @@ -70,15 +78,18 @@ class RollingRelease(StripeObject): The percent of each Charge to reserve. """ rolling_release: Optional[RollingRelease] - status: Union[Literal["active", "disabled", "expired"], str] + status: Literal["active", "disabled", "expired", "other"] """ The current status of the ReservePlan. The ReservePlan only affects charges if it is `active`. """ - type: Union[Literal["fixed_release", "rolling_release"], str] + type: Literal[ + "fixed_release", "manual_release", "other", "rolling_release" + ] """ The type of the ReservePlan. """ _inner_class_types = { "fixed_release": FixedRelease, + "manual_release": ManualRelease, "rolling_release": RollingRelease, } diff --git a/stripe/reserve/_release.py b/stripe/reserve/_release.py index 2ebb4557f..ccad9d25a 100644 --- a/stripe/reserve/_release.py +++ b/stripe/reserve/_release.py @@ -49,6 +49,10 @@ class SourceTransaction(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). """ + destination: Literal["other", "payments"] + """ + The balance destination to which the released funds are sent. + """ id: str """ Unique identifier for the object. @@ -67,7 +71,7 @@ class SourceTransaction(StripeObject): """ reason: Union[ Literal[ - "bulk_hold_expiry", + "hold_expired", "hold_released_early", "hold_reversed", "plan_disabled", diff --git a/stripe/tax/__init__.py b/stripe/tax/__init__.py index 958da52fc..5be51784d 100644 --- a/stripe/tax/__init__.py +++ b/stripe/tax/__init__.py @@ -18,6 +18,8 @@ from stripe.tax._calculation_service import ( CalculationService as CalculationService, ) + from stripe.tax._location import Location as Location + from stripe.tax._location_service import LocationService as LocationService from stripe.tax._registration import Registration as Registration from stripe.tax._registration_service import ( RegistrationService as RegistrationService, @@ -46,6 +48,8 @@ False, ), "CalculationService": ("stripe.tax._calculation_service", False), + "Location": ("stripe.tax._location", False), + "LocationService": ("stripe.tax._location_service", False), "Registration": ("stripe.tax._registration", False), "RegistrationService": ("stripe.tax._registration_service", False), "Settings": ("stripe.tax._settings", False), diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py index 4d89418b9..6fe20a9b9 100644 --- a/stripe/tax/_calculation.py +++ b/stripe/tax/_calculation.py @@ -276,21 +276,32 @@ class TaxRateDetails(StripeObject): """ tax_type: Union[ Literal[ + "admissions_tax", "amusement_tax", + "attendance_tax", "communications_tax", + "digital_excise_tax", + "entertainment_tax", + "gross_receipts_tax", "gst", + "hospitality_tax", "hst", "igst", "jct", "lease_tax", + "luxury_tax", "mass_transit_parking_tax", "parking_tax", "pst", "qst", + "recycling_fee", + "resort_tax", "retail_delivery_fee", "rst", "sales_tax", "service_tax", + "tourism_tax", + "utility_users_tax", "vat", ], str, @@ -304,7 +315,9 @@ class TaxRateDetails(StripeObject): The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). """ jurisdiction: Jurisdiction - sourcing: Union[Literal["destination", "origin"], str] + sourcing: Union[ + Literal["destination", "origin", "performance"], str + ] """ Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). """ @@ -407,21 +420,32 @@ class FlatAmount(StripeObject): tax_type: Optional[ Union[ Literal[ + "admissions_tax", "amusement_tax", + "attendance_tax", "communications_tax", + "digital_excise_tax", + "entertainment_tax", + "gross_receipts_tax", "gst", + "hospitality_tax", "hst", "igst", "jct", "lease_tax", + "luxury_tax", "mass_transit_parking_tax", "parking_tax", "pst", "qst", + "recycling_fee", + "resort_tax", "retail_delivery_fee", "rst", "sales_tax", "service_tax", + "tourism_tax", + "utility_users_tax", "vat", ], str, diff --git a/stripe/tax/_calculation_line_item.py b/stripe/tax/_calculation_line_item.py index ffd33e618..6057ba080 100644 --- a/stripe/tax/_calculation_line_item.py +++ b/stripe/tax/_calculation_line_item.py @@ -6,6 +6,10 @@ class CalculationLineItem(StripeObject): + """ + A Tax Calculation Line Item represents a single item in a tax calculation. + """ + OBJECT_NAME: ClassVar[Literal["tax.calculation_line_item"]] = ( "tax.calculation_line_item" ) @@ -42,21 +46,32 @@ class TaxRateDetails(StripeObject): """ tax_type: Union[ Literal[ + "admissions_tax", "amusement_tax", + "attendance_tax", "communications_tax", + "digital_excise_tax", + "entertainment_tax", + "gross_receipts_tax", "gst", + "hospitality_tax", "hst", "igst", "jct", "lease_tax", + "luxury_tax", "mass_transit_parking_tax", "parking_tax", "pst", "qst", + "recycling_fee", + "resort_tax", "retail_delivery_fee", "rst", "sales_tax", "service_tax", + "tourism_tax", + "utility_users_tax", "vat", ], str, @@ -70,7 +85,7 @@ class TaxRateDetails(StripeObject): The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). """ jurisdiction: Jurisdiction - sourcing: Union[Literal["destination", "origin"], str] + sourcing: Union[Literal["destination", "origin", "performance"], str] """ Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). """ @@ -134,6 +149,10 @@ class TaxRateDetails(StripeObject): """ String representing the object's type. Objects of the same type share the same value. """ + performance_location: Optional[str] + """ + Indicates the line item represents a performance where the venue location might determine the tax, not the customer address. Leave empty if the tax code doesn't require a tax location. If you provide this value for tax codes with an `optional` location requirement, it overrides the customer address. + """ product: Optional[str] """ The ID of an existing [Product](https://docs.stripe.com/api/products/object). diff --git a/stripe/tax/_location.py b/stripe/tax/_location.py new file mode 100644 index 000000000..e7820782b --- /dev/null +++ b/stripe/tax/_location.py @@ -0,0 +1,176 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._createable_api_resource import CreateableAPIResource +from stripe._list_object import ListObject +from stripe._listable_api_resource import ListableAPIResource +from stripe._stripe_object import StripeObject +from typing import ClassVar, Optional, cast +from typing_extensions import Literal, Unpack, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.params.tax._location_create_params import LocationCreateParams + from stripe.params.tax._location_list_params import LocationListParams + from stripe.params.tax._location_retrieve_params import ( + LocationRetrieveParams, + ) + + +class Location( + CreateableAPIResource["Location"], + ListableAPIResource["Location"], +): + """ + Tax locations represent venues for services, tickets, or other product types. + """ + + OBJECT_NAME: ClassVar[Literal["tax.location"]] = "tax.location" + + class Address(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: Optional[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + address: Address + description: Optional[str] + """ + A descriptive text providing additional context about the tax location. This can include information about the venue, types of events held, services available, or any relevant details for better identification (for example, "A spacious auditorium suitable for large concerts and events."). + """ + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. + """ + object: Literal["tax.location"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + type: Literal["performance"] + """ + The type of tax location to be defined. Currently the only option is `performance`. + """ + + @classmethod + def create(cls, **params: Unpack["LocationCreateParams"]) -> "Location": + """ + Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the ID, address, type, and description of the tax location. + """ + return cast( + "Location", + cls._static_request( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + async def create_async( + cls, **params: Unpack["LocationCreateParams"] + ) -> "Location": + """ + Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the ID, address, type, and description of the tax location. + """ + return cast( + "Location", + await cls._static_request_async( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + def list( + cls, **params: Unpack["LocationListParams"] + ) -> ListObject["Location"]: + """ + Retrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types. + + The response includes detailed information for each tax location, such as its address, type, and description. + + You can paginate through the list by using the limit parameter to control the number of results returned in each request. + """ + result = cls._static_request( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + async def list_async( + cls, **params: Unpack["LocationListParams"] + ) -> ListObject["Location"]: + """ + Retrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types. + + The response includes detailed information for each tax location, such as its address, type, and description. + + You can paginate through the list by using the limit parameter to control the number of results returned in each request. + """ + result = await cls._static_request_async( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + def retrieve( + cls, id: str, **params: Unpack["LocationRetrieveParams"] + ) -> "Location": + """ + Fetch the details of a specific tax location using its unique identifier. Use a tax location to calculate taxes based on the location of the end product, such as a performance, instead of the customer address. For more details, check the [integration guide](https://docs.stripe.com/tax/tax-for-tickets/integration-guide). + """ + instance = cls(id, **params) + instance.refresh() + return instance + + @classmethod + async def retrieve_async( + cls, id: str, **params: Unpack["LocationRetrieveParams"] + ) -> "Location": + """ + Fetch the details of a specific tax location using its unique identifier. Use a tax location to calculate taxes based on the location of the end product, such as a performance, instead of the customer address. For more details, check the [integration guide](https://docs.stripe.com/tax/tax-for-tickets/integration-guide). + """ + instance = cls(id, **params) + await instance.refresh_async() + return instance + + _inner_class_types = {"address": Address} diff --git a/stripe/tax/_location_service.py b/stripe/tax/_location_service.py new file mode 100644 index 000000000..cf5e1f5c4 --- /dev/null +++ b/stripe/tax/_location_service.py @@ -0,0 +1,146 @@ +# -*- 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._list_object import ListObject + from stripe._request_options import RequestOptions + from stripe.params.tax._location_create_params import LocationCreateParams + from stripe.params.tax._location_list_params import LocationListParams + from stripe.params.tax._location_retrieve_params import ( + LocationRetrieveParams, + ) + from stripe.tax._location import Location + + +class LocationService(StripeService): + def list( + self, + params: "LocationListParams", + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Location]": + """ + Retrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types. + + The response includes detailed information for each tax location, such as its address, type, and description. + + You can paginate through the list by using the limit parameter to control the number of results returned in each request. + """ + return cast( + "ListObject[Location]", + self._request( + "get", + "/v1/tax/locations", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: "LocationListParams", + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Location]": + """ + Retrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types. + + The response includes detailed information for each tax location, such as its address, type, and description. + + You can paginate through the list by using the limit parameter to control the number of results returned in each request. + """ + return cast( + "ListObject[Location]", + await self._request_async( + "get", + "/v1/tax/locations", + base_address="api", + params=params, + options=options, + ), + ) + + def create( + self, + params: "LocationCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "Location": + """ + Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the ID, address, type, and description of the tax location. + """ + return cast( + "Location", + self._request( + "post", + "/v1/tax/locations", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "LocationCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "Location": + """ + Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the ID, address, type, and description of the tax location. + """ + return cast( + "Location", + await self._request_async( + "post", + "/v1/tax/locations", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + location: str, + params: Optional["LocationRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Location": + """ + Fetch the details of a specific tax location using its unique identifier. Use a tax location to calculate taxes based on the location of the end product, such as a performance, instead of the customer address. For more details, check the [integration guide](https://docs.stripe.com/tax/tax-for-tickets/integration-guide). + """ + return cast( + "Location", + self._request( + "get", + "/v1/tax/locations/{location}".format( + location=sanitize_id(location), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + location: str, + params: Optional["LocationRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Location": + """ + Fetch the details of a specific tax location using its unique identifier. Use a tax location to calculate taxes based on the location of the end product, such as a performance, instead of the customer address. For more details, check the [integration guide](https://docs.stripe.com/tax/tax-for-tickets/integration-guide). + """ + return cast( + "Location", + await self._request_async( + "get", + "/v1/tax/locations/{location}".format( + location=sanitize_id(location), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/tax/_registration.py b/stripe/tax/_registration.py index cb01a9d1b..ebf9a7f36 100644 --- a/stripe/tax/_registration.py +++ b/stripe/tax/_registration.py @@ -75,12 +75,6 @@ class Ao(StripeObject): """ class At(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -89,7 +83,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -97,7 +90,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Au(StripeObject): class Standard(StripeObject): @@ -146,12 +139,6 @@ class Bd(StripeObject): """ class Be(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -160,7 +147,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -168,7 +154,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Bf(StripeObject): type: Literal["standard"] @@ -177,12 +163,6 @@ class Bf(StripeObject): """ class Bg(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -191,7 +171,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -199,7 +178,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Bh(StripeObject): type: Literal["standard"] @@ -294,12 +273,6 @@ class Cv(StripeObject): """ class Cy(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -308,7 +281,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -316,15 +288,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Cz(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -333,7 +299,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -341,15 +306,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class De(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -358,7 +317,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -366,15 +324,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Dk(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -383,7 +335,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -391,7 +342,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Ec(StripeObject): type: Literal["simplified"] @@ -400,12 +351,6 @@ class Ec(StripeObject): """ class Ee(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -414,7 +359,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -422,7 +366,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Eg(StripeObject): type: Literal["simplified"] @@ -431,12 +375,6 @@ class Eg(StripeObject): """ class Es(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -445,15 +383,14 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str ] """ - Type of registration in an EU country. + Type of registration in ES. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Et(StripeObject): type: Literal["standard"] @@ -462,12 +399,6 @@ class Et(StripeObject): """ class Fi(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -476,7 +407,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -484,15 +414,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Fr(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -501,7 +425,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -509,7 +432,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Gb(StripeObject): class Standard(StripeObject): @@ -540,12 +463,6 @@ class Gn(StripeObject): """ class Gr(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -554,7 +471,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -562,15 +478,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Hr(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -579,7 +489,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -587,15 +496,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Hu(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -604,7 +507,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -612,7 +514,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Id(StripeObject): type: Literal["simplified"] @@ -621,12 +523,6 @@ class Id(StripeObject): """ class Ie(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -635,7 +531,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -643,7 +538,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class In(StripeObject): type: Literal["simplified"] @@ -658,12 +553,6 @@ class Is(StripeObject): """ class It(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -672,7 +561,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -680,7 +568,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Jp(StripeObject): class Standard(StripeObject): @@ -741,12 +629,6 @@ class Lk(StripeObject): """ class Lt(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -755,7 +637,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -763,15 +644,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Lu(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -780,7 +655,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -788,15 +662,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Lv(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -805,7 +673,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -813,7 +680,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Ma(StripeObject): type: Literal["simplified"] @@ -846,12 +713,6 @@ class Mr(StripeObject): """ class Mt(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -860,7 +721,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -868,7 +728,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Mx(StripeObject): type: Literal["simplified"] @@ -889,12 +749,6 @@ class Ng(StripeObject): """ class Nl(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -903,7 +757,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -911,7 +764,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class No(StripeObject): class Standard(StripeObject): @@ -970,12 +823,6 @@ class Ph(StripeObject): """ class Pl(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -984,7 +831,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -992,15 +838,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Pt(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1009,7 +849,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -1017,15 +856,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Ro(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1034,7 +867,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -1042,7 +874,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Rs(StripeObject): type: Literal["standard"] @@ -1063,12 +895,6 @@ class Sa(StripeObject): """ class Se(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1077,7 +903,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -1085,7 +910,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Sg(StripeObject): class Standard(StripeObject): @@ -1104,12 +929,6 @@ class Standard(StripeObject): _inner_class_types = {"standard": Standard} class Si(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1118,7 +937,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -1126,15 +944,9 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Sk(StripeObject): - class Igic(StripeObject): - place_of_supply_scheme: Literal["inbound_goods", "standard"] - """ - Place of supply scheme used in an IGIC registration. - """ - class Standard(StripeObject): place_of_supply_scheme: Union[ Literal["inbound_goods", "small_seller", "standard"], str @@ -1143,7 +955,6 @@ class Standard(StripeObject): Place of supply scheme used in an EU standard registration. """ - igic: Optional[Igic] standard: Optional[Standard] type: Union[ Literal["ioss", "oss_non_union", "oss_union", "standard"], str @@ -1151,7 +962,7 @@ class Standard(StripeObject): """ Type of registration in an EU country. """ - _inner_class_types = {"igic": Igic, "standard": Standard} + _inner_class_types = {"standard": Standard} class Sn(StripeObject): type: Literal["simplified"] @@ -1166,7 +977,7 @@ class Sr(StripeObject): """ class Th(StripeObject): - type: Literal["simplified"] + type: Union[Literal["simplified"], str] """ Type of registration in `country`. """ @@ -1208,6 +1019,36 @@ class Ug(StripeObject): """ class Us(StripeObject): + class AdmissionsTax(StripeObject): + jurisdiction: str + """ + A [jurisdiction code](https://docs.stripe.com/tax/registering?type=admissions_tax#registration-types) representing the local jurisdiction. + """ + + class AttendanceTax(StripeObject): + jurisdiction: str + """ + A [jurisdiction code](https://docs.stripe.com/tax/registering?type=attendance_tax#registration-types) representing the local jurisdiction. + """ + + class EntertainmentTax(StripeObject): + jurisdiction: str + """ + A [jurisdiction code](https://docs.stripe.com/tax/registering?type=entertainment_tax#registration-types) representing the local jurisdiction. + """ + + class GrossReceiptsTax(StripeObject): + jurisdiction: str + """ + A [jurisdiction code](https://docs.stripe.com/tax/registering?type=gross_receipts_tax#registration-types) representing the local jurisdiction. + """ + + class HospitalityTax(StripeObject): + jurisdiction: str + """ + A [jurisdiction code](https://docs.stripe.com/tax/registering?type=hospitality_tax#registration-types) representing the local jurisdiction. + """ + class LocalAmusementTax(StripeObject): jurisdiction: str """ @@ -1220,6 +1061,12 @@ class LocalLeaseTax(StripeObject): A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. """ + class LuxuryTax(StripeObject): + jurisdiction: str + """ + A [jurisdiction code](https://docs.stripe.com/tax/registering?type=luxury_tax#registration-types) representing the local jurisdiction. + """ + class MassTransitParkingTax(StripeObject): jurisdiction: str """ @@ -1232,6 +1079,12 @@ class ParkingTax(StripeObject): A [jurisdiction code](https://docs.stripe.com/tax/registering?type=parking_tax#registration-types) representing the local jurisdiction. """ + class ResortTax(StripeObject): + jurisdiction: str + """ + A [jurisdiction code](https://docs.stripe.com/tax/registering?type=resort_tax#registration-types) representing the local jurisdiction. + """ + class StateSalesTax(StripeObject): class Election(StripeObject): jurisdiction: Optional[str] @@ -1256,24 +1109,46 @@ class Election(StripeObject): """ _inner_class_types = {"elections": Election} + class TourismTax(StripeObject): + jurisdiction: str + """ + A [jurisdiction code](https://docs.stripe.com/tax/registering?type=tourism_tax#registration-types) representing the local jurisdiction. + """ + + admissions_tax: Optional[AdmissionsTax] + attendance_tax: Optional[AttendanceTax] + entertainment_tax: Optional[EntertainmentTax] + gross_receipts_tax: Optional[GrossReceiptsTax] + hospitality_tax: Optional[HospitalityTax] local_amusement_tax: Optional[LocalAmusementTax] local_lease_tax: Optional[LocalLeaseTax] + luxury_tax: Optional[LuxuryTax] mass_transit_parking_tax: Optional[MassTransitParkingTax] parking_tax: Optional[ParkingTax] + resort_tax: Optional[ResortTax] state: str """ Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). """ state_sales_tax: Optional[StateSalesTax] + tourism_tax: Optional[TourismTax] type: Union[ Literal[ + "admissions_tax", + "attendance_tax", + "entertainment_tax", + "gross_receipts_tax", + "hospitality_tax", "local_amusement_tax", "local_lease_tax", + "luxury_tax", "mass_transit_parking_tax", "parking_tax", + "resort_tax", "state_communications_tax", "state_retail_delivery_fee", "state_sales_tax", + "tourism_tax", ], str, ] @@ -1281,11 +1156,19 @@ class Election(StripeObject): Type of registration in the US. """ _inner_class_types = { + "admissions_tax": AdmissionsTax, + "attendance_tax": AttendanceTax, + "entertainment_tax": EntertainmentTax, + "gross_receipts_tax": GrossReceiptsTax, + "hospitality_tax": HospitalityTax, "local_amusement_tax": LocalAmusementTax, "local_lease_tax": LocalLeaseTax, + "luxury_tax": LuxuryTax, "mass_transit_parking_tax": MassTransitParkingTax, "parking_tax": ParkingTax, + "resort_tax": ResortTax, "state_sales_tax": StateSalesTax, + "tourism_tax": TourismTax, } class Uy(StripeObject): diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py index 726d0d33c..dab1bed49 100644 --- a/stripe/tax/_transaction.py +++ b/stripe/tax/_transaction.py @@ -285,21 +285,32 @@ class TaxRateDetails(StripeObject): """ tax_type: Union[ Literal[ + "admissions_tax", "amusement_tax", + "attendance_tax", "communications_tax", + "digital_excise_tax", + "entertainment_tax", + "gross_receipts_tax", "gst", + "hospitality_tax", "hst", "igst", "jct", "lease_tax", + "luxury_tax", "mass_transit_parking_tax", "parking_tax", "pst", "qst", + "recycling_fee", + "resort_tax", "retail_delivery_fee", "rst", "sales_tax", "service_tax", + "tourism_tax", + "utility_users_tax", "vat", ], str, @@ -313,7 +324,9 @@ class TaxRateDetails(StripeObject): The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). """ jurisdiction: Jurisdiction - sourcing: Union[Literal["destination", "origin"], str] + sourcing: Union[ + Literal["destination", "origin", "performance"], str + ] """ Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). """ diff --git a/stripe/tax/_transaction_line_item.py b/stripe/tax/_transaction_line_item.py index 679492e18..c6f16221e 100644 --- a/stripe/tax/_transaction_line_item.py +++ b/stripe/tax/_transaction_line_item.py @@ -6,6 +6,10 @@ class TransactionLineItem(StripeObject): + """ + A Tax Transaction Line Item represents an individual item in a Tax Transaction. + """ + OBJECT_NAME: ClassVar[Literal["tax.transaction_line_item"]] = ( "tax.transaction_line_item" ) diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index ff383ac78..442fb00a7 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -144,6 +144,7 @@ class ApiError(StripeObject): "customer_session_expired", "customer_tax_location_invalid", "debit_not_authorized", + "dispute_evidence_page_limit_exceeded", "email_invalid", "expired_card", "expired_payment_method", @@ -154,6 +155,8 @@ class ApiError(StripeObject): "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", + "financial_connections_consent_locale_invalid", + "financial_connections_consent_locale_unsupported", "financial_connections_no_successful_transaction_refresh", "forwarding_api_inactive", "forwarding_api_invalid_parameter", @@ -207,6 +210,7 @@ class ApiError(StripeObject): "parameter_missing", "parameter_unknown", "parameters_exclusive", + "payment_evaluation_on_api_version_not_supported", "payment_intent_action_required", "payment_intent_authentication_failure", "payment_intent_incompatible_payment_method", @@ -358,7 +362,7 @@ class ApiError(StripeObject): """ 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. + Later, you can use [PaymentIntents](https://docs.stripe.com/api#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. @@ -369,9 +373,9 @@ class ApiError(StripeObject): 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), + If you use the SetupIntent with a [Customer](https://docs.stripe.com/api#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 + We recommend using SetupIntents or [setup_future_usage](https://docs.stripe.com/api#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. @@ -960,7 +964,7 @@ class LineItem(StripeObject): """ status: Optional[Union[Literal["offline", "online"], str]] """ - The networking status of the reader. We do not recommend using this field in flows that may block taking payments. + The networking status of the reader. This value is `null` for mobile readers. We do not recommend using this field in flows that may block taking payments. """ @classmethod diff --git a/stripe/three_d_secure/__init__.py b/stripe/three_d_secure/__init__.py new file mode 100644 index 000000000..bcc75aaae --- /dev/null +++ b/stripe/three_d_secure/__init__.py @@ -0,0 +1,36 @@ +# -*- 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.three_d_secure._authentication import ( + Authentication as Authentication, + ) + from stripe.three_d_secure._authentication_service import ( + AuthenticationService as AuthenticationService, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "Authentication": ("stripe.three_d_secure._authentication", False), + "AuthenticationService": ( + "stripe.three_d_secure._authentication_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/three_d_secure/_authentication.py b/stripe/three_d_secure/_authentication.py new file mode 100644 index 000000000..2fdca0b98 --- /dev/null +++ b/stripe/three_d_secure/_authentication.py @@ -0,0 +1,825 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._createable_api_resource import CreateableAPIResource +from stripe._expandable_field import ExpandableField +from stripe._list_object import ListObject +from stripe._listable_api_resource import ListableAPIResource +from stripe._stripe_object import StripeObject, UntypedStripeObject +from stripe._util import class_method_variant, sanitize_id +from typing import ClassVar, Optional, Union, cast, overload +from typing_extensions import Literal, Unpack, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._payment_method import PaymentMethod + from stripe.params.three_d_secure._authentication_cancel_params import ( + AuthenticationCancelParams, + ) + from stripe.params.three_d_secure._authentication_create_params import ( + AuthenticationCreateParams, + ) + from stripe.params.three_d_secure._authentication_list_params import ( + AuthenticationListParams, + ) + from stripe.params.three_d_secure._authentication_retrieve_params import ( + AuthenticationRetrieveParams, + ) + from stripe.params.three_d_secure._authentication_submit_params import ( + AuthenticationSubmitParams, + ) + + +class Authentication( + CreateableAPIResource["Authentication"], + ListableAPIResource["Authentication"], +): + """ + The Standalone 3DS API allows you to run EMV 3D Secure (3DS) authentication using Stripe while authorizing the payment with any PSP. + + Related guide: [Standalone 3DS](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure) + """ + + OBJECT_NAME: ClassVar[Literal["three_d_secure.authentication"]] = ( + "three_d_secure.authentication" + ) + + class AcquirerDetails(StripeObject): + acquirer_bin: Optional[str] + """ + The Acquirer BIN (specific to the directory_server). + """ + acquirer_country: Optional[str] + """ + The two-letter country code of the acquirer ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + acquirer_merchant_id: Optional[str] + """ + The Merchant ID (or Card Acceptor ID) that your acquirer assigned you (specific to the directory_server). + """ + mcc: Optional[str] + """ + The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) as defined by each payment system or directory server. + """ + merchant_name: Optional[str] + """ + The merchant name assigned by the acquirer or payment system. Same name used in the authorization message as defined in [ISO 8583](https://en.wikipedia.org/wiki/ISO_8583). + """ + requestor_id: Optional[str] + """ + Requestor ID if you're enrolled in the card network's 3DS program. Otherwise, you can omit this field because Stripe assigns a Requestor ID with the card networks. + """ + + class Channel(StripeObject): + class Browser(StripeObject): + accept_header: str + """ + The HTTP accept headers from the cardholder's browser. + """ + color_depth: Optional[int] + """ + The color depth of the cardholder's screen. + """ + ip_address: str + """ + The IP address of the browser. + """ + java_enabled: Optional[bool] + """ + The cardholder browser's ability to execute Java. + """ + javascript_enabled: bool + """ + The cardholder browser's ability to execute JavaScript. + """ + language: str + """ + An IETF BCP 47 language tag representing the browser language. + """ + screen_height: Optional[int] + """ + The total height of the cardholder's screen in pixels. + """ + screen_width: Optional[int] + """ + The total width of the cardholder's screen in pixels. + """ + timezone_offset: Optional[int] + """ + The time difference between UTC time and the local time of the cardholder's browser, in minutes. + """ + user_agent: str + """ + The browser user agent. + """ + + class ThreeRI(StripeObject): + previous_authentication: str + """ + ID of the previous initial authenticated 3DS Authentication object. + """ + type: Union[ + Literal[ + "delayed_shipment", + "other_payment", + "recurring", + "split_shipment", + ], + str, + ] + """ + Type of the 3RI Authentication. + """ + + browser: Optional[Browser] + """ + Contains details on the browser for a standalone 3DS Authentication. + """ + three_r_i: Optional[ThreeRI] + """ + Contains details for a 3RI standalone 3DS Authentication. + """ + type: Union[Literal["browser", "three_r_i"], str] + """ + Type of channel you would prefer to use for this 3DS Authentication. Only browser. + """ + _inner_class_types = {"browser": Browser, "three_r_i": ThreeRI} + + class FlowPreference(StripeObject): + class Challenge(StripeObject): + type: Union[Literal["mandated", "preferred"], str] + """ + Type of challenge flow you requested for this 3DS Authentication. + """ + + class DataShare(StripeObject): + type: Union[Literal["ds_specific", "emv_standard"], str] + """ + Type of data share flow you requested for this 3DS Authentication. + """ + + class Frictionless(StripeObject): + type: Union[Literal["low_risk", "none"], str] + """ + Type of frictionless flow you requested for this 3DS Authentication. + """ + + challenge: Optional[Challenge] + data_share: Optional[DataShare] + frictionless: Optional[Frictionless] + type: Union[Literal["challenge", "data_share", "frictionless"], str] + """ + Type of flow you requested for this 3DS Authentication. + """ + _inner_class_types = { + "challenge": Challenge, + "data_share": DataShare, + "frictionless": Frictionless, + } + + class FutureUsage(StripeObject): + class Installment(StripeObject): + class Expiry(StripeObject): + date: Optional[str] + type: Union[Literal["date", "never"], str] + + amount: Optional[int] + """ + A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + """ + expiry: Expiry + """ + Information about recurring payment expiry + """ + interval: Literal["day"] + """ + The unit of time for `interval_count`. + """ + interval_count: int + """ + The minimum number of time intervals between authorizations. + """ + number: int + """ + The maximum number of installments. + """ + _inner_class_types = {"expiry": Expiry} + + class Recurring(StripeObject): + class Expiry(StripeObject): + date: Optional[str] + type: Union[Literal["date", "never"], str] + + amount: Optional[int] + """ + A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + """ + expiry: Expiry + """ + Information about recurring payment expiry + """ + interval: Literal["day"] + """ + The unit of time for `interval_count`. + """ + interval_count: int + """ + The minimum number of time intervals between authorizations. + """ + _inner_class_types = {"expiry": Expiry} + + installment: Optional[Installment] + """ + Details about installment payments + """ + recurring: Optional[Recurring] + """ + Details about recurring payments + """ + type: Union[Literal["card_on_file", "installment", "recurring"], str] + """ + The type of future usage declared for this 3DS Authentication. + """ + _inner_class_types = { + "installment": Installment, + "recurring": Recurring, + } + + class OutcomeDetails(StripeObject): + class NetworkDetails(StripeObject): + class CartesBancaires(StripeObject): + avalgo: str + """ + The cryptogram calculation algorithm used by the card Issuer's ACS to calculate the Authentication cryptogram. Also known as cavvAlgorithm. ARes/RReq messageExtension: `CB-AVALGO` + """ + cb_exemption: Optional[str] + """ + The exemption indicator returned from Cartes Bancaires in the ARes. This is a 3 byte bitmap (lowest significant byte first and most significant bit first) that has been Base64 encoded. String (4 characters). ARes message extension: `CB-EXEMPTION` + """ + cb_score: Optional[str] + """ + The risk score returned from Cartes Bancaires in the ARes. Numeric value 0-99. ARes/RReq message extension: `CB-SCORE` + """ + + cartes_bancaires: Optional[CartesBancaires] + """ + Contains details for Cartes Bancaires specific fields in the authentication outcomes. + """ + _inner_class_types = {"cartes_bancaires": CartesBancaires} + + acs_transaction_id: Optional[str] + """ + Universally unique transaction identifier assigned by the issuer to identify the transaction. + """ + ares: Optional[str] + """ + The Authentication Response Message (ARes) is the issuer's response to the AReq message. + """ + ares_trans_status: Optional[ + Union[Literal["A", "C", "D", "I", "N", "R", "S", "U", "Y"], str] + ] + """ + TransStatus field on the ARes + """ + cryptogram: Optional[str] + """ + A 28-character Base64 string proving that 3DS was completed. Store this value securely, and don't reuse it for multiple authorizations. + """ + ds_transaction_id: Optional[str] + """ + The 3DS2 Directory Server Transaction ID. + """ + eci: Optional[str] + """ + Electronic Commerce Indicator provided by the issuer to indicate the result of this 3DS Authentication. + """ + network_details: Optional[NetworkDetails] + """ + Contains details specific to the individual network. + """ + protocol_version: Union[Literal["2.1.0", "2.2.0", "2.3.1"], str] + """ + The 3DS protocol version used for this 3DS Authentication. + """ + requestor_challenge_indicator: Optional[ + Union[Literal["01", "02", "03", "04", "05", "06"], str] + ] + """ + The indicator provided to the issuer by Stripe in the AReq that indicates whether a challenge is requested for this Authentication. This indicator should match the flow_preference you specified but may be overridden (for compliance reasons for example). + """ + rreq: Optional[str] + """ + The Results Request Message (RReq) communicates the results of the authentication or verification. + """ + rreq_trans_status: Optional[ + Union[Literal["A", "C", "D", "I", "N", "R", "S", "U", "Y"], str] + ] + """ + TransStatus field on the RReq + """ + three_ds_server_transaction_id: str + """ + Universally unique transaction identifier assigned by Stripe to identify the transaction. + """ + _inner_class_types = {"network_details": NetworkDetails} + + class ShippingAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: Optional[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + acquirer_details: Optional[AcquirerDetails] + """ + Contains additional details about the acquirer for a 3DS Authentication. + """ + amount: Optional[int] + """ + The amount for this 3DS Authentication. + """ + challenge_url: Optional[str] + """ + The URL for presenting a challenge to your cardholder, present if status is requires_challenge. + """ + channel: Channel + """ + Contains details on the channel used (browser, 3RI) for a standalone 3DS Authentication. + """ + created: int + """ + Time at which the object was created. Measured in seconds since the Unix epoch. + """ + currency: Optional[str] + """ + 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). + """ + directory_server: Union[ + Literal[ + "american_express", + "cartes_bancaires", + "discover", + "mastercard", + "visa", + ], + str, + ] + """ + The 3DS directory server with which this 3DS Authentication was processed. + """ + fingerprinting_url: Optional[str] + """ + The URL for performing issuer fingerprinting, present if fingerprinting is supported for the given payment method. + """ + flow_preference: Optional[FlowPreference] + """ + Contains details of the flow preference used for a standalone 3DS Authentication. + """ + future_usage: Optional[FutureUsage] + """ + Contains information about the future authorisations related to this authentication + """ + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. + """ + message_category: Union[ + Literal["non_payment_authentication", "payment_authentication"], str + ] + """ + Indicates whether this 3DS Authentication is being performed for a payment or non-payment use case. + """ + 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. + """ + object: Literal["three_d_secure.authentication"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + outcome: Optional[ + Union[ + Literal[ + "abandoned", + "attempt_acknowledged", + "authenticated", + "canceled", + "denied", + "informational", + "internal_error", + "not_supported", + "not_triggered", + "processing_error", + "rejected", + ], + str, + ] + ] + """ + The outcome of this 3DS Authentication. + """ + outcome_details: Optional[OutcomeDetails] + """ + Contains details on the result for a standalone 3DS Authentication. + """ + payment_method: ExpandableField["PaymentMethod"] + """ + ID of the payment method (a PaymentMethod object) to attach to this 3DS Authentication. + """ + reason: Optional[ + Union[ + Literal[ + "cardholder_authentication", + "issuer_requested", + "liability_shift", + "processing_costs", + "regulatory_compliance", + ], + str, + ] + ] + """ + The reason for invoking this 3DS Authentication. + """ + shipping_address: Optional[ShippingAddress] + """ + Contains details about the shipping address for a 3DS Authentication. + """ + status: Union[ + Literal[ + "canceled", + "error", + "failed", + "requires_challenge", + "requires_submission", + "succeeded", + ], + str, + ] + """ + Status of this Authentication. + """ + + @classmethod + def _cls_cancel( + cls, + authentication: str, + **params: Unpack["AuthenticationCancelParams"], + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + return cast( + "Authentication", + cls._static_request( + "post", + "/v1/three_d_secure/authentications/{authentication}/cancel".format( + authentication=sanitize_id(authentication) + ), + params=params, + ), + ) + + @overload + @staticmethod + def cancel( + authentication: str, **params: Unpack["AuthenticationCancelParams"] + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + ... + + @overload + def cancel( + self, **params: Unpack["AuthenticationCancelParams"] + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + ... + + @class_method_variant("_cls_cancel") + def cancel( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["AuthenticationCancelParams"] + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + return cast( + "Authentication", + self._request( + "post", + "/v1/three_d_secure/authentications/{authentication}/cancel".format( + authentication=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + @classmethod + async def _cls_cancel_async( + cls, + authentication: str, + **params: Unpack["AuthenticationCancelParams"], + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + return cast( + "Authentication", + await cls._static_request_async( + "post", + "/v1/three_d_secure/authentications/{authentication}/cancel".format( + authentication=sanitize_id(authentication) + ), + params=params, + ), + ) + + @overload + @staticmethod + async def cancel_async( + authentication: str, **params: Unpack["AuthenticationCancelParams"] + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + ... + + @overload + async def cancel_async( + self, **params: Unpack["AuthenticationCancelParams"] + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + ... + + @class_method_variant("_cls_cancel_async") + async def cancel_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["AuthenticationCancelParams"] + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + return cast( + "Authentication", + await self._request_async( + "post", + "/v1/three_d_secure/authentications/{authentication}/cancel".format( + authentication=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + @classmethod + def create( + cls, **params: Unpack["AuthenticationCreateParams"] + ) -> "Authentication": + """ + This endpoint creates a 3DS Authentication. Refer to the [Create a 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#create-a-3ds-authentication-object) for more information. + + You can pass the submit parameter to automatically submit the 3DS Authentication object when you create it. Refer to the [Submit at creation section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-at-creation) for more information. + """ + return cast( + "Authentication", + cls._static_request( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + async def create_async( + cls, **params: Unpack["AuthenticationCreateParams"] + ) -> "Authentication": + """ + This endpoint creates a 3DS Authentication. Refer to the [Create a 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#create-a-3ds-authentication-object) for more information. + + You can pass the submit parameter to automatically submit the 3DS Authentication object when you create it. Refer to the [Submit at creation section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-at-creation) for more information. + """ + return cast( + "Authentication", + await cls._static_request_async( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + def list( + cls, **params: Unpack["AuthenticationListParams"] + ) -> ListObject["Authentication"]: + """ + Returns a list of 3D Secure Authentications. + """ + result = cls._static_request( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + async def list_async( + cls, **params: Unpack["AuthenticationListParams"] + ) -> ListObject["Authentication"]: + """ + Returns a list of 3D Secure Authentications. + """ + result = await cls._static_request_async( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + def retrieve( + cls, id: str, **params: Unpack["AuthenticationRetrieveParams"] + ) -> "Authentication": + """ + This endpoint retrieves a 3DS Authentication. + """ + instance = cls(id, **params) + instance.refresh() + return instance + + @classmethod + async def retrieve_async( + cls, id: str, **params: Unpack["AuthenticationRetrieveParams"] + ) -> "Authentication": + """ + This endpoint retrieves a 3DS Authentication. + """ + instance = cls(id, **params) + await instance.refresh_async() + return instance + + @classmethod + def _cls_submit( + cls, + authentication: str, + **params: Unpack["AuthenticationSubmitParams"], + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + return cast( + "Authentication", + cls._static_request( + "post", + "/v1/three_d_secure/authentications/{authentication}/submit".format( + authentication=sanitize_id(authentication) + ), + params=params, + ), + ) + + @overload + @staticmethod + def submit( + authentication: str, **params: Unpack["AuthenticationSubmitParams"] + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + ... + + @overload + def submit( + self, **params: Unpack["AuthenticationSubmitParams"] + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + ... + + @class_method_variant("_cls_submit") + def submit( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["AuthenticationSubmitParams"] + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + return cast( + "Authentication", + self._request( + "post", + "/v1/three_d_secure/authentications/{authentication}/submit".format( + authentication=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + @classmethod + async def _cls_submit_async( + cls, + authentication: str, + **params: Unpack["AuthenticationSubmitParams"], + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + return cast( + "Authentication", + await cls._static_request_async( + "post", + "/v1/three_d_secure/authentications/{authentication}/submit".format( + authentication=sanitize_id(authentication) + ), + params=params, + ), + ) + + @overload + @staticmethod + async def submit_async( + authentication: str, **params: Unpack["AuthenticationSubmitParams"] + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + ... + + @overload + async def submit_async( + self, **params: Unpack["AuthenticationSubmitParams"] + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + ... + + @class_method_variant("_cls_submit_async") + async def submit_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["AuthenticationSubmitParams"] + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + return cast( + "Authentication", + await self._request_async( + "post", + "/v1/three_d_secure/authentications/{authentication}/submit".format( + authentication=sanitize_id(self._data.get("id")) + ), + params=params, + ), + ) + + _inner_class_types = { + "acquirer_details": AcquirerDetails, + "channel": Channel, + "flow_preference": FlowPreference, + "future_usage": FutureUsage, + "outcome_details": OutcomeDetails, + "shipping_address": ShippingAddress, + } diff --git a/stripe/three_d_secure/_authentication_service.py b/stripe/three_d_secure/_authentication_service.py new file mode 100644 index 000000000..fea4f0e01 --- /dev/null +++ b/stripe/three_d_secure/_authentication_service.py @@ -0,0 +1,242 @@ +# -*- 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._list_object import ListObject + from stripe._request_options import RequestOptions + from stripe.params.three_d_secure._authentication_cancel_params import ( + AuthenticationCancelParams, + ) + from stripe.params.three_d_secure._authentication_create_params import ( + AuthenticationCreateParams, + ) + from stripe.params.three_d_secure._authentication_list_params import ( + AuthenticationListParams, + ) + from stripe.params.three_d_secure._authentication_retrieve_params import ( + AuthenticationRetrieveParams, + ) + from stripe.params.three_d_secure._authentication_submit_params import ( + AuthenticationSubmitParams, + ) + from stripe.three_d_secure._authentication import Authentication + + +class AuthenticationService(StripeService): + def list( + self, + params: Optional["AuthenticationListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Authentication]": + """ + Returns a list of 3D Secure Authentications. + """ + return cast( + "ListObject[Authentication]", + self._request( + "get", + "/v1/three_d_secure/authentications", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: Optional["AuthenticationListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Authentication]": + """ + Returns a list of 3D Secure Authentications. + """ + return cast( + "ListObject[Authentication]", + await self._request_async( + "get", + "/v1/three_d_secure/authentications", + base_address="api", + params=params, + options=options, + ), + ) + + def create( + self, + params: "AuthenticationCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "Authentication": + """ + This endpoint creates a 3DS Authentication. Refer to the [Create a 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#create-a-3ds-authentication-object) for more information. + + You can pass the submit parameter to automatically submit the 3DS Authentication object when you create it. Refer to the [Submit at creation section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-at-creation) for more information. + """ + return cast( + "Authentication", + self._request( + "post", + "/v1/three_d_secure/authentications", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "AuthenticationCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "Authentication": + """ + This endpoint creates a 3DS Authentication. Refer to the [Create a 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#create-a-3ds-authentication-object) for more information. + + You can pass the submit parameter to automatically submit the 3DS Authentication object when you create it. Refer to the [Submit at creation section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-at-creation) for more information. + """ + return cast( + "Authentication", + await self._request_async( + "post", + "/v1/three_d_secure/authentications", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + authentication: str, + params: Optional["AuthenticationRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Authentication": + """ + This endpoint retrieves a 3DS Authentication. + """ + return cast( + "Authentication", + self._request( + "get", + "/v1/three_d_secure/authentications/{authentication}".format( + authentication=sanitize_id(authentication), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + authentication: str, + params: Optional["AuthenticationRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Authentication": + """ + This endpoint retrieves a 3DS Authentication. + """ + return cast( + "Authentication", + await self._request_async( + "get", + "/v1/three_d_secure/authentications/{authentication}".format( + authentication=sanitize_id(authentication), + ), + base_address="api", + params=params, + options=options, + ), + ) + + def cancel( + self, + authentication: str, + params: Optional["AuthenticationCancelParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + return cast( + "Authentication", + self._request( + "post", + "/v1/three_d_secure/authentications/{authentication}/cancel".format( + authentication=sanitize_id(authentication), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def cancel_async( + self, + authentication: str, + params: Optional["AuthenticationCancelParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Authentication": + """ + This endpoint cancels a 3DS Authentication. You can cancel a 3DS Authentication object when it's in a non-final status: + requires_submission or requires_challenge. + """ + return cast( + "Authentication", + await self._request_async( + "post", + "/v1/three_d_secure/authentications/{authentication}/cancel".format( + authentication=sanitize_id(authentication), + ), + base_address="api", + params=params, + options=options, + ), + ) + + def submit( + self, + authentication: str, + params: Optional["AuthenticationSubmitParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + return cast( + "Authentication", + self._request( + "post", + "/v1/three_d_secure/authentications/{authentication}/submit".format( + authentication=sanitize_id(authentication), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def submit_async( + self, + authentication: str, + params: Optional["AuthenticationSubmitParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Authentication": + """ + This endpoint submits a 3DS Authentication. You can submit a 3DS Authentication object when it has status requires_submission. Refer to the [Submit the 3DS Authentication object section of the Standalone 3DS guide](https://docs.stripe.com/payments/3d-secure/standalone-3d-secure#submit-the-3ds-authentication-object) for more information. + """ + return cast( + "Authentication", + await self._request_async( + "post", + "/v1/three_d_secure/authentications/{authentication}/submit".format( + authentication=sanitize_id(authentication), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/treasury/_credit_reversal.py b/stripe/treasury/_credit_reversal.py index 7e5076478..3fe46f7f1 100644 --- a/stripe/treasury/_credit_reversal.py +++ b/stripe/treasury/_credit_reversal.py @@ -26,7 +26,7 @@ class CreditReversal( ListableAPIResource["CreditReversal"], ): """ - You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. + You can reverse some [ReceivedCredits](https://docs.stripe.com/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. """ OBJECT_NAME: ClassVar[Literal["treasury.credit_reversal"]] = ( diff --git a/stripe/treasury/_debit_reversal.py b/stripe/treasury/_debit_reversal.py index 39e149e11..379541f5e 100644 --- a/stripe/treasury/_debit_reversal.py +++ b/stripe/treasury/_debit_reversal.py @@ -26,7 +26,7 @@ class DebitReversal( ListableAPIResource["DebitReversal"], ): """ - You can reverse some [ReceivedDebits](https://api.stripe.com#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. + You can reverse some [ReceivedDebits](https://docs.stripe.com/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. """ OBJECT_NAME: ClassVar[Literal["treasury.debit_reversal"]] = ( diff --git a/stripe/treasury/_financial_account.py b/stripe/treasury/_financial_account.py index fbc26f3b5..c1c5c9377 100644 --- a/stripe/treasury/_financial_account.py +++ b/stripe/treasury/_financial_account.py @@ -92,7 +92,7 @@ class Aba(StripeObject): ABA Records contain U.S. bank account details per the ABA format. """ supported_networks: Optional[ - List[Union[Literal["ach", "us_domestic_wire"], str]] + List[Union[Literal["ach", "rtp", "us_domestic_wire"], str]] ] """ The list of networks that the address supports diff --git a/stripe/treasury/_inbound_transfer.py b/stripe/treasury/_inbound_transfer.py index 1c3b31675..d150bb55a 100644 --- a/stripe/treasury/_inbound_transfer.py +++ b/stripe/treasury/_inbound_transfer.py @@ -41,7 +41,7 @@ class InboundTransfer( ListableAPIResource["InboundTransfer"], ): """ - Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://api.stripe.com#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. + Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://docs.stripe.com/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) """ @@ -201,7 +201,7 @@ class StatusTransitions(StripeObject): """ failure_details: Optional[FailureDetails] """ - Details about this InboundTransfer's failure. Only set when status is `failed`. + Details about this InboundTransfer's failure. Will be set when `status=failed` or `returned=true`. """ financial_account: str """ diff --git a/stripe/treasury/_outbound_payment.py b/stripe/treasury/_outbound_payment.py index 04b13de61..a9988e05b 100644 --- a/stripe/treasury/_outbound_payment.py +++ b/stripe/treasury/_outbound_payment.py @@ -44,7 +44,7 @@ class OutboundPayment( ListableAPIResource["OutboundPayment"], ): """ - Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). + Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://docs.stripe.com/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://docs.stripe.com/api#outbound_transfers). Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. diff --git a/stripe/treasury/_outbound_transfer.py b/stripe/treasury/_outbound_transfer.py index 06403cc4e..f369e0bf4 100644 --- a/stripe/treasury/_outbound_transfer.py +++ b/stripe/treasury/_outbound_transfer.py @@ -44,7 +44,7 @@ class OutboundTransfer( ListableAPIResource["OutboundTransfer"], ): """ - Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. + Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://docs.stripe.com/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. diff --git a/stripe/treasury/_received_credit.py b/stripe/treasury/_received_credit.py index 918f423aa..ecdda797d 100644 --- a/stripe/treasury/_received_credit.py +++ b/stripe/treasury/_received_credit.py @@ -27,7 +27,7 @@ class ReceivedCredit(ListableAPIResource["ReceivedCredit"]): """ - ReceivedCredits represent funds sent to a [FinancialAccount](https://api.stripe.com#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. + ReceivedCredits represent funds sent to a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. """ OBJECT_NAME: ClassVar[Literal["treasury.received_credit"]] = ( @@ -105,7 +105,7 @@ class UsBankAccount(StripeObject): financial_account: Optional[FinancialAccount] issuing_card: Optional[str] """ - Set when `type` is `issuing_card`. This is an [Issuing Card](https://api.stripe.com#issuing_cards) ID. + Set when `type` is `issuing_card`. This is an [Issuing Card](https://docs.stripe.com/api#issuing_cards) ID. """ type: Union[ Literal[ @@ -131,11 +131,11 @@ class LinkedFlows(StripeObject): class SourceFlowDetails(StripeObject): credit_reversal: Optional["CreditReversal"] """ - You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. + You can reverse some [ReceivedCredits](https://docs.stripe.com/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. """ outbound_payment: Optional["OutboundPayment"] """ - Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). + Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://docs.stripe.com/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://docs.stripe.com/api#outbound_transfers). Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. @@ -143,7 +143,7 @@ class SourceFlowDetails(StripeObject): """ outbound_transfer: Optional["OutboundTransfer"] """ - Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. + Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://docs.stripe.com/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. @@ -180,11 +180,11 @@ class SourceFlowDetails(StripeObject): """ issuing_authorization: Optional[str] """ - Set if the ReceivedCredit was created due to an [Issuing Authorization](https://api.stripe.com#issuing_authorizations) object. + Set if the ReceivedCredit was created due to an [Issuing Authorization](https://docs.stripe.com/api#issuing_authorizations) object. """ issuing_transaction: Optional[str] """ - Set if the ReceivedCredit is also viewable as an [Issuing transaction](https://api.stripe.com#issuing_transactions) object. + Set if the ReceivedCredit is also viewable as an [Issuing transaction](https://docs.stripe.com/api#issuing_transactions) object. """ source_flow: Optional[str] """ @@ -269,7 +269,9 @@ class ReversalDetails(StripeObject): """ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. """ - network: Union[Literal["ach", "card", "stripe", "us_domestic_wire"], str] + network: Union[ + Literal["ach", "card", "rtp", "stripe", "us_domestic_wire"], str + ] """ The rails used to send the funds. """ diff --git a/stripe/treasury/_received_debit.py b/stripe/treasury/_received_debit.py index d25750e27..64d1ecf02 100644 --- a/stripe/treasury/_received_debit.py +++ b/stripe/treasury/_received_debit.py @@ -23,7 +23,7 @@ class ReceivedDebit(ListableAPIResource["ReceivedDebit"]): """ - ReceivedDebits represent funds pulled from a [FinancialAccount](https://api.stripe.com#financial_accounts). These are not initiated from the FinancialAccount. + ReceivedDebits represent funds pulled from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts). These are not initiated from the FinancialAccount. """ OBJECT_NAME: ClassVar[Literal["treasury.received_debit"]] = ( @@ -101,7 +101,7 @@ class UsBankAccount(StripeObject): financial_account: Optional[FinancialAccount] issuing_card: Optional[str] """ - Set when `type` is `issuing_card`. This is an [Issuing Card](https://api.stripe.com#issuing_cards) ID. + Set when `type` is `issuing_card`. This is an [Issuing Card](https://docs.stripe.com/api#issuing_cards) ID. """ type: Union[ Literal[ @@ -134,19 +134,19 @@ class LinkedFlows(StripeObject): """ issuing_authorization: Optional[str] """ - Set if the ReceivedDebit was created due to an [Issuing Authorization](https://api.stripe.com#issuing_authorizations) object. + Set if the ReceivedDebit was created due to an [Issuing Authorization](https://docs.stripe.com/api#issuing_authorizations) object. """ issuing_transaction: Optional[str] """ - Set if the ReceivedDebit is also viewable as an [Issuing Dispute](https://api.stripe.com#issuing_disputes) object. + Set if the ReceivedDebit is also viewable as an [Issuing Dispute](https://docs.stripe.com/api#issuing_disputes) object. """ payout: Optional[str] """ - Set if the ReceivedDebit was created due to a [Payout](https://api.stripe.com#payouts) object. + Set if the ReceivedDebit was created due to a [Payout](https://docs.stripe.com/api#payouts) object. """ topup: Optional[str] """ - Set if the ReceivedDebit was created due to a [Topup](https://api.stripe.com#topups) object. + Set if the ReceivedDebit was created due to a [Topup](https://docs.stripe.com/api#topups) object. """ class ReversalDetails(StripeObject): diff --git a/stripe/treasury/_transaction.py b/stripe/treasury/_transaction.py index baac71327..b6e0602f2 100644 --- a/stripe/treasury/_transaction.py +++ b/stripe/treasury/_transaction.py @@ -26,7 +26,7 @@ class Transaction(ListableAPIResource["Transaction"]): """ - Transactions represent changes to a [FinancialAccount's](https://api.stripe.com#financial_accounts) balance. + Transactions represent changes to a [FinancialAccount's](https://docs.stripe.com/api#financial_accounts) balance. """ OBJECT_NAME: ClassVar[Literal["treasury.transaction"]] = ( @@ -50,15 +50,15 @@ class BalanceImpact(StripeObject): class FlowDetails(StripeObject): credit_reversal: Optional["CreditReversal"] """ - You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. + You can reverse some [ReceivedCredits](https://docs.stripe.com/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. """ debit_reversal: Optional["DebitReversal"] """ - You can reverse some [ReceivedDebits](https://api.stripe.com#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. + You can reverse some [ReceivedDebits](https://docs.stripe.com/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. """ inbound_transfer: Optional["InboundTransfer"] """ - Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://api.stripe.com#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. + Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://docs.stripe.com/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) """ @@ -72,7 +72,7 @@ class FlowDetails(StripeObject): """ outbound_payment: Optional["OutboundPayment"] """ - Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). + Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://docs.stripe.com/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://docs.stripe.com/api#outbound_transfers). Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. @@ -80,7 +80,7 @@ class FlowDetails(StripeObject): """ outbound_transfer: Optional["OutboundTransfer"] """ - Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. + Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://docs.stripe.com/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. @@ -88,11 +88,11 @@ class FlowDetails(StripeObject): """ received_credit: Optional["ReceivedCredit"] """ - ReceivedCredits represent funds sent to a [FinancialAccount](https://api.stripe.com#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. + ReceivedCredits represent funds sent to a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. """ received_debit: Optional["ReceivedDebit"] """ - ReceivedDebits represent funds pulled from a [FinancialAccount](https://api.stripe.com#financial_accounts). These are not initiated from the FinancialAccount. + ReceivedDebits represent funds pulled from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts). These are not initiated from the FinancialAccount. """ type: Union[ Literal[ diff --git a/stripe/treasury/_transaction_entry.py b/stripe/treasury/_transaction_entry.py index b52cd2f7b..11bef2a3a 100644 --- a/stripe/treasury/_transaction_entry.py +++ b/stripe/treasury/_transaction_entry.py @@ -27,7 +27,7 @@ class TransactionEntry(ListableAPIResource["TransactionEntry"]): """ - TransactionEntries represent individual units of money movements within a single [Transaction](https://api.stripe.com#transactions). + TransactionEntries represent individual units of money movements within a single [Transaction](https://docs.stripe.com/api#transactions). """ OBJECT_NAME: ClassVar[Literal["treasury.transaction_entry"]] = ( @@ -51,15 +51,15 @@ class BalanceImpact(StripeObject): class FlowDetails(StripeObject): credit_reversal: Optional["CreditReversal"] """ - You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. + You can reverse some [ReceivedCredits](https://docs.stripe.com/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. """ debit_reversal: Optional["DebitReversal"] """ - You can reverse some [ReceivedDebits](https://api.stripe.com#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. + You can reverse some [ReceivedDebits](https://docs.stripe.com/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. """ inbound_transfer: Optional["InboundTransfer"] """ - Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://api.stripe.com#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. + Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://docs.stripe.com/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) """ @@ -73,7 +73,7 @@ class FlowDetails(StripeObject): """ outbound_payment: Optional["OutboundPayment"] """ - Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). + Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://docs.stripe.com/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://docs.stripe.com/api#outbound_transfers). Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. @@ -81,7 +81,7 @@ class FlowDetails(StripeObject): """ outbound_transfer: Optional["OutboundTransfer"] """ - Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. + Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://docs.stripe.com/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. @@ -89,11 +89,11 @@ class FlowDetails(StripeObject): """ received_credit: Optional["ReceivedCredit"] """ - ReceivedCredits represent funds sent to a [FinancialAccount](https://api.stripe.com#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. + ReceivedCredits represent funds sent to a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. """ received_debit: Optional["ReceivedDebit"] """ - ReceivedDebits represent funds pulled from a [FinancialAccount](https://api.stripe.com#financial_accounts). These are not initiated from the FinancialAccount. + ReceivedDebits represent funds pulled from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts). These are not initiated from the FinancialAccount. """ type: Union[ Literal[ diff --git a/stripe/v2/billing/_meter_event_adjustment.py b/stripe/v2/billing/_meter_event_adjustment.py index 741df9078..1a74d9bc3 100644 --- a/stripe/v2/billing/_meter_event_adjustment.py +++ b/stripe/v2/billing/_meter_event_adjustment.py @@ -48,7 +48,7 @@ class Cancel(StripeObject): """ Open Enum. The meter event adjustment's status. """ - type: Literal["cancel"] + type: Union[Literal["cancel"], str] """ Open Enum. Specifies the type of cancellation. Currently supports canceling a single event. """ diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index 84fabf29f..df5978725 100644 --- a/stripe/v2/core/_account.py +++ b/stripe/v2/core/_account.py @@ -2981,7 +2981,7 @@ class BankAccountOwnershipVerification(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -2991,7 +2991,7 @@ class CompanyLicense(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3001,7 +3001,7 @@ class CompanyMemorandumOfAssociation(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3011,7 +3011,7 @@ class CompanyMinisterialDecree(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3021,7 +3021,7 @@ class CompanyRegistrationVerification(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3031,7 +3031,7 @@ class CompanyTaxIdVerification(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3051,7 +3051,7 @@ class FrontBack(StripeObject): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -3062,7 +3062,7 @@ class ProofOfAddress(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3082,7 +3082,7 @@ class Signer(StripeObject): """ Person that is signing the document. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3103,7 +3103,7 @@ class Signer(StripeObject): """ Person that is signing the document. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3634,7 +3634,7 @@ class CompanyAuthorization(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3644,7 +3644,7 @@ class Passport(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -3664,7 +3664,7 @@ class FrontBack(StripeObject): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -3685,7 +3685,7 @@ class FrontBack(StripeObject): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -3696,7 +3696,7 @@ class Visa(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ diff --git a/stripe/v2/core/_account_person.py b/stripe/v2/core/_account_person.py index f4f06045a..e1c4a1608 100644 --- a/stripe/v2/core/_account_person.py +++ b/stripe/v2/core/_account_person.py @@ -138,7 +138,7 @@ class CompanyAuthorization(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -148,7 +148,7 @@ class Passport(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ @@ -168,7 +168,7 @@ class FrontBack(StripeObject): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -189,7 +189,7 @@ class FrontBack(StripeObject): """ The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. """ - type: Literal["front_back"] + type: Union[Literal["front_back"], str] """ The format of the verification document. Currently supports `front_back` only. """ @@ -200,7 +200,7 @@ class Visa(StripeObject): """ 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`. """ - type: Literal["files"] + type: Union[Literal["files"], str] """ The format of the document. Currently supports `files` only. """ diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py index fb6ab6e09..634ddae2f 100644 --- a/stripe/v2/core/_event.py +++ b/stripe/v2/core/_event.py @@ -40,7 +40,7 @@ class Request(StripeObject): """ Information on the API request that instigated the event. """ - type: Literal["request"] + type: Union[Literal["request"], str] """ Event reason type. """ diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 83cda729c..6eecf5f6c 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -12958,7 +12958,7 @@ def test_financial_connections_sessions_post_2_service_non_namespaced( "customer": "cus_xxxxxxxxxxxxx", }, "permissions": ["payment_method", "balances"], - "filters": {"countries": ["US"]}, + "filters": {"country": "US"}, } ) http_client_mock.assert_requested( @@ -12966,7 +12966,7 @@ def test_financial_connections_sessions_post_2_service_non_namespaced( path="/v1/financial_connections/sessions", query_string="", api_base="https://api.stripe.com", - post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[countries][0]=US", + post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[country]=US", ) def test_financial_connections_sessions_post_2( @@ -12978,13 +12978,13 @@ def test_financial_connections_sessions_post_2( "customer": "cus_xxxxxxxxxxxxx", }, permissions=["payment_method", "balances"], - filters={"countries": ["US"]}, + filters={"country": "US"}, ) http_client_mock.assert_requested( "post", path="/v1/financial_connections/sessions", query_string="", - post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[countries][0]=US", + post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[country]=US", ) def test_financial_connections_sessions_post_2_service( @@ -13006,7 +13006,7 @@ def test_financial_connections_sessions_post_2_service( "customer": "cus_xxxxxxxxxxxxx", }, "permissions": ["payment_method", "balances"], - "filters": {"countries": ["US"]}, + "filters": {"country": "US"}, } ) http_client_mock.assert_requested( @@ -13014,7 +13014,7 @@ def test_financial_connections_sessions_post_2_service( path="/v1/financial_connections/sessions", query_string="", api_base="https://api.stripe.com", - post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[countries][0]=US", + post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[country]=US", ) @pytest.mark.anyio @@ -13027,13 +13027,13 @@ async def test_financial_connections_sessions_post_2_async( "customer": "cus_xxxxxxxxxxxxx", }, permissions=["payment_method", "balances"], - filters={"countries": ["US"]}, + filters={"country": "US"}, ) http_client_mock.assert_requested( "post", path="/v1/financial_connections/sessions", query_string="", - post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[countries][0]=US", + post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[country]=US", ) @pytest.mark.anyio @@ -13056,7 +13056,7 @@ async def test_financial_connections_sessions_post_2_service_async( "customer": "cus_xxxxxxxxxxxxx", }, "permissions": ["payment_method", "balances"], - "filters": {"countries": ["US"]}, + "filters": {"country": "US"}, } ) http_client_mock.assert_requested( @@ -13064,7 +13064,7 @@ async def test_financial_connections_sessions_post_2_service_async( path="/v1/financial_connections/sessions", query_string="", api_base="https://api.stripe.com", - post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[countries][0]=US", + post_data="account_holder[type]=customer&account_holder[customer]=cus_xxxxxxxxxxxxx&permissions[0]=payment_method&permissions[1]=balances&filters[country]=US", ) def test_financial_connections_transactions_get_service_non_namespaced(