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 #1261

Merged
merged 2 commits into from
Sep 29, 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
33 changes: 32 additions & 1 deletion types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ declare module 'stripe' {
*/
jcb_payments?: Capabilities.JcbPayments;

/**
* The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
*/
klarna_payments?: Capabilities.KlarnaPayments;

/**
* The status of the legacy payments capability of the account.
*/
Expand Down Expand Up @@ -303,6 +308,8 @@ declare module 'stripe' {

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

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

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

type OxxoPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -905,7 +912,7 @@ declare module 'stripe' {

interface Payouts {
/**
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See our [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances) documentation for details. Default value is `true` for Express accounts and `false` for Custom accounts.
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See our [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances) documentation for details. Default value is `false` for Custom accounts, otherwise `true`.
*/
debit_negative_balances: boolean;

Expand Down Expand Up @@ -1209,6 +1216,11 @@ declare module 'stripe' {
*/
jcb_payments?: Capabilities.JcbPayments;

/**
* The klarna_payments capability.
*/
klarna_payments?: Capabilities.KlarnaPayments;

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

interface KlarnaPayments {
/**
* 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.
Expand Down Expand Up @@ -2233,6 +2252,11 @@ declare module 'stripe' {
*/
jcb_payments?: Capabilities.JcbPayments;

/**
* The klarna_payments capability.
*/
klarna_payments?: Capabilities.KlarnaPayments;

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

interface KlarnaPayments {
/**
* 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.
Expand Down
3 changes: 3 additions & 0 deletions types/2020-08-27/BalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ declare module 'stripe' {
}

interface BalanceTransactionListParams extends PaginationParams {
/**
* This parameter is deprecated and we recommend listing by created and filtering in memory instead.
*/
available_on?: Stripe.RangeQueryParam | number;

created?: Stripe.RangeQueryParam | number;
Expand Down