Skip to content

Update generated code - #1857

Merged
stripe-openapi[bot] merged 1 commit into
masterfrom
latest-codegen-master
Jul 29, 2026
Merged

Update generated code#1857
stripe-openapi[bot] merged 1 commit into
masterfrom
latest-codegen-master

Conversation

@stripe-openapi

@stripe-openapi stripe-openapi Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Codegen for openapi v2349 and v2 openapi 44014016ec56efb57a8cf6d0ee0771c2e6b4eebe.

Changelog

  • Add support for new resource financial_connections.Authorization
  • Add support for unreject method on resource Account
  • Add support for list method on resource PaymentRecord
  • ⚠️ Add support for new values mass_transit_parking_tax and parking_tax on enums Tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type, Tax.Calculation.TaxBreakdown.TaxRateDetail.tax_type, Tax.CalculationLineItem.TaxBreakdown.TaxRateDetail.tax_type, and Tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type
  • Add support for new value chaps on enums FundingInstructions.BankTransfer.FinancialAddress.supported_networks and PaymentIntent.NextAction.DisplayBankTransferInstruction.FinancialAddress.supported_networks
  • Add support for smart_disputes_management on AccountSession.Component.DisputesList.Feature, AccountSession.Component.Payment.Feature, AccountSession.Component.PaymentDetail.Feature, AccountSession.Component.PaymentDispute.Feature, AccountSessionCreateParamsComponentDisputesListFeature, AccountSessionCreateParamsComponentPaymentDetailFeature, AccountSessionCreateParamsComponentPaymentDisputeFeature, and AccountSessionCreateParamsComponentPaymentFeature
  • Add support for administrative_address and principal_place_of_business on Account.Company, AccountCreateParamsCompany, AccountModifyParamsCompany, and TokenCreateParamsAccountCompany
  • Add support for sepa_debit_payments on AccountModifyParamsSetting
  • ⚠️ Remove support for proof_of_registration on AccountCreateParamsDocument
  • Add support for payouts_action on AccountRejectParams
  • Add support for new value data_share_only on enums Charge.PaymentMethodDetail.Card.ThreeDSecure.result, PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure.result, PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure.result, and SetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.result
  • ⚠️ Add support for new values bnp_paribas, citibank, and mbsb_bank on enums Charge.PaymentMethodDetail.Fpx.bank, ConfirmationToken.PaymentMethodPreview.Fpx.bank, PaymentAttemptRecord.PaymentMethodDetail.Fpx.bank, PaymentMethod.Fpx.bank, and PaymentRecord.PaymentMethodDetail.Fpx.bank
  • ⚠️ Remove support for dynamic_tax_rates on checkout.SessionCreateParamsLineItem
  • Add support for setup_future_usage on Checkout.Session.PaymentMethodOption.Payco, Checkout.Session.PaymentMethodOption.SamsungPay, PaymentIntent.PaymentMethodOption.Payco, PaymentIntent.PaymentMethodOption.SamsungPay, PaymentIntentConfirmParamsPaymentMethodOptionPayco, PaymentIntentConfirmParamsPaymentMethodOptionSamsungPay, PaymentIntentCreateParamsPaymentMethodOptionPayco, PaymentIntentCreateParamsPaymentMethodOptionSamsungPay, PaymentIntentModifyParamsPaymentMethodOptionPayco, PaymentIntentModifyParamsPaymentMethodOptionSamsungPay, PaymentLinkModifyParamsPaymentIntentDatum, checkout.SessionCreateParamsPaymentMethodOptionPayco, and checkout.SessionCreateParamsPaymentMethodOptionSamsungPay
  • ⚠️ Add support for new value ic_nif on enums Checkout.Session.CustomerDetail.TaxId.type, Invoice.CustomerTaxId.type, Tax.Calculation.CustomerDetail.TaxId.type, Tax.Transaction.CustomerDetail.TaxId.type, and TaxId.type
  • Add support for new values bnp_paribas, citibank, and mbsb_bank on enums ConfirmationTokenCreateParamsPaymentMethodDatumFpx.bank, PaymentIntentConfirmParamsPaymentMethodDatumFpx.bank, PaymentIntentCreateParamsPaymentMethodDatumFpx.bank, PaymentIntentModifyParamsPaymentMethodDatumFpx.bank, PaymentMethodCreateParamsFpx.bank, SetupIntentConfirmParamsPaymentMethodDatumFpx.bank, SetupIntentCreateParamsPaymentMethodDatumFpx.bank, and SetupIntentModifyParamsPaymentMethodDatumFpx.bank
  • Add support for new value ic_nif on enums CustomerCreateParamsTaxIdDatum.type, CustomerCreateTaxIdParams.type, InvoiceCreatePreviewParamsCustomerDetailTaxId.type, TaxIdCreateParams.type, and tax.CalculationCreateParamsCustomerDetailTaxId.type
  • Add support for network on Dispute.PaymentMethodDetail.Card
  • Add support for new values financial_connections.account.expected_deactivation_date_updated, financial_connections.account.supported_payment_method_types_updated, financial_connections.account.upcoming_deactivation, financial_connections.authorization.expected_deactivation_date_updated, and financial_connections.authorization.upcoming_deactivation on enum Event.type
  • Add support for limits and manual_entry on FinancialConnections.Session and financial_connections.SessionCreateParams
  • Add support for require_payment_method_support on FinancialConnections.Session.Filter and financial_connections.SessionCreateParamsFilter
  • Add support for bank_account_token on FinancialConnections.Session
  • Add support for new values alipay and mb_way on enums Invoice.PaymentSetting.payment_method_types, InvoiceCreateParamsPaymentSetting.payment_method_types, InvoiceModifyParamsPaymentSetting.payment_method_types, Subscription.PaymentSetting.payment_method_types, SubscriptionCreateParamsPaymentSetting.payment_method_types, and SubscriptionModifyParamsPaymentSetting.payment_method_types
  • Add support for new values mass_transit_parking_tax and parking_tax on enums InvoiceAddLinesParamsLineTaxAmountTaxRateDatum.tax_type, InvoiceLineItemModifyParamsTaxAmountTaxRateDatum.tax_type, InvoiceUpdateLinesParamsLineTaxAmountTaxRateDatum.tax_type, TaxRate.tax_type, TaxRateCreateParams.tax_type, and TaxRateModifyParams.tax_type
  • Add support for metadata on InvoiceCreatePreviewParamsSubscriptionDetail
  • Add support for new value stripe_internal_error on enum Issuing.Authorization.RequestHistory.reason
  • Add support for business_name on Issuing.Card.Shipping, issuing.CardCreateParamsShipping, and issuing.CardModifyParamsShipping
  • Add support for new value correos on enum Issuing.Card.Shipping.carrier
  • Add support for allowed_payment_method_types on PaymentIntentConfirmParams, PaymentIntentCreateParams, PaymentIntentModifyParams, PaymentIntent, SetupIntentConfirmParams, SetupIntentCreateParams, SetupIntentModifyParams, and SetupIntent
  • Add support for referrer on PaymentIntentConfirmParamsRadarOption and PaymentIntentCreateParamsRadarOption
  • Add support for consent_collection and shipping_options on PaymentLinkModifyParams
  • Add support for custom_fields, description, and footer on Quote.InvoiceSetting, QuoteCreateParamsInvoiceSetting, QuoteModifyParamsInvoiceSetting, SubscriptionSchedule.DefaultSetting.InvoiceSetting, SubscriptionSchedule.Phase.InvoiceSetting, SubscriptionScheduleCreateParamsDefaultSettingInvoiceSetting, SubscriptionScheduleCreateParamsPhaseInvoiceSetting, SubscriptionScheduleModifyParamsDefaultSettingInvoiceSetting, and SubscriptionScheduleModifyParamsPhaseInvoiceSetting
  • Add support for customer_account and customer on Refund
  • Add support for payment_method on Refund and Topup
  • Add support for trial on SubscriptionSchedule.Phase
  • Add support for mass_transit_parking_tax and parking_tax on Tax.Registration.CountryOption.Me and tax.RegistrationCreateParamsCountryOptionMe
  • Add support for new values mass_transit_parking_tax and parking_tax on enum tax.RegistrationCreateParamsCountryOptionMe.type
  • ⚠️ Add support for new values mass_transit_parking_tax and parking_tax on enum Tax.Registration.CountryOption.Me.type
  • Add support for initiated_by and payment_method_options on Topup
  • Add support for new values financial_connections.account.expected_deactivation_date_updated, financial_connections.account.supported_payment_method_types_updated, financial_connections.account.upcoming_deactivation, financial_connections.authorization.expected_deactivation_date_updated, and financial_connections.authorization.upcoming_deactivation on enums WebhookEndpointCreateParams.enabled_events and WebhookEndpointModifyParams.enabled_events
  • Add support for new value 2026-07-29.dahlia on enum WebhookEndpointCreateParams.api_version
  • Add support for additional_addresses on V2.Core.Account.Identity.BusinessDetail, v2.core.AccountCreateParamsIdentityBusinessDetail, v2.core.AccountModifyParamsIdentityBusinessDetail, and v2.core.AccountTokenCreateParamsIdentityBusinessDetail
  • Add support for snapshot events financial_connections.account.expected_deactivation_date_updated, financial_connections.account.supported_payment_method_types_updated, and financial_connections.account.upcoming_deactivation with resource financial_connections.Account
  • Add support for snapshot events financial_connections.authorization.expected_deactivation_date_updated and financial_connections.authorization.upcoming_deactivation with resource financial_connections.Authorization

@stripe-openapi
stripe-openapi Bot requested a review from a team as a code owner July 29, 2026 18:18
@stripe-openapi
stripe-openapi Bot requested review from justiny-stripe and removed request for a team and justiny-stripe July 29, 2026 18:18
@stripe-openapi
stripe-openapi Bot enabled auto-merge (squash) July 29, 2026 18:19
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-master branch 3 times, most recently from 1ed938f to 1af133d Compare July 29, 2026 19:50
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-master branch from 1af133d to 4c84297 Compare July 29, 2026 20:28
@stripe-openapi
stripe-openapi Bot merged commit 8a14db6 into master Jul 29, 2026
17 checks passed
@stripe-openapi
stripe-openapi Bot deleted the latest-codegen-master branch July 29, 2026 22:50
@Viicos

Viicos commented Jul 30, 2026

Copy link
Copy Markdown

@jar-stripe do you happen to know why this PR added str as an allowed type for most of the literals? Are we expected to handle cases where the API returns something else than the documented literal values?

@jar-stripe

Copy link
Copy Markdown
Contributor

Hi @Viicos, my apologies for the confusion here! The short answer is yes, for many of our enums, you may see values outside the range of what was documented at the time of the SDK release.

Many of our enums are "open", which means that old versions of the API will see values added in newer versions of the API; for example, if we add a new error code that is important for all of our users to understand and handle, we will backport that error code value to older versions of the API.

The change to add str to the Union was to ensure that these fields have the correct type for both the values known at SDK release time and other values that may be added later. If it is helpful, the latest version of the API Reference docs (on https://docs.stripe.com) will show the allowable set of values for these enums.

Does that help answer your question? Sorry again for the confusion here, we definitely could have communicated that better.

@Viicos

Viicos commented Jul 30, 2026

Copy link
Copy Markdown

@jar-stripe thanks for the quick answer, this definitely helps. It might be worth documenting the change/motivation in https://github.com/stripe/stripe-python/releases and the changelog, it would probably help other users too!

@jar-stripe

Copy link
Copy Markdown
Contributor

Thanks @Viicos , that's a good call. Let me get that on my teams plate. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants