@soltech/fluid-common 0.10.1 → 0.10.3

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
@@ -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 TransactionStatus {
215
+ export declare enum TransactionState {
216
216
  SUCCESS = "SUCCESS",
217
217
  FAIL = "FAIL",
218
218
  PROCESSING = "PROCESSING",
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 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 = {}));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
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 TransactionStatus {
244
+ export enum TransactionState {
245
245
  SUCCESS = 'SUCCESS',
246
246
  FAIL = 'FAIL',
247
247
  PROCESSING = 'PROCESSING',