Update generated code for private-preview#2719
Merged
stripe-openapi[bot] merged 12 commits intoMay 21, 2026
Merged
Conversation
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>
…8b80cf9bc2448dfca91811415c
…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
mbroshi-stripe
approved these changes
May 21, 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 v2274 and v2 openapi 2e266cdaf4a7328b80cf9bc2448dfca91811415c.
Changelog
PaymentLocationCapabilitylist,retrieve, andupdatemethods on resourcePaymentLocationCapabilitycloseandsimulate_network_lifecycle_dispute_responsetest helper methods on resourceIssuing.DisputeDelegatedCheckout.RequestedSessionUpdateParams.discounts.codesfromarray(string)toemptyable(array(string))credited_itemsonInvoiceItem.proration_detailsbalance_responseonIssuing.Authorizationpayment_evaluationsonPaymentAttemptRecordReportCanceledParams,PaymentAttemptRecordReportFailedParams,PaymentRecordReportPaymentAttemptCanceledParams,PaymentRecordReportPaymentAttemptFailedParams,PaymentRecordReportPaymentAttemptParams.failed, andPaymentRecordReportPaymentParams.failedenabledonPaymentIntentConfirmParams.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, andSetupIntentUpdateParams.setup_details.benefit.fr_meal_voucheradvanced_feature_detailsandallowed_payment_method_typesonPaymentIntentPaymentLocationUpdateParams.address.cityfromstringtoemptyable(string)PaymentLocationUpdateParams.address.line1fromstringtoemptyable(string)PaymentLocationUpdateParams.address.line2fromstringtoemptyable(string)PaymentLocationUpdateParams.address.postal_codefromstringtoemptyable(string)PaymentLocationUpdateParams.address.statefromstringtoemptyable(string)SubscriptionPauseParams.typeto be optionalpayment_behavioronSubscriptionResumeParamsstatus_detailsonSubscription