@soltech/fluid-common 0.0.59 → 0.0.61
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 +10 -0
- package/lib/index.js +9 -0
- package/package.json +1 -1
- package/src/index.ts +11 -0
package/lib/index.d.ts
CHANGED
|
@@ -7,6 +7,14 @@ export declare enum TraitType {
|
|
|
7
7
|
IMAGE = "IMAGE",
|
|
8
8
|
TEXT = "TEXT"
|
|
9
9
|
}
|
|
10
|
+
export declare enum PaymentType {
|
|
11
|
+
BankTransfer = 0,
|
|
12
|
+
CreditCard = 1,
|
|
13
|
+
Crypto = 2,
|
|
14
|
+
DigitalWallet = 3,
|
|
15
|
+
PrepaidCard = 4,
|
|
16
|
+
Voucher = 5
|
|
17
|
+
}
|
|
10
18
|
export interface WalletRequestBody {
|
|
11
19
|
payload?: object | string;
|
|
12
20
|
payloadOptions?: TransactionOptions;
|
|
@@ -21,6 +29,7 @@ export interface WalletConfig {
|
|
|
21
29
|
contentText: Record<string, string>;
|
|
22
30
|
defaultDepositAmount: number;
|
|
23
31
|
logo: string;
|
|
32
|
+
suggestedDepositAmounts: number[];
|
|
24
33
|
theme: Record<string, string>;
|
|
25
34
|
}
|
|
26
35
|
export interface WalletConfigParams {
|
|
@@ -40,6 +49,7 @@ export interface PaymentMethod {
|
|
|
40
49
|
minAmount: number;
|
|
41
50
|
maxAmount: number;
|
|
42
51
|
info: string;
|
|
52
|
+
paymentType: PaymentType;
|
|
43
53
|
}
|
|
44
54
|
export interface RecentMethod {
|
|
45
55
|
accountId: string;
|
package/lib/index.js
CHANGED
|
@@ -9,3 +9,12 @@ export var TraitType;
|
|
|
9
9
|
TraitType["IMAGE"] = "IMAGE";
|
|
10
10
|
TraitType["TEXT"] = "TEXT";
|
|
11
11
|
})(TraitType || (TraitType = {}));
|
|
12
|
+
export var PaymentType;
|
|
13
|
+
(function (PaymentType) {
|
|
14
|
+
PaymentType[PaymentType["BankTransfer"] = 0] = "BankTransfer";
|
|
15
|
+
PaymentType[PaymentType["CreditCard"] = 1] = "CreditCard";
|
|
16
|
+
PaymentType[PaymentType["Crypto"] = 2] = "Crypto";
|
|
17
|
+
PaymentType[PaymentType["DigitalWallet"] = 3] = "DigitalWallet";
|
|
18
|
+
PaymentType[PaymentType["PrepaidCard"] = 4] = "PrepaidCard";
|
|
19
|
+
PaymentType[PaymentType["Voucher"] = 5] = "Voucher";
|
|
20
|
+
})(PaymentType || (PaymentType = {}));
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -10,6 +10,15 @@ export enum TraitType {
|
|
|
10
10
|
TEXT = 'TEXT'
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
export enum PaymentType {
|
|
14
|
+
BankTransfer,
|
|
15
|
+
CreditCard,
|
|
16
|
+
Crypto,
|
|
17
|
+
DigitalWallet,
|
|
18
|
+
PrepaidCard,
|
|
19
|
+
Voucher
|
|
20
|
+
}
|
|
21
|
+
|
|
13
22
|
export interface WalletRequestBody {
|
|
14
23
|
payload?: object | string;
|
|
15
24
|
payloadOptions?: TransactionOptions;
|
|
@@ -26,6 +35,7 @@ export interface WalletConfig {
|
|
|
26
35
|
contentText: Record<string, string>;
|
|
27
36
|
defaultDepositAmount: number;
|
|
28
37
|
logo: string;
|
|
38
|
+
suggestedDepositAmounts: number[];
|
|
29
39
|
theme: Record<string, string>;
|
|
30
40
|
}
|
|
31
41
|
|
|
@@ -48,6 +58,7 @@ export interface PaymentMethod {
|
|
|
48
58
|
minAmount: number;
|
|
49
59
|
maxAmount: number;
|
|
50
60
|
info: string;
|
|
61
|
+
paymentType: PaymentType;
|
|
51
62
|
}
|
|
52
63
|
|
|
53
64
|
export interface RecentMethod {
|