Update generated code for private-preview#2757
Merged
stripe-openapi[bot] merged 6 commits intoJun 24, 2026
Merged
Conversation
f0da6de to
d1efc55
Compare
…2765) * fix: regenerate types for CJS companion namespace access at all depths Regenerated from stripe/sdk-codegen#3768 which fixes: - Resource sub-types (e.g. Stripe.Price.Recurring) now accessible in CJS - Nested resource types (e.g. Stripe.Billing.Alert.Status) now accessible in both CJS and ESM - Deep params namespaces (e.g. AccountCreateParams.BusinessProfile.AnnualRevenue) now accessible in CJS Fixes #2683 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Committed-By-Agent: claude * test: add regression tests for nested namespace type access Adds type assertions for patterns that were previously broken in CJS (and some in ESM too): - Resource sub-types: Stripe.Price.Recurring, Stripe.Customer.InvoiceSettings - Deep resource sub-types: Stripe.Subscription.BillingMode.Type - Nested resource sub-types: Stripe.Billing.Alert.Status, Stripe.Terminal.Configuration.Tipping, Stripe.Apps.Secret.Scope - Deep params: Stripe.AccountCreateParams.BusinessProfile.AnnualRevenue Added to both testProjects/types/ (ESM) and testProjects/types-cjs-node16/ (CJS) so both declaration files are covered. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Committed-By-Agent: claude * test: add namespace regression tests to types-cjs project Same coverage as types/ and types-cjs-node16/ — covers module: commonjs / moduleResolution: node resolution mode. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Committed-By-Agent: claude --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…ecc48e01ff63b0a68a85d95f52
#2766) * alias Stripe as Stripe_ and updated manual code, regenerated from spec * missed some renames
fix: use --loglevel error instead of silent for format step --loglevel silent swallows all prettier output, including parse errors. Switching to --loglevel error still suppresses the normal "reformatted N files" chatter but surfaces actual failures (e.g. merge markers, syntax errors in generated code). Committed-By-Agent: claude Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…878032d9849a9dd7211d35cb97
xavdid
approved these changes
Jun 24, 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 v2324 and v2 openapi 3b7d6e3c02976c878032d9849a9dd7211d35cb97.
Changelog
V2.Billing.ContractPricingLineQuantityChange,V2.Core.Health.AlertHistoryEntry,V2.Core.Health.Alert,V2.MoneyManagement.FinancialAddressDebitSimulation, andV2.MoneyManagement.PayoutIntentV2.Billing.ContractLicensePricingQuantityChangereport_offer_acceptancemethod on resourceIssuing.CreditUnderwritingRecordprovisional_credittest helper method on resourceIssuing.Disputereport_early_fraud_warningmethod on resourcePaymentAttemptRecordsearchmethod on resourcePaymentRecorddebitmethod on resourceV2.MoneyManagement.FinancialAddressDebitSimulationcancel,create,list,retrieve, andupdatemethods on resourceV2.MoneyManagement.PayoutIntentlistandretrievemethods on resourceV2.Core.Health.Alertdelmethod on resourceV2.Billing.Contractperformance_location_detailsonTax.TransactionLineItemfinancial_accounts_transactions,financial_accounts, andrecipients_listonAccountSession.componentsandAccountSessionCreateParams.componentslocationandreaderonCharge.payment_method_details.gift_card,GiftCardOperation,PaymentAttemptRecord.payment_method_details.gift_card, andPaymentRecord.payment_method_details.gift_cardsubscriptiononCheckout.SessionCreateParams.items[]itemsonCheckout.SessionbrandonCheckout.Session.current_attempt.payment_method_details.cardnetwork_dataonIssuing.AuthorizationCaptureParams.testHelpersandIssuing.TransactionCreateForceCaptureParams.testHelpersenriched_merchant_dataonIssuing.Authorizationavailable_balanceandcurrent_balanceonIssuing.Authorization.balance_responseamountonIssuing.Authorization.balance_responsedecision_deadline_updated_atonIssuing.CreditUnderwritingRecordacquirer_reference_numberonIssuing.Transaction.network_dataPaymentAttemptRecordReportRefundParams.outcometo be optionaltiponPaymentIntentCaptureParams.amount_details,PaymentIntentConfirmParams.amount_details,PaymentIntentCreateParams.amount_details,PaymentIntentDecrementAuthorizationParams.amount_details,PaymentIntentIncrementAuthorizationParams.amount_details, andPaymentIntentUpdateParams.amount_detailsbilling_cycle_anchoronV2.Billing.ContractCreateParamsandV2.Billing.Contractcontract_line_details,contract_value_details, andlicense_quantitiesonV2.Billing.Contractbill_settings_detailsonV2.Billing.Contract.billing_settingsandV2.Billing.ContractCreateParams.billing_settingsbilling_profile_detailsandcollection_settings_detailsonV2.Billing.Contract.billing_settingscontract_billing_detailsonV2.Billing.Contract.billing_settingsandV2.Billing.ContractCreateParams.billing_settingsV2.Billing.Contract.one_time_feesfromarray(an object)toan objectV2.Billing.Contract.pricing_linesfromarray(an object)toan objectV2.Billing.Contract.pricing_overridesfromarray(an object)toan objectV2.Billing.Contract.pricing_linesto be optionalV2.Billing.Contract.pricing_overridesto be optionalmoney_manageron enumsV2.Core.Account.applied_configurations,V2.Core.AccountCloseParams.applied_configurations, andV2.Core.AccountListParams.applied_configurationsstorerfrom enumsV2.Core.Account.applied_configurations,V2.Core.AccountCloseParams.applied_configurations, andV2.Core.AccountListParams.applied_configurationsach,becs,eft,fedwire,fps,npp,rtp,sepa_credit,sepa_instant, andswiftonV2.Core.Account.configuration.recipient.capabilities.bank_accounts,V2.Core.AccountCreateParams.configuration.recipient.capabilities.bank_accounts, andV2.Core.AccountUpdateParams.configuration.recipient.capabilities.bank_accountsconsumer_money_manageronV2.Core.Account.identity.attestations.terms_of_service,V2.Core.AccountCreateParams.identity.attestations.terms_of_service, andV2.Core.AccountUpdateParams.identity.attestations.terms_of_servicecrypto_money_manageronV2.Core.Account.identity.attestations.terms_of_service,V2.Core.AccountCreateParams.identity.attestations.terms_of_service, andV2.Core.AccountTokenCreateParams.identity.attestations.terms_of_serviceconsumer_storeronV2.Core.Account.identity.attestations.terms_of_service,V2.Core.AccountCreateParams.identity.attestations.terms_of_service, andV2.Core.AccountUpdateParams.identity.attestations.terms_of_servicecrypto_storeronV2.Core.Account.identity.attestations.terms_of_service,V2.Core.AccountCreateParams.identity.attestations.terms_of_service, andV2.Core.AccountTokenCreateParams.identity.attestations.terms_of_serviceattachmentonV2.MoneyManagement.OutboundPayment.delivery_options.paper_checkandV2.MoneyManagement.OutboundPaymentCreateParams.delivery_options.paper_checkpayout_method_optionsonV2.MoneyManagement.OutboundPayment.to,V2.MoneyManagement.OutboundPaymentCreateParams.to,V2.MoneyManagement.OutboundTransfer.to, andV2.MoneyManagement.OutboundTransferCreateParams.toreturnedonV2.MoneyManagement.ReceivedDebit.status_detailsreturned_atonV2.MoneyManagement.ReceivedDebit.status_transitionspayout_intentonV2.MoneyManagement.OutboundPaymentCreateParamsincludeonV2.Billing.ContractListParamscontract_linesonV2.Billing.ContractCreateParamslicense_quantity_actionsonV2.Billing.ContractCreateParamsandV2.Billing.ContractUpdateParamsbilling_profile_detailsandcollection_settings_detailsonV2.Billing.ContractCreateParams.billing_settingsbilling_settingson enumsV2.Billing.ContractActivateParams.include,V2.Billing.ContractCancelParams.include,V2.Billing.ContractCreateParams.include,V2.Billing.ContractRetrieveParams.include, andV2.Billing.ContractUpdateParams.includecontract_line_detailsandlicense_quantitiesfrom enumsV2.Billing.ContractActivateParams.include,V2.Billing.ContractCancelParams.include,V2.Billing.ContractCreateParams.include,V2.Billing.ContractRetrieveParams.include, andV2.Billing.ContractUpdateParams.includeamount,bill_at, andproductonV2.Billing.ContractCreateParams.one_time_fees[]lookup_keyonV2.Billing.ContractCreateParams.one_time_fees[]bill_schedule,billable_item_type, andproduct_detailsonV2.Billing.ContractCreateParams.one_time_fees[]pricing_overridesandquantity_changesonV2.Billing.ContractCreateParams.pricing_lines[].pricing.price_detailsandV2.Billing.ContractUpdateParams.pricing_line_actions[].add.pricing.price_detailsquantityonV2.Billing.ContractCreateParams.pricing_lines[].pricing.price_detailsandV2.Billing.ContractUpdateParams.pricing_line_actions[].add.pricing.price_detailsoverwrite_priceonV2.Billing.ContractCreateParams.pricing_overrides[]pricing_line_idsandpricing_line_lookup_keysonV2.Billing.ContractCreateParams.pricing_overrides[].multiplier.criteria[]andV2.Billing.ContractUpdateParams.pricing_override_actions[].add.multiplier.criteria[]billable_item_ids,billable_item_lookup_keys,billable_item_types,metadata_conditions, andrate_card_idsonV2.Billing.ContractCreateParams.pricing_overrides[].multiplier.criteria[]andV2.Billing.ContractUpdateParams.pricing_override_actions[].add.multiplier.criteria[]V2.Billing.ContractCreateParams.pricing_overrides[].typeandV2.Billing.ContractUpdateParams.pricing_override_actions[].add.typefromenum('multiplier'|'overwrite_price')toliteral('multiplier')V2.Billing.ContractCreateParams.pricing_overridesto be optionalV2.Billing.ContractCreateParams.pricing_overrides[].multiplier.criteriato be optionalpricingonV2.Billing.ContractUpdateParams.pricing_line_actions[].updatepriceonV2.Billing.ContractUpdateParams.pricing_override_actions[].add.overwrite_pricecancel_pricing_linesandproration_behavioronV2.Billing.ContractCancelParamsbank_accounts.ach,bank_accounts.becs,bank_accounts.eft,bank_accounts.fedwire,bank_accounts.fps,bank_accounts.npp,bank_accounts.rtp,bank_accounts.sepa_credit,bank_accounts.sepa_instant, andbank_accounts.swifton enumEventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capabilityV2MoneyManagementDebitDisputeFailedEvent,V2MoneyManagementDebitDisputeSubmittedEvent, andV2MoneyManagementDebitDisputeSucceededEventwith related objectV2.MoneyManagement.DebitDisputeus_bank_account_microdeposits_cannot_be_confirmedandus_bank_account_microdeposits_cannot_be_sentonControlledByAlternateResourceErrorpayout_intent_not_cancelableonNotCancelableError