Skip to content

Releases: stripe/stripe-python

v11.2.0b1

03 Oct 23:44
Compare
Choose a tag to compare
v11.2.0b1 Pre-release
Pre-release
  • #1407 Updates beta branch with changes in master & update generated code
    • Add support for reporting_chart on parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for total_pretax_credit_amounts on resource stripe.QuotePreviewInvoice
    • Add support for allow_redisplay on parameter class stripe.terminal.Reader.CollectPaymentMethodParamsCollectConfig
    • Remove support for from_schedule on resource class stripe.Quote.SubscriptionData
    • Move raw_request and related methods from _raw_request module to the StripeClient class
    • Remove _preview module; use raw request methods in the StripeClient class instead

See the changelog for more details.

v11.1.0

03 Oct 22:50
Compare
Choose a tag to compare
  • #1409 Update the class for ThinEvent to include livemode
  • #1408 Update generated code
    • Remove the support for resource Margin that was accidentally made public in the last release

See the changelog for more details.

v11.0.0

01 Oct 18:35
Compare
Choose a tag to compare
  • #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 Upgrade Guide and carefully review the API changes before upgrading.

    ⚠️ Breaking changes due to changes in the API

    • Rename for usage_threshold_config to usage_threshold on parameter class stripe.billing.Alert.CreateParams and resource stripe.billing.Alert
    • Remove support for filter on parameter class stripe.billing.Alert.CreateParams and resource stripe.billing.Alert. Use the filters on the usage_threshold instead
      • Remove support for customer_consent_collected on parameter class stripe.terminal.Reader.ProcessSetupIntentParams

    ⚠️ 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
    • Add method parse_thin_event() on the StripeClient class to parse thin events. Rename construct_event() method on the same class to parse_snapshot_event() to clearly distinguish between the two kinds of events.

    Additions

    • Add support for custom_unit_amount on parameter class stripe.Product.CreateParamsDefaultPriceData
    • Add support for usage_threshold on parameter class stripe.billing.Alert.CreateParams and resource stripe.billing.Alert
    • Add support for allow_redisplay on parameter classes stripe.terminal.Reader.ProcessPaymentIntentParamsProcessConfig and stripe.terminal.Reader.ProcessSetupIntentParams
    • Add support for international_transaction on enum stripe.treasury.ReceivedCredit.failure_code
    • Add support for 2024-09-30.acacia on enum stripe.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 API stripe.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.

    Other changes

    • Change type of default_allowed_updates on stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate from Union[Literal[''], List[Literal['price', 'promotion_code', 'quantity']]] to NotRequired[Literal['']|List[Literal['price', 'promotion_code', 'quantity']]]
    • Change type of products on stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate from Union[Literal[''], List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]] to NotRequired[Literal['']|List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]]

See the changelog for more details.

v10.13.0b1

18 Sep 21:52
Compare
Choose a tag to compare
v10.13.0b1 Pre-release
Pre-release
  • #1395 Update generated code for beta
    • Add support for send_money on parameter class stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures
    • Add support for transfer_balance on parameter class stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures
    • Add support for automatically_finalizes_at on resource stripe.QuotePreviewInvoice
    • Remove support for resource stripe.QuotePhase
    • Add support for rechnung on enums stripe.PaymentLink.payment_method_types, stripe.PaymentLink.CreateParams.payment_method_types, and stripe.PaymentLink.ModifyParams.payment_method_types
    • Add support for terminal_reader_invalid_location_for_activation on enum stripe.QuotePreviewInvoice.LastFinalizationError.code

See the changelog for more details.

v10.12.0

18 Sep 18:39
Compare
Choose a tag to compare
  • #1394 Update generated code
    • Add support for international_transaction on enum stripe.treasury.ReceivedDebit.failure_code
  • #1393 Update generated code
    • Add support for payer_details on resource class stripe.Charge.PaymentMethodDetails.Klarna
    • Add support for amazon_pay on resource class stripe.Dispute.PaymentMethodDetails
    • Add support for automatically_finalizes_at on resource stripe.Invoice
    • Add support for state_sales_tax on resource class stripe.tax.Registration.CountryOptions.Us and parameter class stripe.tax.Registration.CreateParamsCountryOptionsUs
    • Add support for verification_supportability on enums stripe.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, and stripe.Person.Requirements.Error.code
    • Add support for amazon_pay on enum stripe.Dispute.PaymentMethodDetails.type
    • Add support for terminal_reader_invalid_location_for_activation on enums stripe.Invoice.LastFinalizationError.code, stripe.PaymentIntent.LastPaymentError.code, stripe.SetupAttempt.SetupError.code, and stripe.SetupIntent.LastSetupError.code

See the changelog for more details.

v10.12.0b1

13 Sep 17:59
Compare
Choose a tag to compare
v10.12.0b1 Pre-release
Pre-release
  • #1389 Update generated code for beta
    • Add support for template on resource class stripe.QuotePreviewInvoice.Rendering
    • Add support for resource stripe.issuing.DisputeSettlementDetail
    • Add support for resource stripe.issuing.Settlement
    • Add support for settlement on parameter class stripe.issuing.Transaction.ListParams and resource stripe.issuing.Transaction
    • Remove support for list on resource stripe.QuotePhase
    • Add support for rechnung on enum stripe.checkout.Session.CreateParams.payment_method_types
    • Add support for issuing_dispute_settlement_detail.created on enums stripe.Event.type, stripe.WebhookEndpoint.CreateParams.enabled_events, and stripe.WebhookEndpoint.ModifyParams.enabled_events
    • Add support for issuing_dispute_settlement_detail.updated on enums stripe.Event.type, stripe.WebhookEndpoint.CreateParams.enabled_events, and stripe.WebhookEndpoint.ModifyParams.enabled_events
    • Add support for issuing_settlement.created on enums stripe.Event.type, stripe.WebhookEndpoint.CreateParams.enabled_events, and stripe.WebhookEndpoint.ModifyParams.enabled_events
    • Add support for issuing_settlement.updated on enums stripe.Event.type, stripe.WebhookEndpoint.CreateParams.enabled_events, and stripe.WebhookEndpoint.ModifyParams.enabled_events

See the changelog for more details.

v10.11.0

12 Sep 22:05
Compare
Choose a tag to compare
  • #1391 Update generated code
    • Add support for template on parameter classes stripe.Customer.CreateParamsInvoiceSettingsRenderingOptions, stripe.Customer.ModifyParamsInvoiceSettingsRenderingOptions, stripe.Invoice.CreateParamsRendering, and stripe.Invoice.ModifyParamsRendering and resource classes stripe.Customer.InvoiceSettings.RenderingOptions and stripe.Invoice.Rendering
    • Add support for resource stripe.InvoiceRenderingTemplate
    • Add support for required on parameter classes stripe.PaymentLink.CreateParamsTaxIdCollection, stripe.PaymentLink.ModifyParamsTaxIdCollection, and stripe.checkout.Session.CreateParamsTaxIdCollection and resource classes stripe.PaymentLink.TaxIdCollection and stripe.checkout.Session.TaxIdCollection
    • Add support for submitted on enum stripe.issuing.Card.Shipping.status
    • Change type of tax_amounts on stripe.InvoiceLineItem from Optional[List[TaxAmount]] to List[TaxAmount]
    • Change type of tax_rates on stripe.InvoiceLineItem from Optional[List[TaxRate]] to List[TaxRate]
    • Change type of status_details on stripe.test_helpers.TestClock from Optional[StatusDetails] to StatusDetails

See the changelog for more details.

v10.11.0b1

05 Sep 21:06
Compare
Choose a tag to compare
v10.11.0b1 Pre-release
Pre-release
  • #1387 Update generated code for beta
    • Add support for recipients on parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for resource stripe.billing.MeterErrorReport
    • Add support for business_name on resource class stripe.checkout.Session.CollectedInformation
    • Add support for tax_ids on resource class stripe.checkout.Session.CollectedInformation
    • Add support for billing.meter_error_report.triggered on enums stripe.Event.type, stripe.WebhookEndpoint.CreateParams.enabled_events, and stripe.WebhookEndpoint.ModifyParams.enabled_events
    • Add support for mb_way on enums stripe.PaymentLink.payment_method_types, stripe.PaymentLink.CreateParams.payment_method_types, and stripe.PaymentLink.ModifyParams.payment_method_types
  • #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 class stripe.checkout.Session.CollectedInformation
    • Add support for phone on resource class stripe.checkout.Session.CollectedInformation
    • Add support for regulatory_reporting_file on parameter classes stripe.issuing.CreditUnderwritingRecord.CorrectParams, stripe.issuing.CreditUnderwritingRecord.CreateFromProactiveReviewParams, and stripe.issuing.CreditUnderwritingRecord.ReportDecisionParams and resource stripe.issuing.CreditUnderwritingRecord
    • Add support for resource stripe.terminal.ReaderCollectedData
    • Remove support for rechnung on parameter class stripe.PaymentMethod.ModifyParams
    • Add support for mb_way on enum stripe.checkout.Session.CreateParams.payment_method_types
    • Add support for terminal_reader_collected_data_invalid 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.

v10.10.0

05 Sep 20:55
Compare
Choose a tag to compare
  • #1376 Update generated code
    • Add support for subscription on parameter class stripe.billing.Alert.CreateParamsFilter
    • Change type of customer_consent_collected on stripe.terminal.Reader.ProcessSetupIntentParams from bool to NotRequired[bool]

See the changelog for more details.

v10.9.0

29 Aug 22:01
Compare
Choose a tag to compare
  • #1385 Generate SDK for OpenAPI spec version 1230
    • Add support for status_details on resource stripe.test_helpers.TestClock
    • Change type of fields on stripe.AccountLink.CreateParamsCollectionOptions from Literal['currently_due', 'eventually_due'] to NotRequired[Literal['currently_due', 'eventually_due']]
    • Add support for hr_oib 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.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 issuing_regulatory_reporting on enums stripe.File.purpose, stripe.File.CreateParams.purpose, and stripe.File.ListParams.purpose

See the changelog for more details.