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

Merged
merged 1 commit into from
May 7, 2021
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
7 changes: 6 additions & 1 deletion types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,12 @@ declare module 'stripe' {
transit_number: string | null;
}

interface AfterpayClearpay {}
interface AfterpayClearpay {
/**
* Order identifier shown to the customer in Afterpay's online portal.
*/
reference: string | null;
}

interface Alipay {
/**
Expand Down
55 changes: 55 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ declare module 'stripe' {
interface PaymentMethodOptions {
acss_debit?: PaymentMethodOptions.AcssDebit;

afterpay_clearpay?: PaymentMethodOptions.AfterpayClearpay;

alipay?: PaymentMethodOptions.Alipay;

bancontact?: PaymentMethodOptions.Bancontact;
Expand Down Expand Up @@ -471,6 +473,14 @@ declare module 'stripe' {
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface AfterpayClearpay {
/**
* Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about
* the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
*/
reference: string | null;
}

interface Alipay {}

interface Bancontact {
Expand Down Expand Up @@ -1257,6 +1267,13 @@ declare module 'stripe' {
*/
acss_debit?: Stripe.Emptyable<PaymentMethodOptions.AcssDebit>;

/**
* If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
*/
afterpay_clearpay?: Stripe.Emptyable<
PaymentMethodOptions.AfterpayClearpay
>;

/**
* If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
*/
Expand Down Expand Up @@ -1345,6 +1362,14 @@ declare module 'stripe' {
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface AfterpayClearpay {
/**
* Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about
* the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
*/
reference?: string;
}

interface Alipay {}

interface Bancontact {
Expand Down Expand Up @@ -2043,6 +2068,13 @@ declare module 'stripe' {
*/
acss_debit?: Stripe.Emptyable<PaymentMethodOptions.AcssDebit>;

/**
* If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
*/
afterpay_clearpay?: Stripe.Emptyable<
PaymentMethodOptions.AfterpayClearpay
>;

/**
* If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
*/
Expand Down Expand Up @@ -2131,6 +2163,14 @@ declare module 'stripe' {
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface AfterpayClearpay {
/**
* Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about
* the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
*/
reference?: string;
}

interface Alipay {}

interface Bancontact {
Expand Down Expand Up @@ -2943,6 +2983,13 @@ declare module 'stripe' {
*/
acss_debit?: Stripe.Emptyable<PaymentMethodOptions.AcssDebit>;

/**
* If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
*/
afterpay_clearpay?: Stripe.Emptyable<
PaymentMethodOptions.AfterpayClearpay
>;

/**
* If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
*/
Expand Down Expand Up @@ -3031,6 +3078,14 @@ declare module 'stripe' {
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface AfterpayClearpay {
/**
* Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about
* the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
*/
reference?: string;
}

interface Alipay {}

interface Bancontact {
Expand Down