Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1168

Merged
merged 1 commit into from
Jun 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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