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

Add support for oxxo_payments capability on Account #1022

Merged
merged 1 commit into from
Sep 29, 2020
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
31 changes: 31 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
*/
oxxo_payments?: Capabilities.OxxoPayments;

/**
* The status of the tax reporting 1099-K (US) capability of the account.
*/
Expand Down Expand Up @@ -221,6 +226,8 @@ declare module 'stripe' {

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

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

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

type TaxReportingUs1099Misc = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -912,6 +919,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The oxxo_payments capability.
*/
oxxo_payments?: Capabilities.OxxoPayments;

/**
* The tax_reporting_us_1099_k capability.
*/
Expand Down Expand Up @@ -985,6 +997,13 @@ declare module 'stripe' {
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.
*/
requested?: boolean;
}

interface TaxReportingUs1099K {
/**
* 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 @@ -1714,6 +1733,11 @@ declare module 'stripe' {
*/
legacy_payments?: Capabilities.LegacyPayments;

/**
* The oxxo_payments capability.
*/
oxxo_payments?: Capabilities.OxxoPayments;

/**
* The tax_reporting_us_1099_k capability.
*/
Expand Down Expand Up @@ -1787,6 +1811,13 @@ declare module 'stripe' {
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.
*/
requested?: boolean;
}

interface TaxReportingUs1099K {
/**
* 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
6 changes: 3 additions & 3 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ declare module 'stripe' {
currency: string;

/**
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. Must be greater than zero when provided. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
*/
application_fee_amount?: number;

Expand Down Expand Up @@ -1274,7 +1274,7 @@ declare module 'stripe' {
amount?: number;

/**
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. Must be greater than zero when provided. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
*/
application_fee_amount?: number | null;

Expand Down Expand Up @@ -1868,7 +1868,7 @@ declare module 'stripe' {
amount_to_capture?: number;

/**
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. Must be greater than zero when provided. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
*/
application_fee_amount?: number;

Expand Down