Skip to content

Commit

Permalink
Codegen for openapi v148
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed May 25, 2022
1 parent ff15721 commit 23f31cc
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v147
v148
31 changes: 31 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The status of the link_payments capability of the account, or whether the account can directly process Link charges.
*/
link_payments?: Capabilities.LinkPayments;

/**
* The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
*/
Expand Down Expand Up @@ -341,6 +346,8 @@ declare module 'stripe' {

type LegacyPayments = 'active' | 'inactive' | 'pending';

type LinkPayments = 'active' | 'inactive' | 'pending';

type OxxoPayments = 'active' | 'inactive' | 'pending';

type P24Payments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -1293,6 +1300,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The link_payments capability.
*/
link_payments?: Capabilities.LinkPayments;

/**
* The oxxo_payments capability.
*/
Expand Down Expand Up @@ -1478,6 +1490,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface LinkPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface OxxoPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down Expand Up @@ -2432,6 +2451,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The link_payments capability.
*/
link_payments?: Capabilities.LinkPayments;

/**
* The oxxo_payments capability.
*/
Expand Down Expand Up @@ -2617,6 +2641,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface LinkPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface OxxoPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations).
* Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`.
*/
proration_behavior?: Phase.ProrationBehavior;

Expand Down Expand Up @@ -847,7 +847,7 @@ declare module 'stripe' {
phases?: Array<SubscriptionScheduleUpdateParams.Phase>;

/**
* If the update changes the current phase, indicates if the changes should be prorated. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`.
* If the update changes the current phase, indicates whether the changes should be prorated. The default value is `create_prorations`.
*/
proration_behavior?: SubscriptionScheduleUpdateParams.ProrationBehavior;
}
Expand Down Expand Up @@ -1015,7 +1015,7 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations).
* Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`.
*/
proration_behavior?: Phase.ProrationBehavior;

Expand Down

0 comments on commit 23f31cc

Please sign in to comment.