Skip to content

Commit

Permalink
Update generated code (#2109)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
stripe-openapi[bot] authored Jun 17, 2024
1 parent 6f03e62 commit 1e9263c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1077
v1083
2 changes: 1 addition & 1 deletion types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions types/PaymentLinks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ declare module 'stripe' {
| 'klarna'
| 'konbini'
| 'link'
| 'mobilepay'
| 'oxxo'
| 'p24'
| 'paynow'
Expand Down
14 changes: 14 additions & 0 deletions types/PaymentLinksResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ declare module 'stripe' {
| 'klarna'
| 'konbini'
| 'link'
| 'mobilepay'
| 'oxxo'
| 'p24'
| 'paynow'
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -1518,6 +1524,7 @@ declare module 'stripe' {
| 'klarna'
| 'konbini'
| 'link'
| 'mobilepay'
| 'oxxo'
| 'p24'
| 'paynow'
Expand Down Expand Up @@ -1858,6 +1865,13 @@ declare module 'stripe' {
}
}
}

interface TaxIdCollection {
/**
* Set to `true` to enable tax ID collection.
*/
enabled: boolean;
}
}

interface PaymentLinkListParams extends PaginationParams {
Expand Down
2 changes: 1 addition & 1 deletion types/Tax/CalculationsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ declare module 'stripe' {
): Promise<Stripe.Response<Stripe.Tax.Calculation>>;

/**
* 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,
Expand Down
2 changes: 1 addition & 1 deletion types/Terminal/ConnectionTokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion types/Terminal/ConnectionTokensResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* 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;
}
Expand Down

0 comments on commit 1e9263c

Please sign in to comment.