Releases: stripe/stripe-python
v12.1.0b2
-
#1489 Update generated code for beta
Breaking changes
- Change type of
V2MoneyManagementReceivedDebit.status_transitions
froman object
tonullable(an object)
- Remove support for values
bank_accounts.local_uk
,bank_accounts.wire_uk
,cards_uk
, andcrypto_wallets_v2
from enumEventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability
Additions
- Add support for new resources
Privacy.RedactionJobRootObjects
,Privacy.RedactionJobValidationError
, andPrivacy.RedactionJob
- Add support for
cancel
,create
,list
,modify
,retrieve
,run
, andvalidate
methods on resourceRedactionJob
- Add support for
list
andretrieve
methods on resourceRedactionJobValidationError
- Add support for
minority_owned_business_designation
onAccount.BusinessProfile
,Account.CreateParamsBusinessProfile
, andAccount.UpdateParamsBusinessProfile
- Add support for new value
verification_legal_entity_structure_mismatch
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
export_tax_transactions
andpayment_disputes
onAccountSession.CreateParamsComponent
- Add support for new value
tax_id_prohibited
on enumsInvoice.LastFinalizationError.code
,PaymentIntent.LastPaymentError.code
,QuotePreviewInvoice.LastFinalizationError.code
,SetupAttempt.SetupError.code
,SetupIntent.LastSetupError.code
, andStripeError.code
- Add support for new value
fixed_term_loan
on enumCapitalFinancingOffer.type
- Add support for
wallet_options
onCheckoutSession
andcheckout.Session.CreateParams
- Add support for new values
privacy.redaction_job.canceled
,privacy.redaction_job.created
,privacy.redaction_job.ready
,privacy.redaction_job.succeeded
, andprivacy.redaction_job.validation_error
on enumEvent.type
- Add support for
klarna
onPaymentMethodDomain
- Change type of
TaxCalculationLineItem.reference
fromnullable(string)
tostring
- Add support for
in
onTaxRegistration.CountryOption
andtax.Registration.CreateParamsCountryOption
- Add support for new values
privacy.redaction_job.canceled
,privacy.redaction_job.created
,privacy.redaction_job.ready
,privacy.redaction_job.succeeded
, andprivacy.redaction_job.validation_error
on enumsWebhookEndpoint.CreateParams.enabled_events
andWebhookEndpoint.UpdateParams.enabled_events
- Change type of
-
#1490 Handle external account
- Changes
external_account
field inexternal_account_service.create
fromstring
to a union type.
- Changes
v12.1.0b1
This release changes the pinned API version to 2025-03-31.preview
Breaking changes:
- Remove support for
AmountOverpaid
onInvoicePayment
- Remove support for values
out_of_band_payment
andpayment_record
from enumInvoicePayment.Payment.type
- Remove support for
RateCardSubscriptionDetails
onInvoiceItemParent
- Remove support for
ApplicationFeeAmount
,PaidOutOfBand
, andPaid
onQuotePreviewInvoice
- Remove support for
billing_thresholds
onQuotePreviewSubscriptionSchedule.DefaultSetting
,QuotePreviewSubscriptionSchedule.Phase.Item
, andQuotePreviewSubscriptionSchedule.Phase
- Remove support for
coupon
onQuotePreviewSubscriptionSchedule.Phase
- Change type of
QuotePreviewInvoice.Parent.SubscriptionDetail.subscription
fromstring
toexpandable($Subscription)
- Change
CheckoutSession.Permission.update
to be optional - Change type of
PaymentAttemptRecord.PaymentMethodDetail.type
andPaymentRecord.PaymentMethodDetail.type
fromliteral('custom')
tostring
- Change type of
PaymentAttemptRecord.payment_record
fromstring
tonullable(string)
- Change
PaymentAttemptRecord.PaymentMethodDetail.custom
andPaymentRecord.PaymentMethodDetail.custom
to be optional - Change type of
PaymentRecord.latest_payment_attempt_record
fromstring
tonullable(string)
- Change type of
Order.CreateParamsPaymentSettingPaymentMethodOptionWechatPay.client
andOrder.UpdateParamsPaymentSettingPaymentMethodOptionWechatPay.client
to be optional
Additions
- Add support for
payment_method_options
onConfirmationToken.CreateParams
- Add support for
installments
onConfirmationToken.PaymentMethodOption.Card
- Add support for
billie
onPaymentIntent.ConfirmParamsPaymentMethodOption
,PaymentIntent.CreateParamsPaymentMethodOption
,PaymentIntent.PaymentMethodOption
, andPaymentIntent.UpdateParamsPaymentMethodOption
- Add support for
update_line_items
onCheckoutSession.Permission
andcheckout.Session.CreateParamsPermission
- Add support for
new resources
BalanceSettings - Add support for
modify
andretrieve
methods on resourceBalanceSettings
- Add support for
create
,delete
,list
,modify
, andretrieve
methods on a newExternalAccountService
to access cards and bank accounts made available in the new pathv1/external_accounts
- Add support for
stripe_balance_payments
onAccount.Capability
,Account.CreateParamsCapability
, andAccount.UpdateParamsCapability
- Add support for new values
stripe_balance_payment_debit_reversal
andstripe_balance_payment_debit
on enumBalanceTransaction.type
- Add support for
customer_account
onBillingCreditBalanceSummary
,BillingCreditGrant
,BillingPortalSession
,CheckoutSession
,ConfirmationToken.PaymentMethodPreview
,CreditNote.ListParams
,CreditNote
,CustomerBalanceTransaction
,CustomerCashBalanceTransaction
,CustomerCashBalance
,CustomerPaymentMethod
,CustomerSession.CreateParams
,CustomerSession
,CustomerTaxId.Owner
,CustomerTaxId
,Customer
,Discount
,FinancialConnectionsAccount.AccountHolder
,FinancialConnectionsSession.AccountHolder
,Invoice.CreateParams
,Invoice.CreatePreviewParams
,Invoice.ListParams
,InvoiceItem.CreateParams
,InvoiceItem.ListParams
,InvoiceItem
,Invoice
,PaymentIntent.CreateParams
,PaymentIntent.ListParams
,PaymentIntent.UpdateParams
,PaymentIntent
,PaymentMethod.AttachParams
,PaymentMethod
,PromotionCode.CreateParams
,PromotionCode.ListParams
,PromotionCode
,Quote.CreateParams
,Quote.ListParams
,Quote.UpdateParams
,QuotePreviewInvoice
,QuotePreviewSubscriptionSchedule
,Quote
,SetupAttempt
,SetupIntent.CreateParams
,SetupIntent.ListParams
,SetupIntent.UpdateParams
,SetupIntent
,Subscription.CreateParams
,Subscription.ListParams
,SubscriptionSchedule.CreateParams
,SubscriptionSchedule.ListParams
,SubscriptionSchedule
,Subscription
,TaxId.CreateParamsOwner
,TaxId.ListParamsOwner
,TaxId.Owner
,TaxId
,billing.CreditBalanceSummary.RetrieveParams
,billing.CreditBalanceTransaction.ListParams
,billing.CreditGrant.CreateParams
,billing.CreditGrant.ListParams
,billingportal.Session.CreateParams
,checkout.Session.CreateParams
,checkout.Session.ListParams
,financialconnections.Account.ListParamsAccountHolder
, andfinancialconnections.Session.CreateParamsAccountHolder
- Add support for
stripe_balance
onCharge.PaymentMethodDetail
,ConfirmationToken.CreateParamsPaymentMethodDatum
,ConfirmationToken.PaymentMethodPreview
,CustomerPaymentMethod
,PaymentAttemptRecord.PaymentMethodDetail
,PaymentIntent.ConfirmParamsPaymentMethodDatum
,PaymentIntent.ConfirmParamsPaymentMethodOption
,PaymentIntent.CreateParamsPaymentMethodDatum
,PaymentIntent.CreateParamsPaymentMethodOption
,PaymentIntent.PaymentMethodOption
,PaymentIntent.UpdateParamsPaymentMethodDatum
,PaymentIntent.UpdateParamsPaymentMethodOption
,PaymentMethod.CreateParams
,PaymentMethod
,PaymentRecord.PaymentMethodDetail
,SetupAttempt.PaymentMethodDetail
,SetupIntent.ConfirmParamsPaymentMethodDatum
,SetupIntent.CreateParamsPaymentMethodDatum
, andSetupIntent.UpdateParamsPaymentMethodDatum
- Add support for
update_shipping_details
onCheckoutSession.Permission
andcheckout.Session.CreateParamsPermission
- Add support for
provider
onCheckoutSession.AutomaticTax
,Invoice.AutomaticTax
,Quote.AutomaticTax
, andQuotePreviewInvoice.AutomaticTax
- Add support for
tax_calculation_reference
onCreditNoteLineItem
,CreditNotePreviewLines
,InvoiceLineItem
,LineItem
,PaymentLinkLineItem
,QuoteComputedUpfrontLineItems
,QuoteLineItem
, andSessionLineItem
- Add support for
context
onEvent
- Add support for
related_customer_account
onIdentityVerificationSession
,identity.VerificationSession.CreateParams
, andidentity.VerificationSession.ListParams
- Add support for
payout_method
onPayout.CreateParams
andPayout
- Add support for
confirmation_secret
,parent
, andtotal_taxes
onQuotePreviewInvoice
- Add support for new values
forwarding_api_retryable_upstream_error
,setup_intent_mobile_wallet_unsupported
,v2_account_disconnection_unsupported
, andv2_account_missing_configuration
on enumQuotePreviewInvoice.LastFinalizationError.code
- Add support for new values
klarna
,nz_bank_account
, andstripe_balance
on enumQuotePreviewInvoice.PaymentSetting.payment_method_types
- Add support for
id
andtext
onTerminalReader.Action.CollectInput.Input.Selection.Choice
,TerminalReader.Action.CollectInput.Input.Selection
, andterminal.Reader.CollectInputsParamsInputSelectionChoice
- Add support for
network_data
onIssuingDisputeSettlementDetail
- Add support for
interchange_fees_amount
,net_total_amount
,network_fees_amount
,other_fees_amount
,other_fees_count
, andtransaction_amount
onIssuingSettlement
- Add support for
reported_by
onPaymentAttemptRecord
Changes
-
Change
CustomerSession.CreateParams.customer
,InvoiceItem.CreateParams.customer
,PaymentMethod.AttachParams.customer
,Subscription.CreateParams.customer
,billing.CreditBalanceSummary.RetrieveParams.customer
,billing.CreditBalanceTransaction.ListParams.customer
,billing.CreditGrant.CreateParams.customer
, andbillingportal.Session.CreateParams.customer
to be optional -
Change type of
Invoice.Parent.SubscriptionDetail.PauseCollection.behavior
andQuotePreviewInvoice.Parent.SubscriptionDetail.PauseCollection.behavior
fromstring
toenum('keep_as_draft'|'mark_uncollectible'|'void')
-
Change
CreditNote.refunds
to be required -
Change
Invoice.amount_overpaid
andQuotePreviewInvoice.amount_overpaid
to be required -
Change type of
InvoicePayment.is_default
fromnullable(boolean)
toboolean
-
Change type of
PaymentAttemptRecord.PaymentMethodDetail.custom
andPaymentRecord.PaymentMethodDetail.custom
fromnullable(PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails)
toPaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails
-
Change
PaymentRecord.ReportPaymentParams.payment_reference
to be optional -
#1476 Update add_beta_version logic
⚠️ stripe.add_beta_versionwill use the highest version number used for a beta feature instead of raising an
Exception` on a conflict as it had done previously.
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