Releases: stripe/stripe-python
Releases · stripe/stripe-python
v12.0.0
-
#1463 Support for APIs in the new API version 2025-03-31.basil
This release changes the pinned API version to
2025-03-31.basil
.⚠️ Breaking changes due to changes in the Stripe APIPlease review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.
- Remove support for resources
SubscriptionItemUsageRecordSummary
andSubscriptionItemUsageRecord
- Remove support for
create
method on resourceSubscriptionItemUsageRecord
- Remove support for
list
method on resourceSubscriptionItemUsageRecordSummary
- Remove support for
upcomingLines
andupcoming
methods on resourceInvoice
- Remove support for
invoice
onCharge
andPaymentIntent
- Remove support for
shipping_details
onCheckoutSession
- Remove support for
carrier
,phone
, andtracking_number
onCheckoutSession.CollectedInformation.ShippingDetail
- Remove support for
refund
onCreditNote.CreateParams
,CreditNote.PreviewParams
,CreditNotePreviewLines.ListParams
, andCreditNote
- Remove support for
tax_amounts
onCreditNoteLineItem
,CreditNote
, andInvoiceLineItem
- Remove support for
amount_excluding_tax
andunit_amount_excluding_tax
onCreditNoteLineItem
andInvoiceLineItem
- Remove support for
coupon
onCustomer.CreateParams
,Customer.UpdateParams
,Invoice.CreatePreviewParamsScheduleDetailPhase
,Invoice.CreatePreviewParams
,Subscription.CreateParams
,Subscription.UpdateParams
,SubscriptionSchedule.CreateParamsPhase
,SubscriptionSchedule.Phase
, andSubscriptionSchedule.UpdateParamsPhase
- Remove support for
promotion_code
onCustomer.CreateParams
,Customer.UpdateParams
,Subscription.CreateParams
, andSubscription.UpdateParams
- Remove support for
price
onInvoice.AddLinesParamsLine
,Invoice.UpdateLinesParamsLine
,InvoiceItem.CreateParams
,InvoiceItem.UpdateParams
,InvoiceItem
,InvoiceLineItem.UpdateParams
, andInvoiceLineItem
- Remove support for
billing_thresholds
onInvoice.CreatePreviewParamsScheduleDetailPhaseItem
,Invoice.CreatePreviewParamsScheduleDetailPhase
,Invoice.CreatePreviewParamsSubscriptionDetailItem
,Subscription.CreateParamsItem
,Subscription.CreateParams
,Subscription.UpdateParamsItem
,Subscription.UpdateParams
,SubscriptionItem.CreateParams
,SubscriptionItem.UpdateParams
,SubscriptionItem
,SubscriptionSchedule.CreateParamsDefaultSetting
,SubscriptionSchedule.CreateParamsPhaseItem
,SubscriptionSchedule.CreateParamsPhase
,SubscriptionSchedule.DefaultSetting
,SubscriptionSchedule.Phase.Item
,SubscriptionSchedule.Phase
,SubscriptionSchedule.UpdateParamsDefaultSetting
,SubscriptionSchedule.UpdateParamsPhaseItem
,SubscriptionSchedule.UpdateParamsPhase
, andSubscription
- Remove support for
application_fee_amount
,charge
,paid_out_of_band
,paid
,payment_intent
,quote
,subscription
,subscription_details
,subscription_proration_date
,tax
,total_tax_amounts
, andtransfer_data
onInvoice
- Remove support for
discount
onInvoice
andSubscription
- Remove support for
invoice_item
,proration_details
,proration
,tax_rates
, andtype
onInvoiceLineItem
- Remove support for
plan
andsubscription_item
onInvoiceItem
andInvoiceLineItem
- Remove support for
unit_amount
onInvoiceItem.CreateParams
,InvoiceItem.UpdateParams
, andInvoiceItem
- Remove support for
subscription
andunit_amount_decimal
onInvoiceItem
- Remove support for
naver_pay
onPaymentMethod.UpdateParams
- Remove support for
aggregate_usage
onPlan.CreateParams
,Plan
,Price.CreateParamsRecurring
, andPrice.Recurring
- Remove support for
current_period_end
andcurrent_period_start
onSubscription
- Remove support for page on
v2.Event.ListParams
andv2.EventDestination.ListParams
Changes
- Change
CheckoutSession.collected_information
to be required - Change
CheckoutSession.CollectedInformation.shipping_details
to be required - Change
CheckoutSession.CollectedInformation.ShippingDetail.address
to be required - Change
CheckoutSession.CollectedInformation.ShippingDetail.name
to be required - Change
PaymentIntent.ConfirmParamsPaymentMethodOptionWechatPay.client
,PaymentIntent.CreateParamsPaymentMethodOptionWechatPay.client
, andPaymentIntent.UpdateParamsPaymentMethodOptionWechatPay.client
to be optional - Change
political_exposure
on resourcesPerson
andToken
and paramsToken.CreateParams
from string toenum("existing" | "none")
Additions
- Add support for new resource
InvoicePayment
- Add support for
list
andretrieve
methods on resourceInvoicePayment
- Add support for
billie_payments
,nz_bank_account_becs_debit_payments
, andsatispay_payments
onAccount.Capability
,Account.CreateParamsCapability
, andAccount.UpdateParamsCapability
- Add support for
hosted_payment_method_save
onAccount.Setting.Invoice
andAccount.UpdateParamsSettingInvoice
- Add support for
invoices
onAccount.CreateParamsSetting
- Add support for new values
information_missing
,invalid_signator
,verification_failed_authorizer_authority
, andverification_rejected_ownership_exemption_reason
on enumsAccount.FutureRequirement.Error.code
,Account.Requirement.Error.code
,AccountCapability.FutureRequirement.Error.code
,AccountCapability.Requirement.Error.code
,AccountPerson.FutureRequirement.Error.code
,AccountPerson.Requirement.Error.code
,BankAccount.FutureRequirement.Error.code
, andBankAccount.Requirement.Error.code
- Add support for new values
forwarding_api_retryable_upstream_error
andsetup_intent_mobile_wallet_unsupported
on enumsInvoice.LastFinalizationError.code
,PaymentIntent.LastPaymentError.code
,SetupAttempt.SetupError.code
,SetupIntent.LastSetupError.code
, andStripeError.code
- Add support for new values
stripe_balance_payment_debit_reversal
andstripe_balance_payment_debit
on enumBalanceTransaction.type
- Add support for new value
last
on enumsBillingMeter.DefaultAggregation.formula
andbilling.Meter.CreateParamsDefaultAggregation.formula
- Add support for
presentment_details
onCharge
,CheckoutSession
,PaymentIntent
, andRefund
- Add support for
billie
andsatispay
onCharge.PaymentMethodDetail
,ConfirmationToken.CreateParamsPaymentMethodDatum
,ConfirmationToken.PaymentMethodPreview
,CustomerPaymentMethod
,PaymentIntent.ConfirmParamsPaymentMethodDatum
,PaymentIntent.CreateParamsPaymentMethodDatum
,PaymentIntent.UpdateParamsPaymentMethodDatum
,PaymentMethod.CreateParams
,PaymentMethodConfiguration.CreateParams
,PaymentMethodConfiguration.UpdateParams
,PaymentMethodConfiguration
,PaymentMethod
,SetupIntent.ConfirmParamsPaymentMethodDatum
,SetupIntent.CreateParamsPaymentMethodDatum
, andSetupIntent.UpdateParamsPaymentMethodDatum
- Add support for
nz_bank_account
onCharge.PaymentMethodDetail
,ConfirmationToken.CreateParamsPaymentMethodDatum
,ConfirmationToken.PaymentMethodPreview
,CustomerPaymentMethod
,Mandate.PaymentMethodDetail
,PaymentIntent.ConfirmParamsPaymentMethodDatum
,PaymentIntent.ConfirmParamsPaymentMethodOption
,PaymentIntent.CreateParamsPaymentMethodDatum
,PaymentIntent.CreateParamsPaymentMethodOption
,PaymentIntent.PaymentMethodOption
,PaymentIntent.UpdateParamsPaymentMethodDatum
,PaymentIntent.UpdateParamsPaymentMethodOption
,PaymentMethod.CreateParams
,PaymentMethodConfiguration.CreateParams
,PaymentMethodConfiguration.UpdateParams
,PaymentMethodConfiguration
,PaymentMethod
,SetupAttempt.PaymentMethodDetail
,SetupIntent.ConfirmParamsPaymentMethodDatum
,SetupIntent.CreateParamsPaymentMethodDatum
, andSetupIntent.UpdateParamsPaymentMethodDatum
- Add support for
optional_items
onCheckoutSession
,PaymentLink.CreateParams
,PaymentLink
, andcheckout.Session.CreateParams
- Add support for
permissions
onCheckoutSession
andcheckout.Session.CreateParams
- Add support for new values
billie
andsatispay
on enumcheckout.Session.CreateParams.payment_method_types
- Add support for new value
custom
on enumsCheckoutSession.ui_mode
andcheckout.Session.CreateParams.ui_mode
- Add support for
shipping_options
oncheckout.Session.UpdateParams
- Add support for new values
billie
,nz_bank_account
, andsatispay
on enumsConfirmationToken.CreateParamsPaymentMethodDatum.type
,PaymentIntent.ConfirmParamsPaymentMethodDatum.type
,PaymentIntent.CreateParamsPaymentMethodDatum.type
,PaymentIntent.UpdateParamsPaymentMethodDatum.type
,SetupIntent.ConfirmParamsPaymentMethodDatum.type
,SetupIntent.CreateParamsPaymentMethodDatum.type
, andSetupIntent.UpdateParamsPaymentMethodDatum.type
- Add support for
buyer_id
onConfirmationToken.PaymentMethodPreview.NaverPay
,CustomerPaymentMethod.NaverPay
, andPaymentMethod.NaverPay
- Add support for new values
billie
,nz_bank_account
, andsatispay
on enumsConfirmationToken.PaymentMethodPreview.type
,CustomerPaymentMethod.type
, andPaymentMethod.type
- Add support for
refunds
onCreditNote.CreateParams
,CreditNote.PreviewParams
,CreditNotePreviewLines.ListParams
, andCreditNote
- Add support for
total_taxes
onCreditNote
andInvoice
- Add support for
taxes
onCreditNoteLineItem
andInvoiceLineItem
- Add support for
checkout_session
onCustomerBalanceTransaction
- Add support for new values
checkout_session_subscription_payment_canceled
andcheckout_session_subscription_payment
on enumCustomerBalanceTransaction.type
- Add support for new values
billie
,nz_bank_account
, andsatispay
on enumsCustomerPaymentMethod.ListParams.type
,PaymentMethod.CreateParams.type
, and `PaymentMethod...
- Remove support for resources
v11.7.0b1
-
#1469 Beta SDK updates between Open API versions 1473 and 1505
- Add support for
target_date
on parameter classesstripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit
,stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit
,stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit
, andstripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit
and resource classesstripe.Order.Payment.Settings.PaymentMethodOptions.AcssDebit
andstripe.Order.Payment.Settings.PaymentMethodOptions.SepaDebit
- Add support for
succeed_input_collection
andtimeout_input_collection
on resourcestripe.terminal.Reader
- Add support for
-
#1467 Merge python-beta
v11.6.0
- #1450 Update generated code
- Add support for
target_date
on parameter classesstripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsAcssDebit
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsAuBecsDebit
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsBacsDebit
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsSepaDebit
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccount
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsAcssDebit
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsAuBecsDebit
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsBacsDebit
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsSepaDebit
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccount
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsAcssDebit
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsAuBecsDebit
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsBacsDebit
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsSepaDebit
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccount
,stripe.checkout.Session.CreateParamsPaymentMethodOptionsAcssDebit
,stripe.checkout.Session.CreateParamsPaymentMethodOptionsAuBecsDebit
,stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebit
,stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebit
, andstripe.checkout.Session.CreateParamsPaymentMethodOptionsUsBankAccount
and resource classesstripe.PaymentIntent.PaymentMethodOptions.AcssDebit
,stripe.PaymentIntent.PaymentMethodOptions.AuBecsDebit
,stripe.PaymentIntent.PaymentMethodOptions.BacsDebit
,stripe.PaymentIntent.PaymentMethodOptions.SepaDebit
,stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount
,stripe.checkout.Session.PaymentMethodOptions.AcssDebit
,stripe.checkout.Session.PaymentMethodOptions.AuBecsDebit
,stripe.checkout.Session.PaymentMethodOptions.BacsDebit
,stripe.checkout.Session.PaymentMethodOptions.SepaDebit
, andstripe.checkout.Session.PaymentMethodOptions.UsBankAccount
- Add support for
metadata
on parameter classstripe.Product.CreateParamsDefaultPriceData
- Add support for
prices
on parameter classesstripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope
andstripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope
and resource classstripe.billing.CreditGrant.ApplicabilityConfig.Scope
- Add support for
priority
on parameter classstripe.billing.CreditGrant.CreateParams
and resourcestripe.billing.CreditGrant
- Add support for
restrictions
on parameter classstripe.checkout.Session.CreateParamsPaymentMethodOptionsCard
and resource classstripe.checkout.Session.PaymentMethodOptions.Card
- Add support for
collected_information
on parameter classstripe.checkout.Session.ModifyParams
and resourcestripe.checkout.Session
- Change type of
price_type
onstripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope
andstripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope
fromLiteral['metered']
toNotRequired[Literal['metered']]
- Change type of
price_type
onstripe.billing.CreditGrant.ApplicabilityConfig.Scope
fromLiteral['metered']
toOptional[Literal['metered']]
- Add support for
2025-02-24.acacia
on enumstripe.WebhookEndpoint.CreateParams.api_version
- Add support for
- #1461 Remove incorrect changelog entry about parse_snapshot_event
- #1457 add codeowners file
- #1456 upgrade ruff version
- #1452 Revert "Bump version to 11.5.0"
- #1451 Upgrade to download-artifact@v4
- #1443 Update generated code
- Add support for
pay_by_bank_payments
on resource classstripe.Account.Capabilities
and parameter classstripe.Account.CreateParamsCapabilities
- Add support for
directorship_declaration
on resource classstripe.Account.Company
and parameter classesstripe.Account.CreateParamsCompany
andstripe.Token.CreateParamsAccountCompany
- Add support for
ownership_exemption_reason
on resource classstripe.Account.Company
and parameter classesstripe.Account.CreateParamsCompany
andstripe.Token.CreateParamsAccountCompany
- Add support for
proof_of_ultimate_beneficial_ownership
on parameter classstripe.Account.CreateParamsDocuments
- Add support for
financial_account
on resource classesstripe.AccountSession.Components
andstripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails
and parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
issuing_card
on resource classstripe.AccountSession.Components
and parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
advice_code
on resource classesstripe.Charge.Outcome
,stripe.Invoice.LastFinalizationError
,stripe.PaymentIntent.LastPaymentError
,stripe.SetupAttempt.SetupError
, andstripe.SetupIntent.LastSetupError
- Add support for
country
on resource classesstripe.Charge.PaymentMethodDetails.Paypal
,stripe.ConfirmationToken.PaymentMethodPreview.Paypal
, andstripe.PaymentMethod.Paypal
- Add support for
pay_by_bank
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.PaymentMethod.ModifyParams
,stripe.PaymentMethodConfiguration.CreateParams
,stripe.PaymentMethodConfiguration.ModifyParams
,stripe.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodData
,stripe.SetupIntent.ModifyParamsPaymentMethodData
, andstripe.checkout.Session.CreateParamsPaymentMethodOptions
, and resourcesstripe.PaymentMethod
andstripe.PaymentMethodConfiguration
- Add support for
phone_number_collection
on parameter classstripe.PaymentLink.ModifyParams
- Add support for
discounts
on resourcestripe.checkout.Session
- Add support for
jpy
on parameter classesstripe.terminal.Configuration.CreateParamsTipping
andstripe.terminal.Configuration.ModifyParamsTipping
and resource classstripe.terminal.Configuration.Tipping
- Add support for
nickname
on parameter classesstripe.treasury.FinancialAccount.CreateParams
andstripe.treasury.FinancialAccount.ModifyParams
and resourcestripe.treasury.FinancialAccount
- Add support for
forwarding_settings
on parameter classstripe.treasury.FinancialAccount.ModifyParams
- Add support for
_cls_close
on resourcestripe.treasury.FinancialAccount
- Add support for
close
on resourcestripe.treasury.FinancialAccount
- Add support for
is_default
on resourcestripe.treasury.FinancialAccount
- Add support for
destination_payment_method_data
on parameter classstripe.treasury.OutboundTransfer.CreateParams
- Add support for
outbound_transfer
on resource classstripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails
- Add support for
SD
on enumsstripe.checkout.Session.ShippingAddressCollection.allowed_countries
,stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries
,stripe.PaymentLink.ShippingAddressCollection.allowed_countries
,stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries
, andstripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries
- Add support for
pay_by_bank
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.PaymentLink.payment_method_types
,stripe.PaymentLink.CreateParams.payment_method_types
,stripe.PaymentLink.ModifyParams.payment_method_types
,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
financial_account
on enumstripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type
- Add support for
outbound_transfer
on enumsstripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type
andstripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type
- Add support for
2025-01-27.acacia
on enumstripe.WebhookEndpoint.CreateParams.api_version
- Change type of
pretax_credit_amounts
onstripe.CreditNote
andstripe.CreditNoteLineItem
fromOptional[List[PretaxCreditAmount]]
toList[PretaxCreditAmount]
- Add support for
- #1448 Updated upload artifact ci action
- #1446 add just to publish CI
- #1444 Added CONTRIBUTING.md file
- #1445 minor justfile fixes & pin CI version
- [#1440](https://github.com/stripe/stripe-python/...
v11.6.0b1
- #1449 Update generated code for beta
- Add support for
rejected_reason
on resource classstripe.Account.RiskControls
- Add support for
product_tax_code_selector
on parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
brand_product
on resource classesstripe.Charge.PaymentMethodDetails.AmazonPay.Funding.Card
andstripe.Charge.PaymentMethodDetails.RevolutPay.Funding.Card
- Add support for
prices
on parameter classesstripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope
andstripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope
and resource classstripe.billing.CreditGrant.ApplicabilityConfig.Scope
- Add support for
restrictions
on parameter classstripe.checkout.Session.CreateParamsPaymentMethodOptionsCard
and resource classstripe.checkout.Session.PaymentMethodOptions.Card
- Change type of
political_exposure
onstripe.Account.CreatePersonParams
,stripe.Account.ModifyPersonParams
, andstripe.Token.CreateParamsPerson
fromstr
toLiteral['existing', 'none']
- Change type of
price_type
onstripe.billing.CreditGrant.ApplicabilityConfig.Scope
fromLiteral['metered']
toOptional[Literal['metered']]
- Add support for
v11.5.0
11.5.0 - 2025-01-27
- #1443 Update generated code
- Add support for
pay_by_bank_payments
on resource classstripe.Account.Capabilities
and parameter classstripe.Account.CreateParamsCapabilities
- Add support for
directorship_declaration
on resource classstripe.Account.Company
and parameter classesstripe.Account.CreateParamsCompany
andstripe.Token.CreateParamsAccountCompany
- Add support for
ownership_exemption_reason
on resource classstripe.Account.Company
and parameter classesstripe.Account.CreateParamsCompany
andstripe.Token.CreateParamsAccountCompany
- Add support for
proof_of_ultimate_beneficial_ownership
on parameter classstripe.Account.CreateParamsDocuments
- Add support for
financial_account
on resource classesstripe.AccountSession.Components
andstripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails
and parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
issuing_card
on resource classstripe.AccountSession.Components
and parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
advice_code
on resource classesstripe.Charge.Outcome
,stripe.Invoice.LastFinalizationError
,stripe.PaymentIntent.LastPaymentError
,stripe.SetupAttempt.SetupError
, andstripe.SetupIntent.LastSetupError
- Add support for
country
on resource classesstripe.Charge.PaymentMethodDetails.Paypal
,stripe.ConfirmationToken.PaymentMethodPreview.Paypal
, andstripe.PaymentMethod.Paypal
- Add support for
pay_by_bank
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.PaymentMethod.ModifyParams
,stripe.PaymentMethodConfiguration.CreateParams
,stripe.PaymentMethodConfiguration.ModifyParams
,stripe.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodData
,stripe.SetupIntent.ModifyParamsPaymentMethodData
, andstripe.checkout.Session.CreateParamsPaymentMethodOptions
, and resourcesstripe.PaymentMethod
andstripe.PaymentMethodConfiguration
- Add support for
phone_number_collection
on parameter classstripe.PaymentLink.ModifyParams
- Add support for
discounts
on resourcestripe.checkout.Session
- Add support for
jpy
on parameter classesstripe.terminal.Configuration.CreateParamsTipping
andstripe.terminal.Configuration.ModifyParamsTipping
and resource classstripe.terminal.Configuration.Tipping
- Add support for
nickname
on parameter classesstripe.treasury.FinancialAccount.CreateParams
andstripe.treasury.FinancialAccount.ModifyParams
and resourcestripe.treasury.FinancialAccount
- Add support for
forwarding_settings
on parameter classstripe.treasury.FinancialAccount.ModifyParams
- Add support for
_cls_close
on resourcestripe.treasury.FinancialAccount
- Add support for
close
on resourcestripe.treasury.FinancialAccount
- Add support for
is_default
on resourcestripe.treasury.FinancialAccount
- Add support for
destination_payment_method_data
on parameter classstripe.treasury.OutboundTransfer.CreateParams
- Add support for
outbound_transfer
on resource classstripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails
- Add support for
SD
on enumsstripe.checkout.Session.ShippingAddressCollection.allowed_countries
,stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries
,stripe.PaymentLink.ShippingAddressCollection.allowed_countries
,stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries
, andstripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries
- Add support for
pay_by_bank
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.PaymentLink.payment_method_types
,stripe.PaymentLink.CreateParams.payment_method_types
,stripe.PaymentLink.ModifyParams.payment_method_types
,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
financial_account
on enumstripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type
- Add support for
outbound_transfer
on enumsstripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type
andstripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type
- Add support for
2025-01-27.acacia
on enumstripe.WebhookEndpoint.CreateParams.api_version
- Change type of
pretax_credit_amounts
onstripe.CreditNote
andstripe.CreditNoteLineItem
fromOptional[List[PretaxCreditAmount]]
toList[PretaxCreditAmount]
- Add support for
- #1451 Upgrade to download-artifact@v4
- #1448 Updated upload artifact ci action
- #1446 add just to publish CI
- #1444 Added CONTRIBUTING.md file
- #1445 minor justfile fixes & pin CI version
- #1440 add justfile, update readme, remove coveralls
- #1442 Fix V2 ListObject.data type hint
- Change
stripe.v2.ListObject.data
type hint fromList[StripeObject]
toList[T]
where T is the specific stripe object contained within the list
- Change
v11.5.0b3
- #1447 Update generated code for beta
- Remove support for
stripe_account
on resource classesstripe.terminal.Reader.Action.CollectPaymentMethod
,stripe.terminal.Reader.Action.ConfirmPaymentIntent
,stripe.terminal.Reader.Action.ProcessPaymentIntent
, andstripe.terminal.Reader.Action.RefundPayment
- Remove support for
v11.5.0b2
- #1439 Update generated code for beta
- Add support for
pay_by_bank_payments
on resource classstripe.Account.Capabilities
and parameter classstripe.Account.CreateParamsCapabilities
- Add support for
directorship_declaration
on parameter classesstripe.Account.CreateParamsCompany
andstripe.Token.CreateParamsAccountCompany
- Add support for
proof_of_ultimate_beneficial_ownership
on parameter classstripe.Account.CreateParamsDocuments
- Add support for
financial_account
on resource classstripe.AccountSession.Components
- Add support for
issuing_card
on resource classstripe.AccountSession.Components
- Add support for
tax_threshold_monitoring
on parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
pay_by_bank
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.PaymentMethod.ModifyParams
,stripe.PaymentMethodConfiguration.CreateParams
,stripe.PaymentMethodConfiguration.ModifyParams
,stripe.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodData
,stripe.SetupIntent.ModifyParamsPaymentMethodData
, andstripe.checkout.Session.CreateParamsPaymentMethodOptions
, and resourcesstripe.PaymentMethod
andstripe.PaymentMethodConfiguration
- Add support for
discounts
on resourcestripe.checkout.Session
- Add support for
jpy
on parameter classesstripe.terminal.Configuration.CreateParamsTipping
andstripe.terminal.Configuration.ModifyParamsTipping
and resource classstripe.terminal.Configuration.Tipping
- Add support for
always_invoice
on enumsstripe.billing_portal.Configuration.Features.SubscriptionCancel.proration_behavior
,stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionCancel.proration_behavior
, andstripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionCancel.proration_behavior
- Add support for
SD
on enumsstripe.checkout.Session.ShippingAddressCollection.allowed_countries
,stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries
,stripe.PaymentLink.ShippingAddressCollection.allowed_countries
,stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries
, andstripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries
- Add support for
pay_by_bank
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.PaymentLink.payment_method_types
,stripe.PaymentLink.CreateParams.payment_method_types
,stripe.PaymentLink.ModifyParams.payment_method_types
,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
2025-01-27.acacia
on enumstripe.WebhookEndpoint.CreateParams.api_version
- Add support for
v11.5.0b1
- #1433 Update generated code for beta
- Add support for
directorship_declaration
on resource classstripe.Account.Company
- Add support for
ownership_exemption_reason
on resource classstripe.Account.Company
and parameter classesstripe.Account.CreateParamsCompany
andstripe.Token.CreateParamsAccountCompany
- Add support for
brand_product
on resourcestripe.Card
and resource classesstripe.Source.Card
,stripe.Source.CardPresent
, andstripe.Source.ThreeDSecure
- Add support for
advice_code
on resource classesstripe.Charge.Outcome
,stripe.Invoice.LastFinalizationError
,stripe.PaymentIntent.LastPaymentError
,stripe.QuotePreviewInvoice.LastFinalizationError
,stripe.SetupAttempt.SetupError
, andstripe.SetupIntent.LastSetupError
- Add support for
country
on resource classesstripe.Charge.PaymentMethodDetails.Paypal
,stripe.ConfirmationToken.PaymentMethodPreview.Paypal
, andstripe.PaymentMethod.Paypal
- Add support for
phone_number_collection
on parameter classstripe.PaymentLink.ModifyParams
- Add support for
nickname
on parameter classesstripe.treasury.FinancialAccount.CreateParams
andstripe.treasury.FinancialAccount.ModifyParams
and resourcestripe.treasury.FinancialAccount
- Add support for
forwarding_settings
on parameter classstripe.treasury.FinancialAccount.ModifyParams
- Add support for
_cls_close
on resourcestripe.treasury.FinancialAccount
- Add support for
close
on resourcestripe.treasury.FinancialAccount
- Add support for
is_default
on resourcestripe.treasury.FinancialAccount
- Add support for
destination_payment_method_data
on parameter classstripe.treasury.OutboundTransfer.CreateParams
- Add support for
financial_account
on resource classstripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails
- Add support for
outbound_transfer
on resource classstripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails
- Remove support for
always_invoice
on enumsstripe.billing_portal.Configuration.Features.SubscriptionCancel.proration_behavior
,stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionCancel.proration_behavior
, andstripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionCancel.proration_behavior
- Add support for
al_tin
on enumsstripe.checkout.Session.CollectedInformation.TaxId.type
,stripe.Order.TaxDetails.TaxId.type
,stripe.Order.CreateParamsTaxDetailsTaxId.type
,stripe.Order.ModifyParamsTaxDetailsTaxId.type
, andstripe.QuotePreviewInvoice.CustomerTaxId.type
- Add support for
financial_account
on enumstripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type
- Add support for
outbound_transfer
on enumsstripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type
andstripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type
- Change type of
pretax_credit_amounts
onstripe.CreditNote
andstripe.CreditNoteLineItem
fromOptional[List[PretaxCreditAmount]]
toList[PretaxCreditAmount]
- Add support for
v11.4.1
- #1438 Fix regression when using httpx HTTP client
v11.4.0
- #1430 This release changes the pinned API version to
2024-12-18.acacia
.- Add support for
allow_redisplay
on resourcesstripe.Card
andstripe.Source
- Add support for
regulated_status
on resourcestripe.Card
and resource classesstripe.Charge.PaymentMethodDetails.Card
,stripe.ConfirmationToken.PaymentMethodPreview.Card
, andstripe.PaymentMethod.Card
- Add support for
network_advice_code
on resource classesstripe.Charge.Outcome
,stripe.Invoice.LastFinalizationError
,stripe.PaymentIntent.LastPaymentError
,stripe.SetupAttempt.SetupError
, andstripe.SetupIntent.LastSetupError
- Add support for
network_decline_code
on resource classesstripe.Charge.Outcome
,stripe.Invoice.LastFinalizationError
,stripe.PaymentIntent.LastPaymentError
,stripe.SetupAttempt.SetupError
, andstripe.SetupIntent.LastSetupError
- Add support for
funding
on resource classesstripe.Charge.PaymentMethodDetails.AmazonPay
andstripe.Charge.PaymentMethodDetails.RevolutPay
- Add support for
network_transaction_id
on resource classstripe.Charge.PaymentMethodDetails.Card
- Add support for
visa_compliance
on resource classesstripe.Dispute.Evidence.EnhancedEvidence
andstripe.Dispute.EvidenceDetails.EnhancedEligibility
and parameter classstripe.Dispute.ModifyParamsEvidenceEnhancedEvidence
- Add support for
account_holder_address
on resource classesstripe.FundingInstructions.BankTransfer.FinancialAddress.Iban
,stripe.FundingInstructions.BankTransfer.FinancialAddress.SortCode
,stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei
,stripe.FundingInstructions.BankTransfer.FinancialAddress.Zengin
,stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban
,stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode
,stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei
, andstripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin
- Add support for
bank_address
on resource classesstripe.FundingInstructions.BankTransfer.FinancialAddress.Iban
,stripe.FundingInstructions.BankTransfer.FinancialAddress.SortCode
,stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei
,stripe.FundingInstructions.BankTransfer.FinancialAddress.Zengin
,stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban
,stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode
,stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei
, andstripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin
- Add support for
account_holder_name
on resource classesstripe.FundingInstructions.BankTransfer.FinancialAddress.Spei
andstripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei
- Add support for
disabled_reason
on resource classesstripe.Invoice.AutomaticTax
,stripe.Subscription.AutomaticTax
,stripe.SubscriptionSchedule.DefaultSettings.AutomaticTax
, andstripe.SubscriptionSchedule.Phase.AutomaticTax
- Add support for
reference_prefix
on parameter classesstripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions
,stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions
,stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions
,stripe.SetupIntent.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions
,stripe.SetupIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions
,stripe.SetupIntent.ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions
,stripe.SetupIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions
,stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions
, andstripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions
and resource classesstripe.PaymentIntent.PaymentMethodOptions.BacsDebit.MandateOptions
,stripe.PaymentIntent.PaymentMethodOptions.SepaDebit.MandateOptions
,stripe.SetupIntent.PaymentMethodOptions.BacsDebit.MandateOptions
,stripe.SetupIntent.PaymentMethodOptions.SepaDebit.MandateOptions
,stripe.checkout.Session.PaymentMethodOptions.BacsDebit.MandateOptions
, andstripe.checkout.Session.PaymentMethodOptions.SepaDebit.MandateOptions
- Add support for
trial_period_days
on parameter classstripe.PaymentLink.ModifyParamsSubscriptionData
- Add support for
credits_application_invoice_voided
on resource classstripe.billing.CreditBalanceTransaction.Credit
- Add support for
tax_id
on resource classesstripe.issuing.Authorization.MerchantData
andstripe.issuing.Transaction.MerchantData
- Add support for
al
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
am
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
ao
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
ba
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
bb
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
bs
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
cd
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
gn
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
kh
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
me
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
mk
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
mr
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
np
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
pe
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
sn
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
sr
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
tj
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
ug
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
uy
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
zm
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
zw
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
payout_minimum_balance_hold
on enumstripe.BalanceTransaction.type
- Add support for
payout_minimum_balance_release
on enumstripe.BalanceTransaction.type
- Add support for
credits_application_invoice_voided
on enumstripe.billing.CreditBalanceTransaction.Credit.type
- Add support for
al_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.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
am_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.tax.Calculation.CustomerDetails.TaxId.type
,stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
, `stripe.ta...
- Add support for