Skip to content

Update generated code for private-preview#2719

Merged
stripe-openapi[bot] merged 12 commits into
private-previewfrom
latest-codegen-private-preview
May 21, 2026
Merged

Update generated code for private-preview#2719
stripe-openapi[bot] merged 12 commits into
private-previewfrom
latest-codegen-private-preview

Conversation

@stripe-openapi
Copy link
Copy Markdown
Contributor

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

Codegen for openapi v2274 and v2 openapi 2e266cdaf4a7328b80cf9bc2448dfca91811415c.

Changelog

  • Add support for new resource PaymentLocationCapability
  • Add support for list, retrieve, and update methods on resource PaymentLocationCapability
  • Add support for close and simulate_network_lifecycle_dispute_response test helper methods on resource Issuing.Dispute
  • Change type of DelegatedCheckout.RequestedSessionUpdateParams.discounts.codes from array(string) to emptyable(array(string))
  • ⚠️ Remove support for credited_items on InvoiceItem.proration_details
  • Add support for balance_response on Issuing.Authorization
  • Add support for payment_evaluations on PaymentAttemptRecordReportCanceledParams, PaymentAttemptRecordReportFailedParams, PaymentRecordReportPaymentAttemptCanceledParams, PaymentRecordReportPaymentAttemptFailedParams, PaymentRecordReportPaymentAttemptParams.failed, and PaymentRecordReportPaymentParams.failed
  • Add support for enabled on PaymentIntentConfirmParams.payment_details.benefit.fr_meal_voucher, PaymentIntentCreateParams.payment_details.benefit.fr_meal_voucher, PaymentIntentUpdateParams.payment_details.benefit.fr_meal_voucher, SetupIntentConfirmParams.setup_details.benefit.fr_meal_voucher, SetupIntentCreateParams.setup_details.benefit.fr_meal_voucher, and SetupIntentUpdateParams.setup_details.benefit.fr_meal_voucher
  • Add support for advanced_feature_details and allowed_payment_method_types on PaymentIntent
  • Change type of PaymentLocationUpdateParams.address.city from string to emptyable(string)
  • Change type of PaymentLocationUpdateParams.address.line1 from string to emptyable(string)
  • Change type of PaymentLocationUpdateParams.address.line2 from string to emptyable(string)
  • Change type of PaymentLocationUpdateParams.address.postal_code from string to emptyable(string)
  • Change type of PaymentLocationUpdateParams.address.state from string to emptyable(string)
  • Change SubscriptionPauseParams.type to be optional
  • ⚠️ Remove support for payment_behavior on SubscriptionResumeParams
  • ⚠️ Remove support for status_details on Subscription

@stripe-openapi stripe-openapi Bot requested a review from a team as a code owner May 18, 2026 15:47
@stripe-openapi stripe-openapi Bot requested review from xavdid and removed request for a team and xavdid May 18, 2026 15:47
@stripe-openapi stripe-openapi Bot enabled auto-merge May 18, 2026 15:47
stripe-openapi Bot and others added 10 commits May 18, 2026 17:32
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>
…ificationHandler

Codegen reintroduced Buffer types in the handle() method signature,
triggering the wintertc-compat ESLint rule. Buffer extends Uint8Array
so callers are unaffected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@stripe-openapi stripe-openapi Bot merged commit f38fa90 into private-preview May 21, 2026
10 checks passed
@stripe-openapi stripe-openapi Bot deleted the latest-codegen-private-preview branch May 21, 2026 00:10
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.

2 participants