From e5687a1cf1ac2e08aac3a57576538dfb805fdb4e Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Wed, 21 Apr 2021 17:02:51 -0400 Subject: [PATCH] Codegen for openapi ca9b592 --- types/2020-08-27/Accounts.d.ts | 42 ++++++++++++++++++++++++++++- types/2020-08-27/Issuing/Cards.d.ts | 2 +- types/2020-08-27/Tokens.d.ts | 1 + 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index 899c944556..cfec5cea43 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -470,6 +470,7 @@ declare module 'stripe' { | 'public_company' | 'public_corporation' | 'public_partnership' + | 'single_member_llc' | 'sole_proprietorship' | 'tax_exempt_government_instrumentality' | 'unincorporated_association' @@ -879,7 +880,7 @@ declare module 'stripe' { * * By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the bank account or card creation API. */ - external_account?: string; + external_account?: string | AccountCreateParams.ExternalAccount; /** * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. @@ -1385,6 +1386,7 @@ declare module 'stripe' { | 'public_company' | 'public_corporation' | 'public_partnership' + | 'single_member_llc' | 'sole_proprietorship' | 'tax_exempt_government_instrumentality' | 'unincorporated_association' @@ -1488,6 +1490,43 @@ declare module 'stripe' { } } + interface ExternalAccount { + /** + * The type of external account. + */ + object: string; + + /** + * The country in which the bank account is located. + */ + country: string; + + /** + * The currency the bank account is in. This must be a country/currency pairing that [Stripe supports](https://stripe.com/docs/payouts). + */ + currency: string; + + /** + * The name of the person or business that owns the bank account. This field is required when attaching the bank account to a Customer object. + */ + account_holder_name?: string; + + /** + * The type of entity that holds the account. This can be either individual or company. This field is required when attaching the bank account to a Customer object. + */ + account_holder_type?: string; + + /** + * The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for account_number, this field is not required. + */ + routing_number?: string; + + /** + * The account number for the bank account, in string form. Must be a checking account. + */ + account_number: string; + } + interface Individual { /** * The individual's primary address. @@ -2441,6 +2480,7 @@ declare module 'stripe' { | 'public_company' | 'public_corporation' | 'public_partnership' + | 'single_member_llc' | 'sole_proprietorship' | 'tax_exempt_government_instrumentality' | 'unincorporated_association' diff --git a/types/2020-08-27/Issuing/Cards.d.ts b/types/2020-08-27/Issuing/Cards.d.ts index 4d949045e2..32ed2a10bc 100644 --- a/types/2020-08-27/Issuing/Cards.d.ts +++ b/types/2020-08-27/Issuing/Cards.d.ts @@ -162,7 +162,7 @@ declare module 'stripe' { } namespace Shipping { - type Carrier = 'fedex' | 'usps'; + type Carrier = 'dhl' | 'fedex' | 'royal_mail' | 'usps'; type Service = 'express' | 'priority' | 'standard'; diff --git a/types/2020-08-27/Tokens.d.ts b/types/2020-08-27/Tokens.d.ts index 2531200e01..93fec6dea0 100644 --- a/types/2020-08-27/Tokens.d.ts +++ b/types/2020-08-27/Tokens.d.ts @@ -258,6 +258,7 @@ declare module 'stripe' { | 'public_company' | 'public_corporation' | 'public_partnership' + | 'single_member_llc' | 'sole_proprietorship' | 'tax_exempt_government_instrumentality' | 'unincorporated_association'