Skip to content

Commit

Permalink
Codegen for openapi 84df223 (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Jun 4, 2021
1 parent f1cce4d commit 74d1690
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 13 deletions.
20 changes: 19 additions & 1 deletion types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ declare module 'stripe' {

company?: Account.Company;

controller?: Account.Controller;

/**
* The account's country.
*/
Expand Down Expand Up @@ -509,6 +511,22 @@ declare module 'stripe' {
}
}

interface Controller {
/**
* `true` if the Connect application retrieving the resource controls the account and can therefore exercise [platform controls](https://stripe.com/docs/connect/platform-controls-for-standard-accounts). Otherwise, this field is null.
*/
is_controller?: boolean;

/**
* The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
*/
type?: Controller.Type;
}

namespace Controller {
type Type = 'account' | 'application';
}

interface Requirements {
/**
* Date by which the fields in `currently_due` must be collected to keep the account enabled. These fields may disable the account sooner if the next threshold is reached before they are collected.
Expand Down Expand Up @@ -3042,7 +3060,7 @@ declare module 'stripe' {
): Promise<Stripe.Response<Stripe.Account>>;

/**
* Updates a connected [Express or Custom account](https://stripe.com/docs/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are supported by both account types.
* Updates a [connected account](https://stripe.com/docs/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are not supported for Standard accounts.
*
* To update your own account, use the [Dashboard](https://dashboard.stripe.com/account). Refer to our [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
*/
Expand Down
24 changes: 12 additions & 12 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,18 +696,6 @@ declare module 'stripe' {
*/
cancel_url: string;

/**
* A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
*
* Read more about the supported payment methods and their requirements in our [payment
* method details guide](https://stripe.com/docs/payments/checkout/payment-methods).
*
* If multiple payment methods are passed, Checkout will dynamically reorder them to
* prioritize the most relevant payment methods based on the customer's location and
* other characteristics.
*/
payment_method_types: Array<SessionCreateParams.PaymentMethodType>;

/**
* The URL to which Stripe should send customers when payment or setup
* is complete.
Expand Down Expand Up @@ -807,6 +795,18 @@ declare module 'stripe' {
*/
payment_method_options?: SessionCreateParams.PaymentMethodOptions;

/**
* A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
*
* Read more about the supported payment methods and their requirements in our [payment
* method details guide](https://stripe.com/docs/payments/checkout/payment-methods).
*
* If multiple payment methods are passed, Checkout will dynamically reorder them to
* prioritize the most relevant payment methods based on the customer's location and
* other characteristics.
*/
payment_method_types?: Array<SessionCreateParams.PaymentMethodType>;

/**
* A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.
*/
Expand Down

0 comments on commit 74d1690

Please sign in to comment.