Python library for the Stripe API.
balances
on resource class stripe.AccountSession.Components
and parameter class stripe.AccountSession.CreateParamsComponents
payouts_list
on resource class stripe.AccountSession.Components
and parameter class stripe.AccountSession.CreateParamsComponents
capital_overview
on parameter class stripe.AccountSession.CreateParamsComponents
tax_registrations
on parameter class stripe.AccountSession.CreateParamsComponents
tax_settings
on parameter class stripe.AccountSession.CreateParamsComponents
external_account_collection
on parameter class stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures
allow_redisplay
on parameter classes stripe.ConfirmationToken.CreateParamsPaymentMethodData
, stripe.Customer.ListPaymentMethodsParams
, stripe.PaymentIntent.ConfirmParamsPaymentMethodData
, stripe.PaymentIntent.CreateParamsPaymentMethodData
, stripe.PaymentIntent.ModifyParamsPaymentMethodData
, stripe.PaymentMethod.CreateParams
, stripe.PaymentMethod.ModifyParams
, stripe.SetupIntent.ConfirmParamsPaymentMethodData
, stripe.SetupIntent.CreateParamsPaymentMethodData
, and stripe.SetupIntent.ModifyParamsPaymentMethodData
subscription_trial_from_plan
on parameter classes stripe.Invoice.UpcomingLinesParams
and stripe.Invoice.UpcomingParams
swish
on parameter classes stripe.PaymentMethodConfiguration.CreateParams
and stripe.PaymentMethodConfiguration.ModifyParams
and resource stripe.PaymentMethodConfiguration
payment_method_data
on parameter class stripe.checkout.Session.CreateParams
saved_payment_method_options
on parameter class stripe.checkout.Session.CreateParams
and resource stripe.checkout.Session
mobilepay
on parameter class stripe.checkout.Session.CreateParamsPaymentMethodOptions
and resource class stripe.checkout.Session.PaymentMethodOptions
config
on parameter class stripe.forwarding.Request.CreateParams
and resource stripe.forwarding.Request
stripe.AccountSession.Components.PaymentDetails.Features
and stripe.AccountSession.Components.Payments.Features
from Optional[bool]
to bool
of destination_on_behalf_of_charge_management
stripe.billing.MeterEvent.CreateParams
from int
to NotRequired[int]
of timestamp
mobilepay
on enum stripe.checkout.Session.CreateParams.payment_method_types
other
on enums stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit
, stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit
, and stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit
allow_redisplay
on parameter classes stripe.ConfirmationToken.CreateParamsPaymentMethodData
, stripe.Customer.ListPaymentMethodsParams
, stripe.PaymentIntent.ConfirmParamsPaymentMethodData
, stripe.PaymentIntent.CreateParamsPaymentMethodData
, stripe.PaymentIntent.ModifyParamsPaymentMethodData
, stripe.PaymentMethod.CreateParams
, stripe.PaymentMethod.ModifyParams
, stripe.SetupIntent.ConfirmParamsPaymentMethodData
, stripe.SetupIntent.CreateParamsPaymentMethodData
, and stripe.SetupIntent.ModifyParamsPaymentMethodData
schedule_details
on parameter classes stripe.Invoice.UpcomingLinesParams
and stripe.Invoice.UpcomingParams
subscription_details
on parameter classes stripe.Invoice.UpcomingLinesParams
and stripe.Invoice.UpcomingParams
create_preview
on resource stripe.Invoice
payment_method_data
on parameter class stripe.checkout.Session.CreateParams
saved_payment_method_options
on parameter class stripe.checkout.Session.CreateParams
and resource stripe.checkout.Session
mobilepay
on parameter class stripe.checkout.Session.CreateParamsPaymentMethodOptions
and resource class stripe.checkout.Session.PaymentMethodOptions
mobilepay
on enum stripe.checkout.Session.CreateParams.payment_method_types
other
on enums stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit
, stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit
, and stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit
Quote.pdf()
to use the right base address i.e. files.stripe.com instead of api.stripe.com. Fixes #1303
balances
on resource class stripe.AccountSession.Components
and parameter class stripe.AccountSession.CreateParamsComponents
payouts_list
on resource class stripe.AccountSession.Components
and parameter class stripe.AccountSession.CreateParamsComponents
capture_method
on parameter classes stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay
, stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay
, and stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay
and resource class stripe.PaymentIntent.PaymentMethodOptions.RevolutPay
swish
on parameter classes stripe.PaymentMethodConfiguration.CreateParams
and stripe.PaymentMethodConfiguration.ModifyParams
and resource stripe.PaymentMethodConfiguration
stripe.entitlements.ActiveEntitlementSummary
config
on parameter class stripe.forwarding.Request.CreateParams
and resource stripe.forwarding.Request
. This field is no longer used by the Forwarding Request API.destination_on_behalf_of_charge_management
on stripe.AccountSession.Components.PaymentDetails.Features
and stripe.AccountSession.Components.Payments.Features
from Optional[bool]
to bool
timestamp
on stripe.billing.MeterEvent.CreateParams
from int
to NotRequired[int]
entitlements.active_entitlement_summary.updated
on enums stripe.Event.type
, stripe.WebhookEndpoint.CreateParams.enabled_events
, and stripe.WebhookEndpoint.ModifyParams.enabled_events
external_account_collection
on resource class stripe.AccountSession.Components.AccountOnboarding.Features
and parameter class stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures
account_management
on resource class stripe.AccountSession.Components
and parameter class stripe.AccountSession.CreateParamsComponents
notification_banner
on resource class stripe.AccountSession.Components
and parameter class stripe.AccountSession.CreateParamsComponents
amazon_pay
on resource classes stripe.Charge.PaymentMethodDetails
, stripe.ConfirmationToken.PaymentMethodPreview
, stripe.PaymentIntent.PaymentMethodOptions
, stripe.Refund.DestinationDetails
, stripe.SetupIntent.PaymentMethodOptions
, and stripe.checkout.Session.PaymentMethodOptions
, parameter classes stripe.ConfirmationToken.CreateParamsPaymentMethodData
, stripe.PaymentIntent.ConfirmParamsPaymentMethodData
, stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions
, stripe.PaymentIntent.CreateParamsPaymentMethodData
, stripe.PaymentIntent.CreateParamsPaymentMethodOptions
, stripe.PaymentIntent.ModifyParamsPaymentMethodData
, stripe.PaymentIntent.ModifyParamsPaymentMethodOptions
, stripe.PaymentMethod.CreateParams
, stripe.PaymentMethodConfiguration.CreateParams
, stripe.PaymentMethodConfiguration.ModifyParams
, stripe.SetupIntent.ConfirmParamsPaymentMethodData
, stripe.SetupIntent.ConfirmParamsPaymentMethodOptions
, stripe.SetupIntent.CreateParamsPaymentMethodData
, stripe.SetupIntent.CreateParamsPaymentMethodOptions
, stripe.SetupIntent.ModifyParamsPaymentMethodData
, stripe.SetupIntent.ModifyParamsPaymentMethodOptions
, and stripe.checkout.Session.CreateParamsPaymentMethodOptions
, and resources stripe.PaymentMethod
and stripe.PaymentMethodConfiguration
capture_method
on parameter classes stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay
, stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay
, and stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay
and resource class stripe.PaymentIntent.PaymentMethodOptions.RevolutPay
stripe.billing.MeterEventAdjustment
from Cancel
to Optional[Cancel]
of cancel
stripe.billing.MeterEventAdjustment.Cancel
from str
to Optional[str]
of identifier
stripe.billing.MeterEventAdjustment.CreateParamsCancel
from str
to NotRequired[str]
of identifier
stripe.billing.MeterEventAdjustment.CreateParams
from MeterEventAdjustment.CreateParamsCancel
to NotRequired[MeterEventAdjustment.CreateParamsCancel]
of cancel
stripe.billing.MeterEventAdjustment.CreateParams
from NotRequired[Literal['cancel']]
to Literal['cancel']
of type
bh_vat
on enums stripe.checkout.Session.CustomerDetails.TaxId.type
, stripe.Customer.CreateParamsTaxIdDatum.type
, stripe.Customer.CreateTaxIdParams.type
, stripe.Invoice.CustomerTaxId.type
, stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
, stripe.Order.TaxDetails.TaxId.type
, stripe.Order.CreateParamsTaxDetailsTaxId.type
, stripe.Order.ModifyParamsTaxDetailsTaxId.type
, stripe.QuotePreviewInvoice.CustomerTaxId.type
, stripe.tax.Calculation.CustomerDetails.TaxId.type
, stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, stripe.tax.Transaction.CustomerDetails.TaxId.type
, stripe.TaxId.type
, and stripe.TaxId.CreateParams.type
kz_bin
on enums stripe.checkout.Session.CustomerDetails.TaxId.type
, stripe.Customer.CreateParamsTaxIdDatum.type
, stripe.Customer.CreateTaxIdParams.type
, stripe.Invoice.CustomerTaxId.type
, stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
, stripe.Order.TaxDetails.TaxId.type
, stripe.Order.CreateParamsTaxDetailsTaxId.type
, stripe.Order.ModifyParamsTaxDetailsTaxId.type
, stripe.QuotePreviewInvoice.CustomerTaxId.type
, stripe.tax.Calculation.CustomerDetails.TaxId.type
, stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, stripe.tax.Transaction.CustomerDetails.TaxId.type
, stripe.TaxId.type
, and stripe.TaxId.CreateParams.type
ng_tin
on enums stripe.checkout.Session.CustomerDetails.TaxId.type
, stripe.Customer.CreateParamsTaxIdDatum.type
, stripe.Customer.CreateTaxIdParams.type
, stripe.Invoice.CustomerTaxId.type
, stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
, stripe.Order.TaxDetails.TaxId.type
, stripe.Order.CreateParamsTaxDetailsTaxId.type
, stripe.Order.ModifyParamsTaxDetailsTaxId.type
, stripe.QuotePreviewInvoice.CustomerTaxId.type
, stripe.tax.Calculation.CustomerDetails.TaxId.type
, stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, stripe.tax.Transaction.CustomerDetails.TaxId.type
, stripe.TaxId.type
, and stripe.TaxId.CreateParams.type
om_vat
on enums stripe.checkout.Session.CustomerDetails.TaxId.type
, stripe.Customer.CreateParamsTaxIdDatum.type
, stripe.Customer.CreateTaxIdParams.type
, stripe.Invoice.CustomerTaxId.type
, stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
, stripe.Order.TaxDetails.TaxId.type
, stripe.Order.CreateParamsTaxDetailsTaxId.type
, stripe.Order.ModifyParamsTaxDetailsTaxId.type
, stripe.QuotePreviewInvoice.CustomerTaxId.type
, stripe.tax.Calculation.CustomerDetails.TaxId.type
, stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, stripe.tax.Transaction.CustomerDetails.TaxId.type
, stripe.TaxId.type
, and stripe.TaxId.CreateParams.type
amazon_pay
on enums stripe.checkout.Session.CreateParams.payment_method_types
, stripe.ConfirmationToken.PaymentMethodPreview.type
, stripe.ConfirmationToken.CreateParamsPaymentMethodData.type
, stripe.Customer.ListPaymentMethodsParams.type
, stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type
, stripe.PaymentIntent.CreateParamsPaymentMethodData.type
, stripe.PaymentIntent.ModifyParamsPaymentMethodData.type
, stripe.PaymentMethod.type
, stripe.PaymentMethod.CreateParams.type
, stripe.PaymentMethod.ListParams.type
, stripe.SetupIntent.ConfirmParamsPaymentMethodData.type
, stripe.SetupIntent.CreateParamsPaymentMethodData.type
, and stripe.SetupIntent.ModifyParamsPaymentMethodData.type
billing_policy_remote_function_response_invalid
on enums stripe.Invoice.LastFinalizationError.code
, stripe.PaymentIntent.LastPaymentError.code
, stripe.QuotePreviewInvoice.LastFinalizationError.code
, stripe.SetupAttempt.SetupError.code
, and stripe.SetupIntent.LastSetupError.code
billing_policy_remote_function_timeout
on enums stripe.Invoice.LastFinalizationError.code
, stripe.PaymentIntent.LastPaymentError.code
, stripe.QuotePreviewInvoice.LastFinalizationError.code
, stripe.SetupAttempt.SetupError.code
, and stripe.SetupIntent.LastSetupError.code
billing_policy_remote_function_unexpected_status_code
on enums stripe.Invoice.LastFinalizationError.code
, stripe.PaymentIntent.LastPaymentError.code
, stripe.QuotePreviewInvoice.LastFinalizationError.code
, stripe.SetupAttempt.SetupError.code
, and stripe.SetupIntent.LastSetupError.code
billing_policy_remote_function_unreachable
on enums stripe.Invoice.LastFinalizationError.code
, stripe.PaymentIntent.LastPaymentError.code
, stripe.QuotePreviewInvoice.LastFinalizationError.code
, stripe.SetupAttempt.SetupError.code
, and stripe.SetupIntent.LastSetupError.code
external_account_collection
on resource class stripe.AccountSession.Components.AccountOnboarding.Features
and parameter class stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures
account_management
on resource class stripe.AccountSession.Components
and parameter class stripe.AccountSession.CreateParamsComponents
notification_banner
on resource class stripe.AccountSession.Components
and parameter class stripe.AccountSession.CreateParamsComponents
amazon_pay
on resource classes stripe.Charge.PaymentMethodDetails
, stripe.ConfirmationToken.PaymentMethodPreview
, stripe.PaymentIntent.PaymentMethodOptions
, stripe.Refund.DestinationDetails
, stripe.SetupIntent.PaymentMethodOptions
, and stripe.checkout.Session.PaymentMethodOptions
, parameter classes stripe.ConfirmationToken.CreateParamsPaymentMethodData
, stripe.PaymentIntent.ConfirmParamsPaymentMethodData
, stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions
, stripe.PaymentIntent.CreateParamsPaymentMethodData
, stripe.PaymentIntent.CreateParamsPaymentMethodOptions
, stripe.PaymentIntent.ModifyParamsPaymentMethodData
, stripe.PaymentIntent.ModifyParamsPaymentMethodOptions
, stripe.PaymentMethod.CreateParams
, stripe.PaymentMethodConfiguration.CreateParams
, stripe.PaymentMethodConfiguration.ModifyParams
, stripe.SetupIntent.ConfirmParamsPaymentMethodData
, stripe.SetupIntent.ConfirmParamsPaymentMethodOptions
, stripe.SetupIntent.CreateParamsPaymentMethodData
, stripe.SetupIntent.CreateParamsPaymentMethodOptions
, stripe.SetupIntent.ModifyParamsPaymentMethodData
, stripe.SetupIntent.ModifyParamsPaymentMethodOptions
, and stripe.checkout.Session.CreateParamsPaymentMethodOptions
, and resources stripe.PaymentMethod
and stripe.PaymentMethodConfiguration
next_refresh_available_at
on resource class stripe.financial_connections.Account.OwnershipRefresh
cancel
on stripe.billing.MeterEventAdjustment
from Cancel
to Optional[Cancel]
identifier
on stripe.billing.MeterEventAdjustment.Cancel
from str
to Optional[str]
identifier
on stripe.billing.MeterEventAdjustment.CreateParamsCancel
from str
to NotRequired[str]
cancel
on stripe.billing.MeterEventAdjustment.CreateParams
from MeterEventAdjustment.CreateParamsCancel
to NotRequired[MeterEventAdjustment.CreateParamsCancel]
type
on stripe.billing.MeterEventAdjustment.CreateParams
from NotRequired[Literal['cancel']]
to Literal['cancel']
bh_vat
on enums stripe.checkout.Session.CustomerDetails.TaxId.type
, stripe.Customer.CreateParamsTaxIdDatum.type
, stripe.Customer.CreateTaxIdParams.type
, stripe.Invoice.CustomerTaxId.type
, stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
, stripe.tax.Calculation.CustomerDetails.TaxId.type
, stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, stripe.tax.Transaction.CustomerDetails.TaxId.type
, stripe.TaxId.type
, and stripe.TaxId.CreateParams.type
kz_bin
on enums stripe.checkout.Session.CustomerDetails.TaxId.type
, stripe.Customer.CreateParamsTaxIdDatum.type
, stripe.Customer.CreateTaxIdParams.type
, stripe.Invoice.CustomerTaxId.type
, stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
, stripe.tax.Calculation.CustomerDetails.TaxId.type
, stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, stripe.tax.Transaction.CustomerDetails.TaxId.type
, stripe.TaxId.type
, and stripe.TaxId.CreateParams.type
ng_tin
on enums stripe.checkout.Session.CustomerDetails.TaxId.type
, stripe.Customer.CreateParamsTaxIdDatum.type
, stripe.Customer.CreateTaxIdParams.type
, stripe.Invoice.CustomerTaxId.type
, stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
, stripe.tax.Calculation.CustomerDetails.TaxId.type
, stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, stripe.tax.Transaction.CustomerDetails.TaxId.type
, stripe.TaxId.type
, and stripe.TaxId.CreateParams.type
om_vat
on enums stripe.checkout.Session.CustomerDetails.TaxId.type
, stripe.Customer.CreateParamsTaxIdDatum.type
, stripe.Customer.CreateTaxIdParams.type
, stripe.Invoice.CustomerTaxId.type
, stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
, stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
, stripe.tax.Calculation.CustomerDetails.TaxId.type
, stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, stripe.tax.Transaction.CustomerDetails.TaxId.type
, stripe.TaxId.type
, and stripe.TaxId.CreateParams.type
ownership
on enums stripe.checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch
, stripe.checkout.Session.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.permissions
, stripe.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch
, stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch
, stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch
, stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, stripe.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.permissions
, stripe.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.prefetch
, stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
, and stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
amazon_pay
on enums stripe.checkout.Session.CreateParams.payment_method_types
, stripe.ConfirmationToken.PaymentMethodPreview.type
, stripe.ConfirmationToken.CreateParamsPaymentMethodData.type
, stripe.Customer.ListPaymentMethodsParams.type
, stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type
, stripe.PaymentIntent.CreateParamsPaymentMethodData.type
, stripe.PaymentIntent.ModifyParamsPaymentMethodData.type
, stripe.PaymentMethod.type
, stripe.PaymentMethod.CreateParams.type
, stripe.PaymentMethod.ListParams.type
, stripe.SetupIntent.ConfirmParamsPaymentMethodData.type
, stripe.SetupIntent.CreateParamsPaymentMethodData.type
, and stripe.SetupIntent.ModifyParamsPaymentMethodData.type
billing_policy_remote_function_response_invalid
on enums stripe.Invoice.LastFinalizationError.code
, stripe.PaymentIntent.LastPaymentError.code
, stripe.SetupAttempt.SetupError.code
, and stripe.SetupIntent.LastSetupError.code
billing_policy_remote_function_timeout
on enums stripe.Invoice.LastFinalizationError.code
, stripe.PaymentIntent.LastPaymentError.code
, stripe.SetupAttempt.SetupError.code
, and stripe.SetupIntent.LastSetupError.code
billing_policy_remote_function_unexpected_status_code
on enums stripe.Invoice.LastFinalizationError.code
, stripe.PaymentIntent.LastPaymentError.code
, stripe.SetupAttempt.SetupError.code
, and stripe.SetupIntent.LastSetupError.code
billing_policy_remote_function_unreachable
on enums stripe.Invoice.LastFinalizationError.code
, stripe.PaymentIntent.LastPaymentError.code
, stripe.SetupAttempt.SetupError.code
, and stripe.SetupIntent.LastSetupError.code
2024-04-10
. Please read the API Upgrade Guide and carefully review the API changes before upgrading.FinancialAccountFeaturesService.CreateParams
, FinancialAccountFeaturesService.ListParams
, FinancialAccountFeaturesService.create()
, FinancialAccountFeaturesService.list()
as Financial account features is a singleton and so should have retrieve and update methods instead of create and list methods.features
to marketing_features
on parameter classes stripe.Product.CreateParams
and stripe.Product.ModifyParams
and resource stripe.Product
..subscription_pause
from the below as the feature to pause subscription on the portal has been deprecated
Configuration.Features
ConfigurationService.CreateParamsFeatures
ConfigurationService.UpdateParamsFeatures
BalanceTransaction.type
obligation_inbound
obligation_payout
obligation_payout_failure
obligation_reversal_outbound
Event.type
, WebhookEndpoint.CreateParams.enabled_events
, WebhookEndpoint.ModifyParams.enabled_events
, WebhookEndpointService.CreateParams.enabled_events
, WebhookEndpointService.ModifyParams.enabled_events
invoiceitem.updated
order.created
recipient.created
recipient.deleted
recipient.updated
sku.created
sku.deleted
sku.updated
include_and_require
for Invoice.CreateParams.pending_invoice_items_behavior
and InvoiceService.CreateParams.pending_invoice_items_behavior
service_tax
for
TaxRate.RetrieveParams.tax_type
TaxRate.CreateParams.tax_type
TaxRate.ModifyParams.tax_type
TaxRateService.CreateParams.tax_type
TaxRateService.UpdateParams.tax_type
InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type
InvoiceLineItemService.UpdateParamsTaxAmountTaxRateData.tax_type
request_incremental_authorization
from
PaymentIntent.ConfirmParamsPaymentMethodOptionsCardPresent
PaymentIntent.CreateParamsPaymentMethodOptionsCardPresent
PaymentIntent.ModifyParamsPaymentMethodOptionsCardPresent
PaymentIntentService.ConfirmParamsPaymentMethodOptionsCardPresent
PaymentIntentService.CreateParamsPaymentMethodOptionsCardPresent
PaymentIntentService.ModifyParamsPaymentMethodOptionsCardPresent
id_bank_transfer
, multibanco
, netbanking
, pay_by_bank
, and upi
on PaymentMethodConfiguration
challenge_only
from SetupIntent.PaymentMethodOptions.Card.request_three_d_secure
various
for Climate.Supplier.removal_pathway
obligation
for ReportRun.CreateParamsParameters.reporting_category
and ReportRunService.CreateParamsParameters.reporting_category
rendering_options
on parameter classes stripe.Invoice.CreateParams
and stripe.Invoice.ModifyParams
and resource stripe.Invoice
. Use rendering
instead.#1295 Update generated code
fees
, losses
, requirement_collection
& stripe_dashboard
on resource class stripe.Account.Controller
controller
on parameter class stripe.Account.CreateParams
create_feature
, delete_feature
, list_features
, retrieve_feature
on resource stripe.Product
stripe.ProductFeature
event_name
on parameter class stripe.billing.MeterEventAdjustment.CreateParams
and resource stripe.billing.MeterEventAdjustment
cancel
and type
on resource stripe.billing.MeterEventAdjustment
stripe.entitlements.ActiveEntitlement
stripe.entitlements.Feature
none
on enum stripe.Account.type
#1299 Fix README.md
#1292 Tweak changelog for python async note
risk_controls
on parameter class stripe.Account.CreateParams
and resource stripe.Account
promotion_code
on parameter classes stripe.Invoice.AddLinesParamsLineDiscount
, stripe.Invoice.CreateParamsDiscount
, stripe.Invoice.ModifyParamsDiscount
, stripe.Invoice.UpdateLinesParamsLineDiscount
, stripe.InvoiceItem.CreateParamsDiscount
, stripe.InvoiceItem.ModifyParamsDiscount
, stripe.InvoiceLineItem.ModifyParamsDiscount
, stripe.Quote.CreateParamsDiscount
, stripe.Quote.CreateParamsLineActionAddDiscount
, stripe.Quote.CreateParamsLineItemDiscount
, stripe.Quote.CreateParamsPhaseLineItemDiscount
, stripe.Quote.ModifyParamsDiscount
, stripe.Quote.ModifyParamsLineActionAddDiscount
, stripe.Quote.ModifyParamsLineItemDiscount
, and stripe.Quote.ModifyParamsPhaseLineItemDiscount
zip
on parameter classes stripe.PaymentMethodConfiguration.CreateParams
and stripe.PaymentMethodConfiguration.ModifyParams
and resource stripe.PaymentMethodConfiguration
offline
on resource class stripe.SetupAttempt.PaymentMethodDetails.CardPresent
card_present
on parameter classes stripe.SetupIntent.ConfirmParamsPaymentMethodOptions
, stripe.SetupIntent.CreateParamsPaymentMethodOptions
, and stripe.SetupIntent.ModifyParamsPaymentMethodOptions
and resource class stripe.SetupIntent.PaymentMethodOptions
modify
on resource stripe.entitlements.Feature
email
on resource stripe.identity.VerificationReport
, parameter classes stripe.identity.VerificationSession.CreateParamsOptions
and stripe.identity.VerificationSession.ModifyParamsOptions
, and resource classes stripe.identity.VerificationSession.Options
and stripe.identity.VerificationSession.VerifiedOutputs
phone
on resource stripe.identity.VerificationReport
, parameter classes stripe.identity.VerificationSession.CreateParamsOptions
and stripe.identity.VerificationSession.ModifyParamsOptions
, and resource classes stripe.identity.VerificationSession.Options
and stripe.identity.VerificationSession.VerifiedOutputs
verification_flow
on resources stripe.identity.VerificationReport
and stripe.identity.VerificationSession
and parameter class stripe.identity.VerificationSession.CreateParams
provided_details
on parameter classes stripe.identity.VerificationSession.CreateParams
and stripe.identity.VerificationSession.ModifyParams
and resource stripe.identity.VerificationSession
allowed_merchant_countries
on parameter classes stripe.issuing.Card.CreateParamsSpendingControls
, stripe.issuing.Card.ModifyParamsSpendingControls
, stripe.issuing.Cardholder.CreateParamsSpendingControls
, and stripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classes stripe.issuing.Card.SpendingControls
and stripe.issuing.Cardholder.SpendingControls
blocked_merchant_countries
on parameter classes stripe.issuing.Card.CreateParamsSpendingControls
, stripe.issuing.Card.ModifyParamsSpendingControls
, stripe.issuing.Cardholder.CreateParamsSpendingControls
, and stripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classes stripe.issuing.Card.SpendingControls
and stripe.issuing.Cardholder.SpendingControls
stripe.checkout.Session.CreateParamsPaymentMethodOptionsSwish
from Literal['']|str
to str
of reference
verification_flow
on enums stripe.identity.VerificationReport.type
and stripe.identity.VerificationSession.type
email_unverified_other
on enum stripe.identity.VerificationSession.LastError.code
email_verification_declined
on enum stripe.identity.VerificationSession.LastError.code
phone_unverified_other
on enum stripe.identity.VerificationSession.LastError.code
phone_verification_declined
on enum stripe.identity.VerificationSession.LastError.code
mobile_phone_reader
on enums stripe.terminal.Reader.device_type
and stripe.terminal.Reader.ListParams.device_type
stripe.identity.VerificationSession.CreateParams
from Literal['document', 'id_number']
to NotRequired[Literal['document', 'id_number']]
of type
stripe.Invoice
, stripe.InvoiceLineItem
, stripe.QuotePreviewInvoice
, stripe.Subscription
, and stripe.SubscriptionItem
from Optional[List[ExpandableField[Discount]]]
to List[ExpandableField[Discount]]
of discounts
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
from Optional[str]
to str
of data
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
from Optional[str]
to str
of image_url_png
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
from Optional[str]
to str
of image_url_svg
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
from Optional[str]
to str
of hosted_instructions_url
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
from Optional[str]
to str
of mobile_auth_url
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
from Optional[QrCode]
to QrCode
of qr_code
stripe.QuoteLine.Action.AddItem
, stripe.QuoteLine.Action.SetItem
, stripe.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem
, stripe.QuotePreviewSubscriptionSchedule.Phase.Item
, stripe.QuotePreviewSubscriptionSchedule.Phase
, stripe.SubscriptionSchedule.Phase.AddInvoiceItem
, stripe.SubscriptionSchedule.Phase.Item
, and stripe.SubscriptionSchedule.Phase
from Optional[List[Discount]]
to List[Discount]
of discounts
#1288 Add async support to stripe-python. To use it, add an _async
suffix to any request-making method.
- cus = stripe.Customer.create(...)
+ cus = await stripe.Customer.create_async(...)
See the README for detailed usage instructions. Support is provided out of the box for async requests via the HTTPX (used by default) and aiohttp libraries. For other libraries, you can also provide your own stripe.HTTPClient
implementation. Please do not hesitate to open a Github issue if you have any feedback on this feature.
#1284 Update generated code
subscription_item
on resource stripe.Discount
promotion_code
on parameter classes stripe.Invoice.CreateParamsDiscount
, stripe.Invoice.ModifyParamsDiscount
, stripe.InvoiceItem.CreateParamsDiscount
, stripe.InvoiceItem.ModifyParamsDiscount
, stripe.InvoiceLineItem.ModifyParamsDiscount
, stripe.Quote.CreateParamsDiscount
, and stripe.Quote.ModifyParamsDiscount
discounts
on parameter classes stripe.Invoice.UpcomingLinesParamsSubscriptionItem
, stripe.Invoice.UpcomingParamsSubscriptionItem
, stripe.Quote.CreateParamsLineItem
, stripe.Quote.ModifyParamsLineItem
, stripe.Subscription.CreateParams
, stripe.Subscription.CreateParamsAddInvoiceItem
, stripe.Subscription.CreateParamsItem
, stripe.Subscription.ModifyParams
, stripe.Subscription.ModifyParamsAddInvoiceItem
, stripe.Subscription.ModifyParamsItem
, stripe.SubscriptionItem.CreateParams
, stripe.SubscriptionItem.ModifyParams
, stripe.SubscriptionSchedule.CreateParamsPhase
, stripe.SubscriptionSchedule.CreateParamsPhaseAddInvoiceItem
, stripe.SubscriptionSchedule.CreateParamsPhaseItem
, stripe.SubscriptionSchedule.ModifyParamsPhase
, stripe.SubscriptionSchedule.ModifyParamsPhaseAddInvoiceItem
, and stripe.SubscriptionSchedule.ModifyParamsPhaseItem
, resources stripe.Subscription
and stripe.SubscriptionItem
, and resource classes stripe.SubscriptionSchedule.Phase.AddInvoiceItem
, stripe.SubscriptionSchedule.Phase.Item
, and stripe.SubscriptionSchedule.Phase
zip
on parameter classes stripe.PaymentMethodConfiguration.CreateParams
and stripe.PaymentMethodConfiguration.ModifyParams
and resource stripe.PaymentMethodConfiguration
offline
on resource class stripe.SetupAttempt.PaymentMethodDetails.CardPresent
card_present
on parameter classes stripe.SetupIntent.ConfirmParamsPaymentMethodOptions
, stripe.SetupIntent.CreateParamsPaymentMethodOptions
, and stripe.SetupIntent.ModifyParamsPaymentMethodOptions
and resource class stripe.SetupIntent.PaymentMethodOptions
email
on resource stripe.identity.VerificationReport
, parameter classes stripe.identity.VerificationSession.CreateParamsOptions
and stripe.identity.VerificationSession.ModifyParamsOptions
, and resource classes stripe.identity.VerificationSession.Options
and stripe.identity.VerificationSession.VerifiedOutputs
phone
on resource stripe.identity.VerificationReport
, parameter classes stripe.identity.VerificationSession.CreateParamsOptions
and stripe.identity.VerificationSession.ModifyParamsOptions
, and resource classes stripe.identity.VerificationSession.Options
and stripe.identity.VerificationSession.VerifiedOutputs
verification_flow
on resources stripe.identity.VerificationReport
and stripe.identity.VerificationSession
and parameter class stripe.identity.VerificationSession.CreateParams
provided_details
on parameter classes stripe.identity.VerificationSession.CreateParams
and stripe.identity.VerificationSession.ModifyParams
and resource stripe.identity.VerificationSession
allowed_merchant_countries
on parameter classes stripe.issuing.Card.CreateParamsSpendingControls
, stripe.issuing.Card.ModifyParamsSpendingControls
, stripe.issuing.Cardholder.CreateParamsSpendingControls
, and stripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classes stripe.issuing.Card.SpendingControls
and stripe.issuing.Cardholder.SpendingControls
blocked_merchant_countries
on parameter classes stripe.issuing.Card.CreateParamsSpendingControls
, stripe.issuing.Card.ModifyParamsSpendingControls
, stripe.issuing.Cardholder.CreateParamsSpendingControls
, and stripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classes stripe.issuing.Card.SpendingControls
and stripe.issuing.Cardholder.SpendingControls
reference
on stripe.checkout.Session.CreateParamsPaymentMethodOptionsSwish
from Literal['']|str
to str
verification_flow
on enums stripe.identity.VerificationReport.type
and stripe.identity.VerificationSession.type
email_unverified_other
on enum stripe.identity.VerificationSession.LastError.code
email_verification_declined
on enum stripe.identity.VerificationSession.LastError.code
phone_unverified_other
on enum stripe.identity.VerificationSession.LastError.code
phone_verification_declined
on enum stripe.identity.VerificationSession.LastError.code
mobile_phone_reader
on enums stripe.terminal.Reader.device_type
and stripe.terminal.Reader.ListParams.device_type
type
on stripe.identity.VerificationSession.CreateParams
from Literal['document', 'id_number']
to NotRequired[Literal['document', 'id_number']]
discounts
on stripe.Invoice
and stripe.InvoiceLineItem
from Optional[List[ExpandableField[Discount]]]
to List[ExpandableField[Discount]]
data
on stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
from Optional[str]
to str
image_url_png
on stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
from Optional[str]
to str
image_url_svg
on stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
from Optional[str]
to str
hosted_instructions_url
on stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
from Optional[str]
to str
mobile_auth_url
on stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
from Optional[str]
to str
qr_code
on stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
from Optional[QrCode]
to QrCode
#1289 Bump aiohttp from 3.9.0 to 3.9.2
#1277 Update generated code for beta
financial_account_transactions
, financial_account
, issuing_card
, and issuing_cards_list
on AccountSession.CreateParamsComponents
and AccountSessionService.CreateParamsComponents
subscription_billing_cycle_anchor
, subscription_cancel_at_period_end
, subscription_cancel_at
, subscription_cancel_now
, subscription_default_tax_rates
, subscription_items
, subscription_prebilling
, subscription_proration_behavior
, subscription_proration_date
, subscription_resume_at
, subscription_start_date
, and subscription_trial_end
on Invoice.CreatePreviewParams
and InvoiceService.CreatePreviewParams
#1283 Fix unneccessary quotes