Update generated code - #1857
Conversation
1ed938f to
1af133d
Compare
1af133d to
4c84297
Compare
|
@jar-stripe do you happen to know why this PR added |
|
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 Does that help answer your question? Sorry again for the confusion here, we definitely could have communicated that better. |
|
@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! |
|
Thanks @Viicos , that's a good call. Let me get that on my teams plate. Thanks again! |
Codegen for openapi v2349 and v2 openapi 44014016ec56efb57a8cf6d0ee0771c2e6b4eebe.
Changelog
financial_connections.Authorizationunrejectmethod on resourceAccountlistmethod on resourcePaymentRecordmass_transit_parking_taxandparking_taxon enumsTax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetail.tax_type,Tax.Calculation.TaxBreakdown.TaxRateDetail.tax_type,Tax.CalculationLineItem.TaxBreakdown.TaxRateDetail.tax_type, andTax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetail.tax_typechapson enumsFundingInstructions.BankTransfer.FinancialAddress.supported_networksandPaymentIntent.NextAction.DisplayBankTransferInstruction.FinancialAddress.supported_networkssmart_disputes_managementonAccountSession.Component.DisputesList.Feature,AccountSession.Component.Payment.Feature,AccountSession.Component.PaymentDetail.Feature,AccountSession.Component.PaymentDispute.Feature,AccountSessionCreateParamsComponentDisputesListFeature,AccountSessionCreateParamsComponentPaymentDetailFeature,AccountSessionCreateParamsComponentPaymentDisputeFeature, andAccountSessionCreateParamsComponentPaymentFeatureadministrative_addressandprincipal_place_of_businessonAccount.Company,AccountCreateParamsCompany,AccountModifyParamsCompany, andTokenCreateParamsAccountCompanysepa_debit_paymentsonAccountModifyParamsSettingproof_of_registrationonAccountCreateParamsDocumentpayouts_actiononAccountRejectParamsdata_share_onlyon enumsCharge.PaymentMethodDetail.Card.ThreeDSecure.result,PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure.result,PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure.result, andSetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.resultbnp_paribas,citibank, andmbsb_bankon enumsCharge.PaymentMethodDetail.Fpx.bank,ConfirmationToken.PaymentMethodPreview.Fpx.bank,PaymentAttemptRecord.PaymentMethodDetail.Fpx.bank,PaymentMethod.Fpx.bank, andPaymentRecord.PaymentMethodDetail.Fpx.bankdynamic_tax_ratesoncheckout.SessionCreateParamsLineItemsetup_future_usageonCheckout.Session.PaymentMethodOption.Payco,Checkout.Session.PaymentMethodOption.SamsungPay,PaymentIntent.PaymentMethodOption.Payco,PaymentIntent.PaymentMethodOption.SamsungPay,PaymentIntentConfirmParamsPaymentMethodOptionPayco,PaymentIntentConfirmParamsPaymentMethodOptionSamsungPay,PaymentIntentCreateParamsPaymentMethodOptionPayco,PaymentIntentCreateParamsPaymentMethodOptionSamsungPay,PaymentIntentModifyParamsPaymentMethodOptionPayco,PaymentIntentModifyParamsPaymentMethodOptionSamsungPay,PaymentLinkModifyParamsPaymentIntentDatum,checkout.SessionCreateParamsPaymentMethodOptionPayco, andcheckout.SessionCreateParamsPaymentMethodOptionSamsungPayic_nifon enumsCheckout.Session.CustomerDetail.TaxId.type,Invoice.CustomerTaxId.type,Tax.Calculation.CustomerDetail.TaxId.type,Tax.Transaction.CustomerDetail.TaxId.type, andTaxId.typebnp_paribas,citibank, andmbsb_bankon enumsConfirmationTokenCreateParamsPaymentMethodDatumFpx.bank,PaymentIntentConfirmParamsPaymentMethodDatumFpx.bank,PaymentIntentCreateParamsPaymentMethodDatumFpx.bank,PaymentIntentModifyParamsPaymentMethodDatumFpx.bank,PaymentMethodCreateParamsFpx.bank,SetupIntentConfirmParamsPaymentMethodDatumFpx.bank,SetupIntentCreateParamsPaymentMethodDatumFpx.bank, andSetupIntentModifyParamsPaymentMethodDatumFpx.bankic_nifon enumsCustomerCreateParamsTaxIdDatum.type,CustomerCreateTaxIdParams.type,InvoiceCreatePreviewParamsCustomerDetailTaxId.type,TaxIdCreateParams.type, andtax.CalculationCreateParamsCustomerDetailTaxId.typenetworkonDispute.PaymentMethodDetail.Cardfinancial_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, andfinancial_connections.authorization.upcoming_deactivationon enumEvent.typelimitsandmanual_entryonFinancialConnections.Sessionandfinancial_connections.SessionCreateParamsrequire_payment_method_supportonFinancialConnections.Session.Filterandfinancial_connections.SessionCreateParamsFilterbank_account_tokenonFinancialConnections.Sessionalipayandmb_wayon enumsInvoice.PaymentSetting.payment_method_types,InvoiceCreateParamsPaymentSetting.payment_method_types,InvoiceModifyParamsPaymentSetting.payment_method_types,Subscription.PaymentSetting.payment_method_types,SubscriptionCreateParamsPaymentSetting.payment_method_types, andSubscriptionModifyParamsPaymentSetting.payment_method_typesmass_transit_parking_taxandparking_taxon enumsInvoiceAddLinesParamsLineTaxAmountTaxRateDatum.tax_type,InvoiceLineItemModifyParamsTaxAmountTaxRateDatum.tax_type,InvoiceUpdateLinesParamsLineTaxAmountTaxRateDatum.tax_type,TaxRate.tax_type,TaxRateCreateParams.tax_type, andTaxRateModifyParams.tax_typemetadataonInvoiceCreatePreviewParamsSubscriptionDetailstripe_internal_erroron enumIssuing.Authorization.RequestHistory.reasonbusiness_nameonIssuing.Card.Shipping,issuing.CardCreateParamsShipping, andissuing.CardModifyParamsShippingcorreoson enumIssuing.Card.Shipping.carrierallowed_payment_method_typesonPaymentIntentConfirmParams,PaymentIntentCreateParams,PaymentIntentModifyParams,PaymentIntent,SetupIntentConfirmParams,SetupIntentCreateParams,SetupIntentModifyParams, andSetupIntentreferreronPaymentIntentConfirmParamsRadarOptionandPaymentIntentCreateParamsRadarOptionconsent_collectionandshipping_optionsonPaymentLinkModifyParamscustom_fields,description, andfooteronQuote.InvoiceSetting,QuoteCreateParamsInvoiceSetting,QuoteModifyParamsInvoiceSetting,SubscriptionSchedule.DefaultSetting.InvoiceSetting,SubscriptionSchedule.Phase.InvoiceSetting,SubscriptionScheduleCreateParamsDefaultSettingInvoiceSetting,SubscriptionScheduleCreateParamsPhaseInvoiceSetting,SubscriptionScheduleModifyParamsDefaultSettingInvoiceSetting, andSubscriptionScheduleModifyParamsPhaseInvoiceSettingcustomer_accountandcustomeronRefundpayment_methodonRefundandTopuptrialonSubscriptionSchedule.Phasemass_transit_parking_taxandparking_taxonTax.Registration.CountryOption.Meandtax.RegistrationCreateParamsCountryOptionMemass_transit_parking_taxandparking_taxon enumtax.RegistrationCreateParamsCountryOptionMe.typemass_transit_parking_taxandparking_taxon enumTax.Registration.CountryOption.Me.typeinitiated_byandpayment_method_optionsonTopupfinancial_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, andfinancial_connections.authorization.upcoming_deactivationon enumsWebhookEndpointCreateParams.enabled_eventsandWebhookEndpointModifyParams.enabled_events2026-07-29.dahliaon enumWebhookEndpointCreateParams.api_versionadditional_addressesonV2.Core.Account.Identity.BusinessDetail,v2.core.AccountCreateParamsIdentityBusinessDetail,v2.core.AccountModifyParamsIdentityBusinessDetail, andv2.core.AccountTokenCreateParamsIdentityBusinessDetailfinancial_connections.account.expected_deactivation_date_updated,financial_connections.account.supported_payment_method_types_updated, andfinancial_connections.account.upcoming_deactivationwith resourcefinancial_connections.Accountfinancial_connections.authorization.expected_deactivation_date_updatedandfinancial_connections.authorization.upcoming_deactivationwith resourcefinancial_connections.Authorization