@soltech/fluid-common 0.1.5 → 0.1.7

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 CHANGED
@@ -89,7 +89,8 @@ export interface TransactionOptions {
89
89
  export interface TransactionResult {
90
90
  error?: ProviderTransactionError;
91
91
  redirectOutput?: RedirectOutput;
92
- status: string;
92
+ state: TransactionState;
93
+ statusCode: string;
93
94
  transactionId: string;
94
95
  }
95
96
  export interface RedirectOutput {
@@ -99,6 +100,11 @@ export interface RedirectOutput {
99
100
  width?: number;
100
101
  url: string;
101
102
  }
103
+ export declare enum TransactionState {
104
+ SUCCESSFUL = "SUCCESS",
105
+ FAILED = "FAILED",
106
+ WAITING_INPUT = "WAITING_INPUT"
107
+ }
102
108
  export interface ProviderTransactionError {
103
109
  code: string;
104
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["SUCCESSFUL"] = "SUCCESS";
24
+ TransactionState["FAILED"] = "FAILED";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend and API commons",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -105,7 +105,8 @@ export interface TransactionOptions {
105
105
  export interface TransactionResult {
106
106
  error?: ProviderTransactionError;
107
107
  redirectOutput?: RedirectOutput;
108
- status: string;
108
+ state: TransactionState;
109
+ statusCode: string;
109
110
  transactionId: string;
110
111
  }
111
112
 
@@ -117,6 +118,12 @@ export interface RedirectOutput {
117
118
  url: string;
118
119
  }
119
120
 
121
+ export enum TransactionState {
122
+ SUCCESSFUL = 'SUCCESS',
123
+ FAILED = 'FAILED',
124
+ WAITING_INPUT = 'WAITING_INPUT'
125
+ }
126
+
120
127
  export interface ProviderTransactionError {
121
128
  code: string;
122
129
  text: string;