@soltech/fluid-common 0.1.3 → 0.1.5
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 +11 -0
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +13 -0
package/lib/index.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export interface TransactionOptions {
|
|
|
87
87
|
userAgent?: string;
|
|
88
88
|
}
|
|
89
89
|
export interface TransactionResult {
|
|
90
|
+
error?: ProviderTransactionError;
|
|
90
91
|
redirectOutput?: RedirectOutput;
|
|
91
92
|
status: string;
|
|
92
93
|
transactionId: string;
|
|
@@ -98,3 +99,13 @@ export interface RedirectOutput {
|
|
|
98
99
|
width?: number;
|
|
99
100
|
url: string;
|
|
100
101
|
}
|
|
102
|
+
export interface ProviderTransactionError {
|
|
103
|
+
code: string;
|
|
104
|
+
text: string;
|
|
105
|
+
action: ErrorAction;
|
|
106
|
+
}
|
|
107
|
+
export declare enum ErrorAction {
|
|
108
|
+
RETURN_STEP1 = "ReturnStep1",
|
|
109
|
+
RETURN_STEP2 = "ReturnStep2",
|
|
110
|
+
BLOCK_DEPOSITS = "BlockDeposits"
|
|
111
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -18,3 +18,9 @@ export var PaymentType;
|
|
|
18
18
|
PaymentType["PREPAID_CARD"] = "PrepaidCard";
|
|
19
19
|
PaymentType["VOUCHER"] = "Voucher";
|
|
20
20
|
})(PaymentType || (PaymentType = {}));
|
|
21
|
+
export var ErrorAction;
|
|
22
|
+
(function (ErrorAction) {
|
|
23
|
+
ErrorAction["RETURN_STEP1"] = "ReturnStep1";
|
|
24
|
+
ErrorAction["RETURN_STEP2"] = "ReturnStep2";
|
|
25
|
+
ErrorAction["BLOCK_DEPOSITS"] = "BlockDeposits";
|
|
26
|
+
})(ErrorAction || (ErrorAction = {}));
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -103,6 +103,7 @@ export interface TransactionOptions {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export interface TransactionResult {
|
|
106
|
+
error?: ProviderTransactionError;
|
|
106
107
|
redirectOutput?: RedirectOutput;
|
|
107
108
|
status: string;
|
|
108
109
|
transactionId: string;
|
|
@@ -116,3 +117,15 @@ export interface RedirectOutput {
|
|
|
116
117
|
url: string;
|
|
117
118
|
}
|
|
118
119
|
|
|
120
|
+
export interface ProviderTransactionError {
|
|
121
|
+
code: string;
|
|
122
|
+
text: string;
|
|
123
|
+
action: ErrorAction;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export enum ErrorAction {
|
|
127
|
+
RETURN_STEP1 = 'ReturnStep1',
|
|
128
|
+
RETURN_STEP2 = 'ReturnStep2',
|
|
129
|
+
BLOCK_DEPOSITS = 'BlockDeposits'
|
|
130
|
+
}
|
|
131
|
+
|