Skip to content

Commit

Permalink
Merge pull request #965 from stripe/remi/codegen-b33818a
Browse files Browse the repository at this point in the history
Add support for `cartes_bancaires_payments` as a `Capability`
  • Loading branch information
remi-stripe authored Jul 22, 2020
2 parents 6de0df0 + 6f9fe83 commit da56649
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
33 changes: 33 additions & 0 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ declare module 'stripe' {
*/
card_payments?: Capabilities.CardPayments;

/**
* The status of the Cartes Bancaires payments capability of the account, or whether the account can directly process Cartes Bancaires card charges in EUR currency.
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
*/
Expand Down Expand Up @@ -202,6 +207,8 @@ declare module 'stripe' {

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

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

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

type LegacyPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -878,6 +885,11 @@ declare module 'stripe' {
*/
card_payments?: Capabilities.CardPayments;

/**
* The cartes_bancaires_payments capability.
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

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

interface CartesBancairesPayments {
/**
* 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 JcbPayments {
/**
* 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 @@ -1311,6 +1330,7 @@ declare module 'stripe' {
| 'bacs_debit_payments'
| 'card_issuing'
| 'card_payments'
| 'cartes_bancaires_payments'
| 'jcb_payments'
| 'legacy_payments'
| 'tax_reporting_us_1099_k'
Expand Down Expand Up @@ -1672,6 +1692,11 @@ declare module 'stripe' {
*/
card_payments?: Capabilities.CardPayments;

/**
* The cartes_bancaires_payments capability.
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

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

interface CartesBancairesPayments {
/**
* 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 JcbPayments {
/**
* 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 @@ -2105,6 +2137,7 @@ declare module 'stripe' {
| 'bacs_debit_payments'
| 'card_issuing'
| 'card_payments'
| 'cartes_bancaires_payments'
| 'jcb_payments'
| 'legacy_payments'
| 'tax_reporting_us_1099_k'
Expand Down
8 changes: 4 additions & 4 deletions types/2020-03-02/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ declare module 'stripe' {
plans: Array<Phase.Plan>;

/**
* Controls whether or not the subscription schedule will prorate when transitioning to this phase. Possible values are `create_prorations` and `none`.
* If the subscription schedule will prorate when transitioning to this phase. Possible values are `create_prorations` and `none`.
*/
proration_behavior: Phase.ProrationBehavior | null;

Expand Down Expand Up @@ -522,7 +522,7 @@ declare module 'stripe' {
plans: Array<Phase.Plan>;

/**
* Controls whether or not 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).
* 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).
*/
proration_behavior?: Phase.ProrationBehavior;

Expand Down Expand Up @@ -895,7 +895,7 @@ declare module 'stripe' {
plans: Array<Phase.Plan>;

/**
* Controls whether or not 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).
* 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).
*/
proration_behavior?: Phase.ProrationBehavior;

Expand Down Expand Up @@ -1141,7 +1141,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* If the subscription schedule is `active`, indicates whether or not to generate a final invoice that contains any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`.
* If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`.
*/
invoice_now?: boolean;

Expand Down

0 comments on commit da56649

Please sign in to comment.