Skip to content

Commit

Permalink
Merge pull request #1025 from stripe/remi/codegen-2a9cde0
Browse files Browse the repository at this point in the history
Add support for new payments capabilities on `Account`
  • Loading branch information
remi-stripe authored Oct 2, 2020
2 parents 7f9a6e6 + 9fa166d commit c85a597
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 7 deletions.
217 changes: 217 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ declare module 'stripe' {
*/
bacs_debit_payments?: Capabilities.BacsDebitPayments;

/**
* The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.
*/
bancontact_payments?: Capabilities.BancontactPayments;

/**
* The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
*/
Expand All @@ -173,11 +178,26 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
*/
eps_payments?: Capabilities.EpsPayments;

/**
* The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
*/
fpx_payments?: Capabilities.FpxPayments;

/**
* The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
*/
giropay_payments?: Capabilities.GiropayPayments;

/**
* The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
*/
ideal_payments?: Capabilities.IdealPayments;

/**
* 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 All @@ -193,6 +213,21 @@ declare module 'stripe' {
*/
oxxo_payments?: Capabilities.OxxoPayments;

/**
* The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
*/
p24_payments?: Capabilities.P24Payments;

/**
* The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
*/
sepa_debit_payments?: Capabilities.SepaDebitPayments;

/**
* The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
*/
sofort_payments?: Capabilities.SofortPayments;

/**
* The status of the tax reporting 1099-K (US) capability of the account.
*/
Expand All @@ -214,20 +249,34 @@ declare module 'stripe' {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type TaxReportingUs1099Misc = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -889,6 +938,11 @@ declare module 'stripe' {
*/
bacs_debit_payments?: Capabilities.BacsDebitPayments;

/**
* The bancontact_payments capability.
*/
bancontact_payments?: Capabilities.BancontactPayments;

/**
* The card_issuing capability.
*/
Expand All @@ -904,11 +958,26 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The eps_payments capability.
*/
eps_payments?: Capabilities.EpsPayments;

/**
* The fpx_payments capability.
*/
fpx_payments?: Capabilities.FpxPayments;

/**
* The giropay_payments capability.
*/
giropay_payments?: Capabilities.GiropayPayments;

/**
* The ideal_payments capability.
*/
ideal_payments?: Capabilities.IdealPayments;

/**
* The jcb_payments capability.
*/
Expand All @@ -924,6 +993,21 @@ declare module 'stripe' {
*/
oxxo_payments?: Capabilities.OxxoPayments;

/**
* The p24_payments capability.
*/
p24_payments?: Capabilities.P24Payments;

/**
* The sepa_debit_payments capability.
*/
sepa_debit_payments?: Capabilities.SepaDebitPayments;

/**
* The sofort_payments capability.
*/
sofort_payments?: Capabilities.SofortPayments;

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

interface BancontactPayments {
/**
* 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 CardIssuing {
/**
* 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 All @@ -976,13 +1067,34 @@ declare module 'stripe' {
requested?: boolean;
}

interface EpsPayments {
/**
* 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 FpxPayments {
/**
* 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 GiropayPayments {
/**
* 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 IdealPayments {
/**
* 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 All @@ -1004,6 +1116,27 @@ declare module 'stripe' {
requested?: boolean;
}

interface P24Payments {
/**
* 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 SepaDebitPayments {
/**
* 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 SofortPayments {
/**
* 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 TaxReportingUs1099K {
/**
* 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 @@ -1703,6 +1836,11 @@ declare module 'stripe' {
*/
bacs_debit_payments?: Capabilities.BacsDebitPayments;

/**
* The bancontact_payments capability.
*/
bancontact_payments?: Capabilities.BancontactPayments;

/**
* The card_issuing capability.
*/
Expand All @@ -1718,11 +1856,26 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The eps_payments capability.
*/
eps_payments?: Capabilities.EpsPayments;

/**
* The fpx_payments capability.
*/
fpx_payments?: Capabilities.FpxPayments;

/**
* The giropay_payments capability.
*/
giropay_payments?: Capabilities.GiropayPayments;

/**
* The ideal_payments capability.
*/
ideal_payments?: Capabilities.IdealPayments;

/**
* The jcb_payments capability.
*/
Expand All @@ -1738,6 +1891,21 @@ declare module 'stripe' {
*/
oxxo_payments?: Capabilities.OxxoPayments;

/**
* The p24_payments capability.
*/
p24_payments?: Capabilities.P24Payments;

/**
* The sepa_debit_payments capability.
*/
sepa_debit_payments?: Capabilities.SepaDebitPayments;

/**
* The sofort_payments capability.
*/
sofort_payments?: Capabilities.SofortPayments;

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

interface BancontactPayments {
/**
* 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 CardIssuing {
/**
* 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 All @@ -1790,13 +1965,34 @@ declare module 'stripe' {
requested?: boolean;
}

interface EpsPayments {
/**
* 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 FpxPayments {
/**
* 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 GiropayPayments {
/**
* 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 IdealPayments {
/**
* 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 All @@ -1818,6 +2014,27 @@ declare module 'stripe' {
requested?: boolean;
}

interface P24Payments {
/**
* 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 SepaDebitPayments {
/**
* 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 SofortPayments {
/**
* 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 TaxReportingUs1099K {
/**
* 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
4 changes: 2 additions & 2 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@ declare module 'stripe' {
reason: string | null;

/**
* Stripe's evaluation of the riskiness of the payment. Possible values for evaluated payments are `normal`, `elevated`, `highest`. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the value `not_assessed`. In the event of an error in the evaluation, this field will have the value `unknown`.
* Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are `normal`, `elevated`, `highest`. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the value `not_assessed`. In the event of an error in the evaluation, this field will have the value `unknown`. This field is only available with Radar.
*/
risk_level?: string;

/**
* Stripe's evaluation of the riskiness of the payment. Possible values for evaluated payments are between 0 and 100. For non-card payments, card-based payments predating the public assignment of risk scores, or in the event of an error during evaluation, this field will not be present. This field is only available with Radar for Fraud Teams.
* Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are between 0 and 100. For non-card payments, card-based payments predating the public assignment of risk scores, or in the event of an error during evaluation, this field will not be present. This field is only available with Radar for Fraud Teams.
*/
risk_score?: number;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/CustomerBalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ declare module 'stripe' {

interface CustomerBalanceTransactionCreateParams {
/**
* The integer amount in **%s** to apply to the customer's balance. Pass a negative amount to credit the customer's balance, and pass in a positive amount to debit the customer's balance.
* The integer amount in **%s** to apply to the customer's credit balance.
*/
amount: number;

Expand Down
Loading

0 comments on commit c85a597

Please sign in to comment.