Update generated code for private-preview#2777
Open
stripe-openapi[bot] wants to merge 6 commits into
Open
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
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 v2342 and v2 openapi 4a199915f9b2249de9e3475f037de90b8ad91a7e.
Changelog
status_transitionsonV2.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[]multiply_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')V2.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