From 134331f1c2bba203b99f8f7619ae93d5e00b3620 Mon Sep 17 00:00:00 2001 From: Christopher Trudeau Date: Thu, 7 Jan 2021 10:55:18 -0800 Subject: [PATCH] Codegen for openapi 383c876 --- types/2020-08-27/Accounts.d.ts | 120 +++++++++++++++++++++++++++++++++ types/2020-08-27/Invoices.d.ts | 4 +- 2 files changed, 122 insertions(+), 2 deletions(-) diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index 9dd273a61c..a05fc28940 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -1348,6 +1348,31 @@ declare module 'stripe' { * One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check. */ bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification; + + /** + * One or more documents that demonstrate proof of a company's license to operate. + */ + company_license?: Documents.CompanyLicense; + + /** + * One or more documents showing the company's Memorandum of Association. + */ + company_memorandum_of_association?: Documents.CompanyMemorandumOfAssociation; + + /** + * (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment. + */ + company_ministerial_decree?: Documents.CompanyMinisterialDecree; + + /** + * One or more documents that demonstrate proof of a company's registration with the appropriate local authorities. + */ + company_registration_verification?: Documents.CompanyRegistrationVerification; + + /** + * One or more documents that demonstrate proof of a company's tax ID. + */ + company_tax_id_verification?: Documents.CompanyTaxIdVerification; } namespace Documents { @@ -1357,6 +1382,41 @@ declare module 'stripe' { */ files?: Array; } + + interface CompanyLicense { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } + + interface CompanyMemorandumOfAssociation { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } + + interface CompanyMinisterialDecree { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } + + interface CompanyRegistrationVerification { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } + + interface CompanyTaxIdVerification { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } } interface Individual { @@ -2289,6 +2349,31 @@ declare module 'stripe' { * One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check. */ bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification; + + /** + * One or more documents that demonstrate proof of a company's license to operate. + */ + company_license?: Documents.CompanyLicense; + + /** + * One or more documents showing the company's Memorandum of Association. + */ + company_memorandum_of_association?: Documents.CompanyMemorandumOfAssociation; + + /** + * (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment. + */ + company_ministerial_decree?: Documents.CompanyMinisterialDecree; + + /** + * One or more documents that demonstrate proof of a company's registration with the appropriate local authorities. + */ + company_registration_verification?: Documents.CompanyRegistrationVerification; + + /** + * One or more documents that demonstrate proof of a company's tax ID. + */ + company_tax_id_verification?: Documents.CompanyTaxIdVerification; } namespace Documents { @@ -2298,6 +2383,41 @@ declare module 'stripe' { */ files?: Array; } + + interface CompanyLicense { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } + + interface CompanyMemorandumOfAssociation { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } + + interface CompanyMinisterialDecree { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } + + interface CompanyRegistrationVerification { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } + + interface CompanyTaxIdVerification { + /** + * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. + */ + files?: Array; + } } interface Individual { diff --git a/types/2020-08-27/Invoices.d.ts b/types/2020-08-27/Invoices.d.ts index 36fed27756..5b0e284eef 100644 --- a/types/2020-08-27/Invoices.d.ts +++ b/types/2020-08-27/Invoices.d.ts @@ -662,7 +662,7 @@ declare module 'stripe' { account_tax_ids?: Stripe.Emptyable>; /** - * A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#invoices). + * A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/billing/invoices/connect#collecting-fees). */ application_fee_amount?: number; @@ -801,7 +801,7 @@ declare module 'stripe' { account_tax_ids?: Stripe.Emptyable>; /** - * A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#invoices). + * A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/billing/invoices/connect#collecting-fees). */ application_fee_amount?: number;