diff --git a/types/2020-03-02/Accounts.d.ts b/types/2020-03-02/Accounts.d.ts index 8f986a112d..286aa056b1 100644 --- a/types/2020-03-02/Accounts.d.ts +++ b/types/2020-03-02/Accounts.d.ts @@ -425,7 +425,7 @@ declare module 'stripe' { disabled_reason: string | null; /** - * The fields that need to be collected again because validation or verification failed for some reason. + * The fields that are `currently_due` and need to be collected again because validation or verification failed for some reason. */ errors: Array | null; diff --git a/types/2020-03-02/Capabilities.d.ts b/types/2020-03-02/Capabilities.d.ts index 55cc736d12..ff2c1b9950 100644 --- a/types/2020-03-02/Capabilities.d.ts +++ b/types/2020-03-02/Capabilities.d.ts @@ -55,7 +55,7 @@ declare module 'stripe' { disabled_reason: string | null; /** - * The fields that need to be collected again because validation or verification failed for some reason. + * The fields that are `currently_due` and need to be collected again because validation or verification failed for some reason. */ errors: Array; diff --git a/types/2020-03-02/Cards.d.ts b/types/2020-03-02/Cards.d.ts index 2234c4543b..43a839f69c 100644 --- a/types/2020-03-02/Cards.d.ts +++ b/types/2020-03-02/Cards.d.ts @@ -154,7 +154,7 @@ declare module 'stripe' { recipient?: string | Stripe.Recipient | null; /** - * If the card number is tokenized, this is the method that was used. Can be `amex_express_checkout`, `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null. + * If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null. */ tokenization_method: string | null; } diff --git a/types/2020-03-02/Checkout/Sessions.d.ts b/types/2020-03-02/Checkout/Sessions.d.ts index 9690e23122..d44043bfed 100644 --- a/types/2020-03-02/Checkout/Sessions.d.ts +++ b/types/2020-03-02/Checkout/Sessions.d.ts @@ -205,6 +205,7 @@ declare module 'stripe' { | 'el' | 'en' | 'es' + | 'es-419' | 'et' | 'fi' | 'fr' @@ -670,7 +671,7 @@ declare module 'stripe' { quantity: number; /** - * The tax rates which apply to this line item. This is only allowed in subscription mode. + * The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item. This is only allowed in subscription mode. */ tax_rates?: Array; } @@ -758,6 +759,7 @@ declare module 'stripe' { | 'el' | 'en' | 'es' + | 'es-419' | 'et' | 'fi' | 'fr' diff --git a/types/2020-03-02/Customers.d.ts b/types/2020-03-02/Customers.d.ts index 443a2bcdb0..ec6b3e1c62 100644 --- a/types/2020-03-02/Customers.d.ts +++ b/types/2020-03-02/Customers.d.ts @@ -113,7 +113,7 @@ declare module 'stripe' { /** * The customer's current subscriptions, if any. */ - subscriptions?: ApiList; + subscriptions: ApiList | null; /** * Describes the customer's tax exemption status. One of `none`, `exempt`, or `reverse`. When set to `reverse`, invoice and receipt PDFs include the text **"Reverse charge"**. diff --git a/types/2020-03-02/Issuing/Transactions.d.ts b/types/2020-03-02/Issuing/Transactions.d.ts index 49363c5e03..0420e891a4 100644 --- a/types/2020-03-02/Issuing/Transactions.d.ts +++ b/types/2020-03-02/Issuing/Transactions.d.ts @@ -217,7 +217,7 @@ declare module 'stripe' { type: string; /** - * The units for `volume`. One of `us_gallon` or `liter`. + * The units for `volume_decimal`. One of `us_gallon` or `liter`. */ unit: string; diff --git a/types/2020-03-02/Persons.d.ts b/types/2020-03-02/Persons.d.ts index 55b50203c2..25905258b6 100644 --- a/types/2020-03-02/Persons.d.ts +++ b/types/2020-03-02/Persons.d.ts @@ -246,7 +246,7 @@ declare module 'stripe' { currently_due: Array; /** - * The fields that need to be collected again because validation or verification failed for some reason. + * The fields that are `currently_due` and need to be collected again because validation or verification failed for some reason. */ errors: Array; diff --git a/types/2020-03-02/SubscriptionSchedules.d.ts b/types/2020-03-02/SubscriptionSchedules.d.ts index dea1551014..2f236106cb 100644 --- a/types/2020-03-02/SubscriptionSchedules.d.ts +++ b/types/2020-03-02/SubscriptionSchedules.d.ts @@ -96,6 +96,11 @@ declare module 'stripe' { } interface DefaultSettings { + /** + * Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + */ + billing_cycle_anchor: DefaultSettings.BillingCycleAnchor; + /** * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period */ @@ -123,6 +128,8 @@ declare module 'stripe' { } namespace DefaultSettings { + type BillingCycleAnchor = 'automatic' | 'phase_start'; + interface BillingThresholds { /** * Monetary threshold that triggers the subscription to create an invoice @@ -170,6 +177,11 @@ declare module 'stripe' { */ application_fee_percent: number | null; + /** + * Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + */ + billing_cycle_anchor: Phase.BillingCycleAnchor | null; + /** * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period */ @@ -249,6 +261,8 @@ declare module 'stripe' { quantity: number | null; } + type BillingCycleAnchor = 'automatic' | 'phase_start'; + interface BillingThresholds { /** * Monetary threshold that triggers the subscription to create an invoice @@ -376,6 +390,11 @@ declare module 'stripe' { namespace SubscriptionScheduleCreateParams { interface DefaultSettings { + /** + * Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + */ + billing_cycle_anchor?: DefaultSettings.BillingCycleAnchor; + /** * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. */ @@ -403,6 +422,8 @@ declare module 'stripe' { } namespace DefaultSettings { + type BillingCycleAnchor = 'automatic' | 'phase_start'; + interface BillingThresholds { /** * Monetary threshold that triggers the subscription to advance to a new billing period @@ -450,6 +471,11 @@ declare module 'stripe' { */ application_fee_percent?: number; + /** + * Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + */ + billing_cycle_anchor?: Phase.BillingCycleAnchor; + /** * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. */ @@ -563,6 +589,8 @@ declare module 'stripe' { } } + type BillingCycleAnchor = 'automatic' | 'phase_start'; + interface BillingThresholds { /** * Monetary threshold that triggers the subscription to advance to a new billing period @@ -735,6 +763,11 @@ declare module 'stripe' { namespace SubscriptionScheduleUpdateParams { interface DefaultSettings { + /** + * Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + */ + billing_cycle_anchor?: DefaultSettings.BillingCycleAnchor; + /** * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. */ @@ -762,6 +795,8 @@ declare module 'stripe' { } namespace DefaultSettings { + type BillingCycleAnchor = 'automatic' | 'phase_start'; + interface BillingThresholds { /** * Monetary threshold that triggers the subscription to advance to a new billing period @@ -809,6 +844,11 @@ declare module 'stripe' { */ application_fee_percent?: number; + /** + * Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + */ + billing_cycle_anchor?: Phase.BillingCycleAnchor; + /** * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. */ @@ -927,6 +967,8 @@ declare module 'stripe' { } } + type BillingCycleAnchor = 'automatic' | 'phase_start'; + interface BillingThresholds { /** * Monetary threshold that triggers the subscription to advance to a new billing period diff --git a/types/2020-03-02/TaxRates.d.ts b/types/2020-03-02/TaxRates.d.ts index a486fff3af..d2713aa4c4 100644 --- a/types/2020-03-02/TaxRates.d.ts +++ b/types/2020-03-02/TaxRates.d.ts @@ -15,7 +15,7 @@ declare module 'stripe' { object: 'tax_rate'; /** - * Defaults to `true`. When set to `false`, this tax rate cannot be applied to objects in the API, but will still be applied to subscriptions and invoices that already have it set. + * Defaults to `true`. When set to `false`, this tax rate is considered archived and cannot be applied to new applications or Checkout Sessions, but will still be applied to subscriptions and invoices that already have it set. */ active: boolean; @@ -77,7 +77,7 @@ declare module 'stripe' { percentage: number; /** - * Flag determining whether the tax rate is active or inactive. Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications. + * Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications or Checkout Sessions. */ active?: boolean; @@ -111,7 +111,7 @@ declare module 'stripe' { interface TaxRateUpdateParams { /** - * Flag determining whether the tax rate is active or inactive. Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications. + * Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications or Checkout Sessions. */ active?: boolean; @@ -143,12 +143,12 @@ declare module 'stripe' { interface TaxRateListParams extends PaginationParams { /** - * Optional flag to filter by tax rates that are either active or not active (archived) + * Optional flag to filter by tax rates that are either active or inactive (archived). */ active?: boolean; /** - * Optional range for filtering created date + * Optional range for filtering created date. */ created?: RangeQueryParam | number; @@ -158,7 +158,7 @@ declare module 'stripe' { expand?: Array; /** - * Optional flag to filter by tax rates that are inclusive (or those that are not inclusive) + * Optional flag to filter by tax rates that are inclusive (or those that are not inclusive). */ inclusive?: boolean; }