Update generated code for beta#2720
Open
stripe-openapi[bot] wants to merge 12 commits into
Open
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
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 v2276 and v2 openapi 9e9ef9ec9df30a59ccafb74c27b81311fa2896d5.
Changelog
pausemethod on resourceSubscriptionmastercardon enumIssuing.Settlement.networkProductCatalog.TrialOffer.end_behavior.transition.pricefromstringtoexpandable(Price)amount_paid_off_stripeonQuotePreviewInvoicetwinton enumQuotePreviewInvoice.payment_settings.payment_method_typesdiscountableonQuotePreviewSubscriptionSchedule.phases[].add_invoice_items[]bizumandscalapayonSharedPayment.GrantedToken.payment_method_detailsbizumandscalapayon enumSharedPayment.GrantedToken.payment_method_details.typeSharedPayment.GrantedToken.agent_detailsto be requiredSubscriptionItem.billed_untilfromDateTime | nulltoDateTimepayment_behavioronSubscriptionResumeParamsstatus_detailsonSubscriptionSubscription.billing_schedulesto be requiredpayment_method_microdeposit_processing_errorandsiret_invalidonQuotePreviewInvoice.last_finalization_error