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

Merged
merged 1 commit into from
Dec 22, 2021
Merged
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
27 changes: 26 additions & 1 deletion types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,8 @@ declare module 'stripe' {

alipay?: PaymentMethodOptions.Alipay;

au_becs_debit?: PaymentMethodOptions.AuBecsDebit;

bancontact?: PaymentMethodOptions.Bancontact;

boleto?: PaymentMethodOptions.Boleto;
Expand Down Expand Up @@ -595,6 +597,8 @@ declare module 'stripe' {

interface Alipay {}

interface AuBecsDebit {}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand Down Expand Up @@ -787,7 +791,7 @@ declare module 'stripe' {
/**
* Type of the payment method for which payment is in `processing` state, one of `card`.
*/
type: string;
type: 'card';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change conversion from string to enum is fine since we haven't actually released #1312 yet.

}

namespace Processing {
Expand Down Expand Up @@ -1489,6 +1493,11 @@ declare module 'stripe' {
*/
alipay?: Stripe.Emptyable<PaymentMethodOptions.Alipay>;

/**
* If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
*/
au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;

/**
* If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
*/
Expand Down Expand Up @@ -1612,6 +1621,8 @@ declare module 'stripe' {

interface Alipay {}

interface AuBecsDebit {}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand Down Expand Up @@ -2433,6 +2444,11 @@ declare module 'stripe' {
*/
alipay?: Stripe.Emptyable<PaymentMethodOptions.Alipay>;

/**
* If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
*/
au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;

/**
* If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
*/
Expand Down Expand Up @@ -2556,6 +2572,8 @@ declare module 'stripe' {

interface Alipay {}

interface AuBecsDebit {}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand Down Expand Up @@ -3491,6 +3509,11 @@ declare module 'stripe' {
*/
alipay?: Stripe.Emptyable<PaymentMethodOptions.Alipay>;

/**
* If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
*/
au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;

/**
* If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
*/
Expand Down Expand Up @@ -3614,6 +3637,8 @@ declare module 'stripe' {

interface Alipay {}

interface AuBecsDebit {}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand Down