From 97bfa495a5fbc8e0fbc3bed10a290bcf5bc8f8ba Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Tue, 7 Sep 2021 16:52:47 -0400 Subject: [PATCH] Codegen for openapi ad7d382 --- types/2020-08-27/Accounts.d.ts | 4 ++-- types/2020-08-27/Capabilities.d.ts | 4 ++-- types/2020-08-27/Checkout/Sessions.d.ts | 13 ++++++------ types/2020-08-27/Persons.d.ts | 4 ++-- types/2020-08-27/TaxRates.d.ts | 27 ++++++++++++++++++++++--- types/2020-08-27/WebhookEndpoints.d.ts | 2 ++ 6 files changed, 39 insertions(+), 15 deletions(-) diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index 9fce5d318d..0fd3ba5218 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -540,7 +540,7 @@ declare module 'stripe' { /** * Fields that are due and can be satisfied by providing the corresponding alternative fields instead. */ - alternatives?: Array | null; + alternatives: Array | 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. @@ -662,7 +662,7 @@ declare module 'stripe' { /** * Fields that are due and can be satisfied by providing the corresponding alternative fields instead. */ - alternatives?: Array | null; + alternatives: Array | 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. diff --git a/types/2020-08-27/Capabilities.d.ts b/types/2020-08-27/Capabilities.d.ts index 786b23bead..e230027cfa 100644 --- a/types/2020-08-27/Capabilities.d.ts +++ b/types/2020-08-27/Capabilities.d.ts @@ -46,7 +46,7 @@ declare module 'stripe' { /** * Fields that are due and can be satisfied by providing the corresponding alternative fields instead. */ - alternatives?: Array; + alternatives: Array | 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. @@ -168,7 +168,7 @@ declare module 'stripe' { /** * Fields that are due and can be satisfied by providing the corresponding alternative fields instead. */ - alternatives?: Array; + alternatives: Array | 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. diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index 1423783e42..76692da678 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -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. @@ -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). @@ -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. @@ -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. @@ -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; diff --git a/types/2020-08-27/Persons.d.ts b/types/2020-08-27/Persons.d.ts index 55ddd0a3ff..8697e7c71e 100644 --- a/types/2020-08-27/Persons.d.ts +++ b/types/2020-08-27/Persons.d.ts @@ -228,7 +228,7 @@ declare module 'stripe' { /** * Fields that are due and can be satisfied by providing the corresponding alternative fields instead. */ - alternatives?: Array; + alternatives: Array | 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. @@ -374,7 +374,7 @@ declare module 'stripe' { /** * Fields that are due and can be satisfied by providing the corresponding alternative fields instead. */ - alternatives?: Array; + alternatives: Array | 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. diff --git a/types/2020-08-27/TaxRates.d.ts b/types/2020-08-27/TaxRates.d.ts index b9e6bacecc..83bac68616 100644 --- a/types/2020-08-27/TaxRates.d.ts +++ b/types/2020-08-27/TaxRates.d.ts @@ -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 { @@ -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 { @@ -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 { diff --git a/types/2020-08-27/WebhookEndpoints.d.ts b/types/2020-08-27/WebhookEndpoints.d.ts index ec5d67f3f1..563bb70d21 100644 --- a/types/2020-08-27/WebhookEndpoints.d.ts +++ b/types/2020-08-27/WebhookEndpoints.d.ts @@ -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' @@ -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'