@soltech/fluid-common 0.1.20 → 0.2.1
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 +7 -29
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +13 -36
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export declare enum Integration {
|
|
2
|
+
LEFT = "LEFT",
|
|
3
|
+
RIGHT = "RIGHT",
|
|
4
|
+
INLINE = "INLINE"
|
|
5
|
+
}
|
|
1
6
|
export declare enum ContentType {
|
|
2
7
|
PLAIN_TEXT = "PLAIN_TEXT",
|
|
3
8
|
HTML = "HTML"
|
|
@@ -31,6 +36,7 @@ export interface WalletConfig {
|
|
|
31
36
|
logo: string;
|
|
32
37
|
suggestedDepositAmounts: number[];
|
|
33
38
|
theme: Record<string, string>;
|
|
39
|
+
integration: Integration;
|
|
34
40
|
}
|
|
35
41
|
export interface WalletConfigParams {
|
|
36
42
|
contentText: Record<string, ContentType>;
|
|
@@ -50,30 +56,16 @@ export interface PaymentMethod {
|
|
|
50
56
|
maxAmount: number;
|
|
51
57
|
info: string;
|
|
52
58
|
paymentType: PaymentType;
|
|
53
|
-
providerType: string;
|
|
54
|
-
inputFields?: InputField[];
|
|
55
|
-
}
|
|
56
|
-
export interface ProviderTypeInput {
|
|
57
|
-
name: string;
|
|
58
|
-
providerType: string;
|
|
59
|
-
inputFields: InputField[];
|
|
60
|
-
}
|
|
61
|
-
export interface InputField {
|
|
62
|
-
paramName: string;
|
|
63
|
-
format: string;
|
|
64
|
-
text: string;
|
|
65
|
-
placeholderText: string;
|
|
66
59
|
}
|
|
67
60
|
export interface RecentMethod extends PaymentMethod {
|
|
68
61
|
accountId: string;
|
|
69
62
|
maskedAccount: string;
|
|
70
63
|
lastSuccess: string;
|
|
71
|
-
expiryDate: string;
|
|
72
64
|
}
|
|
73
65
|
export interface TransactionParams {
|
|
74
66
|
accountId?: string;
|
|
75
67
|
amount: number;
|
|
76
|
-
|
|
68
|
+
paymentType: string;
|
|
77
69
|
preventCancelWithdrawal?: boolean;
|
|
78
70
|
service?: string;
|
|
79
71
|
storeAccount?: boolean;
|
|
@@ -86,25 +78,11 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
86
78
|
expiryYear?: string;
|
|
87
79
|
}
|
|
88
80
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
89
|
-
accountName?: string;
|
|
90
81
|
accountNumber?: string;
|
|
91
|
-
accountType?: string;
|
|
92
|
-
bankCode?: string;
|
|
93
82
|
bankName?: string;
|
|
94
|
-
beneficiaryCity?: string;
|
|
95
|
-
beneficiaryCountry?: string;
|
|
96
|
-
beneficiaryName?: string;
|
|
97
|
-
beneficiaryState?: string;
|
|
98
|
-
beneficiaryStreet?: string;
|
|
99
|
-
beneficiaryZip?: string;
|
|
100
83
|
bic?: string;
|
|
101
84
|
branchAddress?: string;
|
|
102
|
-
branchCode?: string;
|
|
103
85
|
branchName?: string;
|
|
104
|
-
clearingNumber?: string;
|
|
105
|
-
countryCode?: string;
|
|
106
|
-
iban?: string;
|
|
107
|
-
nationalId?: string;
|
|
108
86
|
}
|
|
109
87
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|
|
110
88
|
email?: string;
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export var Integration;
|
|
2
|
+
(function (Integration) {
|
|
3
|
+
Integration["LEFT"] = "LEFT";
|
|
4
|
+
Integration["RIGHT"] = "RIGHT";
|
|
5
|
+
Integration["INLINE"] = "INLINE";
|
|
6
|
+
})(Integration || (Integration = {}));
|
|
1
7
|
export var ContentType;
|
|
2
8
|
(function (ContentType) {
|
|
3
9
|
ContentType["PLAIN_TEXT"] = "PLAIN_TEXT";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
|
|
2
|
+
export enum Integration {
|
|
3
|
+
LEFT = 'LEFT',
|
|
4
|
+
RIGHT = 'RIGHT',
|
|
5
|
+
INLINE = 'INLINE'
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
export enum ContentType {
|
|
3
9
|
PLAIN_TEXT = 'PLAIN_TEXT',
|
|
4
10
|
HTML = 'HTML'
|
|
@@ -37,6 +43,7 @@ export interface WalletConfig {
|
|
|
37
43
|
logo: string;
|
|
38
44
|
suggestedDepositAmounts: number[];
|
|
39
45
|
theme: Record<string, string>;
|
|
46
|
+
integration: Integration;
|
|
40
47
|
}
|
|
41
48
|
|
|
42
49
|
export interface WalletConfigParams {
|
|
@@ -59,34 +66,18 @@ export interface PaymentMethod {
|
|
|
59
66
|
maxAmount: number;
|
|
60
67
|
info: string;
|
|
61
68
|
paymentType: PaymentType;
|
|
62
|
-
providerType: string;
|
|
63
|
-
inputFields?: InputField[];
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface ProviderTypeInput {
|
|
67
|
-
name: string;
|
|
68
|
-
providerType: string;
|
|
69
|
-
inputFields: InputField[];
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface InputField {
|
|
73
|
-
paramName: string;
|
|
74
|
-
format: string;
|
|
75
|
-
text: string;
|
|
76
|
-
placeholderText: string;
|
|
77
69
|
}
|
|
78
70
|
|
|
79
71
|
export interface RecentMethod extends PaymentMethod {
|
|
80
72
|
accountId: string;
|
|
81
73
|
maskedAccount: string;
|
|
82
74
|
lastSuccess: string;
|
|
83
|
-
expiryDate: string;
|
|
84
75
|
}
|
|
85
76
|
|
|
86
77
|
export interface TransactionParams {
|
|
87
78
|
accountId?: string;
|
|
88
79
|
amount: number;
|
|
89
|
-
|
|
80
|
+
paymentType: string;
|
|
90
81
|
preventCancelWithdrawal?: boolean;
|
|
91
82
|
service?: string;
|
|
92
83
|
storeAccount?: boolean;
|
|
@@ -101,25 +92,11 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
101
92
|
}
|
|
102
93
|
|
|
103
94
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
beneficiaryCity?: string;
|
|
110
|
-
beneficiaryCountry?: string;
|
|
111
|
-
beneficiaryName?: string;
|
|
112
|
-
beneficiaryState?: string;
|
|
113
|
-
beneficiaryStreet?: string;
|
|
114
|
-
beneficiaryZip?: string;
|
|
115
|
-
bic?: string;
|
|
116
|
-
branchAddress?: string;
|
|
117
|
-
branchCode?: string;
|
|
118
|
-
branchName?: string;
|
|
119
|
-
clearingNumber?: string;
|
|
120
|
-
countryCode?: string;
|
|
121
|
-
iban?: string;
|
|
122
|
-
nationalId?: string;
|
|
95
|
+
accountNumber?: string;
|
|
96
|
+
bankName?: string;
|
|
97
|
+
bic?: string;
|
|
98
|
+
branchAddress?: string;
|
|
99
|
+
branchName?: string;
|
|
123
100
|
}
|
|
124
101
|
|
|
125
102
|
export interface DigitalWalletTransactionParams extends TransactionParams {
|