Skip to content

Commit

Permalink
Merge pull request #868 from stripe/remi/codegen-14a5272
Browse files Browse the repository at this point in the history
Multiple API changes
  • Loading branch information
remi-stripe authored Apr 16, 2020
2 parents 7d5506b + aa6fed1 commit 54f7fe5
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ declare module 'stripe' {
/**
* The fields that need to be collected again because validation or verification failed for some reason.
*/
errors?: Array<Requirements.Error> | null;
errors: Array<Requirements.Error> | null;

/**
* The fields that need to be collected assuming all volume thresholds are reached. As they become required, these fields appear in `currently_due` as well, and the `current_deadline` is set.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ declare module 'stripe' {
/**
* The fields that need to be collected again because validation or verification failed for some reason.
*/
errors?: Array<Requirements.Error>;
errors: Array<Requirements.Error>;

/**
* The fields that need to be collected assuming all volume thresholds are reached. As they become required, these fields appear in `currently_due` as well, and the `current_deadline` is set.
Expand Down
10 changes: 10 additions & 0 deletions types/2020-03-02/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,20 @@ declare module 'stripe' {
*/
fingerprint: string | null;

/**
* Institution number of the bank account
*/
institution_number: string | null;

/**
* Last four digits of the bank account number.
*/
last4: string | null;

/**
* Transit number of the bank account.
*/
transit_number: string | null;
}

interface Alipay {}
Expand Down
10 changes: 10 additions & 0 deletions types/2020-03-02/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ declare module 'stripe' {
*/
currency: string;

/**
* The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://stripe.com/docs/api/expanding_objects). Additionally, it's only available via the ["Retrieve a card" endpoint](https://stripe.com/docs/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
*/
cvc?: string;

/**
* The expiration month of the card.
*/
Expand All @@ -67,6 +72,11 @@ declare module 'stripe' {
*/
metadata: Metadata;

/**
* The full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://stripe.com/docs/api/expanding_objects). Additionally, it's only available via the ["Retrieve a card" endpoint](https://stripe.com/docs/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
*/
number?: string;

/**
* The latest card that replaces this card, if any.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ declare module 'stripe' {
/**
* The fields that need to be collected again because validation or verification failed for some reason.
*/
errors?: Array<Requirements.Error>;
errors: Array<Requirements.Error>;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As fields are needed, they are moved to `currently_due` and the account's `current_deadline` is set.
Expand Down
4 changes: 2 additions & 2 deletions types/2020-03-02/Plans.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare module 'stripe' {
object: 'plan';

/**
* Whether the plan is currently available for new subscriptions.
* Whether the price can be used for new purchases.
*/
active: boolean;

Expand All @@ -35,7 +35,7 @@ declare module 'stripe' {
amount_decimal: string | null;

/**
* Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `amount`) will be charged per unit in `quantity` (for plans with `usage_type=licensed`), or per unit of total usage (for plans with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
* Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
*/
billing_scheme: Plan.BillingScheme;

Expand Down

0 comments on commit 54f7fe5

Please sign in to comment.