@soltech/fluid-common 0.9.23 → 0.10.1
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/lib/index.d.ts +9 -5
- package/lib/index.js +9 -9
- package/package.json +1 -1
- package/src/index.ts +10 -5
package/lib/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export interface WalletConfig {
|
|
|
53
53
|
suggestedDepositAmounts: number[];
|
|
54
54
|
theme: Record<string, string>;
|
|
55
55
|
transactionToggleDisplayed: boolean;
|
|
56
|
+
transactionStatusCheck?: TransactionStatusCheck;
|
|
56
57
|
}
|
|
57
58
|
export interface Promotion {
|
|
58
59
|
title: string;
|
|
@@ -71,6 +72,11 @@ export interface DepositAmountsSettings {
|
|
|
71
72
|
defaultDepositAmount: number;
|
|
72
73
|
suggestedDepositAmounts: number[];
|
|
73
74
|
}
|
|
75
|
+
export interface TransactionStatusCheck {
|
|
76
|
+
url: string;
|
|
77
|
+
key: string;
|
|
78
|
+
intervalSeconds: number;
|
|
79
|
+
}
|
|
74
80
|
export interface AllPaymentMethods {
|
|
75
81
|
recentPaymentMethods: RecentMethod[];
|
|
76
82
|
paymentMethods: PaymentMethod[];
|
|
@@ -189,11 +195,10 @@ export interface TransactionOptions {
|
|
|
189
195
|
trackingData?: object;
|
|
190
196
|
}
|
|
191
197
|
export interface TransactionResult {
|
|
198
|
+
transactionId: string;
|
|
199
|
+
status: TransactionStatus;
|
|
192
200
|
error?: ProviderTransactionError;
|
|
193
201
|
redirectOutput?: RedirectOutput;
|
|
194
|
-
state: TransactionState;
|
|
195
|
-
statusCode: string;
|
|
196
|
-
transactionId: string;
|
|
197
202
|
suggestedAmounts?: DepositAmountsSettings;
|
|
198
203
|
}
|
|
199
204
|
export interface RedirectOutput {
|
|
@@ -207,7 +212,7 @@ export interface RedirectOutput {
|
|
|
207
212
|
width?: number;
|
|
208
213
|
}
|
|
209
214
|
export type RedirectContainer = 'iframe' | 'window' | 'redirect';
|
|
210
|
-
export declare enum
|
|
215
|
+
export declare enum TransactionStatus {
|
|
211
216
|
SUCCESS = "SUCCESS",
|
|
212
217
|
FAIL = "FAIL",
|
|
213
218
|
PROCESSING = "PROCESSING",
|
|
@@ -221,7 +226,6 @@ export interface ProviderTransactionError {
|
|
|
221
226
|
providerCode: string;
|
|
222
227
|
text: string;
|
|
223
228
|
textTitle: string;
|
|
224
|
-
iconSelection: string;
|
|
225
229
|
}
|
|
226
230
|
export declare enum HttpVerb {
|
|
227
231
|
DELETE = "DELETE",
|
package/lib/index.js
CHANGED
|
@@ -31,15 +31,15 @@ export var RecentMethodMaskedAccountFormat;
|
|
|
31
31
|
RecentMethodMaskedAccountFormat["FULL_VALUE"] = "FullValue";
|
|
32
32
|
RecentMethodMaskedAccountFormat["NOTHING"] = "Nothing";
|
|
33
33
|
})(RecentMethodMaskedAccountFormat || (RecentMethodMaskedAccountFormat = {}));
|
|
34
|
-
export var
|
|
35
|
-
(function (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
})(
|
|
34
|
+
export var TransactionStatus;
|
|
35
|
+
(function (TransactionStatus) {
|
|
36
|
+
TransactionStatus["SUCCESS"] = "SUCCESS";
|
|
37
|
+
TransactionStatus["FAIL"] = "FAIL";
|
|
38
|
+
TransactionStatus["PROCESSING"] = "PROCESSING";
|
|
39
|
+
TransactionStatus["WAITING_APPROVAL"] = "WAITING_APPROVAL";
|
|
40
|
+
TransactionStatus["WAITING_INPUT"] = "WAITING_INPUT";
|
|
41
|
+
TransactionStatus["CANCELLED"] = "CANCELLED";
|
|
42
|
+
})(TransactionStatus || (TransactionStatus = {}));
|
|
43
43
|
export var HttpVerb;
|
|
44
44
|
(function (HttpVerb) {
|
|
45
45
|
HttpVerb["DELETE"] = "DELETE";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -59,6 +59,7 @@ export interface WalletConfig {
|
|
|
59
59
|
suggestedDepositAmounts: number[];
|
|
60
60
|
theme: Record<string, string>;
|
|
61
61
|
transactionToggleDisplayed: boolean;
|
|
62
|
+
transactionStatusCheck?: TransactionStatusCheck;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
export interface Promotion {
|
|
@@ -81,6 +82,12 @@ export interface DepositAmountsSettings {
|
|
|
81
82
|
suggestedDepositAmounts: number[];
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
export interface TransactionStatusCheck {
|
|
86
|
+
url: string;
|
|
87
|
+
key: string;
|
|
88
|
+
intervalSeconds: number;
|
|
89
|
+
}
|
|
90
|
+
|
|
84
91
|
export interface AllPaymentMethods {
|
|
85
92
|
recentPaymentMethods: RecentMethod[];
|
|
86
93
|
paymentMethods: PaymentMethod[];
|
|
@@ -214,11 +221,10 @@ export interface TransactionOptions {
|
|
|
214
221
|
}
|
|
215
222
|
|
|
216
223
|
export interface TransactionResult {
|
|
224
|
+
transactionId: string;
|
|
225
|
+
status: TransactionStatus;
|
|
217
226
|
error?: ProviderTransactionError;
|
|
218
227
|
redirectOutput?: RedirectOutput;
|
|
219
|
-
state: TransactionState;
|
|
220
|
-
statusCode: string;
|
|
221
|
-
transactionId: string;
|
|
222
228
|
suggestedAmounts?: DepositAmountsSettings;
|
|
223
229
|
}
|
|
224
230
|
|
|
@@ -235,7 +241,7 @@ export interface RedirectOutput {
|
|
|
235
241
|
|
|
236
242
|
export type RedirectContainer = 'iframe' | 'window' | 'redirect';
|
|
237
243
|
|
|
238
|
-
export enum
|
|
244
|
+
export enum TransactionStatus {
|
|
239
245
|
SUCCESS = 'SUCCESS',
|
|
240
246
|
FAIL = 'FAIL',
|
|
241
247
|
PROCESSING = 'PROCESSING',
|
|
@@ -250,7 +256,6 @@ export interface ProviderTransactionError {
|
|
|
250
256
|
providerCode: string;
|
|
251
257
|
text: string;
|
|
252
258
|
textTitle: string;
|
|
253
|
-
iconSelection: string;
|
|
254
259
|
}
|
|
255
260
|
|
|
256
261
|
export enum HttpVerb {
|