diff --git a/test/resources/GeneratedTests.spec.js b/test/resources/generated_examples_test.spec.js similarity index 100% rename from test/resources/GeneratedTests.spec.js rename to test/resources/generated_examples_test.spec.js diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index 17b2786a7e..b57a25d24c 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -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. */ @@ -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'; @@ -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; @@ -1209,6 +1216,11 @@ declare module 'stripe' { */ jcb_payments?: Capabilities.JcbPayments; + /** + * The klarna_payments capability. + */ + klarna_payments?: Capabilities.KlarnaPayments; + /** * The legacy_payments capability. */ @@ -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. @@ -2233,6 +2252,11 @@ declare module 'stripe' { */ jcb_payments?: Capabilities.JcbPayments; + /** + * The klarna_payments capability. + */ + klarna_payments?: Capabilities.KlarnaPayments; + /** * The legacy_payments capability. */ @@ -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. diff --git a/types/2020-08-27/BalanceTransactions.d.ts b/types/2020-08-27/BalanceTransactions.d.ts index 989c117c40..1ae0b898c8 100644 --- a/types/2020-08-27/BalanceTransactions.d.ts +++ b/types/2020-08-27/BalanceTransactions.d.ts @@ -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;