@soltech/fluid-common 0.3.8 → 0.3.10

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;
@@ -76,9 +77,8 @@ export interface RecentMethod extends PaymentMethod {
76
77
  export interface TransactionParams {
77
78
  accountId?: string;
78
79
  amount: number;
79
- providerType: string;
80
+ paymentMethodId: string;
80
81
  preventCancelWithdrawal?: boolean;
81
- service?: string;
82
82
  storeAccount?: boolean;
83
83
  }
84
84
  export interface CreditcardTransactionParams extends TransactionParams {
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
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 {
@@ -89,9 +90,8 @@ export interface RecentMethod extends PaymentMethod {
89
90
  export interface TransactionParams {
90
91
  accountId?: string;
91
92
  amount: number;
92
- providerType: string;
93
+ paymentMethodId: string;
93
94
  preventCancelWithdrawal?: boolean;
94
- service?: string;
95
95
  storeAccount?: boolean;
96
96
  }
97
97