Skip to content

Releases: stripe/stripe-python

v9.7.0b1

09 May 19:46
Compare
Choose a tag to compare
v9.7.0b1 Pre-release
Pre-release
  • #1321 Update generated code for beta
    • No new beta features. Merging changes from the main branch.

See the changelog for more details.

v9.6.0

09 May 19:40
Compare
Choose a tag to compare
  • #1323 Update generated code
    • Add support for allow_redisplay on resource class stripe.ConfirmationToken.PaymentMethodPreview and resource stripe.PaymentMethod
    • Add support for preview_mode on parameter classes stripe.Invoice.CreatePreviewParams, stripe.Invoice.UpcomingLinesParams, and stripe.Invoice.UpcomingParams
    • Add support for _cls_update on resources stripe.treasury.OutboundPayment and stripe.treasury.OutboundTransfer
    • Add support for tracking_details on resources stripe.treasury.OutboundPayment and stripe.treasury.OutboundTransfer
    • Add support for update on resources stripe.treasury.OutboundPayment and stripe.treasury.OutboundTransfer
    • Add support for treasury.outbound_payment.tracking_details_updated on enums stripe.Event.type, stripe.WebhookEndpoint.CreateParams.enabled_events, and stripe.WebhookEndpoint.ModifyParams.enabled_events
    • Add support for treasury.outbound_transfer.tracking_details_updated on enums stripe.Event.type, stripe.WebhookEndpoint.CreateParams.enabled_events, and stripe.WebhookEndpoint.ModifyParams.enabled_events

See the changelog for more details.

v9.6.0b1

02 May 22:23
Compare
Choose a tag to compare
v9.6.0b1 Pre-release
Pre-release
  • #1318 Update generated code for beta
    • Add support for rechnung_payments on resource class stripe.Account.Capabilities and parameter class stripe.Account.CreateParamsCapabilities
    • Add support for rechnung on resource classes stripe.Charge.PaymentMethodDetails, stripe.ConfirmationToken.PaymentMethodPreview, and stripe.PaymentIntent.PaymentMethodOptions, parameter classes stripe.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, and stripe.SetupIntent.ModifyParamsPaymentMethodData, and resource stripe.PaymentMethod
    • Add support for multibanco on parameter class stripe.checkout.Session.CreateParamsPaymentMethodOptions and resource class stripe.checkout.Session.PaymentMethodOptions
    • Add support for multibanco on enum stripe.checkout.Session.CreateParams.payment_method_types
    • Add support for rechnung on enums 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, and stripe.SetupIntent.ModifyParamsPaymentMethodData.type
    • Change type of transactions on stripe.gift_cards.Card from ListObject[Transaction] to Optional[ListObject[Transaction]]

See the changelog for more details.

v9.5.0

02 May 20:56
Compare
Choose a tag to compare
  • #1317 Update generated code
    • Add support for paypal on resource class stripe.Dispute.PaymentMethodDetails
    • Add support for payment_method_types on parameter class stripe.PaymentIntent.ConfirmParams
    • Add support for ship_from_details on parameter class stripe.tax.Calculation.CreateParams and resources stripe.tax.Calculation and stripe.tax.Transaction
    • Add support for bh, eg, ge, ke, kz, ng, om on resource class stripe.tax.Registration.CountryOptions and parameter class stripe.tax.Registration.CreateParamsCountryOptions
    • Add support for paypal on enum stripe.Dispute.PaymentMethodDetails.type
    • Add support for shipping_address_invalid on enums stripe.Invoice.LastFinalizationError.code, stripe.PaymentIntent.LastPaymentError.code, stripe.SetupAttempt.SetupError.code, and stripe.SetupIntent.LastSetupError.code
    • Change type of metadata on stripe.entitlements.Feature.ModifyParams from Dict[str, str] to Literal['']|Dict[str, str]
  • #1319 Fix type change entries in Python Changelog

See the changelog for more details.

v9.5.0b1

25 Apr 20:49
Compare
Choose a tag to compare
v9.5.0b1 Pre-release
Pre-release
  • #1308 Update generated code for beta
    • Add support for payment_method_settings on parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for cancel_subscription_schedule on parameter classes stripe.Quote.CreateParamsLine and stripe.Quote.ModifyParamsLine and resource stripe.QuoteLine
    • Add support for amazon_pay on enum stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types
    • Add support for revolut_pay on enum stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types

See the changelog for more details.

v9.4.0

25 Apr 20:38
Compare
Choose a tag to compare
  • #1316 Update generated code
    • Add support for amazon_pay on resource classes stripe.Mandate.PaymentMethodDetails and stripe.SetupAttempt.PaymentMethodDetails
    • Add support for revolut_pay on resource classes stripe.Mandate.PaymentMethodDetails and stripe.SetupAttempt.PaymentMethodDetails
    • Add support for setup_future_usage on resource classes stripe.PaymentIntent.PaymentMethodOptions.AmazonPay, stripe.PaymentIntent.PaymentMethodOptions.RevolutPay, stripe.checkout.Session.PaymentMethodOptions.AmazonPay, and stripe.checkout.Session.PaymentMethodOptions.RevolutPay
    • Add support for mobilepay on parameter classes stripe.PaymentMethodConfiguration.CreateParams and stripe.PaymentMethodConfiguration.ModifyParams and resource stripe.PaymentMethodConfiguration
    • Add support for ending_before on parameter class stripe.PaymentMethodConfiguration.ListParams
    • Add support for limit on parameter class stripe.PaymentMethodConfiguration.ListParams
    • Add support for starting_after on parameter class stripe.PaymentMethodConfiguration.ListParams
    • Change type of feature on stripe.entitlements.ActiveEntitlement from str to ExpandableField[Feature]
    • Add support for amazon_pay on enums stripe.Invoice.PaymentSettings.payment_method_types, stripe.Invoice.CreateParamsPaymentSettings.payment_method_types, stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types, stripe.Subscription.PaymentSettings.payment_method_types, stripe.Subscription.CreateParamsPaymentSettings.payment_method_types, and stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types
    • Add support for revolut_pay on enums stripe.Invoice.PaymentSettings.payment_method_types, stripe.Invoice.CreateParamsPaymentSettings.payment_method_types, stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types, stripe.Subscription.PaymentSettings.payment_method_types, stripe.Subscription.CreateParamsPaymentSettings.payment_method_types, and stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types
    • Remove support for inadvertently released identity verification features email and phone on parameter classes stripe.identity.VerificationSession.CreateParamsOptions and stripe.identity.VerificationSession.ModifyParamsOptions
  • #1307 Bump aiohttp from 3.9.2 to 3.9.4

See the changelog for more details.

v9.4.0b1

18 Apr 21:45
Compare
Choose a tag to compare
v9.4.0b1 Pre-release
Pre-release
  • #1302 Update generated code for beta
    • Add support for balances on resource class stripe.AccountSession.Components and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for payouts_list on resource class stripe.AccountSession.Components and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for capital_overview on parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for tax_registrations on parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for tax_settings on parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for external_account_collection on parameter class stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures
    • Add support for allow_redisplay on parameter classes stripe.ConfirmationToken.CreateParamsPaymentMethodData, stripe.Customer.ListPaymentMethodsParams, stripe.PaymentIntent.ConfirmParamsPaymentMethodData, stripe.PaymentIntent.CreateParamsPaymentMethodData, stripe.PaymentIntent.ModifyParamsPaymentMethodData, stripe.PaymentMethod.CreateParams, stripe.PaymentMethod.ModifyParams, stripe.SetupIntent.ConfirmParamsPaymentMethodData, stripe.SetupIntent.CreateParamsPaymentMethodData, and stripe.SetupIntent.ModifyParamsPaymentMethodData
    • Add support for subscription_trial_from_plan on parameter classes stripe.Invoice.UpcomingLinesParams and stripe.Invoice.UpcomingParams
    • Add support for swish on parameter classes stripe.PaymentMethodConfiguration.CreateParams and stripe.PaymentMethodConfiguration.ModifyParams and resource stripe.PaymentMethodConfiguration
    • Add support for payment_method_data on parameter class stripe.checkout.Session.CreateParams
    • Add support for saved_payment_method_options on parameter class stripe.checkout.Session.CreateParams and resource stripe.checkout.Session
    • Add support for mobilepay on parameter class stripe.checkout.Session.CreateParamsPaymentMethodOptions and resource class stripe.checkout.Session.PaymentMethodOptions
    • Remove support for config on parameter class stripe.forwarding.Request.CreateParams and resource stripe.forwarding.Request
    • Change type of fields stripe.AccountSession.Components.PaymentDetails.Features and stripe.AccountSession.Components.Payments.Features from Optional[bool] to bool of destination_on_behalf_of_charge_management
    • Change type of field stripe.billing.MeterEvent.CreateParams from int to NotRequired[int] of timestamp
    • Add support for mobilepay on enum stripe.checkout.Session.CreateParams.payment_method_types
    • Add support for other on enums stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit, stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit, and stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit

See the changelog for more details.

v9.3.0

18 Apr 21:29
Compare
Choose a tag to compare
  • #1305 Update generated code
    • Add support for allow_redisplay on parameter classes stripe.ConfirmationToken.CreateParamsPaymentMethodData, stripe.Customer.ListPaymentMethodsParams, stripe.PaymentIntent.ConfirmParamsPaymentMethodData, stripe.PaymentIntent.CreateParamsPaymentMethodData, stripe.PaymentIntent.ModifyParamsPaymentMethodData, stripe.PaymentMethod.CreateParams, stripe.PaymentMethod.ModifyParams, stripe.SetupIntent.ConfirmParamsPaymentMethodData, stripe.SetupIntent.CreateParamsPaymentMethodData, and stripe.SetupIntent.ModifyParamsPaymentMethodData
    • Add support for schedule_details on parameter classes stripe.Invoice.UpcomingLinesParams and stripe.Invoice.UpcomingParams
    • Add support for subscription_details on parameter classes stripe.Invoice.UpcomingLinesParams and stripe.Invoice.UpcomingParams
    • Add support for create_preview on resource stripe.Invoice
    • Add support for payment_method_data on parameter class stripe.checkout.Session.CreateParams
    • Add support for saved_payment_method_options on parameter class stripe.checkout.Session.CreateParams and resource stripe.checkout.Session
    • Add support for mobilepay on parameter class stripe.checkout.Session.CreateParamsPaymentMethodOptions and resource class stripe.checkout.Session.PaymentMethodOptions
    • Add support for mobilepay on enum stripe.checkout.Session.CreateParams.payment_method_types
    • Add support for other on enums stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit, stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit, and stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit
  • #1306 Update Quote.pdf() to use the right base address i.e. files.stripe.com instead of api.stripe.com. Fixes #1303

See the changelog for more details.

v9.2.0

16 Apr 15:59
Compare
Choose a tag to compare
  • #1301 Update generated code
    • Add support for balances on resource class stripe.AccountSession.Components and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for payouts_list on resource class stripe.AccountSession.Components and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for capture_method on parameter classes stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay, stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay, and stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay and resource class stripe.PaymentIntent.PaymentMethodOptions.RevolutPay
    • Add support for swish on parameter classes stripe.PaymentMethodConfiguration.CreateParams and stripe.PaymentMethodConfiguration.ModifyParams and resource stripe.PaymentMethodConfiguration
    • Add support for resource stripe.entitlements.ActiveEntitlementSummary
    • Remove support for config on parameter class stripe.forwarding.Request.CreateParams and resource stripe.forwarding.Request. This field is no longer used by the Forwarding Request API.
    • Change type of destination_on_behalf_of_charge_management on stripe.AccountSession.Components.PaymentDetails.Features and stripe.AccountSession.Components.Payments.Features from Optional[bool] to bool
    • Change type of timestamp on stripe.billing.MeterEvent.CreateParams from int to NotRequired[int]
    • Add support for entitlements.active_entitlement_summary.updated on enums stripe.Event.type, stripe.WebhookEndpoint.CreateParams.enabled_events, and stripe.WebhookEndpoint.ModifyParams.enabled_events

See the changelog for more details.

v9.2.0b1

12 Apr 05:07
Compare
Choose a tag to compare
v9.2.0b1 Pre-release
Pre-release
  • #1296 Update generated code for beta
    • Add support for external_account_collection on resource class stripe.AccountSession.Components.AccountOnboarding.Features and parameter class stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures
    • Add support for account_management on resource class stripe.AccountSession.Components and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for notification_banner on resource class stripe.AccountSession.Components and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for amazon_pay on resource classes stripe.Charge.PaymentMethodDetails, stripe.ConfirmationToken.PaymentMethodPreview, stripe.PaymentIntent.PaymentMethodOptions, stripe.Refund.DestinationDetails, stripe.SetupIntent.PaymentMethodOptions, and stripe.checkout.Session.PaymentMethodOptions, parameter classes stripe.ConfirmationToken.CreateParamsPaymentMethodData, stripe.PaymentIntent.ConfirmParamsPaymentMethodData, stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions, stripe.PaymentIntent.CreateParamsPaymentMethodData, stripe.PaymentIntent.CreateParamsPaymentMethodOptions, stripe.PaymentIntent.ModifyParamsPaymentMethodData, stripe.PaymentIntent.ModifyParamsPaymentMethodOptions, stripe.PaymentMethod.CreateParams, stripe.PaymentMethodConfiguration.CreateParams, stripe.PaymentMethodConfiguration.ModifyParams, stripe.SetupIntent.ConfirmParamsPaymentMethodData, stripe.SetupIntent.ConfirmParamsPaymentMethodOptions, stripe.SetupIntent.CreateParamsPaymentMethodData, stripe.SetupIntent.CreateParamsPaymentMethodOptions, stripe.SetupIntent.ModifyParamsPaymentMethodData, stripe.SetupIntent.ModifyParamsPaymentMethodOptions, and stripe.checkout.Session.CreateParamsPaymentMethodOptions, and resources stripe.PaymentMethod and stripe.PaymentMethodConfiguration
    • Add support for capture_method on parameter classes stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay, stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay, and stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay and resource class stripe.PaymentIntent.PaymentMethodOptions.RevolutPay
    • Change type of field stripe.billing.MeterEventAdjustment from Cancel to Optional[Cancel] of cancel
    • Change type of field stripe.billing.MeterEventAdjustment.Cancel from str to Optional[str] of identifier
    • Change type of field stripe.billing.MeterEventAdjustment.CreateParamsCancel from str to NotRequired[str] of identifier
    • Change type of field stripe.billing.MeterEventAdjustment.CreateParams from MeterEventAdjustment.CreateParamsCancel to NotRequired[MeterEventAdjustment.CreateParamsCancel] of cancel
    • Change type of field stripe.billing.MeterEventAdjustment.CreateParams from NotRequired[Literal['cancel']] to Literal['cancel'] of type
    • Add support for bh_vat on enums 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, and stripe.TaxId.CreateParams.type
    • Add support for kz_bin on enums 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, and stripe.TaxId.CreateParams.type
    • Add support for ng_tin on enums 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, and stripe.TaxId.CreateParams.type
    • Add support for om_vat on enums 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, and stripe.TaxId.CreateParams.type
    • Add support for amazon_pay on enums stripe.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, and stripe.SetupIntent.ModifyParamsPaymentMethodData.type
    • Add support for billing_policy_remote_function_response_invalid on enums stripe.Invoice.LastFinalizationError.code, stripe.PaymentIntent.LastPaymentError.code, stripe.QuotePreviewInvoice.LastFinalizationError.code, stripe.SetupAttempt.SetupError.code, and stripe.SetupIntent.LastSetupError.code
    • Add support for billing_policy_remote_function_timeout on enums stripe.Invoice.LastFinalizationError.code, stripe.PaymentIntent.LastPaymentError.code, stripe.QuotePreviewInvoice.LastFinalizationError.code, stripe.SetupAttempt.SetupError.code, and stripe.SetupIntent.LastSetupError.code
    • Add support for billing_policy_remote_function_unexpected_status_code on enums stripe.Invoice.LastFinalizationError.code, stripe.PaymentIntent.LastPaymentError.code, stripe.QuotePreviewInvoice.LastFinalizationError.code, stripe.SetupAttempt.SetupError.code, and stripe.SetupIntent.LastSetupError.code
    • Add support for billing_policy_remote_function_unreachable on enums stripe.Invoice.LastFinalizationError.code, stripe.PaymentIntent.LastPaymentError.code, stripe.QuotePreviewInvoice.LastFinalizationError.code, stripe.SetupAttempt.SetupError.code, and stripe.SetupIntent.LastSetupError.code

See the changelog for more details.