Skip to content

Releases: stripe/stripe-python

v12.1.0b2

10 Apr 19:26
Compare
Choose a tag to compare
v12.1.0b2 Pre-release
Pre-release
  • #1489 Update generated code for beta

    Breaking changes

    • Change type of V2MoneyManagementReceivedDebit.status_transitions from an object to nullable(an object)
    • Remove support for values bank_accounts.local_uk, bank_accounts.wire_uk, cards_uk, and crypto_wallets_v2 from enum EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability

    Additions

    • Add support for new resources Privacy.RedactionJobRootObjects, Privacy.RedactionJobValidationError, and Privacy.RedactionJob
    • Add support for cancel, create, list, modify, retrieve, run, and validate methods on resource RedactionJob
    • Add support for list and retrieve methods on resource RedactionJobValidationError
    • Add support for minority_owned_business_designation on Account.BusinessProfile, Account.CreateParamsBusinessProfile, and Account.UpdateParamsBusinessProfile
    • Add support for new value verification_legal_entity_structure_mismatch on enums Account.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, and BankAccount.Requirement.Error.code
    • Add support for export_tax_transactions and payment_disputes on AccountSession.CreateParamsComponent
    • Add support for new value tax_id_prohibited on enums Invoice.LastFinalizationError.code, PaymentIntent.LastPaymentError.code, QuotePreviewInvoice.LastFinalizationError.code, SetupAttempt.SetupError.code, SetupIntent.LastSetupError.code, and StripeError.code
    • Add support for new value fixed_term_loan on enum CapitalFinancingOffer.type
    • Add support for wallet_options on CheckoutSession and checkout.Session.CreateParams
    • Add support for new values privacy.redaction_job.canceled, privacy.redaction_job.created, privacy.redaction_job.ready, privacy.redaction_job.succeeded, and privacy.redaction_job.validation_error on enum Event.type
    • Add support for klarna on PaymentMethodDomain
    • Change type of TaxCalculationLineItem.reference from nullable(string) to string
    • Add support for in on TaxRegistration.CountryOption and tax.Registration.CreateParamsCountryOption
    • Add support for new values privacy.redaction_job.canceled, privacy.redaction_job.created, privacy.redaction_job.ready, privacy.redaction_job.succeeded, and privacy.redaction_job.validation_error on enums WebhookEndpoint.CreateParams.enabled_events and WebhookEndpoint.UpdateParams.enabled_events
  • #1490 Handle external account

    • Changes external_account field in external_account_service.create from string to a union type.

See the changelog for more details.

v12.1.0b1

02 Apr 21:51
Compare
Choose a tag to compare
v12.1.0b1 Pre-release
Pre-release

This release changes the pinned API version to 2025-03-31.preview

Breaking changes:

  • Remove support for AmountOverpaid on InvoicePayment
  • Remove support for values out_of_band_payment and payment_record from enum InvoicePayment.Payment.type
  • Remove support for RateCardSubscriptionDetails on InvoiceItemParent
  • Remove support for ApplicationFeeAmount, PaidOutOfBand, and Paid on QuotePreviewInvoice
  • Remove support for billing_thresholds on QuotePreviewSubscriptionSchedule.DefaultSetting, QuotePreviewSubscriptionSchedule.Phase.Item, and QuotePreviewSubscriptionSchedule.Phase
  • Remove support for coupon on QuotePreviewSubscriptionSchedule.Phase
  • Change type of QuotePreviewInvoice.Parent.SubscriptionDetail.subscription from string to expandable($Subscription)
  • Change CheckoutSession.Permission.update to be optional
  • Change type of PaymentAttemptRecord.PaymentMethodDetail.type and PaymentRecord.PaymentMethodDetail.type from literal('custom') to string
  • Change type of PaymentAttemptRecord.payment_record from string to nullable(string)
  • Change PaymentAttemptRecord.PaymentMethodDetail.custom and PaymentRecord.PaymentMethodDetail.custom to be optional
  • Change type of PaymentRecord.latest_payment_attempt_record from string to nullable(string)
  • Change type of Order.CreateParamsPaymentSettingPaymentMethodOptionWechatPay.client and Order.UpdateParamsPaymentSettingPaymentMethodOptionWechatPay.client to be optional

Additions

  • Add support for payment_method_options on ConfirmationToken.CreateParams
  • Add support for installments on ConfirmationToken.PaymentMethodOption.Card
  • Add support for billie on PaymentIntent.ConfirmParamsPaymentMethodOption, PaymentIntent.CreateParamsPaymentMethodOption, PaymentIntent.PaymentMethodOption, and PaymentIntent.UpdateParamsPaymentMethodOption
  • Add support for update_line_items on CheckoutSession.Permission and checkout.Session.CreateParamsPermission
  • Add support for new resources BalanceSettings
  • Add support for modify and retrieve methods on resource BalanceSettings
  • Add support for create, delete, list, modify, and retrieve methods on a new ExternalAccountService to access cards and bank accounts made available in the new path v1/external_accounts
  • Add support for stripe_balance_payments on Account.Capability, Account.CreateParamsCapability, and Account.UpdateParamsCapability
  • Add support for new values stripe_balance_payment_debit_reversal and stripe_balance_payment_debit on enum BalanceTransaction.type
  • Add support for customer_account on BillingCreditBalanceSummary, 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, and financialconnections.Session.CreateParamsAccountHolder
  • Add support for stripe_balance on Charge.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, and SetupIntent.UpdateParamsPaymentMethodDatum
  • Add support for update_shipping_details on CheckoutSession.Permission and checkout.Session.CreateParamsPermission
  • Add support for provider on CheckoutSession.AutomaticTax, Invoice.AutomaticTax, Quote.AutomaticTax, and QuotePreviewInvoice.AutomaticTax
  • Add support for tax_calculation_reference on CreditNoteLineItem, CreditNotePreviewLines, InvoiceLineItem, LineItem, PaymentLinkLineItem, QuoteComputedUpfrontLineItems, QuoteLineItem, and SessionLineItem
  • Add support for context on Event
  • Add support for related_customer_account on IdentityVerificationSession, identity.VerificationSession.CreateParams, and identity.VerificationSession.ListParams
  • Add support for payout_method on Payout.CreateParams and Payout
  • Add support for confirmation_secret, parent, and total_taxes on QuotePreviewInvoice
  • Add support for new values forwarding_api_retryable_upstream_error, setup_intent_mobile_wallet_unsupported, v2_account_disconnection_unsupported, and v2_account_missing_configuration on enum QuotePreviewInvoice.LastFinalizationError.code
  • Add support for new values klarna, nz_bank_account, and stripe_balance on enum QuotePreviewInvoice.PaymentSetting.payment_method_types
  • Add support for id and text on TerminalReader.Action.CollectInput.Input.Selection.Choice, TerminalReader.Action.CollectInput.Input.Selection, and terminal.Reader.CollectInputsParamsInputSelectionChoice
  • Add support for network_data on IssuingDisputeSettlementDetail
  • Add support for interchange_fees_amount, net_total_amount, network_fees_amount, other_fees_amount, other_fees_count, and transaction_amount on IssuingSettlement
  • Add support for reported_by on PaymentAttemptRecord

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, and billingportal.Session.CreateParams.customer to be optional

  • Change type of Invoice.Parent.SubscriptionDetail.PauseCollection.behavior and QuotePreviewInvoice.Parent.SubscriptionDetail.PauseCollection.behavior from string to enum('keep_as_draft'|'mark_uncollectible'|'void')

  • Change CreditNote.refunds to be required

  • Change Invoice.amount_overpaid and QuotePreviewInvoice.amount_overpaid to be required

  • Change type of InvoicePayment.is_default from nullable(boolean) to boolean

  • Change type of PaymentAttemptRecord.PaymentMethodDetail.custom and PaymentRecord.PaymentMethodDetail.custom from nullable(PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails) to PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails

  • 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 anException` on a conflict as it had done previously.

See the changelog for more details.

v12.0.0

01 Apr 21:09
Compare
Choose a tag to compare
  • #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 API

    Please review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.

    • Remove support for resources SubscriptionItemUsageRecordSummary and SubscriptionItemUsageRecord
    • Remove support for create method on resource SubscriptionItemUsageRecord
    • Remove support for list method on resource SubscriptionItemUsageRecordSummary
    • Remove support for upcomingLines and upcoming methods on resource Invoice
    • Remove support for invoice on Charge and PaymentIntent
    • Remove support for shipping_details on CheckoutSession
    • Remove support for carrier, phone, and tracking_number on CheckoutSession.CollectedInformation.ShippingDetail
    • Remove support for refund on CreditNote.CreateParams, CreditNote.PreviewParams, CreditNotePreviewLines.ListParams, and CreditNote
    • Remove support for tax_amounts on CreditNoteLineItem, CreditNote, and InvoiceLineItem
    • Remove support for amount_excluding_tax and unit_amount_excluding_tax on CreditNoteLineItem and InvoiceLineItem
    • Remove support for coupon on Customer.CreateParams, Customer.UpdateParams, Invoice.CreatePreviewParamsScheduleDetailPhase, Invoice.CreatePreviewParams, Subscription.CreateParams, Subscription.UpdateParams, SubscriptionSchedule.CreateParamsPhase, SubscriptionSchedule.Phase, and SubscriptionSchedule.UpdateParamsPhase
    • Remove support for promotion_code on Customer.CreateParams, Customer.UpdateParams, Subscription.CreateParams, and Subscription.UpdateParams
    • Remove support for price on Invoice.AddLinesParamsLine, Invoice.UpdateLinesParamsLine, InvoiceItem.CreateParams, InvoiceItem.UpdateParams, InvoiceItem, InvoiceLineItem.UpdateParams, and InvoiceLineItem
    • Remove support for billing_thresholds on Invoice.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, and Subscription
    • 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, and transfer_data on Invoice
    • Remove support for discount on Invoice and Subscription
    • Remove support for invoice_item, proration_details, proration, tax_rates, and type on InvoiceLineItem
    • Remove support for plan and subscription_item on InvoiceItem and InvoiceLineItem
    • Remove support for unit_amount on InvoiceItem.CreateParams, InvoiceItem.UpdateParams, and InvoiceItem
    • Remove support for subscription and unit_amount_decimal on InvoiceItem
    • Remove support for naver_pay on PaymentMethod.UpdateParams
    • Remove support for aggregate_usage on Plan.CreateParams, Plan, Price.CreateParamsRecurring, and Price.Recurring
    • Remove support for current_period_end and current_period_start on Subscription
    • Remove support for page on v2.Event.ListParams and v2.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, and PaymentIntent.UpdateParamsPaymentMethodOptionWechatPay.client to be optional
    • Change political_exposure on resources Person and Token and params Token.CreateParams from string to enum("existing" | "none")

    Additions

    • Add support for new resource InvoicePayment
    • Add support for list and retrieve methods on resource InvoicePayment
    • Add support for billie_payments, nz_bank_account_becs_debit_payments, and satispay_payments on Account.Capability, Account.CreateParamsCapability, and Account.UpdateParamsCapability
    • Add support for hosted_payment_method_save on Account.Setting.Invoice and Account.UpdateParamsSettingInvoice
    • Add support for invoices on Account.CreateParamsSetting
    • Add support for new values information_missing, invalid_signator, verification_failed_authorizer_authority, and verification_rejected_ownership_exemption_reason on enums Account.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, and BankAccount.Requirement.Error.code
    • Add support for new values forwarding_api_retryable_upstream_error and setup_intent_mobile_wallet_unsupported on enums Invoice.LastFinalizationError.code, PaymentIntent.LastPaymentError.code, SetupAttempt.SetupError.code, SetupIntent.LastSetupError.code, and StripeError.code
    • Add support for new values stripe_balance_payment_debit_reversal and stripe_balance_payment_debit on enum BalanceTransaction.type
    • Add support for new value last on enums BillingMeter.DefaultAggregation.formula and billing.Meter.CreateParamsDefaultAggregation.formula
    • Add support for presentment_details on Charge, CheckoutSession, PaymentIntent, and Refund
    • Add support for billie and satispay on Charge.PaymentMethodDetail, ConfirmationToken.CreateParamsPaymentMethodDatum, ConfirmationToken.PaymentMethodPreview, CustomerPaymentMethod, PaymentIntent.ConfirmParamsPaymentMethodDatum, PaymentIntent.CreateParamsPaymentMethodDatum, PaymentIntent.UpdateParamsPaymentMethodDatum, PaymentMethod.CreateParams, PaymentMethodConfiguration.CreateParams, PaymentMethodConfiguration.UpdateParams, PaymentMethodConfiguration, PaymentMethod, SetupIntent.ConfirmParamsPaymentMethodDatum, SetupIntent.CreateParamsPaymentMethodDatum, and SetupIntent.UpdateParamsPaymentMethodDatum
    • Add support for nz_bank_account on Charge.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, and SetupIntent.UpdateParamsPaymentMethodDatum
    • Add support for optional_items on CheckoutSession, PaymentLink.CreateParams, PaymentLink, and checkout.Session.CreateParams
    • Add support for permissions on CheckoutSession and checkout.Session.CreateParams
    • Add support for new values billie and satispay on enum checkout.Session.CreateParams.payment_method_types
    • Add support for new value custom on enums CheckoutSession.ui_mode and checkout.Session.CreateParams.ui_mode
    • Add support for shipping_options on checkout.Session.UpdateParams
    • Add support for new values billie, nz_bank_account, and satispay on enums ConfirmationToken.CreateParamsPaymentMethodDatum.type, PaymentIntent.ConfirmParamsPaymentMethodDatum.type, PaymentIntent.CreateParamsPaymentMethodDatum.type, PaymentIntent.UpdateParamsPaymentMethodDatum.type, SetupIntent.ConfirmParamsPaymentMethodDatum.type, SetupIntent.CreateParamsPaymentMethodDatum.type, and SetupIntent.UpdateParamsPaymentMethodDatum.type
    • Add support for buyer_id on ConfirmationToken.PaymentMethodPreview.NaverPay, CustomerPaymentMethod.NaverPay, and PaymentMethod.NaverPay
    • Add support for new values billie, nz_bank_account, and satispay on enums ConfirmationToken.PaymentMethodPreview.type, CustomerPaymentMethod.type, and PaymentMethod.type
    • Add support for refunds on CreditNote.CreateParams, CreditNote.PreviewParams, CreditNotePreviewLines.ListParams, and CreditNote
    • Add support for total_taxes on CreditNote and Invoice
    • Add support for taxes on CreditNoteLineItem and InvoiceLineItem
    • Add support for checkout_session on CustomerBalanceTransaction
    • Add support for new values checkout_session_subscription_payment_canceled and checkout_session_subscription_payment on enum CustomerBalanceTransaction.type
    • Add support for new values billie, nz_bank_account, and satispay on enums CustomerPaymentMethod.ListParams.type, PaymentMethod.CreateParams.type, and `PaymentMethod...
Read more

v11.7.0b1

18 Mar 20:36
Compare
Choose a tag to compare
v11.7.0b1 Pre-release
Pre-release
  • #1469 Beta SDK updates between Open API versions 1473 and 1505

    • Add support for target_date on parameter classes stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit, stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit, stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit, and stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit and resource classes stripe.Order.Payment.Settings.PaymentMethodOptions.AcssDebit and stripe.Order.Payment.Settings.PaymentMethodOptions.SepaDebit
    • Add support for succeed_input_collection and timeout_input_collection on resource stripe.terminal.Reader
  • #1467 Merge python-beta

See the changelog for more details.

v11.6.0

24 Feb 22:36
Compare
Choose a tag to compare
  • #1450 Update generated code
    • Add support for target_date on parameter classes stripe.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, and stripe.checkout.Session.CreateParamsPaymentMethodOptionsUsBankAccount and resource classes stripe.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, and stripe.checkout.Session.PaymentMethodOptions.UsBankAccount
    • Add support for metadata on parameter class stripe.Product.CreateParamsDefaultPriceData
    • Add support for prices on parameter classes stripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope and stripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope and resource class stripe.billing.CreditGrant.ApplicabilityConfig.Scope
    • Add support for priority on parameter class stripe.billing.CreditGrant.CreateParams and resource stripe.billing.CreditGrant
    • Add support for restrictions on parameter class stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard and resource class stripe.checkout.Session.PaymentMethodOptions.Card
    • Add support for collected_information on parameter class stripe.checkout.Session.ModifyParams and resource stripe.checkout.Session
    • Change type of price_type on stripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope and stripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope from Literal['metered'] to NotRequired[Literal['metered']]
    • Change type of price_type on stripe.billing.CreditGrant.ApplicabilityConfig.Scope from Literal['metered'] to Optional[Literal['metered']]
    • Add support for 2025-02-24.acacia on enum stripe.WebhookEndpoint.CreateParams.api_version
  • #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 class stripe.Account.Capabilities and parameter class stripe.Account.CreateParamsCapabilities
    • Add support for directorship_declaration on resource class stripe.Account.Company and parameter classes stripe.Account.CreateParamsCompany and stripe.Token.CreateParamsAccountCompany
    • Add support for ownership_exemption_reason on resource class stripe.Account.Company and parameter classes stripe.Account.CreateParamsCompany and stripe.Token.CreateParamsAccountCompany
    • Add support for proof_of_ultimate_beneficial_ownership on parameter class stripe.Account.CreateParamsDocuments
    • Add support for financial_account on resource classes stripe.AccountSession.Components and stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for issuing_card on resource class stripe.AccountSession.Components and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for advice_code on resource classes stripe.Charge.Outcome, stripe.Invoice.LastFinalizationError, stripe.PaymentIntent.LastPaymentError, stripe.SetupAttempt.SetupError, and stripe.SetupIntent.LastSetupError
    • Add support for country on resource classes stripe.Charge.PaymentMethodDetails.Paypal, stripe.ConfirmationToken.PaymentMethodPreview.Paypal, and stripe.PaymentMethod.Paypal
    • Add support for pay_by_bank 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.PaymentMethodConfiguration.CreateParams, stripe.PaymentMethodConfiguration.ModifyParams, stripe.SetupIntent.ConfirmParamsPaymentMethodData, stripe.SetupIntent.CreateParamsPaymentMethodData, stripe.SetupIntent.ModifyParamsPaymentMethodData, and stripe.checkout.Session.CreateParamsPaymentMethodOptions, and resources stripe.PaymentMethod and stripe.PaymentMethodConfiguration
    • Add support for phone_number_collection on parameter class stripe.PaymentLink.ModifyParams
    • Add support for discounts on resource stripe.checkout.Session
    • Add support for jpy on parameter classes stripe.terminal.Configuration.CreateParamsTipping and stripe.terminal.Configuration.ModifyParamsTipping and resource class stripe.terminal.Configuration.Tipping
    • Add support for nickname on parameter classes stripe.treasury.FinancialAccount.CreateParams and stripe.treasury.FinancialAccount.ModifyParams and resource stripe.treasury.FinancialAccount
    • Add support for forwarding_settings on parameter class stripe.treasury.FinancialAccount.ModifyParams
    • Add support for _cls_close on resource stripe.treasury.FinancialAccount
    • Add support for close on resource stripe.treasury.FinancialAccount
    • Add support for is_default on resource stripe.treasury.FinancialAccount
    • Add support for destination_payment_method_data on parameter class stripe.treasury.OutboundTransfer.CreateParams
    • Add support for outbound_transfer on resource class stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails
    • Add support for SD on enums stripe.checkout.Session.ShippingAddressCollection.allowed_countries, stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries, stripe.PaymentLink.ShippingAddressCollection.allowed_countries, stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries, and stripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries
    • Add support for pay_by_bank 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.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, and stripe.SetupIntent.ModifyParamsPaymentMethodData.type
    • Add support for financial_account on enum stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type
    • Add support for outbound_transfer on enums stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type and stripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type
    • Add support for 2025-01-27.acacia on enum stripe.WebhookEndpoint.CreateParams.api_version
    • Change type of pretax_credit_amounts on stripe.CreditNote and stripe.CreditNoteLineItem from Optional[List[PretaxCreditAmount]] to List[PretaxCreditAmount]
  • #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/...
Read more

v11.6.0b1

07 Feb 21:47
Compare
Choose a tag to compare
v11.6.0b1 Pre-release
Pre-release
  • #1449 Update generated code for beta
    • Add support for rejected_reason on resource class stripe.Account.RiskControls
    • Add support for product_tax_code_selector on parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for brand_product on resource classes stripe.Charge.PaymentMethodDetails.AmazonPay.Funding.Card and stripe.Charge.PaymentMethodDetails.RevolutPay.Funding.Card
    • Add support for prices on parameter classes stripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope and stripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope and resource class stripe.billing.CreditGrant.ApplicabilityConfig.Scope
    • Add support for restrictions on parameter class stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard and resource class stripe.checkout.Session.PaymentMethodOptions.Card
    • Change type of political_exposure on stripe.Account.CreatePersonParams, stripe.Account.ModifyPersonParams, and stripe.Token.CreateParamsPerson from str to Literal['existing', 'none']
    • Change type of price_type on stripe.billing.CreditGrant.ApplicabilityConfig.Scope from Literal['metered'] to Optional[Literal['metered']]

See the changelog for more details.

v11.5.0

27 Jan 21:29
Compare
Choose a tag to compare

11.5.0 - 2025-01-27

  • #1443 Update generated code
    • Add support for pay_by_bank_payments on resource class stripe.Account.Capabilities and parameter class stripe.Account.CreateParamsCapabilities
    • Add support for directorship_declaration on resource class stripe.Account.Company and parameter classes stripe.Account.CreateParamsCompany and stripe.Token.CreateParamsAccountCompany
    • Add support for ownership_exemption_reason on resource class stripe.Account.Company and parameter classes stripe.Account.CreateParamsCompany and stripe.Token.CreateParamsAccountCompany
    • Add support for proof_of_ultimate_beneficial_ownership on parameter class stripe.Account.CreateParamsDocuments
    • Add support for financial_account on resource classes stripe.AccountSession.Components and stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for issuing_card on resource class stripe.AccountSession.Components and parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for advice_code on resource classes stripe.Charge.Outcome, stripe.Invoice.LastFinalizationError, stripe.PaymentIntent.LastPaymentError, stripe.SetupAttempt.SetupError, and stripe.SetupIntent.LastSetupError
    • Add support for country on resource classes stripe.Charge.PaymentMethodDetails.Paypal, stripe.ConfirmationToken.PaymentMethodPreview.Paypal, and stripe.PaymentMethod.Paypal
    • Add support for pay_by_bank 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.PaymentMethodConfiguration.CreateParams, stripe.PaymentMethodConfiguration.ModifyParams, stripe.SetupIntent.ConfirmParamsPaymentMethodData, stripe.SetupIntent.CreateParamsPaymentMethodData, stripe.SetupIntent.ModifyParamsPaymentMethodData, and stripe.checkout.Session.CreateParamsPaymentMethodOptions, and resources stripe.PaymentMethod and stripe.PaymentMethodConfiguration
    • Add support for phone_number_collection on parameter class stripe.PaymentLink.ModifyParams
    • Add support for discounts on resource stripe.checkout.Session
    • Add support for jpy on parameter classes stripe.terminal.Configuration.CreateParamsTipping and stripe.terminal.Configuration.ModifyParamsTipping and resource class stripe.terminal.Configuration.Tipping
    • Add support for nickname on parameter classes stripe.treasury.FinancialAccount.CreateParams and stripe.treasury.FinancialAccount.ModifyParams and resource stripe.treasury.FinancialAccount
    • Add support for forwarding_settings on parameter class stripe.treasury.FinancialAccount.ModifyParams
    • Add support for _cls_close on resource stripe.treasury.FinancialAccount
    • Add support for close on resource stripe.treasury.FinancialAccount
    • Add support for is_default on resource stripe.treasury.FinancialAccount
    • Add support for destination_payment_method_data on parameter class stripe.treasury.OutboundTransfer.CreateParams
    • Add support for outbound_transfer on resource class stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails
    • Add support for SD on enums stripe.checkout.Session.ShippingAddressCollection.allowed_countries, stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries, stripe.PaymentLink.ShippingAddressCollection.allowed_countries, stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries, and stripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries
    • Add support for pay_by_bank 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.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, and stripe.SetupIntent.ModifyParamsPaymentMethodData.type
    • Add support for financial_account on enum stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type
    • Add support for outbound_transfer on enums stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type and stripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type
    • Add support for 2025-01-27.acacia on enum stripe.WebhookEndpoint.CreateParams.api_version
    • Change type of pretax_credit_amounts on stripe.CreditNote and stripe.CreditNoteLineItem from Optional[List[PretaxCreditAmount]] to List[PretaxCreditAmount]
  • #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 from List[StripeObject] to List[T] where T is the specific stripe object contained within the list

See the changelog for more details.

v11.5.0b3

23 Jan 21:26
Compare
Choose a tag to compare
v11.5.0b3 Pre-release
Pre-release
  • #1447 Update generated code for beta
    • Remove support for stripe_account on resource classes stripe.terminal.Reader.Action.CollectPaymentMethod, stripe.terminal.Reader.Action.ConfirmPaymentIntent, stripe.terminal.Reader.Action.ProcessPaymentIntent, and stripe.terminal.Reader.Action.RefundPayment

See the changelog for more details.

v11.5.0b2

18 Jan 00:33
Compare
Choose a tag to compare
v11.5.0b2 Pre-release
Pre-release
  • #1439 Update generated code for beta
    • Add support for pay_by_bank_payments on resource class stripe.Account.Capabilities and parameter class stripe.Account.CreateParamsCapabilities
    • Add support for directorship_declaration on parameter classes stripe.Account.CreateParamsCompany and stripe.Token.CreateParamsAccountCompany
    • Add support for proof_of_ultimate_beneficial_ownership on parameter class stripe.Account.CreateParamsDocuments
    • Add support for financial_account on resource class stripe.AccountSession.Components
    • Add support for issuing_card on resource class stripe.AccountSession.Components
    • Add support for tax_threshold_monitoring on parameter class stripe.AccountSession.CreateParamsComponents
    • Add support for pay_by_bank 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.PaymentMethodConfiguration.CreateParams, stripe.PaymentMethodConfiguration.ModifyParams, stripe.SetupIntent.ConfirmParamsPaymentMethodData, stripe.SetupIntent.CreateParamsPaymentMethodData, stripe.SetupIntent.ModifyParamsPaymentMethodData, and stripe.checkout.Session.CreateParamsPaymentMethodOptions, and resources stripe.PaymentMethod and stripe.PaymentMethodConfiguration
    • Add support for discounts on resource stripe.checkout.Session
    • Add support for jpy on parameter classes stripe.terminal.Configuration.CreateParamsTipping and stripe.terminal.Configuration.ModifyParamsTipping and resource class stripe.terminal.Configuration.Tipping
    • Add support for always_invoice on enums stripe.billing_portal.Configuration.Features.SubscriptionCancel.proration_behavior, stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionCancel.proration_behavior, and stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionCancel.proration_behavior
    • Add support for SD on enums stripe.checkout.Session.ShippingAddressCollection.allowed_countries, stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries, stripe.PaymentLink.ShippingAddressCollection.allowed_countries, stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries, and stripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries
    • Add support for pay_by_bank 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.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, and stripe.SetupIntent.ModifyParamsPaymentMethodData.type
    • Add support for 2025-01-27.acacia on enum stripe.WebhookEndpoint.CreateParams.api_version

See the changelog for more details.

v11.5.0b1

09 Jan 21:40
Compare
Choose a tag to compare
v11.5.0b1 Pre-release
Pre-release
  • #1433 Update generated code for beta
    • Add support for directorship_declaration on resource class stripe.Account.Company
    • Add support for ownership_exemption_reason on resource class stripe.Account.Company and parameter classes stripe.Account.CreateParamsCompany and stripe.Token.CreateParamsAccountCompany
    • Add support for brand_product on resource stripe.Card and resource classes stripe.Source.Card, stripe.Source.CardPresent, and stripe.Source.ThreeDSecure
    • Add support for advice_code on resource classes stripe.Charge.Outcome, stripe.Invoice.LastFinalizationError, stripe.PaymentIntent.LastPaymentError, stripe.QuotePreviewInvoice.LastFinalizationError, stripe.SetupAttempt.SetupError, and stripe.SetupIntent.LastSetupError
    • Add support for country on resource classes stripe.Charge.PaymentMethodDetails.Paypal, stripe.ConfirmationToken.PaymentMethodPreview.Paypal, and stripe.PaymentMethod.Paypal
    • Add support for phone_number_collection on parameter class stripe.PaymentLink.ModifyParams
    • Add support for nickname on parameter classes stripe.treasury.FinancialAccount.CreateParams and stripe.treasury.FinancialAccount.ModifyParams and resource stripe.treasury.FinancialAccount
    • Add support for forwarding_settings on parameter class stripe.treasury.FinancialAccount.ModifyParams
    • Add support for _cls_close on resource stripe.treasury.FinancialAccount
    • Add support for close on resource stripe.treasury.FinancialAccount
    • Add support for is_default on resource stripe.treasury.FinancialAccount
    • Add support for destination_payment_method_data on parameter class stripe.treasury.OutboundTransfer.CreateParams
    • Add support for financial_account on resource class stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails
    • Add support for outbound_transfer on resource class stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails
    • Remove support for always_invoice on enums stripe.billing_portal.Configuration.Features.SubscriptionCancel.proration_behavior, stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionCancel.proration_behavior, and stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionCancel.proration_behavior
    • Add support for al_tin on enums stripe.checkout.Session.CollectedInformation.TaxId.type, stripe.Order.TaxDetails.TaxId.type, stripe.Order.CreateParamsTaxDetailsTaxId.type, stripe.Order.ModifyParamsTaxDetailsTaxId.type, and stripe.QuotePreviewInvoice.CustomerTaxId.type
    • Add support for financial_account on enum stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type
    • Add support for outbound_transfer on enums stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type and stripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type
    • Change type of pretax_credit_amounts on stripe.CreditNote and stripe.CreditNoteLineItem from Optional[List[PretaxCreditAmount]] to List[PretaxCreditAmount]

See the changelog for more details.