Update generated code for private-preview#2777
Merged
stripe-openapi[bot] merged 10 commits intoJul 8, 2026
Merged
Conversation
The v21→v22 migration dropped several types from the Stripe namespace that users reference in their code. This restores them in both the ESM and CJS entry points: StripeConfig, LatestApiVersion, HttpAgent, HttpProtocol, StripeResource, CryptoProvider, HttpClient, HttpClientResponse, RawErrorType, Webhooks, WebhookTestHeaderOptions, and Signature. Also adds regression type tests to all three testProjects to prevent future regressions. Committed-By-Agent: claude Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…a82aa85148b97398e577e5b550
exported HttpClientInterface and HttpClientResponseInterface instead of HttpClient* ; kept public APi the same
…9de9e3475f037de90b8ad91a7e
…6e6b2829f0c4c96a8b01f4c2a4
jar-stripe
approved these changes
Jul 8, 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 v2343 and v2 openapi eed9b64db4a551dcc837a073c124117f265c21d3.
Changelog
activate_gift_card,cashout_gift_card,check_gift_card_balance, andreload_gift_cardmethods on resourceTerminal.Readeradministrative_addressandprincipal_place_of_businessonAccount.companyaggregation_periodonBilling.AlertRecoveredmass_transit_parking_taxandparking_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_typebnp_paribas,citibank, andmbsb_bankon enumsCharge.payment_method_details.fpx.bank,ConfirmationToken.payment_method_preview.fpx.bank,PaymentAttemptRecord.payment_method_details.fpx.bank,PaymentMethod.fpx.bank,PaymentRecord.payment_method_details.fpx.bank, andSharedPayment.GrantedToken.payment_method_details.fpx.bankaddress_collection_precisiononCheckout.Session.automatic_taxtax_idonCheckout.Session.collected_informationtax_idsonCheckout.Session.collected_informationsetup_future_usageonCheckout.Session.payment_method_options.payco,Checkout.Session.payment_method_options.samsung_pay,PaymentIntent.payment_method_options.payco,PaymentIntent.payment_method_options.paypay,PaymentIntent.payment_method_options.samsung_pay,PaymentIntentConfirmParams.payment_method_options.paypay,PaymentIntentCreateParams.payment_method_options.paypay, andPaymentIntentUpdateParams.payment_method_options.paypaynetworkonDispute.payment_method_details.cardrequire_payment_method_supportonFinancialConnections.Session.filtersnetwork_dataonIssuing.Authorization.request_history[]acquiring_institution_country,acquiring_institution_id,retrieval_reference_number,routed_network, andtrace_idonIssuing.Transaction.network_databoku_promptpay,capchase_pay,check_scan,click_to_pay,demo_pay,duitnow,dummy_auth_push,dummy_passthrough_card,edenred,gcash,getbalance,knet,kr_market,kriya,momo,mondu,netbanking,ng_bank_transfer,ng_bank,ng_card,ng_market,ng_ussd,ng_wallet,octopus,paper_check,sequra,shop_pay,south_korea_market,test_pay,truemoney,us_cash_voucher,vipps, andweroon enumsPaymentIntentConfirmParams.allowed_payment_method_types,PaymentIntentCreateParams.allowed_payment_method_types, andPaymentIntentUpdateParams.allowed_payment_method_typescustom_fields,description, andfooteronQuote.invoice_settings,QuotePreviewSubscriptionSchedule.default_settings.invoice_settings,QuotePreviewSubscriptionSchedule.phases[].invoice_settings,SubscriptionSchedule.default_settings.invoice_settings, andSubscriptionSchedule.phases[].invoice_settingspaypayonSetupAttempt.payment_method_detailsmass_transit_parking_taxandparking_taxon enumTax.RegistrationCreateParams.country_options.us.typemass_transit_parking_taxandparking_taxonTax.Registration.country_options.usmass_transit_parking_taxandparking_taxon enumTax.Registration.country_options.us.typegift_card_brandonTerminal.ReaderCollectPaymentMethodParams.collect_configandTerminal.ReaderProcessPaymentIntentParams.process_configactivate_gift_card,cashout_gift_card,check_gift_card_balance,deactivate_gift_card, andreload_gift_cardonTerminal.Reader.actionactivate_gift_card,cashout_gift_card,check_gift_card_balance,deactivate_gift_card, andreload_gift_cardon enumTerminal.Reader.action.typestatus_transitionsonV2.Billing.Contractone_time_feesonV2.Billing.ContractCreateParamsandV2.Billing.Contractstatus_detailsonV2.Billing.ContractidandpriorityonV2.Billing.Contract.pricing_lines.data[].pricing.price_details.pricing_overrides.data[]pricing_overrideonV2.Billing.Contract.pricing_lines.data[].pricing.price_details.pricing_overrides.data[]tiering_modeandtiersonV2.Billing.Contract.pricing_lines.data[].pricing.price_details.pricing_overrides.data[].overwrite_price,V2.Billing.ContractCreateParams.pricing_lines[].pricing.price_details.pricing_overrides[].overwrite_price,V2.Billing.ContractUpdateParams.pricing_line_actions[].add.pricing.price_details.pricing_overrides[].overwrite_price,V2.Billing.ContractUpdateParams.pricing_line_actions[].update.pricing.price_details.pricing_override_actions[].add.overwrite_price, andV2.Billing.ContractUpdateParams.pricing_override_actions[].add.overwrite_pricemultiply_pricingonV2.Billing.Contract.pricing_overrides.data[],V2.Billing.ContractCreateParams.pricing_overrides[], andV2.Billing.ContractUpdateParams.pricing_override_actions[].addmultiplieronV2.Billing.Contract.pricing_overrides.data[],V2.Billing.ContractCreateParams.pricing_overrides[], andV2.Billing.ContractUpdateParams.pricing_override_actions[].addV2.Billing.Contract.pricing_overrides.data[].type,V2.Billing.ContractCreateParams.pricing_overrides[].type, andV2.Billing.ContractUpdateParams.pricing_override_actions[].add.typefromliteral('multiplier')toliteral('multiply_pricing')related_network_objectonV2.Core.AccountListParamsandV2.Core.Accountnetwork_business_profile_walleton enumV2.Core.Account.configuration.recipient.default_outbound_destination.typenetwork_business_profile_walletonV2.MoneyManagement.PayoutMethodnetwork_business_profile_walleton enumsV2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data.type,V2.MoneyManagement.OutboundSetupIntentUpdateParams.payout_method_data.type, andV2.MoneyManagement.PayoutMethod.typestripe_network_transferonV2.MoneyManagement.ReceivedCreditstripe_network_transferon enumV2.MoneyManagement.ReceivedCredit.typeone_time_feesfrom enumsV2.Billing.ContractActivateParams.include,V2.Billing.ContractCancelParams.include,V2.Billing.ContractCreateParams.include,V2.Billing.ContractListParams.include,V2.Billing.ContractRetrieveParams.include, andV2.Billing.ContractUpdateParams.includeV2.Billing.ContractCreateParams.pricing_lines[].ends_at.type,V2.Billing.ContractCreateParams.pricing_lines[].pricing.price_details.pricing_overrides[].ends_at.type,V2.Billing.ContractCreateParams.pricing_overrides[].ends_at.type, andV2.Billing.ContractUpdateParams.pricing_line_actions[].add.pricing.price_details.pricing_overrides[].ends_at.typefromenum('contract_end'|'timestamp')toliteral('timestamp')V2.Billing.ContractCreateParams.pricing_lines[].pricing.price_details.pricing_overrides[].starts_at.type,V2.Billing.ContractCreateParams.pricing_lines[].starts_at.type,V2.Billing.ContractCreateParams.pricing_overrides[].starts_at.type, andV2.Billing.ContractUpdateParams.pricing_line_actions[].add.pricing.price_details.pricing_overrides[].starts_at.typefromenum('contract_start'|'timestamp')toliteral('timestamp')V2.Billing.ContractCreateParams.pricing_overrides[].priorityandV2.Billing.ContractUpdateParams.pricing_override_actions[].add.priorityto be optionalV2.Billing.ContractUpdateParams.pricing_line_actions[].add.ends_at.type,V2.Billing.ContractUpdateParams.pricing_line_actions[].update.ends_at.type,V2.Billing.ContractUpdateParams.pricing_line_actions[].update.pricing.price_details.pricing_override_actions[].add.ends_at.type,V2.Billing.ContractUpdateParams.pricing_line_actions[].update.pricing.price_details.pricing_override_actions[].update.ends_at.type,V2.Billing.ContractUpdateParams.pricing_override_actions[].add.ends_at.type, andV2.Billing.ContractUpdateParams.pricing_override_actions[].update.ends_at.typefromenum('billing_period_end'|'timestamp')toliteral('timestamp')V2.Billing.ContractUpdateParams.pricing_line_actions[].add.starts_at.type,V2.Billing.ContractUpdateParams.pricing_line_actions[].update.pricing.price_details.pricing_override_actions[].add.starts_at.type,V2.Billing.ContractUpdateParams.pricing_line_actions[].update.pricing.price_details.pricing_override_actions[].update.starts_at.type,V2.Billing.ContractUpdateParams.pricing_line_actions[].update.starts_at.type,V2.Billing.ContractUpdateParams.pricing_override_actions[].add.starts_at.type, andV2.Billing.ContractUpdateParams.pricing_override_actions[].update.starts_at.typefromenum('billing_period_start'|'timestamp')toliteral('timestamp')V2BillingContractActivatedEvent,V2BillingContractCanceledEvent,V2BillingContractCreatedEvent,V2BillingContractEndedEvent, andV2BillingContractUpdatedEventwith related objectV2.Billing.Contract