Update generated code for beta#2587
Merged
stripe-openapi[bot] merged 12 commits intobetafrom Mar 23, 2026
Merged
Conversation
6903158 to
f097291
Compare
90e1fba to
4eaebca
Compare
update supported versions
* refactor error handling to match python * remove comments, unused error type * fix tests * fix tests even better
Update generated code for v2204 and Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Prathmesh Ranaut <165320323+prathmesh-stripe@users.noreply.github.com>
Add errors when parsing the wrong kind of webhooks payload
ramya-stripe
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codegen for openapi v2205 and proto spec .
Changelog
ProductCatalog.TrialOffer,Tax.Location, andV2.Core.BatchJobcreatemethod on resourceProductCatalog.TrialOffercreate,list, andretrievemethods on resourceTax.Locationcancel,create, andretrievemethods on resourceV2.Core.BatchJobperformance_locationonTax.CalculationCreateParams.line_items[]andTax.CalculationLineItemperformanceon enumsTax.Calculation.shipping_cost.tax_breakdown[].sourcing,Tax.CalculationLineItem.tax_breakdown[].sourcing, andTax.Transaction.shipping_cost.tax_breakdown[].sourcingadmissions_tax,attendance_tax,entertainment_tax,gross_receipts_tax,hospitality_tax,luxury_tax,resort_tax, andtourism_taxon enumsTax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type,Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type,Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type, andTax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_typetrial_offeronInvoiceCreatePreviewParams.schedule_details.amendments[].item_actions[].add,InvoiceCreatePreviewParams.schedule_details.amendments[].item_actions[].set,InvoiceCreatePreviewParams.schedule_details.phases[].items[],QuoteCreateParams.lines[].actions[].add_item,QuoteCreateParams.lines[].actions[].set_items[],QuoteLine.actions[].add_item,QuoteLine.actions[].set_items[],QuotePreviewSubscriptionSchedule.phases[].items[],QuoteUpdateParams.lines[].actions[].add_item,QuoteUpdateParams.lines[].actions[].set_items[],SubscriptionSchedule.phases[].items[],SubscriptionScheduleAmendParams.amendments[].item_actions[].add,SubscriptionScheduleAmendParams.amendments[].item_actions[].set,SubscriptionScheduleCreateParams.phases[].items[], andSubscriptionScheduleUpdateParams.phases[].items[]risk_reservedonBalancesource_typeonCharge.payment_method_details.stripe_balance,ConfirmationToken.payment_method_preview.stripe_balance,ConfirmationTokenCreateParams.testHelpers.payment_method_data.stripe_balance,PaymentAttemptRecord.payment_method_details.stripe_balance,PaymentIntentConfirmParams.payment_method_data.stripe_balance,PaymentIntentCreateParams.payment_method_data.stripe_balance,PaymentIntentUpdateParams.payment_method_data.stripe_balance,PaymentMethod.stripe_balance,PaymentMethodCreateParams.stripe_balance,PaymentRecord.payment_method_details.stripe_balance,SetupIntentConfirmParams.payment_method_data.stripe_balance,SetupIntentCreateParams.payment_method_data.stripe_balance, andSetupIntentUpdateParams.payment_method_data.stripe_balancetax_detailsonCheckout.SessionCreateParams.line_items[].price_data.product_data,Checkout.SessionUpdateParams.line_items[].price_data.product_data,InvoiceAddLinesParams.lines[].price_data.product_data,InvoiceLineItemUpdateParams.price_data.product_data,InvoiceUpdateLinesParams.lines[].price_data.product_data,PaymentLinkCreateParams.line_items[].price_data.product_data,PlanCreateParams.product[0],PriceCreateParams.product_data,ProductCreateParams, andProductUpdateParamspending_invoice_item_intervalonCheckout.SessionUpdateParams.subscription_datahostedandui_modeonFinancialConnections.SessionCreateParamsandFinancialConnections.SessionurlonFinancialConnections.Sessionexpires_after_secondsonInvoice.payment_settings.payment_method_options.pix,InvoiceCreateParams.payment_settings.payment_method_options.pix,InvoiceUpdateParams.payment_settings.payment_method_options.pix,QuotePreviewInvoice.payment_settings.payment_method_options.pix,Subscription.payment_settings.payment_method_options.pix,SubscriptionCreateParams.payment_settings.payment_method_options.pix, andSubscriptionUpdateParams.payment_settings.payment_method_options.pixcurrent_trialonInvoiceCreatePreviewParams.subscription_details.items[],SubscriptionCreateParams.items[],SubscriptionItemCreateParams,SubscriptionItemUpdateParams,SubscriptionItem, andSubscriptionUpdateParams.items[]surchargeonPaymentIntent.amount_details,PaymentIntentCaptureParams.amount_details,PaymentIntentConfirmParams.amount_details,PaymentIntentCreateParams.amount_details,PaymentIntentIncrementAuthorizationParams.amount_details, andPaymentIntentUpdateParams.amount_detailsamount_detailsandpayment_detailsonPaymentIntentDecrementAuthorizationParamsmandate_optionsonPaymentIntent.payment_method_options.stripe_balancemanaged_paymentsonPaymentLinkCreateParamsandPaymentLinkstripe_balanceonSetupIntent.payment_method_options,SetupIntentConfirmParams.payment_method_options,SetupIntentCreateParams.payment_method_options, andSetupIntentUpdateParams.payment_method_optionsbilling_cycle_anchoronSubscription.trial_settings.end_behavior,SubscriptionCreateParams.trial_settings.end_behavior, andSubscriptionUpdateParams.trial_settings.end_behavioradmissions_tax,attendance_tax,entertainment_tax,gross_receipts_tax,hospitality_tax,luxury_tax,resort_tax, andtourism_taxon enumsTax.Registration.country_options.us.typeandTax.RegistrationCreateParams.country_options.us.typeadmissions_tax,attendance_tax,entertainment_tax,gross_receipts_tax,hospitality_tax,luxury_tax,resort_tax, andtourism_taxonTax.Registration.country_options.usrequirementsonTaxCodeV2.Billing.Cadence.settings_data.collection.payment_method_options.card.mandate_options.amount,V2.Billing.CollectionSetting.payment_method_options.card.mandate_options.amount,V2.Billing.CollectionSettingCreateParams.payment_method_options.card.mandate_options.amount,V2.Billing.CollectionSettingUpdateParams.payment_method_options.card.mandate_options.amount, andV2.Billing.CollectionSettingVersion.payment_method_options.card.mandate_options.amountfromlongIntegertoint64_stringar_bank_account,co_bank_account, andeg_bank_accounton enumV2.Core.Account.configuration.recipient.default_outbound_destination.typetimezoneonV2.Core.Account.defaults,V2.Core.AccountCreateParams.defaults, andV2.Core.AccountUpdateParams.defaultsazure_event_gridonV2.Core.EventDestinationCreateParamsandV2.Core.EventDestinationno_azure_partner_topic_existson enumV2.Core.EventDestination.status_details.disabled.reasonazure_event_gridon enumsV2.Core.EventDestination.typeandV2.Core.EventDestinationCreateParams.typesupported_currenciesonV2.Core.Vault.GbBankAccount,V2.Core.Vault.UsBankAccount, andV2.MoneyManagement.PayoutMethod.cardV2.Core.Vault.GbBankAccount.sort_codeandV2.Core.Vault.GbBankAccountCreateParams.sort_codeto be optionalrestrictedonV2.MoneyManagement.PayoutMethodcurrenciesonV2.MoneyManagement.PayoutMethodsBankAccountSpec.countries.value.fields[]counterpartyanddescriptiononV2.MoneyManagement.TransactioncurrencyonV2.Core.Vault.GbBankAccountCreateParams,V2.Core.Vault.UsBankAccountCreateParams,V2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data.bank_account,V2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data.card,V2.MoneyManagement.OutboundSetupIntentUpdateParams.payout_method_data.bank_account, andV2.MoneyManagement.OutboundSetupIntentUpdateParams.payout_method_data.cardibanonV2.Core.Vault.GbBankAccountCreateParamsV2.Core.Vault.GbBankAccountCreateParams.account_numberto be optionalcurrencyon enumInvalidPaymentMethodError.invalid_paramV2CoreBatchJobBatchFailedEvent,V2CoreBatchJobCanceledEvent,V2CoreBatchJobCompletedEvent,V2CoreBatchJobCreatedEvent,V2CoreBatchJobReadyForUploadEvent,V2CoreBatchJobTimeoutEvent,V2CoreBatchJobUpdatedEvent,V2CoreBatchJobUploadTimeoutEvent,V2CoreBatchJobValidatingEvent, andV2CoreBatchJobValidationFailedEventwith related objectV2.Core.BatchJobservice_period_coupon_with_metered_tiered_item_unsupportedonQuotePreviewInvoice.last_finalization_error