Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1283

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,11 @@ declare module 'stripe' {
*/
owners_provided?: boolean;

/**
* This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
*/
ownership_declaration?: Company.OwnershipDeclaration | null;

/**
* The company's phone number (used for verification).
*/
Expand Down Expand Up @@ -476,6 +481,23 @@ declare module 'stripe' {
town: string | null;
}

interface OwnershipDeclaration {
/**
* The Unix timestamp marking when the beneficial owner attestation was made.
*/
date: number | null;

/**
* The IP address from which the beneficial owner attestation was made.
*/
ip: string | null;

/**
* The user-agent string from the browser where the beneficial owner attestation was made.
*/
user_agent: string | null;
}

type Structure =
| 'free_zone_establishment'
| 'free_zone_llc'
Expand Down Expand Up @@ -1478,6 +1500,11 @@ declare module 'stripe' {
*/
owners_provided?: boolean;

/**
* This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
*/
ownership_declaration?: Company.OwnershipDeclaration;

/**
* The company's phone number (used for verification).
*/
Expand Down Expand Up @@ -1519,6 +1546,23 @@ declare module 'stripe' {
line1?: string;
}

interface OwnershipDeclaration {
/**
* The Unix timestamp marking when the beneficial owner attestation was made.
*/
date?: number;

/**
* The IP address from which the beneficial owner attestation was made.
*/
ip?: string;

/**
* The user agent of the browser from which the beneficial owner attestation was made.
*/
user_agent?: string;
}

type Structure =
| 'free_zone_establishment'
| 'free_zone_llc'
Expand Down Expand Up @@ -1593,6 +1637,11 @@ declare module 'stripe' {
* One or more documents that demonstrate proof of a company's tax ID.
*/
company_tax_id_verification?: Documents.CompanyTaxIdVerification;

/**
* One or more documents showing the company's proof of registration with the national business registry.
*/
proof_of_registration?: Documents.ProofOfRegistration;
}

namespace Documents {
Expand Down Expand Up @@ -1637,6 +1686,13 @@ declare module 'stripe' {
*/
files?: Array<string>;
}

interface ProofOfRegistration {
/**
* 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 ExternalAccount {
Expand Down Expand Up @@ -2514,6 +2570,11 @@ declare module 'stripe' {
*/
owners_provided?: boolean;

/**
* This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
*/
ownership_declaration?: Company.OwnershipDeclaration;

/**
* The company's phone number (used for verification).
*/
Expand Down Expand Up @@ -2555,6 +2616,23 @@ declare module 'stripe' {
line1?: string;
}

interface OwnershipDeclaration {
/**
* The Unix timestamp marking when the beneficial owner attestation was made.
*/
date?: number;

/**
* The IP address from which the beneficial owner attestation was made.
*/
ip?: string;

/**
* The user agent of the browser from which the beneficial owner attestation was made.
*/
user_agent?: string;
}

type Structure =
| 'free_zone_establishment'
| 'free_zone_llc'
Expand Down Expand Up @@ -2629,6 +2707,11 @@ declare module 'stripe' {
* One or more documents that demonstrate proof of a company's tax ID.
*/
company_tax_id_verification?: Documents.CompanyTaxIdVerification;

/**
* One or more documents showing the company's proof of registration with the national business registry.
*/
proof_of_registration?: Documents.ProofOfRegistration;
}

namespace Documents {
Expand Down Expand Up @@ -2673,6 +2756,13 @@ declare module 'stripe' {
*/
files?: Array<string>;
}

interface ProofOfRegistration {
/**
* 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
27 changes: 27 additions & 0 deletions types/2020-08-27/Tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ declare module 'stripe' {
*/
individual?: Account.Individual;

/**
* Whether the user described by the data in the token has been shown the Ownership Declaration and indicated that it is correct.
*/
ownership_declaration_shown_and_signed?: boolean;

/**
* Whether the user described by the data in the token has been shown [the Stripe Connected Account Agreement](https://stripe.com/docs/connect/account-tokens#stripe-connected-account-agreement). When creating an account token to create a new Connect account, this value must be `true`.
*/
Expand Down Expand Up @@ -177,6 +182,11 @@ declare module 'stripe' {
*/
owners_provided?: boolean;

/**
* This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
*/
ownership_declaration?: Company.OwnershipDeclaration;

/**
* The company's phone number (used for verification).
*/
Expand Down Expand Up @@ -218,6 +228,23 @@ declare module 'stripe' {
line1?: string;
}

interface OwnershipDeclaration {
/**
* The Unix timestamp marking when the beneficial owner attestation was made.
*/
date?: number;

/**
* The IP address from which the beneficial owner attestation was made.
*/
ip?: string;

/**
* The user agent of the browser from which the beneficial owner attestation was made.
*/
user_agent?: string;
}

type Structure =
| 'free_zone_establishment'
| 'free_zone_llc'
Expand Down