Skip to content

Commit

Permalink
Codegen for openapi v171
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe committed Jul 22, 2022
1 parent e3902db commit 8e2d4eb
Show file tree
Hide file tree
Showing 7 changed files with 324 additions and 13 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v170
v171
49 changes: 49 additions & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,8 @@ declare module 'stripe' {
}

interface Card {
installments?: Card.Installments;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand All @@ -673,6 +675,13 @@ declare module 'stripe' {
}

namespace Card {
interface Installments {
/**
* Indicates if installments are enabled
*/
enabled?: boolean;
}

type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
}

Expand Down Expand Up @@ -2151,6 +2160,11 @@ declare module 'stripe' {
}

interface Card {
/**
* Installment options for card payments
*/
installments?: Card.Installments;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand All @@ -2172,6 +2186,41 @@ declare module 'stripe' {
}

namespace Card {
interface Installments {
/**
* Setting to true enables installments for this PaymentIntent.
* This will cause the response to contain a list of available installment plans.
* Setting to false will prevent any selected plan from applying to a charge.
*/
enabled?: boolean;

/**
* The selected installment plan to use for this payment attempt.
* This parameter can only be provided during confirmation.
*/
plan?: Stripe.Emptyable<Installments.Plan>;
}

namespace Installments {
interface Plan {
/**
* For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
*/
count: number;

/**
* For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
* One of `month`.
*/
interval: 'month';

/**
* Type of installment plan, one of `fixed_count`.
*/
type: 'fixed_count';
}
}

type SetupFutureUsage = 'off_session' | 'on_session';
}

Expand Down
80 changes: 80 additions & 0 deletions types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1174,13 +1174,53 @@ declare module 'stripe' {
}

interface Card {
/**
* Installment configuration for payments attempted on this invoice (Mexico Only).
*
* For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
*/
installments?: Card.Installments;

/**
* 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 Installments {
/**
* Setting to true enables installments for this invoice.
* Setting to false will prevent any selected plan from applying to a payment.
*/
enabled?: boolean;

/**
* The selected installment plan to use for this invoice.
*/
plan?: Stripe.Emptyable<Installments.Plan>;
}

namespace Installments {
interface Plan {
/**
* For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
*/
count: number;

/**
* For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
* One of `month`.
*/
interval: 'month';

/**
* Type of installment plan, one of `fixed_count`.
*/
type: 'fixed_count';
}
}

type RequestThreeDSecure = 'any' | 'automatic';
}

Expand Down Expand Up @@ -1555,13 +1595,53 @@ declare module 'stripe' {
}

interface Card {
/**
* Installment configuration for payments attempted on this invoice (Mexico Only).
*
* For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
*/
installments?: Card.Installments;

/**
* 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 Installments {
/**
* Setting to true enables installments for this invoice.
* Setting to false will prevent any selected plan from applying to a payment.
*/
enabled?: boolean;

/**
* The selected installment plan to use for this invoice.
*/
plan?: Stripe.Emptyable<Installments.Plan>;
}

namespace Installments {
interface Plan {
/**
* For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
*/
count: number;

/**
* For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
* One of `month`.
*/
interval: 'month';

/**
* Type of installment plan, one of `fixed_count`.
*/
type: 'fixed_count';
}
}

type RequestThreeDSecure = 'any' | 'automatic';
}

Expand Down
Loading

0 comments on commit 8e2d4eb

Please sign in to comment.