diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index c2f9ab653d..50c141a9a1 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -35,6 +35,8 @@ declare module 'stripe' { company?: Account.Company; + controller?: Account.Controller; + /** * The account's country. */ @@ -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. @@ -3042,7 +3060,7 @@ declare module 'stripe' { ): Promise>; /** - * 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. */ diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index b9489c178b..8012de6349 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -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; - /** * The URL to which Stripe should send customers when payment or setup * is complete. @@ -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; + /** * A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode. */