Skip to content

Commit

Permalink
Merge pull request #963 from stripe/remi/codegen-2b0b953
Browse files Browse the repository at this point in the history
Add support for `capabilities` as a parameter on `Account` create and update
  • Loading branch information
remi-stripe authored Jul 20, 2020
2 parents 3c09a09 + f9e5bbf commit f57809b
Showing 1 changed file with 236 additions and 2 deletions.
238 changes: 236 additions & 2 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,11 @@ declare module 'stripe' {
*/
business_type?: AccountCreateParams.BusinessType;

/**
* Each key of the dictionary represents a capability, and each capability maps to its settings (e.g. whether it has been requested or not). Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
*/
capabilities?: AccountCreateParams.Capabilities;

/**
* Information about the company or business. This field is null unless `business_type` is set to `company`, `government_entity`, or `non_profit`.
*/
Expand Down Expand Up @@ -749,7 +754,7 @@ declare module 'stripe' {
metadata?: MetadataParam | null;

/**
* The set of capabilities you want to unlock for this account. Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
* (Deprecated) Alternative to `capabilities`. The set of capabilities you want to unlock for this account. Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
*/
requested_capabilities?: Array<AccountCreateParams.RequestedCapability>;

Expand Down Expand Up @@ -852,6 +857,118 @@ declare module 'stripe' {
| 'individual'
| 'non_profit';

interface Capabilities {
/**
* The au_becs_debit_payments capability.
*/
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;

/**
* The bacs_debit_payments capability.
*/
bacs_debit_payments?: Capabilities.BacsDebitPayments;

/**
* The card_issuing capability.
*/
card_issuing?: Capabilities.CardIssuing;

/**
* The card_payments capability.
*/
card_payments?: Capabilities.CardPayments;

/**
* The jcb_payments capability.
*/
jcb_payments?: Capabilities.JcbPayments;

/**
* The legacy_payments capability.
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The tax_reporting_us_1099_k capability.
*/
tax_reporting_us_1099_k?: Capabilities.TaxReportingUs1099K;

/**
* The tax_reporting_us_1099_misc capability.
*/
tax_reporting_us_1099_misc?: Capabilities.TaxReportingUs1099Misc;

/**
* The transfers capability.
*/
transfers?: Capabilities.Transfers;
}

namespace Capabilities {
interface AuBecsDebitPayments {
/**
* 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 BacsDebitPayments {
/**
* 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.
*/
requested?: boolean;
}

interface CardPayments {
/**
* 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.
*/
requested?: boolean;
}

interface LegacyPayments {
/**
* 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.
*/
requested?: boolean;
}

interface TaxReportingUs1099Misc {
/**
* 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 Transfers {
/**
* 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 Company {
/**
* The company's primary address.
Expand Down Expand Up @@ -1393,6 +1510,11 @@ declare module 'stripe' {
*/
business_type?: AccountUpdateParams.BusinessType;

/**
* Each key of the dictionary represents a capability, and each capability maps to its settings (e.g. whether it has been requested or not). Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
*/
capabilities?: AccountUpdateParams.Capabilities;

/**
* Information about the company or business. This field is null unless `business_type` is set to `company`, `government_entity`, or `non_profit`.
*/
Expand Down Expand Up @@ -1431,7 +1553,7 @@ declare module 'stripe' {
metadata?: MetadataParam | null;

/**
* The set of capabilities you want to unlock for this account. Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
* (Deprecated) Alternative to `capabilities`. The set of capabilities you want to unlock for this account. Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.
*/
requested_capabilities?: Array<AccountUpdateParams.RequestedCapability>;

Expand Down Expand Up @@ -1529,6 +1651,118 @@ declare module 'stripe' {
| 'individual'
| 'non_profit';

interface Capabilities {
/**
* The au_becs_debit_payments capability.
*/
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;

/**
* The bacs_debit_payments capability.
*/
bacs_debit_payments?: Capabilities.BacsDebitPayments;

/**
* The card_issuing capability.
*/
card_issuing?: Capabilities.CardIssuing;

/**
* The card_payments capability.
*/
card_payments?: Capabilities.CardPayments;

/**
* The jcb_payments capability.
*/
jcb_payments?: Capabilities.JcbPayments;

/**
* The legacy_payments capability.
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The tax_reporting_us_1099_k capability.
*/
tax_reporting_us_1099_k?: Capabilities.TaxReportingUs1099K;

/**
* The tax_reporting_us_1099_misc capability.
*/
tax_reporting_us_1099_misc?: Capabilities.TaxReportingUs1099Misc;

/**
* The transfers capability.
*/
transfers?: Capabilities.Transfers;
}

namespace Capabilities {
interface AuBecsDebitPayments {
/**
* 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 BacsDebitPayments {
/**
* 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.
*/
requested?: boolean;
}

interface CardPayments {
/**
* 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.
*/
requested?: boolean;
}

interface LegacyPayments {
/**
* 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.
*/
requested?: boolean;
}

interface TaxReportingUs1099Misc {
/**
* 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 Transfers {
/**
* 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 Company {
/**
* The company's primary address.
Expand Down

0 comments on commit f57809b

Please sign in to comment.