Skip to content

Update generated code for beta#2720

Open
stripe-openapi[bot] wants to merge 12 commits into
betafrom
latest-codegen-beta
Open

Update generated code for beta#2720
stripe-openapi[bot] wants to merge 12 commits into
betafrom
latest-codegen-beta

Conversation

@stripe-openapi
Copy link
Copy Markdown
Contributor

@stripe-openapi stripe-openapi Bot commented May 18, 2026

Codegen for openapi v2276 and v2 openapi 9e9ef9ec9df30a59ccafb74c27b81311fa2896d5.

Changelog

  • Add support for pause method on resource Subscription
  • ⚠️ Add support for new value mastercard on enum Issuing.Settlement.network
  • ⚠️ Change type of ProductCatalog.TrialOffer.end_behavior.transition.price from string to expandable(Price)
  • Add support for amount_paid_off_stripe on QuotePreviewInvoice
  • ⚠️ Add support for new value twint on enum QuotePreviewInvoice.payment_settings.payment_method_types
  • Add support for discountable on QuotePreviewSubscriptionSchedule.phases[].add_invoice_items[]
  • Add support for bizum and scalapay on SharedPayment.GrantedToken.payment_method_details
  • ⚠️ Add support for new values bizum and scalapay on enum SharedPayment.GrantedToken.payment_method_details.type
  • Change SharedPayment.GrantedToken.agent_details to be required
  • Change type of SubscriptionItem.billed_until from DateTime | null to DateTime
  • Add support for payment_behavior on SubscriptionResumeParams
  • Add support for status_details on Subscription
  • Change Subscription.billing_schedules to be required
  • Add support for error codes payment_method_microdeposit_processing_error and siret_invalid on QuotePreviewInvoice.last_finalization_error

@stripe-openapi stripe-openapi Bot requested a review from a team as a code owner May 18, 2026 15:49
@stripe-openapi stripe-openapi Bot requested review from jar-stripe and removed request for a team and jar-stripe May 18, 2026 15:49
@stripe-openapi stripe-openapi Bot enabled auto-merge May 18, 2026 15:49
stripe-openapi Bot and others added 10 commits May 18, 2026 17:33
Sample tests exercising the generated serializeBatch* methods to verify
the serialization contract and platformFunctions.uuid4() integration
after moving away from direct crypto.randomUUID() usage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
…ificationHandler

Buffer is a Node.js-specific global. Since Buffer extends Uint8Array,
this is a compatible change — callers passing Buffer still work.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
* Add V2List and V2ListPromise types for v2 list endpoints

V2 list API responses return {data, next_page_url, previous_page_url}
but the SDK typed them as ApiList<T> which has v1-only fields
{object, data, has_more, url}. This adds correct types so users can
access v2 pagination fields without type assertions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude

* temporarily extend V2List from ApiList to not break existing type
checks; this enables type support for v2 pagination urls without
changing behavior around incorrect v1 list fields

* added link to v2 list pagination docs and auto pagination, and spruced
up TODO

* added V2List and V2ListPromise export to stripe.esm.node.ts
fixerd issues in test code and white space in comments

* removed temporary inheritence and instead copied properties from ApiList
into V2List; marked them deprecated and moved the TODO to remove them

* Update lib.ts

* added type tests for V2List and backwards compatible list

* regenerate v2 apis with lists

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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