From cbd4fecc30b656a77300843ac65e674425bbe5bb Mon Sep 17 00:00:00 2001 From: vladimir Date: Fri, 4 Oct 2024 12:47:45 +0200 Subject: [PATCH 1/2] feat: add threeds configuration typesript description --- src/core/configurations/Configuration.ts | 3 +++ src/core/configurations/ThreeDSConfiguration.ts | 5 +++++ src/index.ts | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 src/core/configurations/ThreeDSConfiguration.ts diff --git a/src/core/configurations/Configuration.ts b/src/core/configurations/Configuration.ts index 9c2808f0..0b198c99 100644 --- a/src/core/configurations/Configuration.ts +++ b/src/core/configurations/Configuration.ts @@ -3,6 +3,7 @@ import { ApplePayConfiguration } from './ApplePayConfiguration'; import { CardsConfiguration } from './CardsConfiguration'; import { DropInConfiguration } from './DropInConfiguration'; import { GooglePayConfiguration } from './GooglePayConfiguration'; +import { ThreeDSConfiguration } from './ThreeDSConfiguration'; /** Collection of available environments. */ export type Environment = @@ -54,4 +55,6 @@ export interface Configuration extends BaseConfiguration { applepay?: ApplePayConfiguration; /** Google Pay component configuration. */ googlepay?: GooglePayConfiguration; + /** 3D Secure 2 authenticationconfiguration. */ + threeDS2?: ThreeDSConfiguration; } diff --git a/src/core/configurations/ThreeDSConfiguration.ts b/src/core/configurations/ThreeDSConfiguration.ts new file mode 100644 index 00000000..a3844936 --- /dev/null +++ b/src/core/configurations/ThreeDSConfiguration.ts @@ -0,0 +1,5 @@ +/** 3D Secure 2 authenticationconfiguration. */ +export interface ThreeDSConfiguration { + /** Alternative `returnURL` value that could be used for 3D Security 2 OOB flow. */ + requestorAppUrl?: string; +} diff --git a/src/index.ts b/src/index.ts index 9c49afc3..8274fa2f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,6 +60,8 @@ export type { export type { DropInConfiguration } from './core/configurations/DropInConfiguration'; +export type { ThreeDSConfiguration } from './core/configurations/ThreeDSConfiguration'; + export type { AddressLookup, AddressLookupItem, From 645b7052c5269c9da1a12413ed23dc84c8e4086b Mon Sep 17 00:00:00 2001 From: vladimir Date: Fri, 4 Oct 2024 13:15:54 +0200 Subject: [PATCH 2/2] chore: fix typo --- src/core/configurations/Configuration.ts | 2 +- src/core/configurations/ThreeDSConfiguration.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/configurations/Configuration.ts b/src/core/configurations/Configuration.ts index 0b198c99..35d9fd03 100644 --- a/src/core/configurations/Configuration.ts +++ b/src/core/configurations/Configuration.ts @@ -55,6 +55,6 @@ export interface Configuration extends BaseConfiguration { applepay?: ApplePayConfiguration; /** Google Pay component configuration. */ googlepay?: GooglePayConfiguration; - /** 3D Secure 2 authenticationconfiguration. */ + /** 3D Secure 2 authentication configuration. */ threeDS2?: ThreeDSConfiguration; } diff --git a/src/core/configurations/ThreeDSConfiguration.ts b/src/core/configurations/ThreeDSConfiguration.ts index a3844936..e486630a 100644 --- a/src/core/configurations/ThreeDSConfiguration.ts +++ b/src/core/configurations/ThreeDSConfiguration.ts @@ -1,4 +1,3 @@ -/** 3D Secure 2 authenticationconfiguration. */ export interface ThreeDSConfiguration { /** Alternative `returnURL` value that could be used for 3D Security 2 OOB flow. */ requestorAppUrl?: string;