From 1e9263ca213fb7b453cce30d9d466aa6425b0f50 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 09:08:49 -0700 Subject: [PATCH] Update generated code (#2109) * Update generated code for v1078 * Update generated code for v1078 * Update generated code for v1079 * Update generated code for v1081 * Update generated code for v1082 * Update generated code for v1083 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- types/AccountsResource.d.ts | 2 +- types/PaymentLinks.d.ts | 1 + types/PaymentLinksResource.d.ts | 14 ++++++++++++++ types/Tax/CalculationsResource.d.ts | 2 +- types/Terminal/ConnectionTokens.d.ts | 2 +- types/Terminal/ConnectionTokensResource.d.ts | 2 +- 7 files changed, 20 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ebd06a8137..eeeff1529c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1077 \ No newline at end of file +v1083 \ No newline at end of file diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index 073e35434c..3db66f1997 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -3661,7 +3661,7 @@ declare module 'stripe' { /** * To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays. * - * If a capability isn't permanent, you can remove it from the account by passing false. Most capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error. + * If a capability isn't permanent, you can remove it from the account by passing false. Some capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error. */ requested?: boolean; } diff --git a/types/PaymentLinks.d.ts b/types/PaymentLinks.d.ts index e43669595a..cee3e88216 100644 --- a/types/PaymentLinks.d.ts +++ b/types/PaymentLinks.d.ts @@ -557,6 +557,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'oxxo' | 'p24' | 'paynow' diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index ad6b156c4e..b023da2c1c 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -614,6 +614,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'oxxo' | 'p24' | 'paynow' @@ -1116,6 +1117,11 @@ declare module 'stripe' { * When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`. */ subscription_data?: PaymentLinkUpdateParams.SubscriptionData; + + /** + * Controls tax ID collection during checkout. + */ + tax_id_collection?: PaymentLinkUpdateParams.TaxIdCollection; } namespace PaymentLinkUpdateParams { @@ -1518,6 +1524,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'oxxo' | 'p24' | 'paynow' @@ -1858,6 +1865,13 @@ declare module 'stripe' { } } } + + interface TaxIdCollection { + /** + * Set to `true` to enable tax ID collection. + */ + enabled: boolean; + } } interface PaymentLinkListParams extends PaginationParams { diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index b02aa2f192..5b973493ba 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -326,7 +326,7 @@ declare module 'stripe' { ): Promise>; /** - * Retrieves the line items of a persisted tax calculation as a collection. + * Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. */ listLineItems( id: string, diff --git a/types/Terminal/ConnectionTokens.d.ts b/types/Terminal/ConnectionTokens.d.ts index 6e1beec285..d808c3f507 100644 --- a/types/Terminal/ConnectionTokens.d.ts +++ b/types/Terminal/ConnectionTokens.d.ts @@ -15,7 +15,7 @@ declare module 'stripe' { object: 'terminal.connection_token'; /** - * The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://stripe.com/docs/terminal/fleet/locations#connection-tokens). + * The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens). */ location?: string; diff --git a/types/Terminal/ConnectionTokensResource.d.ts b/types/Terminal/ConnectionTokensResource.d.ts index e2b2f1597d..72ab18bd90 100644 --- a/types/Terminal/ConnectionTokensResource.d.ts +++ b/types/Terminal/ConnectionTokensResource.d.ts @@ -10,7 +10,7 @@ declare module 'stripe' { expand?: Array; /** - * The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://stripe.com/docs/terminal/fleet/locations#connection-tokens). + * The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens). */ location?: string; }