Releases: stripe/stripe-python
Releases · stripe/stripe-python
v11.2.0b2
- #1396 Update generated code for beta
- Add support for
groups
on parameter classstripe.Account.CreateParams
and resourcestripe.Account
- Add support for
disable_stripe_user_authentication
on resource classesstripe.AccountSession.Components.AccountManagement.Features
,stripe.AccountSession.Components.AccountOnboarding.Features
,stripe.AccountSession.Components.Balances.Features
,stripe.AccountSession.Components.NotificationBanner.Features
, andstripe.AccountSession.Components.Payouts.Features
and parameter classesstripe.AccountSession.CreateParamsComponentsAccountManagementFeatures
,stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures
,stripe.AccountSession.CreateParamsComponentsBalancesFeatures
,stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures
,stripe.AccountSession.CreateParamsComponentsNotificationBannerFeatures
, andstripe.AccountSession.CreateParamsComponentsPayoutsFeatures
- Add support for
card_spend_dispute_management
on parameter classstripe.AccountSession.CreateParamsComponentsIssuingCardsListFeatures
- Add support for
spend_control_management
on parameter classstripe.AccountSession.CreateParamsComponentsIssuingCardsListFeatures
- Add support for
kakao_pay
andkr_card
on resource classesstripe.Charge.PaymentMethodDetails
,stripe.ConfirmationToken.PaymentMethodPreview
,stripe.Mandate.PaymentMethodDetails
,stripe.PaymentIntent.PaymentMethodOptions
, andstripe.SetupAttempt.PaymentMethodDetails
, parameter classesstripe.ConfirmationToken.CreateParamsPaymentMethodData
,stripe.PaymentIntent.ConfirmParamsPaymentMethodData
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions
,stripe.PaymentIntent.CreateParamsPaymentMethodData
,stripe.PaymentIntent.CreateParamsPaymentMethodOptions
,stripe.PaymentIntent.ModifyParamsPaymentMethodData
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptions
,stripe.PaymentMethod.CreateParams
,stripe.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodData
, andstripe.SetupIntent.ModifyParamsPaymentMethodData
, and resourcestripe.PaymentMethod
- Add support for
naver_pay
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.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodData
, andstripe.SetupIntent.ModifyParamsPaymentMethodData
, and resourcestripe.PaymentMethod
- Add support for
payco
andsamsung_pay
on resource classesstripe.Charge.PaymentMethodDetails
,stripe.ConfirmationToken.PaymentMethodPreview
, andstripe.PaymentIntent.PaymentMethodOptions
, parameter classesstripe.ConfirmationToken.CreateParamsPaymentMethodData
,stripe.PaymentIntent.ConfirmParamsPaymentMethodData
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions
,stripe.PaymentIntent.CreateParamsPaymentMethodData
,stripe.PaymentIntent.CreateParamsPaymentMethodOptions
,stripe.PaymentIntent.ModifyParamsPaymentMethodData
,stripe.PaymentIntent.ModifyParamsPaymentMethodOptions
,stripe.PaymentMethod.CreateParams
,stripe.SetupIntent.ConfirmParamsPaymentMethodData
,stripe.SetupIntent.CreateParamsPaymentMethodData
, andstripe.SetupIntent.ModifyParamsPaymentMethodData
, and resourcestripe.PaymentMethod
- Add support for
line_items
on parameter classesstripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsPaypal
,stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsPaypal
,stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsPaypal
,stripe.PaymentIntent.CreateParamsPaymentMethodOptionsPaypal
, andstripe.PaymentIntent.ModifyParamsPaymentMethodOptionsPaypal
and resource classesstripe.Order.Payment.Settings.PaymentMethodOptions.Paypal
andstripe.PaymentIntent.PaymentMethodOptions.Paypal
- Add support for
flat_amount
on resourcestripe.TaxRate
and resource classstripe.tax.Calculation.TaxBreakdown.TaxRateDetails
- Add support for
rate_type
on resourcestripe.TaxRate
and resource classstripe.tax.Calculation.TaxBreakdown.TaxRateDetails
- Add support for
metadata
on resourcestripe.forwarding.Request
- Add support for
_cls_submit_card
on resourcestripe.issuing.Card
- Add support for
submit_card
on resourcestripe.issuing.Card
- Add support for
by
,cr
,ec
,ma
,md
,rs
,ru
,tz
, anduz
on resource classstripe.tax.Registration.CountryOptions
and parameter classstripe.tax.Registration.CreateParamsCountryOptions
- Add support for
by_tin
,ma_vat
,md_vat
,tz_vat
,uz_tin
, anduz_vat
on enumsstripe.checkout.Session.CollectedInformation.TaxId.type
,stripe.checkout.Session.CustomerDetails.TaxId.type
,stripe.Customer.CreateParamsTaxIdDatum.type
,stripe.Customer.CreateTaxIdParams.type
,stripe.Invoice.CustomerTaxId.type
,stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type
,stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type
,stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type
,stripe.Order.TaxDetails.TaxId.type
,stripe.Order.CreateParamsTaxDetailsTaxId.type
,stripe.Order.ModifyParamsTaxDetailsTaxId.type
,stripe.QuotePreviewInvoice.CustomerTaxId.type
,stripe.tax.Calculation.CustomerDetails.TaxId.type
,stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type
,stripe.tax.Transaction.CustomerDetails.TaxId.type
,stripe.TaxId.type
, andstripe.TaxId.CreateParams.type
- Add support for
kakao_pay
,kr_card
,naver_pay
,payco
, andsamsung_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
refund.failed
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
payout_statement_descriptor_profanity
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.QuotePreviewInvoice.LastFinalizationError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
retail_delivery_fee
on enumsstripe.Invoice.AddLinesParamsLineTaxAmountTaxRateData.tax_type
,stripe.Invoice.UpdateLinesParamsLineTaxAmountTaxRateData.tax_type
,stripe.InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type
,stripe.tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type
,stripe.tax.Calculation.TaxBreakdown.TaxRateDetails.tax_type
,stripe.tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.tax_type
,stripe.tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type
,stripe.TaxRate.tax_type
,stripe.TaxRate.CreateParams.tax_type
, andstripe.TaxRate.ModifyParams.tax_type
- Add support for
expired
on enumsstripe.issuing.Authorization.status
andstripe.issuing.Authorization.ListParams.status
- Add support for
state_retail_delivery_fee
on enumsstripe.tax.Registration.CountryOptions.Us.type
andstripe.tax.Registration.CreateParamsCountryOptionsUs.type
- Add support for
v11.2.0b1
- #1407 Updates beta branch with changes in master & update generated code
- Add support for
reporting_chart
on parameter classstripe.AccountSession.CreateParamsComponents
- Add support for
total_pretax_credit_amounts
on resourcestripe.QuotePreviewInvoice
- Add support for
allow_redisplay
on parameter classstripe.terminal.Reader.CollectPaymentMethodParamsCollectConfig
- Remove support for
from_schedule
on resource classstripe.Quote.SubscriptionData
- Move
raw_request
and related methods from_raw_request
module to theStripeClient
class - Remove
_preview
module; use raw request methods in theStripeClient
class instead
- Add support for
v11.1.0
v11.0.0
-
#1404 Support for APIs in the new API version 2024-09-30.acacia
This release changes the pinned API version to
2024-09-30.acacia
. Please read the API Changelog and carefully review the API changes before upgrading.⚠️ Breaking changes due to changes in the API- Rename for
usage_threshold_config
tousage_threshold
on parameter classstripe.billing.Alert.CreateParams
and resourcestripe.billing.Alert
- Remove support for
filter
on parameter classstripe.billing.Alert.CreateParams
and resourcestripe.billing.Alert
. Use the filters on theusage_threshold
instead -
- Remove support for
customer_consent_collected
on parameter classstripe.terminal.Reader.ProcessSetupIntentParams
- Remove support for
⚠️ Other Breaking changes in the SDK- Adjusted default values for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
- max retries:
0
->2
- max timeout (seconds):
2
->5
- max retries:
Additions
- Add support for
custom_unit_amount
on parameter classstripe.Product.CreateParamsDefaultPriceData
- Add support for
usage_threshold
on parameter classstripe.billing.Alert.CreateParams
and resourcestripe.billing.Alert
- Add support for
allow_redisplay
on parameter classesstripe.terminal.Reader.ProcessPaymentIntentParamsProcessConfig
andstripe.terminal.Reader.ProcessSetupIntentParams
- Add support for
international_transaction
on enumstripe.treasury.ReceivedCredit.failure_code
- Add support for
2024-09-30.acacia
on enumstripe.WebhookEndpoint.CreateParams.api_version
- Add support for new Usage Billing APIs
stripe.v2.billing.MeterEvent
,stripe.v2.billing.MeterEventAdjustments
,stripe.v2.billing.MeterEventSession
,stripe.v2.billing.MeterEventStream
and the new Events APIstripe.v2.core.Events
under the v2 namespace - Add method rawRequest() on the
StripeClient
class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK. - Add method
parse_thin_event()
on theStripeClient
class to parse thin events.
Other changes
- Change type of
default_allowed_updates
onstripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate
fromUnion[Literal[''], List[Literal['price', 'promotion_code', 'quantity']]]
toNotRequired[Literal['']|List[Literal['price', 'promotion_code', 'quantity']]]
- Change type of
products
onstripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate
fromUnion[Literal[''], List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]]
toNotRequired[Literal['']|List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]]
- Rename for
v10.13.0b1
- #1395 Update generated code for beta
- Add support for
send_money
on parameter classstripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures
- Add support for
transfer_balance
on parameter classstripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures
- Add support for
automatically_finalizes_at
on resourcestripe.QuotePreviewInvoice
- Remove support for resource
stripe.QuotePhase
- Add support for
rechnung
on enumsstripe.PaymentLink.payment_method_types
,stripe.PaymentLink.CreateParams.payment_method_types
, andstripe.PaymentLink.ModifyParams.payment_method_types
- Add support for
terminal_reader_invalid_location_for_activation
on enumstripe.QuotePreviewInvoice.LastFinalizationError.code
- Add support for
v10.12.0
- #1394 Update generated code
- Add support for
international_transaction
on enumstripe.treasury.ReceivedDebit.failure_code
- Add support for
- #1393 Update generated code
- Add support for
payer_details
on resource classstripe.Charge.PaymentMethodDetails.Klarna
- Add support for
amazon_pay
on resource classstripe.Dispute.PaymentMethodDetails
- Add support for
automatically_finalizes_at
on resourcestripe.Invoice
- Add support for
state_sales_tax
on resource classstripe.tax.Registration.CountryOptions.Us
and parameter classstripe.tax.Registration.CreateParamsCountryOptionsUs
- Add support for
verification_supportability
on enumsstripe.Account.FutureRequirements.Error.code
,stripe.Account.Requirements.Error.code
,stripe.BankAccount.FutureRequirements.Error.code
,stripe.BankAccount.Requirements.Error.code
,stripe.Capability.FutureRequirements.Error.code
,stripe.Capability.Requirements.Error.code
,stripe.Person.FutureRequirements.Error.code
, andstripe.Person.Requirements.Error.code
- Add support for
amazon_pay
on enumstripe.Dispute.PaymentMethodDetails.type
- Add support for
terminal_reader_invalid_location_for_activation
on enumsstripe.Invoice.LastFinalizationError.code
,stripe.PaymentIntent.LastPaymentError.code
,stripe.SetupAttempt.SetupError.code
, andstripe.SetupIntent.LastSetupError.code
- Add support for
v10.12.0b1
- #1389 Update generated code for beta
- Add support for
template
on resource classstripe.QuotePreviewInvoice.Rendering
- Add support for resource
stripe.issuing.DisputeSettlementDetail
- Add support for resource
stripe.issuing.Settlement
- Add support for
settlement
on parameter classstripe.issuing.Transaction.ListParams
and resourcestripe.issuing.Transaction
- Remove support for
list
on resourcestripe.QuotePhase
- Add support for
rechnung
on enumstripe.checkout.Session.CreateParams.payment_method_types
- Add support for
issuing_dispute_settlement_detail.created
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
issuing_dispute_settlement_detail.updated
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
issuing_settlement.created
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
issuing_settlement.updated
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
v10.11.0
- #1391 Update generated code
- Add support for
template
on parameter classesstripe.Customer.CreateParamsInvoiceSettingsRenderingOptions
,stripe.Customer.ModifyParamsInvoiceSettingsRenderingOptions
,stripe.Invoice.CreateParamsRendering
, andstripe.Invoice.ModifyParamsRendering
and resource classesstripe.Customer.InvoiceSettings.RenderingOptions
andstripe.Invoice.Rendering
- Add support for resource
stripe.InvoiceRenderingTemplate
- Add support for
required
on parameter classesstripe.PaymentLink.CreateParamsTaxIdCollection
,stripe.PaymentLink.ModifyParamsTaxIdCollection
, andstripe.checkout.Session.CreateParamsTaxIdCollection
and resource classesstripe.PaymentLink.TaxIdCollection
andstripe.checkout.Session.TaxIdCollection
- Add support for
submitted
on enumstripe.issuing.Card.Shipping.status
- Change type of
tax_amounts
onstripe.InvoiceLineItem
fromOptional[List[TaxAmount]]
toList[TaxAmount]
- Change type of
tax_rates
onstripe.InvoiceLineItem
fromOptional[List[TaxRate]]
toList[TaxRate]
- Change type of
status_details
onstripe.test_helpers.TestClock
fromOptional[StatusDetails]
toStatusDetails
- Add support for
v10.11.0b1
- #1387 Update generated code for beta
- Add support for
recipients
on parameter classstripe.AccountSession.CreateParamsComponents
- Add support for resource
stripe.billing.MeterErrorReport
- Add support for
business_name
on resource classstripe.checkout.Session.CollectedInformation
- Add support for
tax_ids
on resource classstripe.checkout.Session.CollectedInformation
- Add support for
billing.meter_error_report.triggered
on enumsstripe.Event.type
,stripe.WebhookEndpoint.CreateParams.enabled_events
, andstripe.WebhookEndpoint.ModifyParams.enabled_events
- Add support for
mb_way
on enumsstripe.PaymentLink.payment_method_types
,stripe.PaymentLink.CreateParams.payment_method_types
, andstripe.PaymentLink.ModifyParams.payment_method_types
- Add support for
- #1386 Merge from master
- #1384 Merge from master after the changes to not pass api_mode from individual methods
- #1380 Update generated code for beta
- Add support for
email
on resource classstripe.checkout.Session.CollectedInformation
- Add support for
phone
on resource classstripe.checkout.Session.CollectedInformation
- Add support for
regulatory_reporting_file
on parameter classesstripe.issuing.CreditUnderwritingRecord.CorrectParams
,stripe.issuing.CreditUnderwritingRecord.CreateFromProactiveReviewParams
, andstripe.issuing.CreditUnderwritingRecord.ReportDecisionParams
and resourcestripe.issuing.CreditUnderwritingRecord
- Add support for resource
stripe.terminal.ReaderCollectedData
- Remove support for
rechnung
on parameter classstripe.PaymentMethod.ModifyParams
- Add support for
mb_way
on enumstripe.checkout.Session.CreateParams.payment_method_types
- Add support for
terminal_reader_collected_data_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
v10.10.0
- #1376 Update generated code
- Add support for
subscription
on parameter classstripe.billing.Alert.CreateParamsFilter
- Change type of
customer_consent_collected
onstripe.terminal.Reader.ProcessSetupIntentParams
frombool
toNotRequired[bool]
- Add support for