@soltech/fluid-common 0.3.7 → 0.3.9

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
@@ -18,7 +18,8 @@ export declare enum PaymentType {
18
18
  CRYPTO = "Crypto",
19
19
  DIGITAL_WALLET = "DigitalWallet",
20
20
  PREPAID_CARD = "PrepaidCard",
21
- VOUCHER = "Voucher"
21
+ VOUCHER = "Voucher",
22
+ WEBREDIRECT = "WebRedirect"
22
23
  }
23
24
  export interface WalletRequestBody {
24
25
  payload?: object | string;
@@ -152,10 +153,10 @@ export interface PendingWithdrawal {
152
153
  amount: string;
153
154
  creationDate: string;
154
155
  providerType: string;
155
- state: WithdrawalStatus;
156
+ state: WithdrawalState;
156
157
  transactionId: string;
157
158
  }
158
- export declare enum WithdrawalStatus {
159
+ export declare enum WithdrawalState {
159
160
  REQUESTED = "REQUESTED",
160
161
  PROCESSING = "PROCESSING"
161
162
  }
package/lib/index.js CHANGED
@@ -23,6 +23,7 @@ export var PaymentType;
23
23
  PaymentType["DIGITAL_WALLET"] = "DigitalWallet";
24
24
  PaymentType["PREPAID_CARD"] = "PrepaidCard";
25
25
  PaymentType["VOUCHER"] = "Voucher";
26
+ PaymentType["WEBREDIRECT"] = "WebRedirect";
26
27
  })(PaymentType || (PaymentType = {}));
27
28
  export var TransactionState;
28
29
  (function (TransactionState) {
@@ -38,8 +39,8 @@ export var ErrorAction;
38
39
  ErrorAction["RETURN_STEP2"] = "RETURN_STEP2";
39
40
  ErrorAction["BLOCK_DEPOSITS"] = "BLOCK_DEPOSITS";
40
41
  })(ErrorAction || (ErrorAction = {}));
41
- export var WithdrawalStatus;
42
- (function (WithdrawalStatus) {
43
- WithdrawalStatus["REQUESTED"] = "REQUESTED";
44
- WithdrawalStatus["PROCESSING"] = "PROCESSING";
45
- })(WithdrawalStatus || (WithdrawalStatus = {}));
42
+ export var WithdrawalState;
43
+ (function (WithdrawalState) {
44
+ WithdrawalState["REQUESTED"] = "REQUESTED";
45
+ WithdrawalState["PROCESSING"] = "PROCESSING";
46
+ })(WithdrawalState || (WithdrawalState = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend and API commons",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -22,7 +22,8 @@ export enum PaymentType {
22
22
  CRYPTO = 'Crypto',
23
23
  DIGITAL_WALLET = 'DigitalWallet',
24
24
  PREPAID_CARD = 'PrepaidCard',
25
- VOUCHER = 'Voucher'
25
+ VOUCHER = 'Voucher',
26
+ WEBREDIRECT = 'WebRedirect'
26
27
  }
27
28
 
28
29
  export interface WalletRequestBody {
@@ -175,11 +176,11 @@ export interface PendingWithdrawal {
175
176
  amount: string;
176
177
  creationDate: string;
177
178
  providerType: string;
178
- state: WithdrawalStatus;
179
+ state: WithdrawalState;
179
180
  transactionId: string;
180
181
  }
181
182
 
182
- export enum WithdrawalStatus {
183
+ export enum WithdrawalState {
183
184
  REQUESTED = 'REQUESTED',
184
185
  PROCESSING = 'PROCESSING'
185
186
  }