@transmitsecurity/platform-web-sdk 2.1.4-beta-24499833561.0 → 2.2.0
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.
- package/CHANGELOG.md +10 -0
- package/dist/common.cjs +1 -1
- package/dist/common.js +1 -1
- package/dist/drs.cjs +1 -1
- package/dist/drs.d.ts +61 -13
- package/dist/drs.js +1 -1
- package/dist/ido.cjs +1 -1
- package/dist/ido.js +1 -1
- package/dist/idv.cjs +1 -1
- package/dist/idv.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/ts-platform-websdk.js +1 -1
- package/dist/web-sdk-drs+idv+webauthn+ido.js +1 -1
- package/dist/web-sdk.d.ts +62 -14
- package/dist/webauthn.cjs +1 -1
- package/dist/webauthn.js +1 -1
- package/package.json +1 -7
package/dist/drs.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ type LightweightPayload = {
|
|
|
21
21
|
events: Array<Record<string, unknown>>;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
type TransactionType = 'purchase' | 'bill_payment' | 'mobile_recharge' | 'money_transfer' | 'credit_transfer' | 'credit_redemption' | 'top_up' | 'withdrawal' | 'investment' | 'loan' | 'refund' | 'other';
|
|
25
|
+
type TransactionMethod = 'bank_account' | 'wire' | 'card' | 'p2p' | 'wallet';
|
|
26
|
+
type AvsMatchLevel = 'none' | 'postal' | 'street' | 'full' | 'unknown';
|
|
24
27
|
interface ActionResponse {
|
|
25
28
|
/** The token return by the SDK when the action was reported */
|
|
26
29
|
actionToken?: string;
|
|
@@ -55,19 +58,73 @@ interface ConstructorOptions {
|
|
|
55
58
|
interface TransactionData {
|
|
56
59
|
amount: number;
|
|
57
60
|
currency: string;
|
|
61
|
+
type?: TransactionType;
|
|
62
|
+
method?: TransactionMethod;
|
|
63
|
+
channelId?: string;
|
|
58
64
|
reason?: string;
|
|
59
65
|
transactionDate?: number;
|
|
60
66
|
payer?: {
|
|
61
|
-
|
|
67
|
+
accountId?: string;
|
|
68
|
+
accountNumber?: string;
|
|
69
|
+
accountCountryCode?: string;
|
|
62
70
|
bankIdentifier?: string;
|
|
63
71
|
branchIdentifier?: string;
|
|
64
|
-
|
|
72
|
+
name?: string;
|
|
73
|
+
customerTier?: string;
|
|
74
|
+
card?: {
|
|
75
|
+
holderName?: string;
|
|
76
|
+
bin?: string;
|
|
77
|
+
last4?: string;
|
|
78
|
+
};
|
|
79
|
+
billingInfo?: {
|
|
80
|
+
name?: string;
|
|
81
|
+
addressLine1?: string;
|
|
82
|
+
addressLine2?: string;
|
|
83
|
+
city?: string;
|
|
84
|
+
state?: string;
|
|
85
|
+
zipPostalCode?: string;
|
|
86
|
+
country?: string;
|
|
87
|
+
email?: string;
|
|
88
|
+
phone?: string;
|
|
89
|
+
};
|
|
65
90
|
};
|
|
66
91
|
payee?: {
|
|
67
|
-
|
|
92
|
+
accountId?: string;
|
|
93
|
+
accountNumber?: string;
|
|
94
|
+
accountCountryCode?: string;
|
|
68
95
|
bankIdentifier?: string;
|
|
69
96
|
branchIdentifier?: string;
|
|
70
|
-
|
|
97
|
+
name?: string;
|
|
98
|
+
card?: {
|
|
99
|
+
holderName?: string;
|
|
100
|
+
bin?: string;
|
|
101
|
+
last4?: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
purchase?: {
|
|
105
|
+
totalItems?: number;
|
|
106
|
+
products: {
|
|
107
|
+
id?: string;
|
|
108
|
+
name?: string;
|
|
109
|
+
amount?: number;
|
|
110
|
+
price?: number;
|
|
111
|
+
}[];
|
|
112
|
+
shippingInfo?: {
|
|
113
|
+
name?: string;
|
|
114
|
+
addressLine1?: string;
|
|
115
|
+
addressLine2?: string;
|
|
116
|
+
city?: string;
|
|
117
|
+
state?: string;
|
|
118
|
+
zipPostalCode?: string;
|
|
119
|
+
country?: string;
|
|
120
|
+
email?: string;
|
|
121
|
+
phone?: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
avs?: {
|
|
125
|
+
code?: string;
|
|
126
|
+
provider?: string;
|
|
127
|
+
matchLevel?: AvsMatchLevel;
|
|
71
128
|
};
|
|
72
129
|
}
|
|
73
130
|
interface ActionEventOptions {
|
|
@@ -204,15 +261,6 @@ declare class TSAccountProtection {
|
|
|
204
261
|
getSecureSessionToken(actionType?: string | null, expirationSeconds?: number): Promise<string>;
|
|
205
262
|
}
|
|
206
263
|
|
|
207
|
-
declare module '@transmit-security/web-sdk-common/dist/module-metadata/module-metadata' {
|
|
208
|
-
interface initConfigParams {
|
|
209
|
-
drs?: InitOptions & ConstructorOptions & {
|
|
210
|
-
enabled: boolean;
|
|
211
|
-
} & {
|
|
212
|
-
clientId?: string;
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
264
|
/**
|
|
217
265
|
* Reports a user action event to the SDK
|
|
218
266
|
* @param actionType Type of user action event that was predefined in the Transmit Security server
|