@soltech/fluid-common 0.4.34 → 0.4.35
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 +3 -6
- package/lib/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +57 -60
package/lib/index.d.ts
CHANGED
|
@@ -63,11 +63,6 @@ export interface PaymentMethod {
|
|
|
63
63
|
inputFields?: InputField[];
|
|
64
64
|
bonusCodes?: string[];
|
|
65
65
|
instructions?: string;
|
|
66
|
-
fees: PaymentMethodFees;
|
|
67
|
-
}
|
|
68
|
-
export interface PaymentMethodFees {
|
|
69
|
-
fixedAmount?: string;
|
|
70
|
-
percentage?: string;
|
|
71
66
|
}
|
|
72
67
|
export interface PaymentMethodLogo {
|
|
73
68
|
height: number;
|
|
@@ -165,6 +160,7 @@ export declare enum TransactionState {
|
|
|
165
160
|
}
|
|
166
161
|
export interface ProviderTransactionError {
|
|
167
162
|
code: string;
|
|
163
|
+
textTitle: string;
|
|
168
164
|
text: string;
|
|
169
165
|
action: Action;
|
|
170
166
|
}
|
|
@@ -172,7 +168,8 @@ export declare enum Action {
|
|
|
172
168
|
RESTART_PRESERVING_DETAILS = "RESTART_PRESERVING_DETAILS",
|
|
173
169
|
RESTART_CLEARING_DETAILS = "RESTART_CLEARING_DETAILS",
|
|
174
170
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = "SHOW_DETAILS_STEP_PRESERVING_DETAILS",
|
|
175
|
-
SHOW_DETAILS_STEP_CLEARING_DETAILS = "SHOW_DETAILS_STEP_CLEARING_DETAILS"
|
|
171
|
+
SHOW_DETAILS_STEP_CLEARING_DETAILS = "SHOW_DETAILS_STEP_CLEARING_DETAILS",
|
|
172
|
+
SHOW_CVC_EDIT = "SHOW_CVC_EDIT"
|
|
176
173
|
}
|
|
177
174
|
export interface PendingWithdrawal {
|
|
178
175
|
amount: string;
|
package/lib/index.js
CHANGED
|
@@ -36,6 +36,7 @@ export var Action;
|
|
|
36
36
|
Action["RESTART_CLEARING_DETAILS"] = "RESTART_CLEARING_DETAILS";
|
|
37
37
|
Action["SHOW_DETAILS_STEP_PRESERVING_DETAILS"] = "SHOW_DETAILS_STEP_PRESERVING_DETAILS";
|
|
38
38
|
Action["SHOW_DETAILS_STEP_CLEARING_DETAILS"] = "SHOW_DETAILS_STEP_CLEARING_DETAILS";
|
|
39
|
+
Action["SHOW_CVC_EDIT"] = "SHOW_CVC_EDIT";
|
|
39
40
|
})(Action || (Action = {}));
|
|
40
41
|
export var WithdrawalState;
|
|
41
42
|
(function (WithdrawalState) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
export enum Integration {
|
|
2
3
|
LEFT = 'LEFT',
|
|
3
4
|
RIGHT = 'RIGHT',
|
|
@@ -16,10 +17,10 @@ export enum TraitType {
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export enum PaymentType {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
BANK_TRANSFER = 'BankTransfer',
|
|
21
|
+
CREDIT_CARD = 'CreditCard',
|
|
22
|
+
CRYPTO = 'Crypto',
|
|
23
|
+
EWALLET = 'EWallet'
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
export interface WalletRequestBody {
|
|
@@ -39,7 +40,7 @@ export interface WalletConfig {
|
|
|
39
40
|
defaultDepositAmount: number;
|
|
40
41
|
integration: Integration;
|
|
41
42
|
logo: string;
|
|
42
|
-
|
|
43
|
+
suggestedDepositAmounts: number[];
|
|
43
44
|
theme: Record<string, string>;
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -68,38 +69,32 @@ export interface PaymentMethod {
|
|
|
68
69
|
minAmount: number;
|
|
69
70
|
maxAmount: number;
|
|
70
71
|
info: string;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
paymentType: PaymentType;
|
|
73
|
+
providerType: string;
|
|
74
|
+
inputFields?: InputField[];
|
|
75
|
+
bonusCodes?: string[];
|
|
75
76
|
instructions?: string;
|
|
76
|
-
fees: PaymentMethodFees;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface PaymentMethodFees {
|
|
80
|
-
fixedAmount?: string;
|
|
81
|
-
percentage?: string;
|
|
82
77
|
}
|
|
83
78
|
|
|
84
79
|
export interface PaymentMethodLogo {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
height: number;
|
|
81
|
+
url: string;
|
|
82
|
+
width: number;
|
|
88
83
|
}
|
|
89
84
|
|
|
90
85
|
export interface InputField {
|
|
91
86
|
paramName: string;
|
|
92
87
|
format: string;
|
|
93
88
|
text: string;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
placeholderText: string;
|
|
90
|
+
errorText: string;
|
|
91
|
+
options: InputFieldOption[];
|
|
97
92
|
}
|
|
98
93
|
|
|
99
94
|
export interface InputFieldOption {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
label: string;
|
|
96
|
+
code: string;
|
|
97
|
+
logo?: PaymentMethodLogo;
|
|
103
98
|
}
|
|
104
99
|
|
|
105
100
|
export interface RecentMethod extends PaymentMethod {
|
|
@@ -124,38 +119,38 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
124
119
|
}
|
|
125
120
|
|
|
126
121
|
export interface BankTransferTransactionParams extends TransactionParams {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
122
|
+
accountName?: string;
|
|
123
|
+
accountNumber?: string;
|
|
124
|
+
accountType?: string;
|
|
125
|
+
bankCode?: string;
|
|
126
|
+
bankName?: string;
|
|
127
|
+
beneficiaryCity?: string;
|
|
128
|
+
beneficiaryCountry?: string;
|
|
129
|
+
beneficiaryName?: string;
|
|
130
|
+
beneficiaryState?: string;
|
|
131
|
+
beneficiaryStreet?: string;
|
|
132
|
+
beneficiaryZip?: string;
|
|
133
|
+
bic?: string;
|
|
134
|
+
branchAddress?: string;
|
|
135
|
+
branchCode?: string;
|
|
136
|
+
branchName?: string;
|
|
137
|
+
clearingNumber?: string;
|
|
138
|
+
countryCode?: string;
|
|
139
|
+
iban?: string;
|
|
140
|
+
nationalId?: string;
|
|
146
141
|
}
|
|
147
142
|
|
|
148
143
|
export interface CryptoTransactionParams extends TransactionParams {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
144
|
+
cryptoCurrency?: string;
|
|
145
|
+
destinationTag?: string;
|
|
146
|
+
walletAddress?: string;
|
|
152
147
|
}
|
|
153
148
|
|
|
154
149
|
export interface EWalletTransactionParams extends TransactionParams {
|
|
155
|
-
|
|
150
|
+
customerNumber?: string;
|
|
156
151
|
email?: string;
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
mobile?: string;
|
|
153
|
+
phoneNumber?: string;
|
|
159
154
|
service?: string;
|
|
160
155
|
}
|
|
161
156
|
|
|
@@ -165,7 +160,7 @@ export interface TransactionOptions {
|
|
|
165
160
|
}
|
|
166
161
|
|
|
167
162
|
export interface TransactionResult {
|
|
168
|
-
|
|
163
|
+
error?: ProviderTransactionError;
|
|
169
164
|
redirectOutput?: RedirectOutput;
|
|
170
165
|
state: TransactionState;
|
|
171
166
|
statusCode: string;
|
|
@@ -183,15 +178,16 @@ export interface RedirectOutput {
|
|
|
183
178
|
export enum TransactionState {
|
|
184
179
|
SUCCESS = 'SUCCESS',
|
|
185
180
|
FAIL = 'FAIL',
|
|
186
|
-
|
|
187
|
-
|
|
181
|
+
PROCESSING = 'PROCESSING',
|
|
182
|
+
WAITING_APPROVAL = 'WAITING_APPROVAL',
|
|
188
183
|
WAITING_INPUT = 'WAITING_INPUT'
|
|
189
184
|
}
|
|
190
185
|
|
|
191
186
|
export interface ProviderTransactionError {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
187
|
+
code: string;
|
|
188
|
+
textTitle: string;
|
|
189
|
+
text: string;
|
|
190
|
+
action: Action;
|
|
195
191
|
}
|
|
196
192
|
|
|
197
193
|
export enum Action {
|
|
@@ -199,24 +195,25 @@ export enum Action {
|
|
|
199
195
|
RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',
|
|
200
196
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = 'SHOW_DETAILS_STEP_PRESERVING_DETAILS',
|
|
201
197
|
SHOW_DETAILS_STEP_CLEARING_DETAILS = 'SHOW_DETAILS_STEP_CLEARING_DETAILS',
|
|
198
|
+
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT',
|
|
202
199
|
}
|
|
203
200
|
|
|
204
201
|
export interface PendingWithdrawal {
|
|
205
202
|
amount: string;
|
|
206
|
-
|
|
203
|
+
creationDate: string;
|
|
207
204
|
providerType: string;
|
|
208
205
|
state: WithdrawalState;
|
|
209
206
|
transactionId: string;
|
|
210
207
|
}
|
|
211
208
|
|
|
212
209
|
export enum WithdrawalState {
|
|
213
|
-
|
|
214
|
-
|
|
210
|
+
REQUESTED = 'REQUESTED',
|
|
211
|
+
PROCESSING = 'PROCESSING'
|
|
215
212
|
}
|
|
216
213
|
|
|
217
214
|
export interface AvailableBonusWithPaymentMethods {
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
code: string;
|
|
216
|
+
paymentMethodFilter?: BonusPaymentMethod[];
|
|
220
217
|
}
|
|
221
218
|
|
|
222
219
|
export interface BonusPaymentMethod {
|