Skip to content

Commit

Permalink
Codegen for openapi v151
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed Jun 6, 2022
1 parent c2959a0 commit 88c5b94
Show file tree
Hide file tree
Showing 13 changed files with 205 additions and 50 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v136
v151
22 changes: 21 additions & 1 deletion types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ declare module 'stripe' {
interface PaymentMethodOptions {
acss_debit?: PaymentMethodOptions.AcssDebit;

affirm?: PaymentMethodOptions.Affirm;

afterpay_clearpay?: PaymentMethodOptions.AfterpayClearpay;

alipay?: PaymentMethodOptions.Alipay;
Expand All @@ -457,6 +459,8 @@ declare module 'stripe' {

bacs_debit?: PaymentMethodOptions.BacsDebit;

bancontact?: PaymentMethodOptions.Bancontact;

boleto?: PaymentMethodOptions.Boleto;

eps?: PaymentMethodOptions.Eps;
Expand All @@ -467,16 +471,22 @@ declare module 'stripe' {

grabpay?: PaymentMethodOptions.Grabpay;

ideal?: PaymentMethodOptions.Ideal;

klarna?: PaymentMethodOptions.Klarna;

konbini?: PaymentMethodOptions.Konbini;

oxxo?: PaymentMethodOptions.Oxxo;

p24?: PaymentMethodOptions.P24;

paynow?: PaymentMethodOptions.Paynow;

sepa_debit?: PaymentMethodOptions.SepaDebit;

sofort?: PaymentMethodOptions.Sofort;

us_bank_account?: PaymentMethodOptions.UsBankAccount;
}

Expand Down Expand Up @@ -531,6 +541,8 @@ declare module 'stripe' {
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface Affirm {}

interface AfterpayClearpay {}

interface Alipay {}
Expand All @@ -539,6 +551,8 @@ declare module 'stripe' {

interface BacsDebit {}

interface Bancontact {}

interface Boleto {
/**
* The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
Expand All @@ -554,6 +568,8 @@ declare module 'stripe' {

interface Grabpay {}

interface Ideal {}

interface Klarna {}

interface Konbini {
Expand All @@ -570,10 +586,14 @@ declare module 'stripe' {
expires_after_days: number;
}

interface P24 {}

interface Paynow {}

interface SepaDebit {}

interface Sofort {}

interface UsBankAccount {
financial_connections?: UsBankAccount.FinancialConnections;

Expand Down Expand Up @@ -1735,7 +1755,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;
}
Expand Down
6 changes: 1 addition & 5 deletions types/2020-08-27/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,7 @@ declare module 'stripe' {
>;

/**
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. Valid values are `create_prorations`, `none`, or `always_invoice`.
*
* Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://stripe.com/docs/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
*
* Prorations can be disabled by passing `none`.
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes.
*/
subscription_proration_behavior?: InvoiceLineItemListUpcomingParams.SubscriptionProrationBehavior;

Expand Down
12 changes: 4 additions & 8 deletions types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare module 'stripe' {
amount_paid: number;

/**
* The amount remaining, in %s, that is due.
* The difference between amount_due and amount_paid, in %s.
*/
amount_remaining: number;

Expand Down Expand Up @@ -1162,7 +1162,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;
}
Expand Down Expand Up @@ -1503,7 +1503,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;
}
Expand Down Expand Up @@ -1732,11 +1732,7 @@ declare module 'stripe' {
>;

/**
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. Valid values are `create_prorations`, `none`, or `always_invoice`.
*
* Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://stripe.com/docs/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
*
* Prorations can be disabled by passing `none`.
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes.
*/
subscription_proration_behavior?: InvoiceRetrieveUpcomingParams.SubscriptionProrationBehavior;

Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

Expand Down Expand Up @@ -4831,7 +4831,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

Expand Down Expand Up @@ -6601,7 +6601,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

Expand Down Expand Up @@ -2153,7 +2153,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

Expand Down Expand Up @@ -3055,7 +3055,7 @@ declare module 'stripe' {
namespace UsBankAccount {
interface FinancialConnections {
/**
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `payment_method`, and `transactions`.
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

Expand Down
18 changes: 3 additions & 15 deletions types/2020-08-27/SubscriptionItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,7 @@ declare module 'stripe' {
price_data?: SubscriptionItemCreateParams.PriceData;

/**
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. Valid values are `create_prorations`, `none`, or `always_invoice`.
*
* Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://stripe.com/docs/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
*
* Prorations can be disabled by passing `none`.
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes.
*/
proration_behavior?: SubscriptionItemCreateParams.ProrationBehavior;

Expand Down Expand Up @@ -300,11 +296,7 @@ declare module 'stripe' {
price_data?: SubscriptionItemUpdateParams.PriceData;

/**
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. Valid values are `create_prorations`, `none`, or `always_invoice`.
*
* Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://stripe.com/docs/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
*
* Prorations can be disabled by passing `none`.
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes.
*/
proration_behavior?: SubscriptionItemUpdateParams.ProrationBehavior;

Expand Down Expand Up @@ -412,11 +404,7 @@ declare module 'stripe' {
clear_usage?: boolean;

/**
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. Valid values are `create_prorations`, `none`, or `always_invoice`.
*
* Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://stripe.com/docs/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
*
* Prorations can be disabled by passing `none`.
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes.
*/
proration_behavior?: SubscriptionItemDeleteParams.ProrationBehavior;

Expand Down
Loading

0 comments on commit 88c5b94

Please sign in to comment.