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

Merged
merged 1 commit into from
Sep 7, 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
4 changes: 2 additions & 2 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ declare module 'stripe' {
/**
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
*/
alternatives?: Array<FutureRequirements.Alternative> | null;
alternatives: Array<FutureRequirements.Alternative> | null;

/**
* Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
Expand Down Expand Up @@ -662,7 +662,7 @@ declare module 'stripe' {
/**
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
*/
alternatives?: Array<Requirements.Alternative> | null;
alternatives: Array<Requirements.Alternative> | null;

/**
* Date by which the fields in `currently_due` must be collected to keep the account enabled. These fields may disable the account sooner if the next threshold is reached before they are collected.
Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ declare module 'stripe' {
/**
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
*/
alternatives?: Array<FutureRequirements.Alternative>;
alternatives: Array<FutureRequirements.Alternative> | null;

/**
* Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
Expand Down Expand Up @@ -168,7 +168,7 @@ declare module 'stripe' {
/**
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
*/
alternatives?: Array<Requirements.Alternative>;
alternatives: Array<Requirements.Alternative> | null;

/**
* Date by which the fields in `currently_due` must be collected to keep the capability enabled for the account. These fields may disable the capability sooner if the next threshold is reached before they are collected.
Expand Down
13 changes: 7 additions & 6 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare module 'stripe' {
/**
* When set, provides configuration for actions to take if this Checkout Session expires.
*/
after_expiration?: Session.AfterExpiration | null;
after_expiration: Session.AfterExpiration | null;

/**
* Enables user redeemable promotion codes.
Expand Down Expand Up @@ -60,12 +60,12 @@ declare module 'stripe' {
/**
* Results of `consent_collection` for this session.
*/
consent?: Session.Consent | null;
consent: Session.Consent | null;

/**
* When set, provides configuration for the Checkout Session to gather active consent from customers.
*/
consent_collection?: Session.ConsentCollection | null;
consent_collection: Session.ConsentCollection | null;

/**
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Expand Down Expand Up @@ -98,7 +98,7 @@ declare module 'stripe' {
/**
* The timestamp at which the Checkout Session will expire.
*/
expires_at?: number;
expires_at: number;

/**
* The line items purchased by the customer.
Expand Down Expand Up @@ -150,7 +150,7 @@ declare module 'stripe' {
/**
* The ID of the original expired Checkout Session that triggered the recovery flow.
*/
recovered_from?: string | null;
recovered_from: string | null;

/**
* The ID of the SetupIntent for Checkout Sessions in `setup` mode.
Expand Down Expand Up @@ -274,7 +274,8 @@ declare module 'stripe' {

interface CustomerDetails {
/**
* The customer's email at time of checkout.
* The email associated with the Customer, if one exists, on the Checkout Session at the time of checkout or at time of session expiry.
* Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form.
*/
email: string | null;

Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ declare module 'stripe' {
/**
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
*/
alternatives?: Array<FutureRequirements.Alternative>;
alternatives: Array<FutureRequirements.Alternative> | null;

/**
* Fields that need to be collected to keep the person's account enabled. If not collected by the account's `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash, and may immediately become `past_due`, but the account may also be given a grace period depending on the account's enablement state prior to transition.
Expand Down Expand Up @@ -374,7 +374,7 @@ declare module 'stripe' {
/**
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
*/
alternatives?: Array<Requirements.Alternative>;
alternatives: Array<Requirements.Alternative> | null;

/**
* Fields that need to be collected to keep the person's account enabled. If not collected by the account's `current_deadline`, these fields appear in `past_due` as well, and the account is disabled.
Expand Down
27 changes: 24 additions & 3 deletions types/2020-08-27/TaxRates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ declare module 'stripe' {
}

namespace TaxRate {
type TaxType = 'gst' | 'hst' | 'pst' | 'qst' | 'sales_tax' | 'vat';
type TaxType =
| 'gst'
| 'hst'
| 'pst'
| 'qst'
| 'rst'
| 'sales_tax'
| 'vat';
}

interface TaxRateCreateParams {
Expand Down Expand Up @@ -139,7 +146,14 @@ declare module 'stripe' {
}

namespace TaxRateCreateParams {
type TaxType = 'gst' | 'hst' | 'pst' | 'qst' | 'sales_tax' | 'vat';
type TaxType =
| 'gst'
| 'hst'
| 'pst'
| 'qst'
| 'rst'
| 'sales_tax'
| 'vat';
}

interface TaxRateRetrieveParams {
Expand Down Expand Up @@ -197,7 +211,14 @@ declare module 'stripe' {
}

namespace TaxRateUpdateParams {
type TaxType = 'gst' | 'hst' | 'pst' | 'qst' | 'sales_tax' | 'vat';
type TaxType =
| 'gst'
| 'hst'
| 'pst'
| 'qst'
| 'rst'
| 'sales_tax'
| 'vat';
}

interface TaxRateListParams extends PaginationParams {
Expand Down
2 changes: 2 additions & 0 deletions types/2020-08-27/WebhookEndpoints.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ declare module 'stripe' {
| 'checkout.session.async_payment_failed'
| 'checkout.session.async_payment_succeeded'
| 'checkout.session.completed'
| 'checkout.session.expired'
| 'coupon.created'
| 'coupon.deleted'
| 'coupon.updated'
Expand Down Expand Up @@ -476,6 +477,7 @@ declare module 'stripe' {
| 'checkout.session.async_payment_failed'
| 'checkout.session.async_payment_succeeded'
| 'checkout.session.completed'
| 'checkout.session.expired'
| 'coupon.created'
| 'coupon.deleted'
| 'coupon.updated'
Expand Down