@worthai/onboarding-sdk 2.0.14 → 2.0.15
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.
|
@@ -9,16 +9,51 @@ export type DetachedEvent = {
|
|
|
9
9
|
token: string | null;
|
|
10
10
|
};
|
|
11
11
|
} | {
|
|
12
|
-
type: '
|
|
12
|
+
type: 'OPEN_MANUAL_BANKING_ACCOUNT_MODAL';
|
|
13
|
+
payload?: {
|
|
14
|
+
/** Account is present if editing an existing account, otherwise modal is adding a new account */
|
|
15
|
+
account?: {
|
|
16
|
+
id: string;
|
|
17
|
+
bank_account: string;
|
|
18
|
+
routing_number: string;
|
|
19
|
+
subtype: string;
|
|
20
|
+
account_holder_type?: string;
|
|
21
|
+
account_holder_name?: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
} | {
|
|
25
|
+
/** Fired by detached modal when user clicks submit button to pass form data to main iframe */
|
|
26
|
+
type: 'SUBMIT_MANUAL_BANKING_ACCOUNT_MODAL';
|
|
13
27
|
payload: {
|
|
14
|
-
|
|
28
|
+
account: {
|
|
29
|
+
accountId?: string;
|
|
30
|
+
accountNumber: string;
|
|
31
|
+
routingNumber: string;
|
|
32
|
+
accountType?: string;
|
|
33
|
+
accountHolderType?: string | null;
|
|
34
|
+
accountHolderName?: string | null;
|
|
35
|
+
isProcessorOrchestrationEnabled?: boolean;
|
|
36
|
+
};
|
|
15
37
|
};
|
|
16
38
|
} | {
|
|
17
|
-
|
|
39
|
+
/** Fired by main iframe when add/update account API has completed (success or error) so detached modal can close. */
|
|
40
|
+
type: 'MANUAL_BANKING_ACCOUNT_MODAL_SUBMIT_COMPLETE';
|
|
18
41
|
} | {
|
|
19
|
-
type: '
|
|
42
|
+
type: 'OPEN_CONFIRMATION_MODAL';
|
|
43
|
+
payload: {
|
|
44
|
+
key?: string;
|
|
45
|
+
modal_config?: {
|
|
46
|
+
title?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
buttonText?: string;
|
|
49
|
+
type?: 'success' | 'warning' | 'danger' | 'dark';
|
|
50
|
+
};
|
|
51
|
+
};
|
|
20
52
|
} | {
|
|
21
|
-
type: '
|
|
53
|
+
type: 'SUBMIT_CONFIRMATION_MODAL';
|
|
54
|
+
payload: {
|
|
55
|
+
key?: string;
|
|
56
|
+
};
|
|
22
57
|
} | {
|
|
23
58
|
type: 'IDENTITY_VERIFICATION_PASS_SESSION';
|
|
24
59
|
} | {
|