diff --git a/types/2020-08-27/InvoiceLineItems.d.ts b/types/2020-08-27/InvoiceLineItems.d.ts index 0e16212961..b3867db38a 100644 --- a/types/2020-08-27/InvoiceLineItems.d.ts +++ b/types/2020-08-27/InvoiceLineItems.d.ts @@ -183,7 +183,7 @@ declare module 'stripe' { customer_details?: InvoiceLineItemListUpcomingParams.CustomerDetails; /** - * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use `coupon` instead. + * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. This only works for coupons directly applied to the invoice. To apply a coupon to a subscription, you must use the `coupon` parameter instead. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use `coupon` instead. */ discounts?: Stripe.Emptyable< Array diff --git a/types/2020-08-27/Invoices.d.ts b/types/2020-08-27/Invoices.d.ts index 7d5c7cdf44..8a5ec8673d 100644 --- a/types/2020-08-27/Invoices.d.ts +++ b/types/2020-08-27/Invoices.d.ts @@ -1414,7 +1414,7 @@ declare module 'stripe' { customer_details?: InvoiceRetrieveUpcomingParams.CustomerDetails; /** - * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use `coupon` instead. + * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. This only works for coupons directly applied to the invoice. To apply a coupon to a subscription, you must use the `coupon` parameter instead. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use `coupon` instead. */ discounts?: Stripe.Emptyable< Array diff --git a/types/2020-08-27/Subscriptions.d.ts b/types/2020-08-27/Subscriptions.d.ts index ff506a2def..169c81a0c3 100644 --- a/types/2020-08-27/Subscriptions.d.ts +++ b/types/2020-08-27/Subscriptions.d.ts @@ -297,6 +297,8 @@ declare module 'stripe' { } interface Card { + mandate_options?: Card.MandateOptions; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -304,6 +306,27 @@ declare module 'stripe' { } namespace Card { + interface MandateOptions { + /** + * Amount to be charged for future payments. + */ + amount: number | null; + + /** + * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + */ + amount_type: MandateOptions.AmountType | null; + + /** + * A description of the mandate or subscription that is meant to be displayed to the customer. + */ + description: string | null; + } + + namespace MandateOptions { + type AmountType = 'fixed' | 'maximum'; + } + type RequestThreeDSecure = 'any' | 'automatic'; } } @@ -798,6 +821,11 @@ declare module 'stripe' { } interface Card { + /** + * Configuration options for setting up an eMandate for cards issued in India. + */ + mandate_options?: Card.MandateOptions; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -805,6 +833,27 @@ declare module 'stripe' { } namespace Card { + interface MandateOptions { + /** + * Amount to be charged for future payments. + */ + amount?: number; + + /** + * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + */ + amount_type?: MandateOptions.AmountType; + + /** + * A description of the mandate or subscription that is meant to be displayed to the customer. + */ + description?: string; + } + + namespace MandateOptions { + type AmountType = 'fixed' | 'maximum'; + } + type RequestThreeDSecure = 'any' | 'automatic'; } } @@ -1304,6 +1353,11 @@ declare module 'stripe' { } interface Card { + /** + * Configuration options for setting up an eMandate for cards issued in India. + */ + mandate_options?: Card.MandateOptions; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -1311,6 +1365,27 @@ declare module 'stripe' { } namespace Card { + interface MandateOptions { + /** + * Amount to be charged for future payments. + */ + amount?: number; + + /** + * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + */ + amount_type?: MandateOptions.AmountType; + + /** + * A description of the mandate or subscription that is meant to be displayed to the customer. + */ + description?: string; + } + + namespace MandateOptions { + type AmountType = 'fixed' | 'maximum'; + } + type RequestThreeDSecure = 'any' | 'automatic'; } }