From 5c71e964b87c0b1906963931a892d7730b535054 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:15:34 +0000 Subject: [PATCH 1/6] Update generated code for v1078 --- OPENAPI_VERSION | 2 +- types/Terminal/ConnectionTokens.d.ts | 2 +- types/Terminal/ConnectionTokensResource.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ebd06a8137..b6130d4d59 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1077 \ No newline at end of file +v1078 \ No newline at end of file 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; } From e21a564b687a217ce2c9fb910543384ea504205c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 06:21:18 +0000 Subject: [PATCH 2/6] Update generated code for v1078 --- types/PaymentIntentsResource.d.ts | 50 ++++--------------------------- types/PaymentMethodsResource.d.ts | 26 ++++++++-------- types/SetupIntentsResource.d.ts | 50 ++++--------------------------- 3 files changed, 24 insertions(+), 102 deletions(-) diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index b6a98908fd..57206a4c6e 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -4871,10 +4871,7 @@ declare module 'stripe' { */ mandate?: string; - mandate_data?: Stripe.Emptyable< - | PaymentIntentConfirmParams.MandateData1 - | PaymentIntentConfirmParams.MandateData2 - >; + mandate_data?: Stripe.Emptyable; /** * Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards). @@ -4947,14 +4944,14 @@ declare module 'stripe' { namespace PaymentIntentConfirmParams { type CaptureMethod = 'automatic' | 'automatic_async' | 'manual'; - interface MandateData1 { + interface MandateData { /** * This hash contains details about the customer acceptance of the Mandate. */ - customer_acceptance: MandateData1.CustomerAcceptance; + customer_acceptance?: MandateData.CustomerAcceptance; } - namespace MandateData1 { + namespace MandateData { interface CustomerAcceptance { /** * The time at which the customer accepted the Mandate. @@ -4980,43 +4977,6 @@ declare module 'stripe' { namespace CustomerAcceptance { interface Offline {} - interface Online { - /** - * The IP address from which the Mandate was accepted by the customer. - */ - ip_address: string; - - /** - * The user agent of the browser from which the Mandate was accepted by the customer. - */ - user_agent: string; - } - - type Type = 'offline' | 'online'; - } - } - - interface MandateData2 { - /** - * This hash contains details about the customer acceptance of the Mandate. - */ - customer_acceptance: MandateData2.CustomerAcceptance; - } - - namespace MandateData2 { - interface CustomerAcceptance { - /** - * If this is a Mandate accepted online, this hash contains details about the online acceptance. - */ - online: CustomerAcceptance.Online; - - /** - * The type of customer acceptance information included with the Mandate. - */ - type: 'online'; - } - - namespace CustomerAcceptance { interface Online { /** * The IP address from which the Mandate was accepted by the customer. @@ -5028,6 +4988,8 @@ declare module 'stripe' { */ user_agent?: string; } + + type Type = 'offline' | 'online'; } } diff --git a/types/PaymentMethodsResource.d.ts b/types/PaymentMethodsResource.d.ts index c04916aa5d..9d2398e5e1 100644 --- a/types/PaymentMethodsResource.d.ts +++ b/types/PaymentMethodsResource.d.ts @@ -66,7 +66,7 @@ declare module 'stripe' { /** * If this is a `card` PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format `card: {token: "tok_visa"}`. When providing a card number, you must meet the requirements for [PCI compliance](https://stripe.com/docs/security#validating-pci-compliance). We strongly recommend using Stripe.js instead of interacting with this API directly. */ - card?: PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2; + card?: PaymentMethodCreateParams.Card; /** * If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -319,7 +319,7 @@ declare module 'stripe' { tax_id: string; } - interface Card1 { + interface Card { /** * The card's CVC. It is highly recommended to always include this value. */ @@ -328,25 +328,30 @@ declare module 'stripe' { /** * Two-digit number representing the card's expiration month. */ - exp_month: number; + exp_month?: number; /** * Four-digit number representing the card's expiration year. */ - exp_year: number; + exp_year?: number; /** * Contains information about card networks used to process the payment. */ - networks?: Card1.Networks; + networks?: Card.Networks; /** * The card number, as a string without any separators. */ - number: string; + number?: string; + + /** + * For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: "tok_visa"}. + */ + token?: string; } - namespace Card1 { + namespace Card { interface Networks { /** * The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. @@ -359,13 +364,6 @@ declare module 'stripe' { } } - interface Card2 { - /** - * For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: "tok_visa"}. - */ - token: string; - } - interface Cashapp {} interface CustomerBalance {} diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index 1d1e825f1d..75bfa4706a 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -2339,10 +2339,7 @@ declare module 'stripe' { */ expand?: Array; - mandate_data?: Stripe.Emptyable< - | SetupIntentConfirmParams.MandateData1 - | SetupIntentConfirmParams.MandateData2 - >; + mandate_data?: Stripe.Emptyable; /** * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. @@ -2374,14 +2371,14 @@ declare module 'stripe' { } namespace SetupIntentConfirmParams { - interface MandateData1 { + interface MandateData { /** * This hash contains details about the customer acceptance of the Mandate. */ - customer_acceptance: MandateData1.CustomerAcceptance; + customer_acceptance?: MandateData.CustomerAcceptance; } - namespace MandateData1 { + namespace MandateData { interface CustomerAcceptance { /** * The time at which the customer accepted the Mandate. @@ -2407,43 +2404,6 @@ declare module 'stripe' { namespace CustomerAcceptance { interface Offline {} - interface Online { - /** - * The IP address from which the Mandate was accepted by the customer. - */ - ip_address: string; - - /** - * The user agent of the browser from which the Mandate was accepted by the customer. - */ - user_agent: string; - } - - type Type = 'offline' | 'online'; - } - } - - interface MandateData2 { - /** - * This hash contains details about the customer acceptance of the Mandate. - */ - customer_acceptance: MandateData2.CustomerAcceptance; - } - - namespace MandateData2 { - interface CustomerAcceptance { - /** - * If this is a Mandate accepted online, this hash contains details about the online acceptance. - */ - online: CustomerAcceptance.Online; - - /** - * The type of customer acceptance information included with the Mandate. - */ - type: 'online'; - } - - namespace CustomerAcceptance { interface Online { /** * The IP address from which the Mandate was accepted by the customer. @@ -2455,6 +2415,8 @@ declare module 'stripe' { */ user_agent?: string; } + + type Type = 'offline' | 'online'; } } From c782b43a970ef55e9b6714f4de6d3fe732c95eff Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:06:09 +0000 Subject: [PATCH 3/6] Update generated code for v1079 --- OPENAPI_VERSION | 2 +- types/Tax/CalculationsResource.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b6130d4d59..ac0cc575db 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1078 \ No newline at end of file +v1079 \ No newline at end of file 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, From 020c5405cfa0b9333230b60f2aa5982aca5aabbe Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 16:52:35 +0000 Subject: [PATCH 4/6] Update generated code for v1081 --- OPENAPI_VERSION | 2 +- types/PaymentLinksResource.d.ts | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ac0cc575db..070a17759d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1079 \ No newline at end of file +v1081 \ No newline at end of file diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index ad6b156c4e..32f9f3f9fd 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -1116,6 +1116,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 { @@ -1858,6 +1863,13 @@ declare module 'stripe' { } } } + + interface TaxIdCollection { + /** + * Set to `true` to enable tax ID collection. + */ + enabled: boolean; + } } interface PaymentLinkListParams extends PaginationParams { From fb2decd00923898456caa31fc49462715339c264 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 20:44:26 +0000 Subject: [PATCH 5/6] Update generated code for v1082 --- OPENAPI_VERSION | 2 +- types/AccountsResource.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 070a17759d..63c4f75687 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1081 \ No newline at end of file +v1082 \ 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; } From 231178e8e371b65c11475400c9d588cec8197ad2 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 15 Jun 2024 18:25:10 +0000 Subject: [PATCH 6/6] Update generated code for v1083 --- OPENAPI_VERSION | 2 +- types/PaymentLinks.d.ts | 1 + types/PaymentLinksResource.d.ts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 63c4f75687..eeeff1529c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1082 \ No newline at end of file +v1083 \ No newline at end of file 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 32f9f3f9fd..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' @@ -1523,6 +1524,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'oxxo' | 'p24' | 'paynow'