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 #1143

Merged
merged 1 commit into from
Apr 21, 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
42 changes: 41 additions & 1 deletion types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ declare module 'stripe' {
| 'public_company'
| 'public_corporation'
| 'public_partnership'
| 'single_member_llc'
| 'sole_proprietorship'
| 'tax_exempt_government_instrumentality'
| 'unincorporated_association'
Expand Down Expand Up @@ -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`.
Expand Down Expand Up @@ -1385,6 +1386,7 @@ declare module 'stripe' {
| 'public_company'
| 'public_corporation'
| 'public_partnership'
| 'single_member_llc'
| 'sole_proprietorship'
| 'tax_exempt_government_instrumentality'
| 'unincorporated_association'
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -2441,6 +2480,7 @@ declare module 'stripe' {
| 'public_company'
| 'public_corporation'
| 'public_partnership'
| 'single_member_llc'
| 'sole_proprietorship'
| 'tax_exempt_government_instrumentality'
| 'unincorporated_association'
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ declare module 'stripe' {
| 'public_company'
| 'public_corporation'
| 'public_partnership'
| 'single_member_llc'
| 'sole_proprietorship'
| 'tax_exempt_government_instrumentality'
| 'unincorporated_association'
Expand Down