Skip to content

Commit

Permalink
Codegen for openapi d70de34 (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
yejia-stripe authored Jan 12, 2022
1 parent f7fe155 commit 2a8aa0d
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/2020-08-27/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<InvoiceLineItemListUpcomingParams.Discount>
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<InvoiceRetrieveUpcomingParams.Discount>
Expand Down
75 changes: 75 additions & 0 deletions types/2020-08-27/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,36 @@ 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.
*/
request_three_d_secure: Card.RequestThreeDSecure | null;
}

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';
}
}
Expand Down Expand Up @@ -798,13 +821,39 @@ 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.
*/
request_three_d_secure?: Card.RequestThreeDSecure;
}

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';
}
}
Expand Down Expand Up @@ -1304,13 +1353,39 @@ 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.
*/
request_three_d_secure?: Card.RequestThreeDSecure;
}

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';
}
}
Expand Down

0 comments on commit 2a8aa0d

Please sign in to comment.