From 8ae55d278cc7a22473952a0daf749b3dd1b8d11b Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Thu, 26 May 2022 10:57:19 -0700 Subject: [PATCH] Codegen for openapi v149 --- OPENAPI_VERSION | 2 +- types/2020-08-27/Accounts.d.ts | 72 +++++++++++++++++++ types/2020-08-27/Checkout/Sessions.d.ts | 1 + types/2020-08-27/PaymentIntents.d.ts | 5 ++ types/2020-08-27/Persons.d.ts | 15 ++++ types/2020-08-27/SubscriptionSchedules.d.ts | 6 +- types/2020-08-27/Terminal/Configurations.d.ts | 6 +- types/2020-08-27/Tokens.d.ts | 10 +++ .../Treasury/FinancialAccounts.d.ts | 36 ++++++++++ 9 files changed, 148 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 618c1d9c13..78b0e479e8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v147 \ No newline at end of file +v149 \ No newline at end of file diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index 474063fa57..1ef99ed08b 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -161,6 +161,11 @@ declare module 'stripe' { */ acss_debit_payments?: Capabilities.AcssDebitPayments; + /** + * The status of the Affirm capability of the account, or whether the account can directly process Affirm charges. + */ + affirm_payments?: Capabilities.AffirmPayments; + /** * The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges. */ @@ -251,6 +256,11 @@ declare module 'stripe' { */ legacy_payments?: Capabilities.LegacyPayments; + /** + * The status of the link_payments capability of the account, or whether the account can directly process Link charges. + */ + link_payments?: Capabilities.LinkPayments; + /** * The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges. */ @@ -305,6 +315,8 @@ declare module 'stripe' { namespace Capabilities { type AcssDebitPayments = 'active' | 'inactive' | 'pending'; + type AffirmPayments = 'active' | 'inactive' | 'pending'; + type AfterpayClearpayPayments = 'active' | 'inactive' | 'pending'; type AuBecsDebitPayments = 'active' | 'inactive' | 'pending'; @@ -341,6 +353,8 @@ declare module 'stripe' { type LegacyPayments = 'active' | 'inactive' | 'pending'; + type LinkPayments = 'active' | 'inactive' | 'pending'; + type OxxoPayments = 'active' | 'inactive' | 'pending'; type P24Payments = 'active' | 'inactive' | 'pending'; @@ -1203,6 +1217,11 @@ declare module 'stripe' { */ acss_debit_payments?: Capabilities.AcssDebitPayments; + /** + * The affirm_payments capability. + */ + affirm_payments?: Capabilities.AffirmPayments; + /** * The afterpay_clearpay_payments capability. */ @@ -1293,6 +1312,11 @@ declare module 'stripe' { */ legacy_payments?: Capabilities.LegacyPayments; + /** + * The link_payments capability. + */ + link_payments?: Capabilities.LinkPayments; + /** * The oxxo_payments capability. */ @@ -1352,6 +1376,13 @@ declare module 'stripe' { requested?: boolean; } + interface AffirmPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface AfterpayClearpayPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -1478,6 +1509,13 @@ declare module 'stripe' { requested?: boolean; } + interface LinkPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface OxxoPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -1883,6 +1921,11 @@ declare module 'stripe' { */ 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). + */ + id_number_secondary?: string; + /** * The individual's last name. */ @@ -2342,6 +2385,11 @@ declare module 'stripe' { */ acss_debit_payments?: Capabilities.AcssDebitPayments; + /** + * The affirm_payments capability. + */ + affirm_payments?: Capabilities.AffirmPayments; + /** * The afterpay_clearpay_payments capability. */ @@ -2432,6 +2480,11 @@ declare module 'stripe' { */ legacy_payments?: Capabilities.LegacyPayments; + /** + * The link_payments capability. + */ + link_payments?: Capabilities.LinkPayments; + /** * The oxxo_payments capability. */ @@ -2491,6 +2544,13 @@ declare module 'stripe' { requested?: boolean; } + interface AffirmPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface AfterpayClearpayPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2617,6 +2677,13 @@ declare module 'stripe' { requested?: boolean; } + interface LinkPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface OxxoPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2985,6 +3052,11 @@ declare module 'stripe' { */ 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). + */ + id_number_secondary?: string; + /** * The individual's last name. */ diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index 654a2ade03..1cf7d75986 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -1770,6 +1770,7 @@ declare module 'stripe' { type PaymentMethodType = | 'acss_debit' + | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' diff --git a/types/2020-08-27/PaymentIntents.d.ts b/types/2020-08-27/PaymentIntents.d.ts index bd1bd66593..0b3cc5bc24 100644 --- a/types/2020-08-27/PaymentIntents.d.ts +++ b/types/2020-08-27/PaymentIntents.d.ts @@ -462,6 +462,11 @@ declare module 'stripe' { DisplayBankTransferInstructions.FinancialAddress >; + /** + * A link to a hosted page that guides your customer through completing the transfer. + */ + hosted_instructions_url?: string | null; + /** * A string identifying this payment. Instruct your customer to include this code in the reference or memo field of their bank transfer. */ diff --git a/types/2020-08-27/Persons.d.ts b/types/2020-08-27/Persons.d.ts index e2758a3c0e..6289b55107 100644 --- a/types/2020-08-27/Persons.d.ts +++ b/types/2020-08-27/Persons.d.ts @@ -82,6 +82,11 @@ declare module 'stripe' { */ id_number_provided?: boolean; + /** + * Whether the person's `id_number_secondary` was provided. + */ + id_number_secondary_provided?: boolean; + /** * The person's last name. */ @@ -646,6 +651,11 @@ declare module 'stripe' { */ 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). + */ + id_number_secondary?: string; + /** * The person's last name. */ @@ -922,6 +932,11 @@ declare module 'stripe' { */ 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). + */ + id_number_secondary?: string; + /** * The person's last name. */ diff --git a/types/2020-08-27/SubscriptionSchedules.d.ts b/types/2020-08-27/SubscriptionSchedules.d.ts index 389ebaaa41..700222b68e 100644 --- a/types/2020-08-27/SubscriptionSchedules.d.ts +++ b/types/2020-08-27/SubscriptionSchedules.d.ts @@ -595,7 +595,7 @@ declare module 'stripe' { metadata?: Stripe.MetadataParam; /** - * If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations). + * Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`. */ proration_behavior?: Phase.ProrationBehavior; @@ -847,7 +847,7 @@ declare module 'stripe' { phases?: Array; /** - * If the update changes the current phase, indicates if the changes should be prorated. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. + * If the update changes the current phase, indicates whether the changes should be prorated. The default value is `create_prorations`. */ proration_behavior?: SubscriptionScheduleUpdateParams.ProrationBehavior; } @@ -1015,7 +1015,7 @@ declare module 'stripe' { metadata?: Stripe.MetadataParam; /** - * If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations). + * Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`. */ proration_behavior?: Phase.ProrationBehavior; diff --git a/types/2020-08-27/Terminal/Configurations.d.ts b/types/2020-08-27/Terminal/Configurations.d.ts index cf7cec56ff..97951b1a5d 100644 --- a/types/2020-08-27/Terminal/Configurations.d.ts +++ b/types/2020-08-27/Terminal/Configurations.d.ts @@ -1107,7 +1107,11 @@ declare module 'stripe' { id: string, params?: ConfigurationUpdateParams, options?: RequestOptions - ): Promise>; + ): Promise< + Stripe.Response< + Stripe.Terminal.Configuration | Stripe.Terminal.DeletedConfiguration + > + >; /** * Returns a list of Configuration objects. diff --git a/types/2020-08-27/Tokens.d.ts b/types/2020-08-27/Tokens.d.ts index 61c31e6dce..3069d1b496 100644 --- a/types/2020-08-27/Tokens.d.ts +++ b/types/2020-08-27/Tokens.d.ts @@ -345,6 +345,11 @@ declare module 'stripe' { */ 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). + */ + id_number_secondary?: string; + /** * The individual's last name. */ @@ -602,6 +607,11 @@ declare module 'stripe' { */ 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). + */ + id_number_secondary?: string; + /** * The person's last name. */ diff --git a/types/2020-08-27/Treasury/FinancialAccounts.d.ts b/types/2020-08-27/Treasury/FinancialAccounts.d.ts index cf4a68f2e2..dab6fd0550 100644 --- a/types/2020-08-27/Treasury/FinancialAccounts.d.ts +++ b/types/2020-08-27/Treasury/FinancialAccounts.d.ts @@ -264,6 +264,11 @@ declare module 'stripe' { namespace FinancialAccountCreateParams { interface Features { + /** + * Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. + */ + card_issuing?: Features.CardIssuing; + /** * Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount. */ @@ -296,6 +301,13 @@ declare module 'stripe' { } namespace Features { + interface CardIssuing { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + } + interface DepositInsurance { /** * Whether the FinancialAccount should have the Feature. @@ -449,6 +461,11 @@ declare module 'stripe' { namespace FinancialAccountUpdateParams { interface Features { + /** + * Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. + */ + card_issuing?: Features.CardIssuing; + /** * Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount. */ @@ -481,6 +498,13 @@ declare module 'stripe' { } namespace Features { + interface CardIssuing { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + } + interface DepositInsurance { /** * Whether the FinancialAccount should have the Feature. @@ -620,6 +644,11 @@ declare module 'stripe' { } interface FinancialAccountUpdateFeaturesParams { + /** + * Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. + */ + card_issuing?: FinancialAccountUpdateFeaturesParams.CardIssuing; + /** * Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount. */ @@ -657,6 +686,13 @@ declare module 'stripe' { } namespace FinancialAccountUpdateFeaturesParams { + interface CardIssuing { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + } + interface DepositInsurance { /** * Whether the FinancialAccount should have the Feature.