Skip to content

Commit

Permalink
Codegen for openapi v147 (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed May 23, 2022
1 parent d8ef8ec commit ae76904
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v146
v147
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 @@ -291,6 +291,11 @@ declare module 'stripe' {
*/
transfers?: Capabilities.Transfers;

/**
* The status of the banking capability, or whether the account can have bank accounts.
*/
treasury?: Capabilities.Treasury;

/**
* The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
*/
Expand Down Expand Up @@ -352,6 +357,8 @@ declare module 'stripe' {

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

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

type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
}

Expand Down Expand Up @@ -1326,6 +1333,11 @@ declare module 'stripe' {
*/
transfers?: Capabilities.Transfers;

/**
* The treasury capability.
*/
treasury?: Capabilities.Treasury;

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

interface Treasury {
/**
* 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 UsBankAccountAchPayments {
/**
* 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 @@ -2453,6 +2472,11 @@ declare module 'stripe' {
*/
transfers?: Capabilities.Transfers;

/**
* The treasury capability.
*/
treasury?: Capabilities.Treasury;

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

interface Treasury {
/**
* 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 UsBankAccountAchPayments {
/**
* 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

0 comments on commit ae76904

Please sign in to comment.