Releases: stripe/stripe-python
Releases Β· stripe/stripe-python
v10.0.0
-
#1350 Update generated code
This release changes the pinned API version to 2024-06-20. Please read the API Upgrade Guide and carefully review the API changes before upgrading.
β οΈ Breaking changes- Remove the unused resource
PlatformTaxFee
- Rename
volume_decimal
toquantity_decimal
on parameter classesstripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel
,stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel
, andstripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel
and resource classstripe.issuing.Transaction.PurchaseDetails.Fuel
Additions
- Add support for
fleet
on parameter classesstripe.issuing.Authorization.CaptureParamsPurchaseDetails
,stripe.issuing.Authorization.CreateParams
,stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetails
, andstripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetails
, resourcestripe.issuing.Authorization
, and resource classstripe.issuing.Transaction.PurchaseDetails
- Add support for new values
platform_disabled
,paused.inactivity
andother
on enumsCapability.Requirements.disabled_reason
andCapability.FutureRequirements.disabled_reason
- Add support for
industry_product_code
on parameter classesstripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel
,stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel
, andstripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel
and resource classstripe.issuing.Transaction.PurchaseDetails.Fuel
- Add support for
quantity_decimal
on parameter classesstripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel
,stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel
, andstripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel
and resource classstripe.issuing.Transaction.PurchaseDetails.Fuel
- Add support for
fuel
on parameter classstripe.issuing.Authorization.CreateParams
and resourcestripe.issuing.Authorization
- Add support for
_cls_finalize_amount
on resourcestripe.issuing.Authorization
- Add support for
finalize_amount
on resourcestripe.issuing.Authorization
- Change type of
disabled_reason
onstripe.Capability.FutureRequirements
andstripe.Capability.Requirements
fromstr
toLiteral['other', 'paused.inactivity', 'pending.onboarding', 'pending.review', 'platform_disabled', 'platform_paused', 'rejected.inactivity', 'rejected.other', 'rejected.unsupported_business', 'requirements.fields_needed']
- Add support for
ch_uid
on enumsstripe.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.tax.Calculation.CustomerDetails.TaxId.type
,stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
,stripe.tax.Transaction.CustomerDetails.TaxId.type
,stripe.TaxId.type
, andstripe.TaxId.CreateParams.type
- Add support for
card_canceled
,card_expired
,cardholder_blocked
,insecure_authorization_method
andpin_blocked
on enumstripe.issuing.Authorization.RequestHistory.reason
- Add support for
charging_minute
,imperial_gallon
,kilogram
,kilowatt_hour
,pound
, on enumsstripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit
,stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit
, andstripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit
- Add support for
2024-06-20
on enumstripe.WebhookEndpoint.CreateParams.api_version
- Remove the unused resource
v9.12.0
- #1348 Update generated code
- Add support for
tax_id_collection
on parameter classstripe.PaymentLink.ModifyParams
- Add support for
mobilepay
on enumsstripe.PaymentLink.payment_method_types
,stripe.PaymentLink.CreateParams.payment_method_types
, andstripe.PaymentLink.ModifyParams.payment_method_types
- Add support for
v9.12.0b1
- #1343 Update generated code for beta
- Add support for
de_stn
on enumsstripe.Order.TaxDetails.TaxId.type
,stripe.Order.CreateParamsTaxDetailsTaxId.type
,stripe.Order.ModifyParamsTaxDetailsTaxId.type
, andstripe.QuotePreviewInvoice.CustomerTaxId.type
- Add support for
v9.11.0
- #1342 Update generated code
- Add support for
multibanco_payments
on resource classstripe.Account.Capabilities
and parameter classstripe.Account.CreateParamsCapabilities
- Add support for
twint_payments
on resource classstripe.Account.Capabilities
and parameter classstripe.Account.CreateParamsCapabilities
- Add support for
twint
on resource classesstripe.Charge.PaymentMethodDetails
,stripe.ConfirmationToken.PaymentMethodPreview
, andstripe.PaymentIntent.PaymentMethodOptions
, parameter classesstripe.ConfirmationToken.CreateParamsPaymentMethodData
,stripe.PaymentIntent.ConfirmParamsPaymentMethodData
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions
,stripe.PaymentIntent.CreateParamsPaymentMethodData
,stripe.PaymentIntent.CreateParamsPaymentMethodOptions
,stripe.PaymentIntent.ModifyParamsPaymentMethodData
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptions
,stripe.PaymentMethod.CreateParams
,stripe.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodData
, andstripe.SetupIntent.ModifyParamsPaymentMethodData
, and resourcestripe.PaymentMethod
- Add support for
multibanco
on parameter classesstripe.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.CreateParamsPaymentMethodData
,stripe.SetupIntent.ModifyParamsPaymentMethodData
, andstripe.checkout.Session.CreateParamsPaymentMethodOptions
, resource classesstripe.ConfirmationToken.PaymentMethodPreview
,stripe.PaymentIntent.PaymentMethodOptions
,stripe.Refund.DestinationDetails
, andstripe.checkout.Session.PaymentMethodOptions
, and resourcesstripe.PaymentMethod
andstripe.PaymentMethodConfiguration
- Add support for
multibanco_display_details
on resource classstripe.PaymentIntent.NextAction
- Add support for
invoice_settings
on resourcestripe.Subscription
- Add support for
de_stn
on enumsstripe.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.tax.Calculation.CustomerDetails.TaxId.type
,stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
,stripe.tax.Transaction.CustomerDetails.TaxId.type
,stripe.TaxId.type
, andstripe.TaxId.CreateParams.type
- Add support for
multibanco
on enumsstripe.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
, andstripe.SetupIntent.ModifyParamsPaymentMethodData.type
- Add support for
twint
on enumsstripe.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
, andstripe.SetupIntent.ModifyParamsPaymentMethodData.type
- Add support for
v9.11.0b1
- #1339 Update generated code for beta
- Add support for
twint
on parameter classesstripe.PaymentIntent.ConfirmParamsPaymentMethodOptions
,stripe.PaymentIntent.CreateParamsPaymentMethodOptions
, andstripe.PaymentIntent.ModifyParamsPaymentMethodOptions
and resource classstripe.PaymentIntent.PaymentMethodOptions
- Add support for
swish
on enumstripe.QuotePreviewInvoice.PaymentSettings.payment_method_types
- Add support for
v9.10.0
- #1340 Update generated code
- Add support for
gb_bank_transfer_payments
,jp_bank_transfer_payments
,mx_bank_transfer_payments
,sepa_bank_transfer_payments
,us_bank_transfer_payments
on resource classstripe.Account.Capabilities
and parameter classstripe.Account.CreateParamsCapabilities
- Add support for
swish
on enumsstripe.Invoice.PaymentSettings.payment_method_types
,stripe.Invoice.CreateParamsPaymentSettings.payment_method_types
,stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types
,stripe.Subscription.PaymentSettings.payment_method_types
,stripe.Subscription.CreateParamsPaymentSettings.payment_method_types
, andstripe.Subscription.ModifyParamsPaymentSettings.payment_method_types
- Add support for
v9.10.0b1
- #1334 Update generated code for beta
- Add support for
en-RO
on enumsstripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale
andstripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale
- Add support for
ro-RO
on enumsstripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale
andstripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale
- Add support for
v9.9.0
- #1335 Add method to list invoice line items
- Add methods
list_lines()
andlist_lines_async()
on the classInvoice
to list the invoice line items
- Add methods
- #1336 Update generated code
- Add support for
generated_from
on resource classesstripe.ConfirmationToken.PaymentMethodPreview.Card
andstripe.PaymentMethod.Card
- Add support for
default_value
on parameter classesstripe.checkout.Session.CreateParamsCustomFieldDropdown
,stripe.checkout.Session.CreateParamsCustomFieldNumeric
, andstripe.checkout.Session.CreateParamsCustomFieldText
and resource classesstripe.checkout.Session.CustomField.Dropdown
,stripe.checkout.Session.CustomField.Numeric
, andstripe.checkout.Session.CustomField.Text
- Add support for
verification_requires_additional_proof_of_registration
on enumsstripe.Account.FutureRequirements.Error.code
,stripe.Account.Requirements.Error.code
,stripe.BankAccount.FutureRequirements.Error.code
,stripe.BankAccount.Requirements.Error.code
,stripe.Capability.FutureRequirements.Error.code
,stripe.Capability.Requirements.Error.code
,stripe.Person.FutureRequirements.Error.code
, andstripe.Person.Requirements.Error.code
- Add support for
issuing_personalization_design.activated
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
issuing_personalization_design.deactivated
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
issuing_personalization_design.rejected
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
issuing_personalization_design.updated
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
en-RO
on enumsstripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsKlarna.preferred_locale
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsKlarna.preferred_locale
, andstripe.PaymentIntent.ModifyParamsPaymentMethodOptionsKlarna.preferred_locale
- Add support for
ro-RO
on enumsstripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsKlarna.preferred_locale
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsKlarna.preferred_locale
, andstripe.PaymentIntent.ModifyParamsPaymentMethodOptionsKlarna.preferred_locale
- Change type of
features
onstripe.issuing.PhysicalBundle
fromOptional[Features]
toFeatures
- Add support for
v9.9.0b1
- #1331 Update generated code for beta
- Change type of
refund
onstripe.CreditNote.CreateParamsRefund
,stripe.CreditNote.PreviewParamsRefund
, andstripe.CreditNote.PreviewLinesParamsRefund
fromstr
toNotRequired[str]
- Add support for
terminal_reader_invalid_location_for_payment
on enumstripe.QuotePreviewInvoice.LastFinalizationError.code
- Change type of
v9.8.0
- #1332 Update generated code
- Add support for
external_account_collection
on resource classesstripe.AccountSession.Components.Balances.Features
andstripe.AccountSession.Components.Payouts.Features
and parameter classesstripe.AccountSession.CreateParamsComponentsBalancesFeatures
andstripe.AccountSession.CreateParamsComponentsPayoutsFeatures
- Add support for
payment_method_remove
on resource classstripe.checkout.Session.SavedPaymentMethodOptions
- Add support for
terminal_reader_invalid_location_for_payment
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for