Skip to content

Commit

Permalink
Merge pull request #961 from stripe/remi/codegen-13bfb97
Browse files Browse the repository at this point in the history
Add support for `account_onboarding` and `account_update' as `type` on `AccountLink`
  • Loading branch information
remi-stripe authored Jul 17, 2020
2 parents 6fbe4df + 9ba282f commit 3f581b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions types/2020-03-02/AccountLinks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ declare module 'stripe' {
account: string;

/**
* The type of account link the user is requesting. Possible values are `custom_account_verification` or `custom_account_update`.
* The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
*/
type: AccountLinkCreateParams.Type;

Expand Down Expand Up @@ -70,7 +70,11 @@ declare module 'stripe' {
namespace AccountLinkCreateParams {
type Collect = 'currently_due' | 'eventually_due';

type Type = 'custom_account_update' | 'custom_account_verification';
type Type =
| 'account_onboarding'
| 'account_update'
| 'custom_account_update'
| 'custom_account_verification';
}

class AccountLinksResource {
Expand Down
12 changes: 6 additions & 6 deletions types/2020-03-02/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,12 @@ declare module 'stripe' {
/**
* Two-digit number representing the card's expiration month.
*/
exp_month: number | null;
exp_month: number;

/**
* Four-digit number representing the card's expiration year.
*/
exp_year: number | null;
exp_year: number;

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
Expand Down Expand Up @@ -919,12 +919,12 @@ declare module 'stripe' {
/**
* Two-digit number representing the card's expiration month.
*/
exp_month: number | null;
exp_month: number;

/**
* Four-digit number representing the card's expiration year.
*/
exp_year: number | null;
exp_year: number;

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
Expand Down Expand Up @@ -1159,12 +1159,12 @@ declare module 'stripe' {
/**
* Two-digit number representing the card's expiration month.
*/
exp_month: number | null;
exp_month: number;

/**
* Four-digit number representing the card's expiration year.
*/
exp_year: number | null;
exp_year: number;

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
Expand Down

0 comments on commit 3f581b6

Please sign in to comment.