Releases: stripe/stripe-python
Releases · stripe/stripe-python
v9.2.0b1
- #1296 Update generated code for beta
- Add support for
external_account_collection
on resource classstripe.AccountSession.Components.AccountOnboarding.Features
and parameter classstripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures
- Add support for
account_management
on resource classstripe.AccountSession.Components
and parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
notification_banner
on resource classstripe.AccountSession.Components
and parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
amazon_pay
on resource classesstripe.Charge.PaymentMethodDetails
,stripe.ConfirmationToken.PaymentMethodPreview
,stripe.PaymentIntent.PaymentMethodOptions
,stripe.Refund.DestinationDetails
,stripe.SetupIntent.PaymentMethodOptions
, andstripe.checkout.Session.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.PaymentMethodConfiguration.CreateParams
,stripe.PaymentMethodConfiguration.ModifyParams
,stripe.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.ConfirmParamsPaymentMethodOptions
,stripe.SetupIntent.CreateParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodOptions
,stripe.SetupIntent.ModifyParamsPaymentMethodData
,stripe.SetupIntent.ModifyParamsPaymentMethodOptions
, andstripe.checkout.Session.CreateParamsPaymentMethodOptions
, and resourcesstripe.PaymentMethod
andstripe.PaymentMethodConfiguration
- Add support for
capture_method
on parameter classesstripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay
, andstripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay
and resource classstripe.PaymentIntent.PaymentMethodOptions.RevolutPay
- Change type of field
stripe.billing.MeterEventAdjustment
fromCancel
toOptional[Cancel]
ofcancel
- Change type of field
stripe.billing.MeterEventAdjustment.Cancel
fromstr
toOptional[str]
ofidentifier
- Change type of field
stripe.billing.MeterEventAdjustment.CreateParamsCancel
fromstr
toNotRequired[str]
ofidentifier
- Change type of field
stripe.billing.MeterEventAdjustment.CreateParams
fromMeterEventAdjustment.CreateParamsCancel
toNotRequired[MeterEventAdjustment.CreateParamsCancel]
ofcancel
- Change type of field
stripe.billing.MeterEventAdjustment.CreateParams
fromNotRequired[Literal['cancel']]
toLiteral['cancel']
oftype
- Add support for
bh_vat
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.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
, andstripe.TaxId.CreateParams.type
- Add support for
kz_bin
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.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
, andstripe.TaxId.CreateParams.type
- Add support for
ng_tin
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.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
, andstripe.TaxId.CreateParams.type
- Add support for
om_vat
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.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
, andstripe.TaxId.CreateParams.type
- Add support for
amazon_pay
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
billing_policy_remote_function_response_invalid
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.QuotePreviewInvoice.LastFinalizationError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
billing_policy_remote_function_timeout
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.QuotePreviewInvoice.LastFinalizationError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
billing_policy_remote_function_unexpected_status_code
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.QuotePreviewInvoice.LastFinalizationError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
billing_policy_remote_function_unreachable
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.QuotePreviewInvoice.LastFinalizationError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
v9.1.0
- #1300 Update generated code
- Add support for
external_account_collection
on resource classstripe.AccountSession.Components.AccountOnboarding.Features
and parameter classstripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures
- Add support for
account_management
on resource classstripe.AccountSession.Components
and parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
notification_banner
on resource classstripe.AccountSession.Components
and parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
amazon_pay
on resource classesstripe.Charge.PaymentMethodDetails
,stripe.ConfirmationToken.PaymentMethodPreview
,stripe.PaymentIntent.PaymentMethodOptions
,stripe.Refund.DestinationDetails
,stripe.SetupIntent.PaymentMethodOptions
, andstripe.checkout.Session.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.PaymentMethodConfiguration.CreateParams
,stripe.PaymentMethodConfiguration.ModifyParams
,stripe.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.ConfirmParamsPaymentMethodOptions
,stripe.SetupIntent.CreateParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodOptions
,stripe.SetupIntent.ModifyParamsPaymentMethodData
,stripe.SetupIntent.ModifyParamsPaymentMethodOptions
, andstripe.checkout.Session.CreateParamsPaymentMethodOptions
, and resourcesstripe.PaymentMethod
andstripe.PaymentMethodConfiguration
- Add support for
next_refresh_available_at
on resource classstripe.financial_connections.Account.OwnershipRefresh
- Change type of
cancel
onstripe.billing.MeterEventAdjustment
fromCancel
toOptional[Cancel]
- Change type of
identifier
onstripe.billing.MeterEventAdjustment.Cancel
fromstr
toOptional[str]
- Change type of
identifier
onstripe.billing.MeterEventAdjustment.CreateParamsCancel
fromstr
toNotRequired[str]
- Change type of
cancel
onstripe.billing.MeterEventAdjustment.CreateParams
fromMeterEventAdjustment.CreateParamsCancel
toNotRequired[MeterEventAdjustment.CreateParamsCancel]
- Change type of
type
onstripe.billing.MeterEventAdjustment.CreateParams
fromNotRequired[Literal['cancel']]
toLiteral['cancel']
- Add support for
bh_vat
on enumsstripe.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
, andstripe.TaxId.CreateParams.type
- Add support for
kz_bin
on enumsstripe.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
, andstripe.TaxId.CreateParams.type
- Add support for
ng_tin
on enumsstripe.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
, andstripe.TaxId.CreateParams.type
- Add support for
om_vat
on enumsstripe.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
, andstripe.TaxId.CreateParams.type
- Add support for
ownership
on enumsstripe.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
, andstripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections.prefetch
- Add support for
amazon_pay
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
billing_policy_remote_function_response_invalid
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
billing_policy_remote_function_timeout
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
billing_policy_remote_function_unexpected_status_code
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
billing_policy_remote_function_unreachable
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
- #1297 Use stdlib AsyncMock when available
v9.0.0
-
- This release changes the pinned API version to
2024-04-10
. Please read the API Upgrade Guide and carefully review the API changes before upgrading.
⚠️ Breaking changes- Remove
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. - Rename
features
tomarketing_features
on parameter classesstripe.Product.CreateParams
andstripe.Product.ModifyParams
and resourcestripe.Product
.
⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API- Remove
.subscription_pause
from the below as the feature to pause subscription on the portal has been deprecatedConfiguration.Features
ConfigurationService.CreateParamsFeatures
ConfigurationService.UpdateParamsFeatures
- Remove the below deprecated values for
BalanceTransaction.type
obligation_inbound
obligation_payout
obligation_payout_failure
obligation_reversal_outbound
- Remove the below deprecated events from
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
- Remove the deprecated value
include_and_require
forInvoice.CreateParams.pending_invoice_items_behavior
andInvoiceService.CreateParams.pending_invoice_items_behavior
- Remove the deprecated value
service_tax
forTaxRate.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
- Remove
request_incremental_authorization
fromPaymentIntent.ConfirmParamsPaymentMethodOptionsCardPresent
PaymentIntent.CreateParamsPaymentMethodOptionsCardPresent
PaymentIntent.ModifyParamsPaymentMethodOptionsCardPresent
PaymentIntentService.ConfirmParamsPaymentMethodOptionsCardPresent
PaymentIntentService.CreateParamsPaymentMethodOptionsCardPresent
PaymentIntentService.ModifyParamsPaymentMethodOptionsCardPresent
- Remove support for
id_bank_transfer
,multibanco
,netbanking
,pay_by_bank
, andupi
onPaymentMethodConfiguration
- Remove the deprecated value
challenge_only
fromSetupIntent.PaymentMethodOptions.Card.request_three_d_secure
- Remove deprecated value
various
forClimate.Supplier.removal_pathway
- Remove the deprecated value
obligation
forReportRun.CreateParamsParameters.reporting_category
andReportRunService.CreateParamsParameters.reporting_category
- Remove the legacy field
rendering_options
on parameter classesstripe.Invoice.CreateParams
andstripe.Invoice.ModifyParams
and resourcestripe.Invoice
. Userendering
instead.
- This release changes the pinned API version to
v8.11.0
-
#1295 Update generated code
- Add support for
fees
,losses
,requirement_collection
&stripe_dashboard
on resource classstripe.Account.Controller
- Add support for
controller
on parameter classstripe.Account.CreateParams
- Add support for
create_feature
,delete_feature
,list_features
,retrieve_feature
on resourcestripe.Product
- Add support for resource
stripe.ProductFeature
- Add support for
event_name
on parameter classstripe.billing.MeterEventAdjustment.CreateParams
and resourcestripe.billing.MeterEventAdjustment
- Add support for
cancel
andtype
on resourcestripe.billing.MeterEventAdjustment
- Add support for resource
stripe.entitlements.ActiveEntitlement
- Add support for resource
stripe.entitlements.Feature
- Add support for
none
on enumstripe.Account.type
- Add support for
-
#1299 Fix README.md
-
#1292 Tweak changelog for python async note
v8.11.0b1
- #1293 Update generated code for beta
- Add support for
risk_controls
on parameter classstripe.Account.CreateParams
and resourcestripe.Account
- Add support for
promotion_code
on parameter classesstripe.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
, andstripe.Quote.ModifyParamsPhaseLineItemDiscount
- Add support for
zip
on parameter classesstripe.PaymentMethodConfiguration.CreateParams
andstripe.PaymentMethodConfiguration.ModifyParams
and resourcestripe.PaymentMethodConfiguration
- Add support for
offline
on resource classstripe.SetupAttempt.PaymentMethodDetails.CardPresent
- Add support for
card_present
on parameter classesstripe.SetupIntent.ConfirmParamsPaymentMethodOptions
,stripe.SetupIntent.CreateParamsPaymentMethodOptions
, andstripe.SetupIntent.ModifyParamsPaymentMethodOptions
and resource classstripe.SetupIntent.PaymentMethodOptions
- Add support for
modify
on resourcestripe.entitlements.Feature
- Add support for
email
on resourcestripe.identity.VerificationReport
, parameter classesstripe.identity.VerificationSession.CreateParamsOptions
andstripe.identity.VerificationSession.ModifyParamsOptions
, and resource classesstripe.identity.VerificationSession.Options
andstripe.identity.VerificationSession.VerifiedOutputs
- Add support for
phone
on resourcestripe.identity.VerificationReport
, parameter classesstripe.identity.VerificationSession.CreateParamsOptions
andstripe.identity.VerificationSession.ModifyParamsOptions
, and resource classesstripe.identity.VerificationSession.Options
andstripe.identity.VerificationSession.VerifiedOutputs
- Add support for
verification_flow
on resourcesstripe.identity.VerificationReport
andstripe.identity.VerificationSession
and parameter classstripe.identity.VerificationSession.CreateParams
- Add support for
provided_details
on parameter classesstripe.identity.VerificationSession.CreateParams
andstripe.identity.VerificationSession.ModifyParams
and resourcestripe.identity.VerificationSession
- Add support for
allowed_merchant_countries
on parameter classesstripe.issuing.Card.CreateParamsSpendingControls
,stripe.issuing.Card.ModifyParamsSpendingControls
,stripe.issuing.Cardholder.CreateParamsSpendingControls
, andstripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classesstripe.issuing.Card.SpendingControls
andstripe.issuing.Cardholder.SpendingControls
- Add support for
blocked_merchant_countries
on parameter classesstripe.issuing.Card.CreateParamsSpendingControls
,stripe.issuing.Card.ModifyParamsSpendingControls
,stripe.issuing.Cardholder.CreateParamsSpendingControls
, andstripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classesstripe.issuing.Card.SpendingControls
andstripe.issuing.Cardholder.SpendingControls
- Change type of field
stripe.checkout.Session.CreateParamsPaymentMethodOptionsSwish
fromLiteral['']|str
tostr
ofreference
- Add support for
verification_flow
on enumsstripe.identity.VerificationReport.type
andstripe.identity.VerificationSession.type
- Add support for
email_unverified_other
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
email_verification_declined
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
phone_unverified_other
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
phone_verification_declined
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
mobile_phone_reader
on enumsstripe.terminal.Reader.device_type
andstripe.terminal.Reader.ListParams.device_type
- Change type of field
stripe.identity.VerificationSession.CreateParams
fromLiteral['document', 'id_number']
toNotRequired[Literal['document', 'id_number']]
oftype
- Change type of fields
stripe.Invoice
,stripe.InvoiceLineItem
,stripe.QuotePreviewInvoice
,stripe.Subscription
, andstripe.SubscriptionItem
fromOptional[List[ExpandableField[Discount]]]
toList[ExpandableField[Discount]]
ofdiscounts
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
ofdata
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
ofimage_url_png
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
ofimage_url_svg
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[str]
tostr
ofhosted_instructions_url
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[str]
tostr
ofmobile_auth_url
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[QrCode]
toQrCode
ofqr_code
- Change type of fields
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
, andstripe.SubscriptionSchedule.Phase
fromOptional[List[Discount]]
toList[Discount]
ofdiscounts
- Add support for
v8.10.0
-
#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
- Add support for
subscription_item
on resourcestripe.Discount
- Add support for
promotion_code
on parameter classesstripe.Invoice.CreateParamsDiscount
,stripe.Invoice.ModifyParamsDiscount
,stripe.InvoiceItem.CreateParamsDiscount
,stripe.InvoiceItem.ModifyParamsDiscount
,stripe.InvoiceLineItem.ModifyParamsDiscount
,stripe.Quote.CreateParamsDiscount
, andstripe.Quote.ModifyParamsDiscount
- Add support for
discounts
on parameter classesstripe.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
, andstripe.SubscriptionSchedule.ModifyParamsPhaseItem
, resourcesstripe.Subscription
andstripe.SubscriptionItem
, and resource classesstripe.SubscriptionSchedule.Phase.AddInvoiceItem
,stripe.SubscriptionSchedule.Phase.Item
, andstripe.SubscriptionSchedule.Phase
- Add support for
zip
on parameter classesstripe.PaymentMethodConfiguration.CreateParams
andstripe.PaymentMethodConfiguration.ModifyParams
and resourcestripe.PaymentMethodConfiguration
- Add support for
offline
on resource classstripe.SetupAttempt.PaymentMethodDetails.CardPresent
- Add support for
card_present
on parameter classesstripe.SetupIntent.ConfirmParamsPaymentMethodOptions
,stripe.SetupIntent.CreateParamsPaymentMethodOptions
, andstripe.SetupIntent.ModifyParamsPaymentMethodOptions
and resource classstripe.SetupIntent.PaymentMethodOptions
- Add support for
email
on resourcestripe.identity.VerificationReport
, parameter classesstripe.identity.VerificationSession.CreateParamsOptions
andstripe.identity.VerificationSession.ModifyParamsOptions
, and resource classesstripe.identity.VerificationSession.Options
andstripe.identity.VerificationSession.VerifiedOutputs
- Add support for
phone
on resourcestripe.identity.VerificationReport
, parameter classesstripe.identity.VerificationSession.CreateParamsOptions
andstripe.identity.VerificationSession.ModifyParamsOptions
, and resource classesstripe.identity.VerificationSession.Options
andstripe.identity.VerificationSession.VerifiedOutputs
- Add support for
verification_flow
on resourcesstripe.identity.VerificationReport
andstripe.identity.VerificationSession
and parameter classstripe.identity.VerificationSession.CreateParams
- Add support for
provided_details
on parameter classesstripe.identity.VerificationSession.CreateParams
andstripe.identity.VerificationSession.ModifyParams
and resourcestripe.identity.VerificationSession
- Add support for
allowed_merchant_countries
on parameter classesstripe.issuing.Card.CreateParamsSpendingControls
,stripe.issuing.Card.ModifyParamsSpendingControls
,stripe.issuing.Cardholder.CreateParamsSpendingControls
, andstripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classesstripe.issuing.Card.SpendingControls
andstripe.issuing.Cardholder.SpendingControls
- Add support for
blocked_merchant_countries
on parameter classesstripe.issuing.Card.CreateParamsSpendingControls
,stripe.issuing.Card.ModifyParamsSpendingControls
,stripe.issuing.Cardholder.CreateParamsSpendingControls
, andstripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classesstripe.issuing.Card.SpendingControls
andstripe.issuing.Cardholder.SpendingControls
- Change type of
reference
onstripe.checkout.Session.CreateParamsPaymentMethodOptionsSwish
fromLiteral['']|str
tostr
- Add support for
verification_flow
on enumsstripe.identity.VerificationReport.type
andstripe.identity.VerificationSession.type
- Add support for
email_unverified_other
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
email_verification_declined
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
phone_unverified_other
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
phone_verification_declined
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
mobile_phone_reader
on enumsstripe.terminal.Reader.device_type
andstripe.terminal.Reader.ListParams.device_type
- Change type of
type
onstripe.identity.VerificationSession.CreateParams
fromLiteral['document', 'id_number']
toNotRequired[Literal['document', 'id_number']]
- Change type of
discounts
onstripe.Invoice
andstripe.InvoiceLineItem
fromOptional[List[ExpandableField[Discount]]]
toList[ExpandableField[Discount]]
- Change type of
data
onstripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
- Change type of
image_url_png
onstripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
- Change type of
image_url_svg
onstripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
- Change type of
hosted_instructions_url
onstripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[str]
tostr
- Change type of
mobile_auth_url
onstripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[str]
tostr
- Change type of
qr_code
onstripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[QrCode]
toQrCode
- Add support for
-
#1289 Bump aiohttp from 3.9.0 to 3.9.2
v8.10.0b1
-
#1277 Update generated code for beta
- Add support for
financial_account_transactions
,financial_account
,issuing_card
, andissuing_cards_list
onAccountSession.CreateParamsComponents
andAccountSessionService.CreateParamsComponents
- Remove support for
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
, andsubscription_trial_end
onInvoice.CreatePreviewParams
andInvoiceService.CreatePreviewParams
- Add support for
-
#1283 Fix unneccessary quotes
v8.9.0
- #1276 Update generated code
- Add support for new resources
Billing.MeterEventAdjustment
,Billing.MeterEvent
, andBilling.Meter
- Add support for
create
,deactivate
,list
,modify
,reactivate
, andretrieve
methods on resourceMeter
- Add support for
create
method on resourcesMeterEventAdjustment
andMeterEvent
- Add support for
amazon_pay_payments
onAccount.Capabilities
,Account.CreateParamsCapabilities
,Account.UpdateParamsCapabilities
,AccountService.CreateParamsCapabilities
, andAccountService.UpdateParamsCapabilities
- Add support for new value
verification_failed_representative_authority
on enumsAccount.FutureRequirements.Error.code
,Account.Requirements.Errors.code
,BankAccount.FutureRequirements.Error.code
,BankAccount.Requirements.Errors.code
,Capability.FutureRequirements.Error.code
,Capability.Requirements.Errors.code
,Person.FutureRequirements.Error.code
,Person.Requirements.Errors.code
, - Add support for
destination_on_behalf_of_charge_management
onAccountSession.Components.PaymentDetails.Features
,AccountSession.Components.Payments.Features
,AccountSession.CreateParamsComponentsPaymentDetailsFeatures
,AccountSession.CreateParamsComponentsPaymentsFeatures
,AccountSessionService.CreateParamsComponentsPaymentDetailsFeatures
andAccountSessionService.CreateParamsComponentsPaymentsFeatures
- Add support for
meter
onPlan.CreateParams
,Plan
,PlanService.CreateParams
,Price.Recurring
,Price.CreateParamsRecurring
,Price.ListParamsRecurring
,PriceService.CreateParamsRecurring
, andPriceService.ListParamsRecurring
- Add support for
mandate
onCharge.PaymentMethodDetails.USBankAccount
,Treasury.InboundTransfer.OriginPaymentMethodDetails.USBankAccount
,Treasury.OutboundPayment.DestinationPaymentMethodDetails.USBankAccount
, andTreasury.OutboundTransfer.DestinationPaymentMethodDetails.USBankAccount
- Add support for
second_line
onIssuing.Card.CreateParams
- Add support for new resources
- #1278 Types: remove unnecessary quotes
- #1279 Update README.md
v8.9.0b1
v8.8.0
- #1273 Update generated code
- Add support for new resources
ConfirmationToken
andForwarding.Request
- Add support for
retrieve
method on resourceConfirmationToken
- Add support for
create
,list
, andretrieve
methods on resourceRequest
- Add support for
mobilepay_payments
onAccount.Capabilities
,Account.CreateParamsCapabilities
, andAccount.UpdateParamsCapabilities
- Add support for new values
forwarding_api_inactive
,forwarding_api_invalid_parameter
,forwarding_api_upstream_connection_error
, andforwarding_api_upstream_connection_timeout
on enumsInvoice.LastFinalizationError.code
,PaymentIntent.LastPaymentError.code
,SetupAttempt.SetupError.code
,SetupIntent.LastSetupError.code
, andStripeError.code
- Add support for
payment_reference
onCharge.PaymentMethodDetails.UsBankAccount
- Add support for
payout
onTreasury.ReceivedDebit.LinkedFlows
- Add support for
name
onConfigurationService.CreateParams
,ConfigurationService.UpdateParams
, andConfiguration
for terminal - Add support for
confirmation_token
onPaymentIntentService.ConfirmParams
,PaymentIntentService.CreateParams
,SetupIntentService.ConfirmParams
, andSetupIntentService.CreateParams
- Add support for new value
mobilepay
on enumsCustomer.ListPaymentMethodsParams.type
,PaymentMethod.CreateParams.type
, andPaymentMethod.ListParams.type
- Add support for
mobilepay
onCharge.PaymentMethodDetails
,PaymentIntent.PaymentMethodOptions
,PaymentIntentService.ConfirmParamsPaymentMethodData
,PaymentIntentService.ConfirmParamsPaymentMethodOptions
,PaymentIntentService.CreateParamsPaymentMethodData
,PaymentIntentService.CreateParamsPaymentMethodOptions
,PaymentIntentService.UpdateParamsPaymentMethodData
,PaymentIntentService.UpdateParamsPaymentMethodOptions
,PaymentMethod.CreateParams
,PaymentMethod
,SetupIntentService.ConfirmParamsPaymentMethodData
,SetupIntentService.CreateParamsPaymentMethodData
, andSetupIntentService.UpdateParamsPaymentMethodData
- Add support for new value
mobilepay
on enumsPaymentIntentService.ConfirmParamsPaymentMethodData.type
,PaymentIntentService.CreateParamsPaymentMethodData.type
,PaymentIntentService.UpdateParamsPaymentMethodData.type
,SetupIntentService.ConfirmParamsPaymentMethodData.type
,SetupIntentService.CreateParamsPaymentMethodData.type
, andSetupIntentService.UpdateParamsPaymentMethodData.type
- Add support for new value
mobilepay
on enumPaymentMethod.type
- Add support for new resources