Skip to content
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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v147
v149
72 changes: 72 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ declare module 'stripe' {
*/
acss_debit_payments?: Capabilities.AcssDebitPayments;

/**
* The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.
*/
affirm_payments?: Capabilities.AffirmPayments;

/**
* The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
*/
Expand Down Expand Up @@ -251,6 +256,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The status of the link_payments capability of the account, or whether the account can directly process Link charges.
*/
link_payments?: Capabilities.LinkPayments;

/**
* The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
*/
Expand Down Expand Up @@ -305,6 +315,8 @@ declare module 'stripe' {
namespace Capabilities {
type AcssDebitPayments = 'active' | 'inactive' | 'pending';

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

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

type AuBecsDebitPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -341,6 +353,8 @@ declare module 'stripe' {

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

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

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

type P24Payments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -1203,6 +1217,11 @@ declare module 'stripe' {
*/
acss_debit_payments?: Capabilities.AcssDebitPayments;

/**
* The affirm_payments capability.
*/
affirm_payments?: Capabilities.AffirmPayments;

/**
* The afterpay_clearpay_payments capability.
*/
Expand Down Expand Up @@ -1293,6 +1312,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The link_payments capability.
*/
link_payments?: Capabilities.LinkPayments;

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

interface AffirmPayments {
/**
* 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 AfterpayClearpayPayments {
/**
* 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 @@ -1478,6 +1509,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface LinkPayments {
/**
* 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 OxxoPayments {
/**
* 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 @@ -1883,6 +1921,11 @@ declare module 'stripe' {
*/
id_number?: string;

/**
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
*/
id_number_secondary?: string;

/**
* The individual's last name.
*/
Expand Down Expand Up @@ -2342,6 +2385,11 @@ declare module 'stripe' {
*/
acss_debit_payments?: Capabilities.AcssDebitPayments;

/**
* The affirm_payments capability.
*/
affirm_payments?: Capabilities.AffirmPayments;

/**
* The afterpay_clearpay_payments capability.
*/
Expand Down Expand Up @@ -2432,6 +2480,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The link_payments capability.
*/
link_payments?: Capabilities.LinkPayments;

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

interface AffirmPayments {
/**
* 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 AfterpayClearpayPayments {
/**
* 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 @@ -2617,6 +2677,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface LinkPayments {
/**
* 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 OxxoPayments {
/**
* 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 @@ -2985,6 +3052,11 @@ declare module 'stripe' {
*/
id_number?: string;

/**
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
*/
id_number_secondary?: string;

/**
* The individual's last name.
*/
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,7 @@ declare module 'stripe' {

type PaymentMethodType =
| 'acss_debit'
| 'affirm'
| 'afterpay_clearpay'
| 'alipay'
| 'au_becs_debit'
Expand Down
5 changes: 5 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ declare module 'stripe' {
DisplayBankTransferInstructions.FinancialAddress
>;

/**
* A link to a hosted page that guides your customer through completing the transfer.
*/
hosted_instructions_url?: string | null;

/**
* A string identifying this payment. Instruct your customer to include this code in the reference or memo field of their bank transfer.
*/
Expand Down
15 changes: 15 additions & 0 deletions types/2020-08-27/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ declare module 'stripe' {
*/
id_number_provided?: boolean;

/**
* Whether the person's `id_number_secondary` was provided.
*/
id_number_secondary_provided?: boolean;

/**
* The person's last name.
*/
Expand Down Expand Up @@ -646,6 +651,11 @@ declare module 'stripe' {
*/
id_number?: string;

/**
* The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
*/
id_number_secondary?: string;

/**
* The person's last name.
*/
Expand Down Expand Up @@ -922,6 +932,11 @@ declare module 'stripe' {
*/
id_number?: string;

/**
* The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
*/
id_number_secondary?: string;

/**
* The person's last name.
*/
Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations).
* Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`.
*/
proration_behavior?: Phase.ProrationBehavior;

Expand Down Expand Up @@ -847,7 +847,7 @@ declare module 'stripe' {
phases?: Array<SubscriptionScheduleUpdateParams.Phase>;

/**
* If the update changes the current phase, indicates if the changes should be prorated. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`.
* If the update changes the current phase, indicates whether the changes should be prorated. The default value is `create_prorations`.
*/
proration_behavior?: SubscriptionScheduleUpdateParams.ProrationBehavior;
}
Expand Down Expand Up @@ -1015,7 +1015,7 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations).
* Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`.
*/
proration_behavior?: Phase.ProrationBehavior;

Expand Down
6 changes: 5 additions & 1 deletion types/2020-08-27/Terminal/Configurations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,11 @@ declare module 'stripe' {
id: string,
params?: ConfigurationUpdateParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Terminal.Configuration>>;
): Promise<
Stripe.Response<
Stripe.Terminal.Configuration | Stripe.Terminal.DeletedConfiguration
>
>;

/**
* Returns a list of Configuration objects.
Expand Down
10 changes: 10 additions & 0 deletions types/2020-08-27/Tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ declare module 'stripe' {
*/
id_number?: string;

/**
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
*/
id_number_secondary?: string;

/**
* The individual's last name.
*/
Expand Down Expand Up @@ -602,6 +607,11 @@ declare module 'stripe' {
*/
id_number?: string;

/**
* The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
*/
id_number_secondary?: string;

/**
* The person's last name.
*/
Expand Down
36 changes: 36 additions & 0 deletions types/2020-08-27/Treasury/FinancialAccounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ declare module 'stripe' {

namespace FinancialAccountCreateParams {
interface Features {
/**
* Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount.
*/
card_issuing?: Features.CardIssuing;

/**
* Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount.
*/
Expand Down Expand Up @@ -296,6 +301,13 @@ declare module 'stripe' {
}

namespace Features {
interface CardIssuing {
/**
* Whether the FinancialAccount should have the Feature.
*/
requested: boolean;
}

interface DepositInsurance {
/**
* Whether the FinancialAccount should have the Feature.
Expand Down Expand Up @@ -449,6 +461,11 @@ declare module 'stripe' {

namespace FinancialAccountUpdateParams {
interface Features {
/**
* Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount.
*/
card_issuing?: Features.CardIssuing;

/**
* Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount.
*/
Expand Down Expand Up @@ -481,6 +498,13 @@ declare module 'stripe' {
}

namespace Features {
interface CardIssuing {
/**
* Whether the FinancialAccount should have the Feature.
*/
requested: boolean;
}

interface DepositInsurance {
/**
* Whether the FinancialAccount should have the Feature.
Expand Down Expand Up @@ -620,6 +644,11 @@ declare module 'stripe' {
}

interface FinancialAccountUpdateFeaturesParams {
/**
* Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount.
*/
card_issuing?: FinancialAccountUpdateFeaturesParams.CardIssuing;

/**
* Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount.
*/
Expand Down Expand Up @@ -657,6 +686,13 @@ declare module 'stripe' {
}

namespace FinancialAccountUpdateFeaturesParams {
interface CardIssuing {
/**
* Whether the FinancialAccount should have the Feature.
*/
requested: boolean;
}

interface DepositInsurance {
/**
* Whether the FinancialAccount should have the Feature.
Expand Down