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

Multiple API changes #868

Merged
merged 1 commit into from
Apr 16, 2020
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
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