@starfish-codes/hellgate 1.0.0-alpha.5 → 1.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ import { HellgateSession } from '../../session';
2
+ export declare class Hellgate3DSHandler {
3
+ private session;
4
+ private domContainer;
5
+ private iframeId;
6
+ private disposers;
7
+ private check3dsIframeDisposers;
8
+ constructor(session: HellgateSession, domContainer?: HTMLElement);
9
+ dispose(): void;
10
+ private sessionStateHandle;
11
+ private initCheck3DSIframes;
12
+ private disposeCheck3DSIframe;
13
+ private startChallenge;
14
+ }
@@ -0,0 +1,2 @@
1
+ export * from './3ds-handler';
2
+ export * from './typings';
@@ -0,0 +1 @@
1
+ export * from './mocks';
@@ -0,0 +1,3 @@
1
+ import { Check3DSSessionStateDTO, Do3DSChallengeSessionStateDTO } from '../typings';
2
+ export declare const sessionCheck3DSActionStateDTOMock: Check3DSSessionStateDTO;
3
+ export declare const sessionDo3DSChallengeActionStateDTOMock: Do3DSChallengeSessionStateDTO;
@@ -0,0 +1,32 @@
1
+ export type Check3DSSessionStateDTO = {
2
+ next_action: 'check_3ds';
3
+ data: {
4
+ threeds_server_trans_id: string;
5
+ threeds_server_callback_url: string;
6
+ mon_url: string;
7
+ };
8
+ };
9
+ export type Check3DSActionDTO = {
10
+ action: 'check_3ds';
11
+ result: {
12
+ requestor_trans_id: string;
13
+ event: string;
14
+ param: string;
15
+ };
16
+ };
17
+ export type Do3DSChallengeSessionStateDTO = {
18
+ next_action: 'do_challange_auth';
19
+ data: {
20
+ threeds_server_trans_id: string;
21
+ challenge_url: string;
22
+ result_mon_url: string;
23
+ };
24
+ };
25
+ export type Do3DSChallengeActionDTO = {
26
+ action: 'do_challange_auth';
27
+ result: {
28
+ requestor_trans_id: string;
29
+ event: string;
30
+ param: string;
31
+ };
32
+ };
@@ -28,7 +28,7 @@ export type TokenizeCardActionDTO = {
28
28
  };
29
29
  export type TokenizeCardSessionStateDTO = {
30
30
  next_action: 'tokenize_card';
31
- configuration: {
31
+ data: {
32
32
  bt_api_key: string;
33
33
  };
34
34
  };