@soltech/fluid-common 0.1.6 → 0.1.8
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 +6 -1
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +7 -1
package/lib/index.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export interface TransactionOptions {
|
|
|
89
89
|
export interface TransactionResult {
|
|
90
90
|
error?: ProviderTransactionError;
|
|
91
91
|
redirectOutput?: RedirectOutput;
|
|
92
|
-
state:
|
|
92
|
+
state: TransactionState;
|
|
93
93
|
statusCode: string;
|
|
94
94
|
transactionId: string;
|
|
95
95
|
}
|
|
@@ -100,6 +100,11 @@ export interface RedirectOutput {
|
|
|
100
100
|
width?: number;
|
|
101
101
|
url: string;
|
|
102
102
|
}
|
|
103
|
+
export declare enum TransactionState {
|
|
104
|
+
SUCCESS = "SUCCESS",
|
|
105
|
+
FAIL = "FAIL",
|
|
106
|
+
WAITING_INPUT = "WAITING_INPUT"
|
|
107
|
+
}
|
|
103
108
|
export interface ProviderTransactionError {
|
|
104
109
|
code: string;
|
|
105
110
|
text: string;
|
package/lib/index.js
CHANGED
|
@@ -18,6 +18,12 @@ export var PaymentType;
|
|
|
18
18
|
PaymentType["PREPAID_CARD"] = "PrepaidCard";
|
|
19
19
|
PaymentType["VOUCHER"] = "Voucher";
|
|
20
20
|
})(PaymentType || (PaymentType = {}));
|
|
21
|
+
export var TransactionState;
|
|
22
|
+
(function (TransactionState) {
|
|
23
|
+
TransactionState["SUCCESS"] = "SUCCESS";
|
|
24
|
+
TransactionState["FAIL"] = "FAIL";
|
|
25
|
+
TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
|
|
26
|
+
})(TransactionState || (TransactionState = {}));
|
|
21
27
|
export var ErrorAction;
|
|
22
28
|
(function (ErrorAction) {
|
|
23
29
|
ErrorAction["RETURN_STEP1"] = "ReturnStep1";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -105,7 +105,7 @@ export interface TransactionOptions {
|
|
|
105
105
|
export interface TransactionResult {
|
|
106
106
|
error?: ProviderTransactionError;
|
|
107
107
|
redirectOutput?: RedirectOutput;
|
|
108
|
-
state:
|
|
108
|
+
state: TransactionState;
|
|
109
109
|
statusCode: string;
|
|
110
110
|
transactionId: string;
|
|
111
111
|
}
|
|
@@ -118,6 +118,12 @@ export interface RedirectOutput {
|
|
|
118
118
|
url: string;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
export enum TransactionState {
|
|
122
|
+
SUCCESS = 'SUCCESS',
|
|
123
|
+
FAIL = 'FAIL',
|
|
124
|
+
WAITING_INPUT = 'WAITING_INPUT'
|
|
125
|
+
}
|
|
126
|
+
|
|
121
127
|
export interface ProviderTransactionError {
|
|
122
128
|
code: string;
|
|
123
129
|
text: string;
|