Skip to content

Commit

Permalink
API Updates (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe authored Jun 29, 2021
1 parent 5d7789d commit a9d6737
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
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 @@ -179,6 +179,11 @@ declare module 'stripe' {
*/
bancontact_payments?: Capabilities.BancontactPayments;

/**
* The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
*/
boleto_payments?: Capabilities.BoletoPayments;

/**
* The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
*/
Expand Down Expand Up @@ -276,6 +281,8 @@ declare module 'stripe' {

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

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

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

type CardPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -1039,6 +1046,11 @@ declare module 'stripe' {
*/
bancontact_payments?: Capabilities.BancontactPayments;

/**
* The boleto_payments capability.
*/
boleto_payments?: Capabilities.BoletoPayments;

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

interface BoletoPayments {
/**
* 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 CardIssuing {
/**
* 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 @@ -2137,6 +2156,11 @@ declare module 'stripe' {
*/
bancontact_payments?: Capabilities.BancontactPayments;

/**
* The boleto_payments capability.
*/
boleto_payments?: Capabilities.BoletoPayments;

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

interface BoletoPayments {
/**
* 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 CardIssuing {
/**
* 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
44 changes: 44 additions & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ declare module 'stripe' {

interface PaymentMethodOptions {
acss_debit?: PaymentMethodOptions.AcssDebit;

boleto?: PaymentMethodOptions.Boleto;

oxxo?: PaymentMethodOptions.Oxxo;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -357,6 +361,20 @@ declare module 'stripe' {

type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface Boleto {
/**
* The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
*/
expires_after_days: number;
}

interface Oxxo {
/**
* The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
*/
expires_after_days: number;
}
}

type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
Expand Down Expand Up @@ -1253,6 +1271,16 @@ declare module 'stripe' {
* contains details about the ACSS Debit payment method options.
*/
acss_debit?: PaymentMethodOptions.AcssDebit;

/**
* contains details about the Boleto payment method options.
*/
boleto?: PaymentMethodOptions.Boleto;

/**
* contains details about the OXXO payment method options.
*/
oxxo?: PaymentMethodOptions.Oxxo;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -1308,6 +1336,20 @@ declare module 'stripe' {

type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface Boleto {
/**
* The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
*/
expires_after_days?: number;
}

interface Oxxo {
/**
* The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
*/
expires_after_days?: number;
}
}

type PaymentMethodType =
Expand All @@ -1316,12 +1358,14 @@ declare module 'stripe' {
| 'alipay'
| 'bacs_debit'
| 'bancontact'
| 'boleto'
| 'card'
| 'eps'
| 'fpx'
| 'giropay'
| 'grabpay'
| 'ideal'
| 'oxxo'
| 'p24'
| 'sepa_debit'
| 'sofort';
Expand Down

0 comments on commit a9d6737

Please sign in to comment.