@soltech/fluid-common 0.10.1 → 0.10.4
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 +5 -4
- package/lib/index.js +9 -9
- package/package.json +1 -1
- package/src/index.ts +5 -4
package/lib/index.d.ts
CHANGED
|
@@ -74,7 +74,6 @@ export interface DepositAmountsSettings {
|
|
|
74
74
|
}
|
|
75
75
|
export interface TransactionStatusCheck {
|
|
76
76
|
url: string;
|
|
77
|
-
key: string;
|
|
78
77
|
intervalSeconds: number;
|
|
79
78
|
}
|
|
80
79
|
export interface AllPaymentMethods {
|
|
@@ -195,10 +194,11 @@ export interface TransactionOptions {
|
|
|
195
194
|
trackingData?: object;
|
|
196
195
|
}
|
|
197
196
|
export interface TransactionResult {
|
|
198
|
-
transactionId: string;
|
|
199
|
-
status: TransactionStatus;
|
|
200
197
|
error?: ProviderTransactionError;
|
|
201
198
|
redirectOutput?: RedirectOutput;
|
|
199
|
+
state: TransactionState;
|
|
200
|
+
statusCode: string;
|
|
201
|
+
transactionId: string;
|
|
202
202
|
suggestedAmounts?: DepositAmountsSettings;
|
|
203
203
|
}
|
|
204
204
|
export interface RedirectOutput {
|
|
@@ -212,7 +212,7 @@ export interface RedirectOutput {
|
|
|
212
212
|
width?: number;
|
|
213
213
|
}
|
|
214
214
|
export type RedirectContainer = 'iframe' | 'window' | 'redirect';
|
|
215
|
-
export declare enum
|
|
215
|
+
export declare enum TransactionState {
|
|
216
216
|
SUCCESS = "SUCCESS",
|
|
217
217
|
FAIL = "FAIL",
|
|
218
218
|
PROCESSING = "PROCESSING",
|
|
@@ -226,6 +226,7 @@ export interface ProviderTransactionError {
|
|
|
226
226
|
providerCode: string;
|
|
227
227
|
text: string;
|
|
228
228
|
textTitle: string;
|
|
229
|
+
iconSelection: string;
|
|
229
230
|
}
|
|
230
231
|
export declare enum HttpVerb {
|
|
231
232
|
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 TransactionState;
|
|
35
|
+
(function (TransactionState) {
|
|
36
|
+
TransactionState["SUCCESS"] = "SUCCESS";
|
|
37
|
+
TransactionState["FAIL"] = "FAIL";
|
|
38
|
+
TransactionState["PROCESSING"] = "PROCESSING";
|
|
39
|
+
TransactionState["WAITING_APPROVAL"] = "WAITING_APPROVAL";
|
|
40
|
+
TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
|
|
41
|
+
TransactionState["CANCELLED"] = "CANCELLED";
|
|
42
|
+
})(TransactionState || (TransactionState = {}));
|
|
43
43
|
export var HttpVerb;
|
|
44
44
|
(function (HttpVerb) {
|
|
45
45
|
HttpVerb["DELETE"] = "DELETE";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -84,7 +84,6 @@ export interface DepositAmountsSettings {
|
|
|
84
84
|
|
|
85
85
|
export interface TransactionStatusCheck {
|
|
86
86
|
url: string;
|
|
87
|
-
key: string;
|
|
88
87
|
intervalSeconds: number;
|
|
89
88
|
}
|
|
90
89
|
|
|
@@ -221,10 +220,11 @@ export interface TransactionOptions {
|
|
|
221
220
|
}
|
|
222
221
|
|
|
223
222
|
export interface TransactionResult {
|
|
224
|
-
transactionId: string;
|
|
225
|
-
status: TransactionStatus;
|
|
226
223
|
error?: ProviderTransactionError;
|
|
227
224
|
redirectOutput?: RedirectOutput;
|
|
225
|
+
state: TransactionState;
|
|
226
|
+
statusCode: string;
|
|
227
|
+
transactionId: string;
|
|
228
228
|
suggestedAmounts?: DepositAmountsSettings;
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -241,7 +241,7 @@ export interface RedirectOutput {
|
|
|
241
241
|
|
|
242
242
|
export type RedirectContainer = 'iframe' | 'window' | 'redirect';
|
|
243
243
|
|
|
244
|
-
export enum
|
|
244
|
+
export enum TransactionState {
|
|
245
245
|
SUCCESS = 'SUCCESS',
|
|
246
246
|
FAIL = 'FAIL',
|
|
247
247
|
PROCESSING = 'PROCESSING',
|
|
@@ -256,6 +256,7 @@ export interface ProviderTransactionError {
|
|
|
256
256
|
providerCode: string;
|
|
257
257
|
text: string;
|
|
258
258
|
textTitle: string;
|
|
259
|
+
iconSelection: string;
|
|
259
260
|
}
|
|
260
261
|
|
|
261
262
|
export enum HttpVerb {
|