Skip to content

Commit

Permalink
Merge pull request #1105 from stripe/latest-codegen
Browse files Browse the repository at this point in the history
API Updates
  • Loading branch information
ctrudeau-stripe authored Jan 7, 2021
2 parents 0149aa5 + 134331f commit c88ef7f
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 2 deletions.
120 changes: 120 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -1357,6 +1382,41 @@ declare module 'stripe' {
*/
files?: Array<string>;
}

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<string>;
}

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<string>;
}

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<string>;
}

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<string>;
}

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<string>;
}
}

interface Individual {
Expand Down Expand Up @@ -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 {
Expand All @@ -2298,6 +2383,41 @@ declare module 'stripe' {
*/
files?: Array<string>;
}

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<string>;
}

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<string>;
}

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<string>;
}

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<string>;
}

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<string>;
}
}

interface Individual {
Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ declare module 'stripe' {
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* 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;

Expand Down Expand Up @@ -801,7 +801,7 @@ declare module 'stripe' {
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* 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;

Expand Down

0 comments on commit c88ef7f

Please sign in to comment.