Skip to content

Update generated code for private-preview#2777

Open
stripe-openapi[bot] wants to merge 6 commits into
private-previewfrom
latest-codegen-private-preview
Open

Update generated code for private-preview#2777
stripe-openapi[bot] wants to merge 6 commits into
private-previewfrom
latest-codegen-private-preview

Conversation

@stripe-openapi

@stripe-openapi stripe-openapi Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Codegen for openapi v2342 and v2 openapi 4a199915f9b2249de9e3475f037de90b8ad91a7e.

Changelog

  • Add support for status_transitions on V2.Billing.Contract
  • ⚠️ Remove support for status_details on V2.Billing.Contract
  • Add support for id and priority on V2.Billing.Contract.pricing_lines.data[].pricing.price_details.pricing_overrides.data[]
  • ⚠️ Remove support for pricing_override on V2.Billing.Contract.pricing_lines.data[].pricing.price_details.pricing_overrides.data[]
  • Add support for multiply_pricing on V2.Billing.Contract.pricing_overrides.data[], V2.Billing.ContractCreateParams.pricing_overrides[], and V2.Billing.ContractUpdateParams.pricing_override_actions[].add
  • ⚠️ Remove support for multiplier on V2.Billing.Contract.pricing_overrides.data[], V2.Billing.ContractCreateParams.pricing_overrides[], and V2.Billing.ContractUpdateParams.pricing_override_actions[].add
  • ⚠️ Change type of V2.Billing.Contract.pricing_overrides.data[].type, V2.Billing.ContractCreateParams.pricing_overrides[].type, and V2.Billing.ContractUpdateParams.pricing_override_actions[].add.type from literal('multiplier') to literal('multiply_pricing')
  • ⚠️ Change type of 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, and V2.Billing.ContractUpdateParams.pricing_line_actions[].add.pricing.price_details.pricing_overrides[].ends_at.type from enum('contract_end'|'timestamp') to literal('timestamp')
  • ⚠️ Change type of 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, and V2.Billing.ContractUpdateParams.pricing_line_actions[].add.pricing.price_details.pricing_overrides[].starts_at.type from enum('contract_start'|'timestamp') to literal('timestamp')
  • Change V2.Billing.ContractCreateParams.pricing_overrides[].priority and V2.Billing.ContractUpdateParams.pricing_override_actions[].add.priority to be optional
  • ⚠️ Change type of V2.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, and V2.Billing.ContractUpdateParams.pricing_override_actions[].update.ends_at.type from enum('billing_period_end'|'timestamp') to literal('timestamp')
  • ⚠️ Change type of 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, and V2.Billing.ContractUpdateParams.pricing_override_actions[].update.starts_at.type from enum('billing_period_start'|'timestamp') to literal('timestamp')
  • Add support for event notifications V2BillingContractActivatedEvent, V2BillingContractCanceledEvent, V2BillingContractCreatedEvent, V2BillingContractEndedEvent, and V2BillingContractUpdatedEvent with related object V2.Billing.Contract

@stripe-openapi stripe-openapi Bot requested a review from a team as a code owner July 6, 2026 15:43
@stripe-openapi stripe-openapi Bot requested review from jar-stripe and removed request for a team and jar-stripe July 6, 2026 15:43
@stripe-openapi stripe-openapi Bot enabled auto-merge July 6, 2026 15:44
stripe-openapi Bot and others added 5 commits July 6, 2026 22:03
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>
exported HttpClientInterface and HttpClientResponseInterface instead of
HttpClient* ; kept public APi the same
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant