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 ThreeDSecure on Issuing Authorization #834

Merged
merged 1 commit into from
Mar 12, 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
20 changes: 18 additions & 2 deletions types/2020-03-02/Issuing/Authorizations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ declare module 'stripe' {
address_zip_check: VerificationData.AddressZipCheck;

/**
* Whether 3DS authentication was performed.
* [DEPRECATED] Whether 3DS authentication was performed.
*/
authentication: VerificationData.Authentication;
authentication?: VerificationData.Authentication;

/**
* Whether the cardholder provided a CVC and if it matched Stripe's record.
Expand All @@ -279,6 +279,11 @@ declare module 'stripe' {
* Whether the cardholder provided an expiry date and if it matched Stripe's record.
*/
expiry_check: VerificationData.ExpiryCheck;

/**
* 3D Secure details on this authorization.
*/
three_d_secure: VerificationData.ThreeDSecure | null;
}

namespace VerificationData {
Expand All @@ -291,6 +296,17 @@ declare module 'stripe' {
type CvcCheck = 'match' | 'mismatch' | 'not_provided';

type ExpiryCheck = 'match' | 'mismatch' | 'not_provided';

interface ThreeDSecure {
/**
* The outcome of the 3D Secure authentication request.
*/
result: ThreeDSecure.Result;
}

namespace ThreeDSecure {
type Result = 'attempt_acknowledged' | 'authenticated' | 'failed';
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions types/2020-03-02/Issuing/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ declare module 'stripe' {

interface DisputeListParams extends PaginationParams {
/**
* Only return issuing disputes that were created during the given date interval.
* Select issuing disputes that were created during the given date interval.
*/
created?: RangeQueryParam | number;

/**
* Only return issuing disputes for the given transaction.
* Select the issuing dispute for the given transaction.
*/
disputed_transaction?: string;

Expand Down
4 changes: 3 additions & 1 deletion types/2020-03-02/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ declare module 'stripe' {
* throughout its lifetime as it interfaces with Stripe.js to perform
* authentication flows and ultimately creates at most one successful charge.
*
* Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents/creating-payment-intents).
* Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents).
*/
payment_intent?: Stripe.PaymentIntent;

Expand Down Expand Up @@ -287,6 +287,8 @@ declare module 'stripe' {
*
* By using SetupIntents, you ensure that your customers experience the minimum set of required friction,
* even as regulations change over time.
*
* Related guide: [Setup Intents API](https://stripe.com/docs/payments/setup-intents).
*/
setup_intent?: Stripe.SetupIntent;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Plans.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ declare module 'stripe' {
/**
* Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `amount`) will be charged per unit in `quantity` (for plans with `usage_type=licensed`), or per unit of total usage (for plans with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
*/
billing_scheme: Plan.BillingScheme | null;
billing_scheme: Plan.BillingScheme;

/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Products.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ declare module 'stripe' {
description: string | null;

/**
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer. Only applicable to products of `type=good`.
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
*/
images: Array<string>;

Expand Down
4 changes: 3 additions & 1 deletion types/2020-03-02/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ declare module 'stripe' {
* throughout its lifetime as it interfaces with Stripe.js to perform
* authentication flows and ultimately creates at most one successful charge.
*
* Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents/creating-payment-intents).
* Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents).
*/
payment_intent?: Stripe.PaymentIntent;

Expand Down Expand Up @@ -189,6 +189,8 @@ declare module 'stripe' {
*
* By using SetupIntents, you ensure that your customers experience the minimum set of required friction,
* even as regulations change over time.
*
* Related guide: [Setup Intents API](https://stripe.com/docs/payments/setup-intents).
*/
setup_intent?: Stripe.SetupIntent;

Expand Down