From fed5030912be52b9516048cb9e94fbc428774c1b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:19:03 +0000 Subject: [PATCH] Update generated code for v534 --- OPENAPI_VERSION | 2 +- types/AccountsResource.d.ts | 16 ++++++++-------- types/Checkout/Sessions.d.ts | 12 ++++++++++++ types/Checkout/SessionsResource.d.ts | 14 ++++++++++++++ types/PaymentLinks.d.ts | 12 ++++++++++++ types/PaymentLinksResource.d.ts | 28 ++++++++++++++++++++++++++++ types/TokensResource.d.ts | 8 ++++---- 7 files changed, 79 insertions(+), 13 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c5b7f77be3..6f2275da08 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v533 \ No newline at end of file +v534 \ No newline at end of file diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index e96427311a..1195ac29b3 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -928,12 +928,12 @@ declare module 'stripe' { gender?: string; /** - * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number?: string; /** - * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number_secondary?: string; @@ -2173,12 +2173,12 @@ declare module 'stripe' { gender?: string; /** - * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number?: string; /** - * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number_secondary?: string; @@ -2632,12 +2632,12 @@ declare module 'stripe' { gender?: string; /** - * The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number?: string; /** - * The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number_secondary?: string; @@ -3111,12 +3111,12 @@ declare module 'stripe' { gender?: string; /** - * The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number?: string; /** - * The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number_secondary?: string; diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 1ecfbc08e6..eb69e71534 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -629,6 +629,11 @@ declare module 'stripe' { * Custom text that should be displayed alongside the payment confirmation button. */ submit: CustomText.Submit | null; + + /** + * Custom text that should be displayed in place of the default terms of service agreement text. + */ + terms_of_service_acceptance: CustomText.TermsOfServiceAcceptance | null; } namespace CustomText { @@ -645,6 +650,13 @@ declare module 'stripe' { */ message: string; } + + interface TermsOfServiceAcceptance { + /** + * Text may be up to 1000 characters in length. + */ + message: string; + } } interface InvoiceCreation { diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 7919aaa4ff..990f638f4e 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -423,6 +423,13 @@ declare module 'stripe' { * Custom text that should be displayed alongside the payment confirmation button. */ submit?: Stripe.Emptyable; + + /** + * Custom text that should be displayed in place of the default terms of service agreement text. + */ + terms_of_service_acceptance?: Stripe.Emptyable< + CustomText.TermsOfServiceAcceptance + >; } namespace CustomText { @@ -439,6 +446,13 @@ declare module 'stripe' { */ message: string; } + + interface TermsOfServiceAcceptance { + /** + * Text may be up to 1000 characters in length. + */ + message: string; + } } interface Discount { diff --git a/types/PaymentLinks.d.ts b/types/PaymentLinks.d.ts index c32068b624..ab8110fede 100644 --- a/types/PaymentLinks.d.ts +++ b/types/PaymentLinks.d.ts @@ -319,6 +319,11 @@ declare module 'stripe' { * Custom text that should be displayed alongside the payment confirmation button. */ submit: CustomText.Submit | null; + + /** + * Custom text that should be displayed in place of the default terms of service agreement text. + */ + terms_of_service_acceptance: CustomText.TermsOfServiceAcceptance | null; } namespace CustomText { @@ -335,6 +340,13 @@ declare module 'stripe' { */ message: string; } + + interface TermsOfServiceAcceptance { + /** + * Text may be up to 1000 characters in length. + */ + message: string; + } } interface InvoiceCreation { diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index 1403134b79..f17b1de3b8 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -316,6 +316,13 @@ declare module 'stripe' { * Custom text that should be displayed alongside the payment confirmation button. */ submit?: Stripe.Emptyable; + + /** + * Custom text that should be displayed in place of the default terms of service agreement text. + */ + terms_of_service_acceptance?: Stripe.Emptyable< + CustomText.TermsOfServiceAcceptance + >; } namespace CustomText { @@ -332,6 +339,13 @@ declare module 'stripe' { */ message: string; } + + interface TermsOfServiceAcceptance { + /** + * Text may be up to 1000 characters in length. + */ + message: string; + } } interface InvoiceCreation { @@ -1052,6 +1066,13 @@ declare module 'stripe' { * Custom text that should be displayed alongside the payment confirmation button. */ submit?: Stripe.Emptyable; + + /** + * Custom text that should be displayed in place of the default terms of service agreement text. + */ + terms_of_service_acceptance?: Stripe.Emptyable< + CustomText.TermsOfServiceAcceptance + >; } namespace CustomText { @@ -1068,6 +1089,13 @@ declare module 'stripe' { */ message: string; } + + interface TermsOfServiceAcceptance { + /** + * Text may be up to 1000 characters in length. + */ + message: string; + } } interface InvoiceCreation { diff --git a/types/TokensResource.d.ts b/types/TokensResource.d.ts index f922ce8e9c..a82d7047b6 100644 --- a/types/TokensResource.d.ts +++ b/types/TokensResource.d.ts @@ -292,12 +292,12 @@ declare module 'stripe' { gender?: string; /** - * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number?: string; /** - * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number_secondary?: string; @@ -581,12 +581,12 @@ declare module 'stripe' { gender?: string; /** - * The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number?: string; /** - * The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + * The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). */ id_number_secondary?: string;