tg-core-components 6.1.16-pix-integration.0 → 6.1.16-pix-vega-integration.0
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/es/widgets/Cashier/Payment/PaymentAccountForms/index.js +40 -9
- package/es/widgets/Cashier/Payment/PaymentAccountParser.js +6 -0
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +115 -74
- package/es/widgets/CashierAccordion/Payment/PaymentAccountParser.js +6 -0
- package/lib/widgets/Cashier/Payment/PaymentAccountForms/index.js +41 -10
- package/lib/widgets/Cashier/Payment/PaymentAccountParser.js +6 -0
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +116 -75
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountParser.js +6 -0
- package/package.json +2 -2
|
@@ -130,6 +130,27 @@ var VenusPoint = function VenusPoint(_ref3) {
|
|
|
130
130
|
);
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
+
var Vega = function Vega(_ref4) {
|
|
134
|
+
var account = _ref4.account,
|
|
135
|
+
intl = _ref4.intl;
|
|
136
|
+
|
|
137
|
+
return React.createElement(
|
|
138
|
+
'div',
|
|
139
|
+
{ className: 'payment-account-info' },
|
|
140
|
+
React.createElement(Input, {
|
|
141
|
+
disabled: account.accountId,
|
|
142
|
+
name: 'username',
|
|
143
|
+
value: account.maskedAccount,
|
|
144
|
+
label: translate({ id: 'cashier.details.username' }, intl)
|
|
145
|
+
}),
|
|
146
|
+
React.createElement(Input, {
|
|
147
|
+
type: 'password',
|
|
148
|
+
name: 'password',
|
|
149
|
+
label: translate({ id: 'cashier.details.password' }, intl)
|
|
150
|
+
})
|
|
151
|
+
);
|
|
152
|
+
};
|
|
153
|
+
|
|
133
154
|
var PPro = function PPro() {
|
|
134
155
|
return React.createElement(
|
|
135
156
|
'div',
|
|
@@ -138,9 +159,9 @@ var PPro = function PPro() {
|
|
|
138
159
|
);
|
|
139
160
|
};
|
|
140
161
|
|
|
141
|
-
var PhoneNumber = function PhoneNumber(
|
|
142
|
-
var account =
|
|
143
|
-
intl =
|
|
162
|
+
var PhoneNumber = function PhoneNumber(_ref5) {
|
|
163
|
+
var account = _ref5.account,
|
|
164
|
+
intl = _ref5.intl;
|
|
144
165
|
|
|
145
166
|
return React.createElement(
|
|
146
167
|
'div',
|
|
@@ -153,9 +174,9 @@ var PhoneNumber = function PhoneNumber(_ref4) {
|
|
|
153
174
|
);
|
|
154
175
|
};
|
|
155
176
|
|
|
156
|
-
var Email = function Email(
|
|
157
|
-
var account =
|
|
158
|
-
intl =
|
|
177
|
+
var Email = function Email(_ref6) {
|
|
178
|
+
var account = _ref6.account,
|
|
179
|
+
intl = _ref6.intl;
|
|
159
180
|
|
|
160
181
|
return React.createElement(
|
|
161
182
|
'div',
|
|
@@ -169,9 +190,9 @@ var Email = function Email(_ref5) {
|
|
|
169
190
|
);
|
|
170
191
|
};
|
|
171
192
|
|
|
172
|
-
var Banklocal = function Banklocal(
|
|
173
|
-
var account =
|
|
174
|
-
intl =
|
|
193
|
+
var Banklocal = function Banklocal(_ref7) {
|
|
194
|
+
var account = _ref7.account,
|
|
195
|
+
intl = _ref7.intl;
|
|
175
196
|
|
|
176
197
|
return React.createElement(
|
|
177
198
|
'div',
|
|
@@ -211,6 +232,11 @@ export var VenusPointDeposit = {
|
|
|
211
232
|
parser: Parser.parseVenusPoint
|
|
212
233
|
};
|
|
213
234
|
|
|
235
|
+
export var VegaDeposit = {
|
|
236
|
+
component: injectMethod('deposit', injectIntl(Vega)),
|
|
237
|
+
parser: Parser.parseVega
|
|
238
|
+
};
|
|
239
|
+
|
|
214
240
|
export var SiruDeposit = {
|
|
215
241
|
component: injectIntl(PhoneNumber),
|
|
216
242
|
parser: Parser.parsePhoneNumber
|
|
@@ -262,6 +288,11 @@ export var VenusPointWithdrawal = {
|
|
|
262
288
|
parser: Parser.parseVenusPoint
|
|
263
289
|
};
|
|
264
290
|
|
|
291
|
+
export var VegaWithdrawal = {
|
|
292
|
+
component: injectMethod('withdraw', injectIntl(Vega)),
|
|
293
|
+
parser: Parser.parseVega
|
|
294
|
+
};
|
|
295
|
+
|
|
265
296
|
export var NetellerWithdrawal = {
|
|
266
297
|
component: injectMethod('withdraw', injectIntl(Neteller)),
|
|
267
298
|
parser: Parser.parseNeteller
|
|
@@ -37,6 +37,12 @@ export var parseVenusPoint = function parseVenusPoint(account) {
|
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
+
export var parseVega = function parseVega(account) {
|
|
41
|
+
return {
|
|
42
|
+
account: account.maskedAccount || account.account
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
40
46
|
export var parsePhoneNumber = function parsePhoneNumber(account) {
|
|
41
47
|
return {
|
|
42
48
|
phoneNumber: account.phoneNumber || account.maskedAccount
|
|
@@ -186,6 +186,34 @@ var VenusPoint = function VenusPoint(_ref3) {
|
|
|
186
186
|
);
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
+
var Vega = function Vega(_ref4) {
|
|
190
|
+
var account = _ref4.account,
|
|
191
|
+
intl = _ref4.intl,
|
|
192
|
+
change = _ref4.change;
|
|
193
|
+
|
|
194
|
+
return React.createElement(
|
|
195
|
+
'div',
|
|
196
|
+
null,
|
|
197
|
+
React.createElement(Input, {
|
|
198
|
+
disabled: account.accountId,
|
|
199
|
+
name: 'username',
|
|
200
|
+
onChange: function onChange(e, username) {
|
|
201
|
+
return change('username', username);
|
|
202
|
+
},
|
|
203
|
+
value: account.maskedAccount,
|
|
204
|
+
label: translate({ id: 'cashier.details.username' }, intl)
|
|
205
|
+
}),
|
|
206
|
+
React.createElement(Input, {
|
|
207
|
+
type: 'password',
|
|
208
|
+
name: 'password',
|
|
209
|
+
onChange: function onChange(e, password) {
|
|
210
|
+
return change('password', password);
|
|
211
|
+
},
|
|
212
|
+
label: translate({ id: 'cashier.details.password' }, intl)
|
|
213
|
+
})
|
|
214
|
+
);
|
|
215
|
+
};
|
|
216
|
+
|
|
189
217
|
var PPro = function PPro() {
|
|
190
218
|
return React.createElement(
|
|
191
219
|
'div',
|
|
@@ -194,11 +222,11 @@ var PPro = function PPro() {
|
|
|
194
222
|
);
|
|
195
223
|
};
|
|
196
224
|
|
|
197
|
-
var PhoneNumber = function PhoneNumber(
|
|
198
|
-
var account =
|
|
199
|
-
intl =
|
|
200
|
-
change =
|
|
201
|
-
values =
|
|
225
|
+
var PhoneNumber = function PhoneNumber(_ref5) {
|
|
226
|
+
var account = _ref5.account,
|
|
227
|
+
intl = _ref5.intl,
|
|
228
|
+
change = _ref5.change,
|
|
229
|
+
values = _ref5.values;
|
|
202
230
|
|
|
203
231
|
return React.createElement(
|
|
204
232
|
'div',
|
|
@@ -216,11 +244,11 @@ var PhoneNumber = function PhoneNumber(_ref4) {
|
|
|
216
244
|
);
|
|
217
245
|
};
|
|
218
246
|
|
|
219
|
-
var Email = function Email(
|
|
220
|
-
var account =
|
|
221
|
-
intl =
|
|
222
|
-
change =
|
|
223
|
-
values =
|
|
247
|
+
var Email = function Email(_ref6) {
|
|
248
|
+
var account = _ref6.account,
|
|
249
|
+
intl = _ref6.intl,
|
|
250
|
+
change = _ref6.change,
|
|
251
|
+
values = _ref6.values;
|
|
224
252
|
|
|
225
253
|
return React.createElement(
|
|
226
254
|
'div',
|
|
@@ -238,10 +266,10 @@ var Email = function Email(_ref5) {
|
|
|
238
266
|
);
|
|
239
267
|
};
|
|
240
268
|
|
|
241
|
-
var Banklocal = function Banklocal(
|
|
242
|
-
var account =
|
|
243
|
-
intl =
|
|
244
|
-
change =
|
|
269
|
+
var Banklocal = function Banklocal(_ref7) {
|
|
270
|
+
var account = _ref7.account,
|
|
271
|
+
intl = _ref7.intl,
|
|
272
|
+
change = _ref7.change;
|
|
245
273
|
|
|
246
274
|
return React.createElement(
|
|
247
275
|
'div',
|
|
@@ -267,11 +295,11 @@ var Banklocal = function Banklocal(_ref6) {
|
|
|
267
295
|
);
|
|
268
296
|
};
|
|
269
297
|
|
|
270
|
-
var BankIBAN = function BankIBAN(
|
|
271
|
-
var account =
|
|
272
|
-
intl =
|
|
273
|
-
change =
|
|
274
|
-
values =
|
|
298
|
+
var BankIBAN = function BankIBAN(_ref8) {
|
|
299
|
+
var account = _ref8.account,
|
|
300
|
+
intl = _ref8.intl,
|
|
301
|
+
change = _ref8.change,
|
|
302
|
+
values = _ref8.values;
|
|
275
303
|
|
|
276
304
|
return React.createElement(
|
|
277
305
|
'div',
|
|
@@ -317,15 +345,16 @@ var BankIBAN = function BankIBAN(_ref7) {
|
|
|
317
345
|
);
|
|
318
346
|
};
|
|
319
347
|
|
|
320
|
-
var AstroPayBank = function AstroPayBank(
|
|
321
|
-
var account =
|
|
322
|
-
intl =
|
|
323
|
-
country =
|
|
324
|
-
method =
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
348
|
+
var AstroPayBank = function AstroPayBank(_ref9) {
|
|
349
|
+
var account = _ref9.account,
|
|
350
|
+
intl = _ref9.intl,
|
|
351
|
+
country = _ref9.country,
|
|
352
|
+
method = _ref9.method,
|
|
353
|
+
methodString = _ref9.methodString,
|
|
354
|
+
detail = _ref9.detail,
|
|
355
|
+
change = _ref9.change,
|
|
356
|
+
values = _ref9.values,
|
|
357
|
+
config = _ref9.config;
|
|
329
358
|
|
|
330
359
|
var _useState = useState([]),
|
|
331
360
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -338,6 +367,8 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
338
367
|
setIsLoading = _useState4[1];
|
|
339
368
|
|
|
340
369
|
useEffect(function () {
|
|
370
|
+
if (method.service === 'PIX') return;
|
|
371
|
+
|
|
341
372
|
setIsLoading(true);
|
|
342
373
|
|
|
343
374
|
axios.post(config.devcode.host + '/directa24/getBanksByCountry', {
|
|
@@ -375,7 +406,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
375
406
|
return React.createElement(
|
|
376
407
|
'div',
|
|
377
408
|
null,
|
|
378
|
-
|
|
409
|
+
methodString === 'withdraw' && methodDetails.idTypes && methodDetails.idTypes.length > 1 && React.createElement(
|
|
379
410
|
Select,
|
|
380
411
|
{
|
|
381
412
|
required: true,
|
|
@@ -416,7 +447,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
416
447
|
defaultMessage: 'nationalId'
|
|
417
448
|
}, intl)
|
|
418
449
|
}),
|
|
419
|
-
|
|
450
|
+
methodString === 'withdraw' && methodDetails.banks && methodDetails.banks.length > 1 && React.createElement(
|
|
420
451
|
Select,
|
|
421
452
|
{
|
|
422
453
|
required: true,
|
|
@@ -445,7 +476,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
445
476
|
);
|
|
446
477
|
})
|
|
447
478
|
),
|
|
448
|
-
|
|
479
|
+
methodString === 'withdraw' && ['BR', 'UY', 'IN'].includes(country) && React.createElement(Input, {
|
|
449
480
|
required: true,
|
|
450
481
|
name: 'bankBranch',
|
|
451
482
|
value: values['bankBranch'],
|
|
@@ -457,7 +488,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
457
488
|
defaultMessage: 'bankBranch'
|
|
458
489
|
}, intl)
|
|
459
490
|
}),
|
|
460
|
-
|
|
491
|
+
methodString === 'withdraw' && methodDetails.accountTypes && methodDetails.accountTypes.length > 1 && React.createElement(
|
|
461
492
|
Select,
|
|
462
493
|
{
|
|
463
494
|
required: true,
|
|
@@ -486,7 +517,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
486
517
|
);
|
|
487
518
|
})
|
|
488
519
|
),
|
|
489
|
-
|
|
520
|
+
methodString === 'withdraw' && React.createElement(Input, {
|
|
490
521
|
required: true,
|
|
491
522
|
name: 'bankAccount',
|
|
492
523
|
value: values['bankAccount'],
|
|
@@ -498,7 +529,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
498
529
|
defaultMessage: 'bankAccount'
|
|
499
530
|
}, intl)
|
|
500
531
|
}),
|
|
501
|
-
|
|
532
|
+
methodString === 'deposit' && methodDetails.services && methodDetails.services.length > 1 && React.createElement(
|
|
502
533
|
Select,
|
|
503
534
|
{
|
|
504
535
|
required: true,
|
|
@@ -530,12 +561,12 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
530
561
|
);
|
|
531
562
|
};
|
|
532
563
|
|
|
533
|
-
var BankIntl = function BankIntl(
|
|
534
|
-
var account =
|
|
535
|
-
intl =
|
|
536
|
-
values =
|
|
537
|
-
change =
|
|
538
|
-
country =
|
|
564
|
+
var BankIntl = function BankIntl(_ref10) {
|
|
565
|
+
var account = _ref10.account,
|
|
566
|
+
intl = _ref10.intl,
|
|
567
|
+
values = _ref10.values,
|
|
568
|
+
change = _ref10.change,
|
|
569
|
+
country = _ref10.country;
|
|
539
570
|
|
|
540
571
|
return React.createElement(
|
|
541
572
|
'div',
|
|
@@ -587,12 +618,12 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
587
618
|
);
|
|
588
619
|
};
|
|
589
620
|
|
|
590
|
-
var CryptoCurrency = function CryptoCurrency(
|
|
591
|
-
var intl =
|
|
592
|
-
detail =
|
|
593
|
-
method =
|
|
594
|
-
values =
|
|
595
|
-
change =
|
|
621
|
+
var CryptoCurrency = function CryptoCurrency(_ref11) {
|
|
622
|
+
var intl = _ref11.intl,
|
|
623
|
+
detail = _ref11.detail,
|
|
624
|
+
method = _ref11.method,
|
|
625
|
+
values = _ref11.values,
|
|
626
|
+
change = _ref11.change;
|
|
596
627
|
|
|
597
628
|
var methodDetails = {
|
|
598
629
|
cryptoCurrencies: getByPath(detail, 'config.cryptoCurrencies', [])
|
|
@@ -645,11 +676,11 @@ var CryptoCurrency = function CryptoCurrency(_ref10) {
|
|
|
645
676
|
);
|
|
646
677
|
};
|
|
647
678
|
|
|
648
|
-
var Jeton = function Jeton(
|
|
649
|
-
var account =
|
|
650
|
-
intl =
|
|
651
|
-
values =
|
|
652
|
-
change =
|
|
679
|
+
var Jeton = function Jeton(_ref12) {
|
|
680
|
+
var account = _ref12.account,
|
|
681
|
+
intl = _ref12.intl,
|
|
682
|
+
values = _ref12.values,
|
|
683
|
+
change = _ref12.change;
|
|
653
684
|
|
|
654
685
|
return React.createElement(
|
|
655
686
|
'div',
|
|
@@ -667,11 +698,11 @@ var Jeton = function Jeton(_ref11) {
|
|
|
667
698
|
);
|
|
668
699
|
};
|
|
669
700
|
|
|
670
|
-
var BestPay = function BestPay(
|
|
671
|
-
var account =
|
|
672
|
-
intl =
|
|
673
|
-
values =
|
|
674
|
-
change =
|
|
701
|
+
var BestPay = function BestPay(_ref13) {
|
|
702
|
+
var account = _ref13.account,
|
|
703
|
+
intl = _ref13.intl,
|
|
704
|
+
values = _ref13.values,
|
|
705
|
+
change = _ref13.change;
|
|
675
706
|
|
|
676
707
|
return React.createElement(
|
|
677
708
|
'div',
|
|
@@ -698,11 +729,11 @@ var BestPay = function BestPay(_ref12) {
|
|
|
698
729
|
);
|
|
699
730
|
};
|
|
700
731
|
|
|
701
|
-
var Mifinity = function Mifinity(
|
|
702
|
-
var account =
|
|
703
|
-
intl =
|
|
704
|
-
change =
|
|
705
|
-
values =
|
|
732
|
+
var Mifinity = function Mifinity(_ref14) {
|
|
733
|
+
var account = _ref14.account,
|
|
734
|
+
intl = _ref14.intl,
|
|
735
|
+
change = _ref14.change,
|
|
736
|
+
values = _ref14.values;
|
|
706
737
|
|
|
707
738
|
return React.createElement(
|
|
708
739
|
'div',
|
|
@@ -720,11 +751,11 @@ var Mifinity = function Mifinity(_ref13) {
|
|
|
720
751
|
);
|
|
721
752
|
};
|
|
722
753
|
|
|
723
|
-
var EzeeWallet = function EzeeWallet(
|
|
724
|
-
var account =
|
|
725
|
-
intl =
|
|
726
|
-
method =
|
|
727
|
-
change =
|
|
754
|
+
var EzeeWallet = function EzeeWallet(_ref15) {
|
|
755
|
+
var account = _ref15.account,
|
|
756
|
+
intl = _ref15.intl,
|
|
757
|
+
method = _ref15.method,
|
|
758
|
+
change = _ref15.change;
|
|
728
759
|
|
|
729
760
|
return React.createElement(
|
|
730
761
|
'div',
|
|
@@ -757,12 +788,12 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
757
788
|
);
|
|
758
789
|
};
|
|
759
790
|
|
|
760
|
-
var Paramount = function Paramount(
|
|
761
|
-
var account =
|
|
762
|
-
intl =
|
|
763
|
-
values =
|
|
764
|
-
change =
|
|
765
|
-
detail =
|
|
791
|
+
var Paramount = function Paramount(_ref16) {
|
|
792
|
+
var account = _ref16.account,
|
|
793
|
+
intl = _ref16.intl,
|
|
794
|
+
values = _ref16.values,
|
|
795
|
+
change = _ref16.change,
|
|
796
|
+
detail = _ref16.detail;
|
|
766
797
|
|
|
767
798
|
var methodDetails = {
|
|
768
799
|
securityQuestions: getByPath(detail, 'config.securityQuestions', [])
|
|
@@ -840,6 +871,11 @@ export var VenusPointDeposit = {
|
|
|
840
871
|
parser: Parser.parseVenusPoint
|
|
841
872
|
};
|
|
842
873
|
|
|
874
|
+
export var VegaDeposit = {
|
|
875
|
+
component: injectMethod('deposit', injectIntl(Vega)),
|
|
876
|
+
parser: Parser.parseVega
|
|
877
|
+
};
|
|
878
|
+
|
|
843
879
|
export var SiruDeposit = {
|
|
844
880
|
component: injectIntl(PhoneNumber),
|
|
845
881
|
parser: Parser.parsePhoneNumber
|
|
@@ -861,7 +897,7 @@ export var MobilePayDeposit = {
|
|
|
861
897
|
};
|
|
862
898
|
|
|
863
899
|
export var AstroPayBankDeposit = {
|
|
864
|
-
component: injectMethod({
|
|
900
|
+
component: injectMethod({ methodString: 'deposit' }, injectIntl(AstroPayBank)),
|
|
865
901
|
initialValues: function initialValues(props) {
|
|
866
902
|
var values = {};
|
|
867
903
|
var details = {
|
|
@@ -947,6 +983,11 @@ export var VenusPointWithdrawal = {
|
|
|
947
983
|
parser: Parser.parseVenusPoint
|
|
948
984
|
};
|
|
949
985
|
|
|
986
|
+
export var VegaWithdrawal = {
|
|
987
|
+
component: injectMethod('withdraw', injectIntl(Vega)),
|
|
988
|
+
parser: Parser.parseVega
|
|
989
|
+
};
|
|
990
|
+
|
|
950
991
|
export var NetellerWithdrawal = {
|
|
951
992
|
component: injectMethod({ method: 'withdraw' }, injectIntl(Neteller)),
|
|
952
993
|
parser: Parser.parseNeteller
|
|
@@ -958,7 +999,7 @@ export var MuchBetterWithdrawal = {
|
|
|
958
999
|
};
|
|
959
1000
|
|
|
960
1001
|
export var AstroPayBankWithdrawal = {
|
|
961
|
-
component: injectMethod({
|
|
1002
|
+
component: injectMethod({ methodString: 'withdraw' }, injectIntl(AstroPayBank)),
|
|
962
1003
|
initialValues: function initialValues(props) {
|
|
963
1004
|
var values = {};
|
|
964
1005
|
var details = {
|
|
@@ -39,6 +39,12 @@ export var parseVenusPoint = function parseVenusPoint(account) {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
+
export var parseVega = function parseVega(account) {
|
|
43
|
+
return {
|
|
44
|
+
account: account.maskedAccount || account.account
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
|
|
42
48
|
export var parseMifinity = function parseMifinity(account) {
|
|
43
49
|
return {
|
|
44
50
|
account: account.maskedAccount || account.account
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.InteracWithdrawal = exports.PaysafecardWithdrawal = exports.InstadebitWithdrawal = exports.IDebitWithdrawal = exports.IdealWithdrawal = exports.EProPaymentWallWithdrawal = exports.EcoPayzWithdrawal = exports.TrustlyWithdrawal = exports.BankWithdrawal = exports.ZimplerWithdrawal = exports.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankLocalWithdrawal = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.SwishDeposit = exports.MobilePayDeposit = exports.PProDeposit = exports.MuchBetterDeposit = exports.SiruDeposit = exports.VenusPointDeposit = exports.NetellerDeposit = exports.CreditcardDeposit = exports.SkrillDeposit = undefined;
|
|
6
|
+
exports.InteracWithdrawal = exports.PaysafecardWithdrawal = exports.InstadebitWithdrawal = exports.IDebitWithdrawal = exports.IdealWithdrawal = exports.EProPaymentWallWithdrawal = exports.EcoPayzWithdrawal = exports.TrustlyWithdrawal = exports.BankWithdrawal = exports.ZimplerWithdrawal = exports.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VegaWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankLocalWithdrawal = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.SwishDeposit = exports.MobilePayDeposit = exports.PProDeposit = exports.MuchBetterDeposit = exports.SiruDeposit = exports.VegaDeposit = exports.VenusPointDeposit = exports.NetellerDeposit = exports.CreditcardDeposit = exports.SkrillDeposit = undefined;
|
|
7
7
|
|
|
8
8
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
9
9
|
|
|
@@ -165,6 +165,27 @@ var VenusPoint = function VenusPoint(_ref3) {
|
|
|
165
165
|
);
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
+
var Vega = function Vega(_ref4) {
|
|
169
|
+
var account = _ref4.account,
|
|
170
|
+
intl = _ref4.intl;
|
|
171
|
+
|
|
172
|
+
return _react2.default.createElement(
|
|
173
|
+
'div',
|
|
174
|
+
{ className: 'payment-account-info' },
|
|
175
|
+
_react2.default.createElement(_TextInput2.default, {
|
|
176
|
+
disabled: account.accountId,
|
|
177
|
+
name: 'username',
|
|
178
|
+
value: account.maskedAccount,
|
|
179
|
+
label: (0, _translate2.default)({ id: 'cashier.details.username' }, intl)
|
|
180
|
+
}),
|
|
181
|
+
_react2.default.createElement(_TextInput2.default, {
|
|
182
|
+
type: 'password',
|
|
183
|
+
name: 'password',
|
|
184
|
+
label: (0, _translate2.default)({ id: 'cashier.details.password' }, intl)
|
|
185
|
+
})
|
|
186
|
+
);
|
|
187
|
+
};
|
|
188
|
+
|
|
168
189
|
var PPro = function PPro() {
|
|
169
190
|
return _react2.default.createElement(
|
|
170
191
|
'div',
|
|
@@ -173,9 +194,9 @@ var PPro = function PPro() {
|
|
|
173
194
|
);
|
|
174
195
|
};
|
|
175
196
|
|
|
176
|
-
var PhoneNumber = function PhoneNumber(
|
|
177
|
-
var account =
|
|
178
|
-
intl =
|
|
197
|
+
var PhoneNumber = function PhoneNumber(_ref5) {
|
|
198
|
+
var account = _ref5.account,
|
|
199
|
+
intl = _ref5.intl;
|
|
179
200
|
|
|
180
201
|
return _react2.default.createElement(
|
|
181
202
|
'div',
|
|
@@ -188,9 +209,9 @@ var PhoneNumber = function PhoneNumber(_ref4) {
|
|
|
188
209
|
);
|
|
189
210
|
};
|
|
190
211
|
|
|
191
|
-
var Email = function Email(
|
|
192
|
-
var account =
|
|
193
|
-
intl =
|
|
212
|
+
var Email = function Email(_ref6) {
|
|
213
|
+
var account = _ref6.account,
|
|
214
|
+
intl = _ref6.intl;
|
|
194
215
|
|
|
195
216
|
return _react2.default.createElement(
|
|
196
217
|
'div',
|
|
@@ -204,9 +225,9 @@ var Email = function Email(_ref5) {
|
|
|
204
225
|
);
|
|
205
226
|
};
|
|
206
227
|
|
|
207
|
-
var Banklocal = function Banklocal(
|
|
208
|
-
var account =
|
|
209
|
-
intl =
|
|
228
|
+
var Banklocal = function Banklocal(_ref7) {
|
|
229
|
+
var account = _ref7.account,
|
|
230
|
+
intl = _ref7.intl;
|
|
210
231
|
|
|
211
232
|
return _react2.default.createElement(
|
|
212
233
|
'div',
|
|
@@ -246,6 +267,11 @@ var VenusPointDeposit = exports.VenusPointDeposit = {
|
|
|
246
267
|
parser: Parser.parseVenusPoint
|
|
247
268
|
};
|
|
248
269
|
|
|
270
|
+
var VegaDeposit = exports.VegaDeposit = {
|
|
271
|
+
component: injectMethod('deposit', (0, _reactIntl.injectIntl)(Vega)),
|
|
272
|
+
parser: Parser.parseVega
|
|
273
|
+
};
|
|
274
|
+
|
|
249
275
|
var SiruDeposit = exports.SiruDeposit = {
|
|
250
276
|
component: (0, _reactIntl.injectIntl)(PhoneNumber),
|
|
251
277
|
parser: Parser.parsePhoneNumber
|
|
@@ -297,6 +323,11 @@ var VenusPointWithdrawal = exports.VenusPointWithdrawal = {
|
|
|
297
323
|
parser: Parser.parseVenusPoint
|
|
298
324
|
};
|
|
299
325
|
|
|
326
|
+
var VegaWithdrawal = exports.VegaWithdrawal = {
|
|
327
|
+
component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Vega)),
|
|
328
|
+
parser: Parser.parseVega
|
|
329
|
+
};
|
|
330
|
+
|
|
300
331
|
var NetellerWithdrawal = exports.NetellerWithdrawal = {
|
|
301
332
|
component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Neteller)),
|
|
302
333
|
parser: Parser.parseNeteller
|
|
@@ -42,6 +42,12 @@ var parseVenusPoint = exports.parseVenusPoint = function parseVenusPoint(account
|
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
var parseVega = exports.parseVega = function parseVega(account) {
|
|
46
|
+
return {
|
|
47
|
+
account: account.maskedAccount || account.account
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
45
51
|
var parsePhoneNumber = exports.parsePhoneNumber = function parsePhoneNumber(account) {
|
|
46
52
|
return {
|
|
47
53
|
phoneNumber: account.phoneNumber || account.maskedAccount
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.InteracWithdrawal = exports.PaysafecardWithdrawal = exports.InstadebitWithdrawal = exports.IDebitWithdrawal = exports.IdealWithdrawal = exports.EProPaymentWallWithdrawal = exports.EcoPayzWithdrawal = exports.TrustlyWithdrawal = exports.BankWithdrawal = exports.ZimplerWithdrawal = exports.MiFinityEWalletWithdrawal = exports.ParamountWithdrawal = exports.EzeeWalletWithdrawal = exports.AstroPayBankWithdrawal = exports.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankIBANWithdrawal = exports.BankLocalWithdrawal = exports.JetonWithdrawal = exports.CryptoCurrencyWithdrawal = exports.BestPayWithdrawal = exports.BankIntlWithdrawal = exports.MiFinityEWalletDeposit = exports.BankIntlDeposit = exports.BestPayDeposit = exports.FunangaDeposit = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.EzeeWalletDeposit = exports.CryptoCurrencyDeposit = exports.AstroPayBankDeposit = exports.MobilePayDeposit = exports.PProDeposit = exports.MuchBetterDeposit = exports.SiruDeposit = exports.VenusPointDeposit = exports.NetellerDeposit = exports.CreditcardDeposit = exports.SkrillDeposit = undefined;
|
|
6
|
+
exports.InteracWithdrawal = exports.PaysafecardWithdrawal = exports.InstadebitWithdrawal = exports.IDebitWithdrawal = exports.IdealWithdrawal = exports.EProPaymentWallWithdrawal = exports.EcoPayzWithdrawal = exports.TrustlyWithdrawal = exports.BankWithdrawal = exports.ZimplerWithdrawal = exports.MiFinityEWalletWithdrawal = exports.ParamountWithdrawal = exports.EzeeWalletWithdrawal = exports.AstroPayBankWithdrawal = exports.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VegaWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankIBANWithdrawal = exports.BankLocalWithdrawal = exports.JetonWithdrawal = exports.CryptoCurrencyWithdrawal = exports.BestPayWithdrawal = exports.BankIntlWithdrawal = exports.MiFinityEWalletDeposit = exports.BankIntlDeposit = exports.BestPayDeposit = exports.FunangaDeposit = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.EzeeWalletDeposit = exports.CryptoCurrencyDeposit = exports.AstroPayBankDeposit = exports.MobilePayDeposit = exports.PProDeposit = exports.MuchBetterDeposit = exports.SiruDeposit = exports.VegaDeposit = exports.VenusPointDeposit = exports.NetellerDeposit = exports.CreditcardDeposit = exports.SkrillDeposit = undefined;
|
|
7
7
|
|
|
8
8
|
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
|
|
9
9
|
|
|
@@ -229,6 +229,34 @@ var VenusPoint = function VenusPoint(_ref3) {
|
|
|
229
229
|
);
|
|
230
230
|
};
|
|
231
231
|
|
|
232
|
+
var Vega = function Vega(_ref4) {
|
|
233
|
+
var account = _ref4.account,
|
|
234
|
+
intl = _ref4.intl,
|
|
235
|
+
change = _ref4.change;
|
|
236
|
+
|
|
237
|
+
return _react2.default.createElement(
|
|
238
|
+
'div',
|
|
239
|
+
null,
|
|
240
|
+
_react2.default.createElement(_Input2.default, {
|
|
241
|
+
disabled: account.accountId,
|
|
242
|
+
name: 'username',
|
|
243
|
+
onChange: function onChange(e, username) {
|
|
244
|
+
return change('username', username);
|
|
245
|
+
},
|
|
246
|
+
value: account.maskedAccount,
|
|
247
|
+
label: (0, _translate2.default)({ id: 'cashier.details.username' }, intl)
|
|
248
|
+
}),
|
|
249
|
+
_react2.default.createElement(_Input2.default, {
|
|
250
|
+
type: 'password',
|
|
251
|
+
name: 'password',
|
|
252
|
+
onChange: function onChange(e, password) {
|
|
253
|
+
return change('password', password);
|
|
254
|
+
},
|
|
255
|
+
label: (0, _translate2.default)({ id: 'cashier.details.password' }, intl)
|
|
256
|
+
})
|
|
257
|
+
);
|
|
258
|
+
};
|
|
259
|
+
|
|
232
260
|
var PPro = function PPro() {
|
|
233
261
|
return _react2.default.createElement(
|
|
234
262
|
'div',
|
|
@@ -237,11 +265,11 @@ var PPro = function PPro() {
|
|
|
237
265
|
);
|
|
238
266
|
};
|
|
239
267
|
|
|
240
|
-
var PhoneNumber = function PhoneNumber(
|
|
241
|
-
var account =
|
|
242
|
-
intl =
|
|
243
|
-
change =
|
|
244
|
-
values =
|
|
268
|
+
var PhoneNumber = function PhoneNumber(_ref5) {
|
|
269
|
+
var account = _ref5.account,
|
|
270
|
+
intl = _ref5.intl,
|
|
271
|
+
change = _ref5.change,
|
|
272
|
+
values = _ref5.values;
|
|
245
273
|
|
|
246
274
|
return _react2.default.createElement(
|
|
247
275
|
'div',
|
|
@@ -259,11 +287,11 @@ var PhoneNumber = function PhoneNumber(_ref4) {
|
|
|
259
287
|
);
|
|
260
288
|
};
|
|
261
289
|
|
|
262
|
-
var Email = function Email(
|
|
263
|
-
var account =
|
|
264
|
-
intl =
|
|
265
|
-
change =
|
|
266
|
-
values =
|
|
290
|
+
var Email = function Email(_ref6) {
|
|
291
|
+
var account = _ref6.account,
|
|
292
|
+
intl = _ref6.intl,
|
|
293
|
+
change = _ref6.change,
|
|
294
|
+
values = _ref6.values;
|
|
267
295
|
|
|
268
296
|
return _react2.default.createElement(
|
|
269
297
|
'div',
|
|
@@ -281,10 +309,10 @@ var Email = function Email(_ref5) {
|
|
|
281
309
|
);
|
|
282
310
|
};
|
|
283
311
|
|
|
284
|
-
var Banklocal = function Banklocal(
|
|
285
|
-
var account =
|
|
286
|
-
intl =
|
|
287
|
-
change =
|
|
312
|
+
var Banklocal = function Banklocal(_ref7) {
|
|
313
|
+
var account = _ref7.account,
|
|
314
|
+
intl = _ref7.intl,
|
|
315
|
+
change = _ref7.change;
|
|
288
316
|
|
|
289
317
|
return _react2.default.createElement(
|
|
290
318
|
'div',
|
|
@@ -310,11 +338,11 @@ var Banklocal = function Banklocal(_ref6) {
|
|
|
310
338
|
);
|
|
311
339
|
};
|
|
312
340
|
|
|
313
|
-
var BankIBAN = function BankIBAN(
|
|
314
|
-
var account =
|
|
315
|
-
intl =
|
|
316
|
-
change =
|
|
317
|
-
values =
|
|
341
|
+
var BankIBAN = function BankIBAN(_ref8) {
|
|
342
|
+
var account = _ref8.account,
|
|
343
|
+
intl = _ref8.intl,
|
|
344
|
+
change = _ref8.change,
|
|
345
|
+
values = _ref8.values;
|
|
318
346
|
|
|
319
347
|
return _react2.default.createElement(
|
|
320
348
|
'div',
|
|
@@ -360,15 +388,16 @@ var BankIBAN = function BankIBAN(_ref7) {
|
|
|
360
388
|
);
|
|
361
389
|
};
|
|
362
390
|
|
|
363
|
-
var AstroPayBank = function AstroPayBank(
|
|
364
|
-
var account =
|
|
365
|
-
intl =
|
|
366
|
-
country =
|
|
367
|
-
method =
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
391
|
+
var AstroPayBank = function AstroPayBank(_ref9) {
|
|
392
|
+
var account = _ref9.account,
|
|
393
|
+
intl = _ref9.intl,
|
|
394
|
+
country = _ref9.country,
|
|
395
|
+
method = _ref9.method,
|
|
396
|
+
methodString = _ref9.methodString,
|
|
397
|
+
detail = _ref9.detail,
|
|
398
|
+
change = _ref9.change,
|
|
399
|
+
values = _ref9.values,
|
|
400
|
+
config = _ref9.config;
|
|
372
401
|
|
|
373
402
|
var _useState = (0, _react.useState)([]),
|
|
374
403
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -381,6 +410,8 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
381
410
|
setIsLoading = _useState4[1];
|
|
382
411
|
|
|
383
412
|
(0, _react.useEffect)(function () {
|
|
413
|
+
if (method.service === 'PIX') return;
|
|
414
|
+
|
|
384
415
|
setIsLoading(true);
|
|
385
416
|
|
|
386
417
|
_axios2.default.post(config.devcode.host + '/directa24/getBanksByCountry', {
|
|
@@ -418,7 +449,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
418
449
|
return _react2.default.createElement(
|
|
419
450
|
'div',
|
|
420
451
|
null,
|
|
421
|
-
|
|
452
|
+
methodString === 'withdraw' && methodDetails.idTypes && methodDetails.idTypes.length > 1 && _react2.default.createElement(
|
|
422
453
|
_Select2.default,
|
|
423
454
|
{
|
|
424
455
|
required: true,
|
|
@@ -459,7 +490,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
459
490
|
defaultMessage: 'nationalId'
|
|
460
491
|
}, intl)
|
|
461
492
|
}),
|
|
462
|
-
|
|
493
|
+
methodString === 'withdraw' && methodDetails.banks && methodDetails.banks.length > 1 && _react2.default.createElement(
|
|
463
494
|
_Select2.default,
|
|
464
495
|
{
|
|
465
496
|
required: true,
|
|
@@ -488,7 +519,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
488
519
|
);
|
|
489
520
|
})
|
|
490
521
|
),
|
|
491
|
-
|
|
522
|
+
methodString === 'withdraw' && ['BR', 'UY', 'IN'].includes(country) && _react2.default.createElement(_Input2.default, {
|
|
492
523
|
required: true,
|
|
493
524
|
name: 'bankBranch',
|
|
494
525
|
value: values['bankBranch'],
|
|
@@ -500,7 +531,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
500
531
|
defaultMessage: 'bankBranch'
|
|
501
532
|
}, intl)
|
|
502
533
|
}),
|
|
503
|
-
|
|
534
|
+
methodString === 'withdraw' && methodDetails.accountTypes && methodDetails.accountTypes.length > 1 && _react2.default.createElement(
|
|
504
535
|
_Select2.default,
|
|
505
536
|
{
|
|
506
537
|
required: true,
|
|
@@ -529,7 +560,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
529
560
|
);
|
|
530
561
|
})
|
|
531
562
|
),
|
|
532
|
-
|
|
563
|
+
methodString === 'withdraw' && _react2.default.createElement(_Input2.default, {
|
|
533
564
|
required: true,
|
|
534
565
|
name: 'bankAccount',
|
|
535
566
|
value: values['bankAccount'],
|
|
@@ -541,7 +572,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
541
572
|
defaultMessage: 'bankAccount'
|
|
542
573
|
}, intl)
|
|
543
574
|
}),
|
|
544
|
-
|
|
575
|
+
methodString === 'deposit' && methodDetails.services && methodDetails.services.length > 1 && _react2.default.createElement(
|
|
545
576
|
_Select2.default,
|
|
546
577
|
{
|
|
547
578
|
required: true,
|
|
@@ -573,12 +604,12 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
573
604
|
);
|
|
574
605
|
};
|
|
575
606
|
|
|
576
|
-
var BankIntl = function BankIntl(
|
|
577
|
-
var account =
|
|
578
|
-
intl =
|
|
579
|
-
values =
|
|
580
|
-
change =
|
|
581
|
-
country =
|
|
607
|
+
var BankIntl = function BankIntl(_ref10) {
|
|
608
|
+
var account = _ref10.account,
|
|
609
|
+
intl = _ref10.intl,
|
|
610
|
+
values = _ref10.values,
|
|
611
|
+
change = _ref10.change,
|
|
612
|
+
country = _ref10.country;
|
|
582
613
|
|
|
583
614
|
return _react2.default.createElement(
|
|
584
615
|
'div',
|
|
@@ -630,12 +661,12 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
630
661
|
);
|
|
631
662
|
};
|
|
632
663
|
|
|
633
|
-
var CryptoCurrency = function CryptoCurrency(
|
|
634
|
-
var intl =
|
|
635
|
-
detail =
|
|
636
|
-
method =
|
|
637
|
-
values =
|
|
638
|
-
change =
|
|
664
|
+
var CryptoCurrency = function CryptoCurrency(_ref11) {
|
|
665
|
+
var intl = _ref11.intl,
|
|
666
|
+
detail = _ref11.detail,
|
|
667
|
+
method = _ref11.method,
|
|
668
|
+
values = _ref11.values,
|
|
669
|
+
change = _ref11.change;
|
|
639
670
|
|
|
640
671
|
var methodDetails = {
|
|
641
672
|
cryptoCurrencies: (0, _get2.default)(detail, 'config.cryptoCurrencies', [])
|
|
@@ -688,11 +719,11 @@ var CryptoCurrency = function CryptoCurrency(_ref10) {
|
|
|
688
719
|
);
|
|
689
720
|
};
|
|
690
721
|
|
|
691
|
-
var Jeton = function Jeton(
|
|
692
|
-
var account =
|
|
693
|
-
intl =
|
|
694
|
-
values =
|
|
695
|
-
change =
|
|
722
|
+
var Jeton = function Jeton(_ref12) {
|
|
723
|
+
var account = _ref12.account,
|
|
724
|
+
intl = _ref12.intl,
|
|
725
|
+
values = _ref12.values,
|
|
726
|
+
change = _ref12.change;
|
|
696
727
|
|
|
697
728
|
return _react2.default.createElement(
|
|
698
729
|
'div',
|
|
@@ -710,11 +741,11 @@ var Jeton = function Jeton(_ref11) {
|
|
|
710
741
|
);
|
|
711
742
|
};
|
|
712
743
|
|
|
713
|
-
var BestPay = function BestPay(
|
|
714
|
-
var account =
|
|
715
|
-
intl =
|
|
716
|
-
values =
|
|
717
|
-
change =
|
|
744
|
+
var BestPay = function BestPay(_ref13) {
|
|
745
|
+
var account = _ref13.account,
|
|
746
|
+
intl = _ref13.intl,
|
|
747
|
+
values = _ref13.values,
|
|
748
|
+
change = _ref13.change;
|
|
718
749
|
|
|
719
750
|
return _react2.default.createElement(
|
|
720
751
|
'div',
|
|
@@ -741,11 +772,11 @@ var BestPay = function BestPay(_ref12) {
|
|
|
741
772
|
);
|
|
742
773
|
};
|
|
743
774
|
|
|
744
|
-
var Mifinity = function Mifinity(
|
|
745
|
-
var account =
|
|
746
|
-
intl =
|
|
747
|
-
change =
|
|
748
|
-
values =
|
|
775
|
+
var Mifinity = function Mifinity(_ref14) {
|
|
776
|
+
var account = _ref14.account,
|
|
777
|
+
intl = _ref14.intl,
|
|
778
|
+
change = _ref14.change,
|
|
779
|
+
values = _ref14.values;
|
|
749
780
|
|
|
750
781
|
return _react2.default.createElement(
|
|
751
782
|
'div',
|
|
@@ -763,11 +794,11 @@ var Mifinity = function Mifinity(_ref13) {
|
|
|
763
794
|
);
|
|
764
795
|
};
|
|
765
796
|
|
|
766
|
-
var EzeeWallet = function EzeeWallet(
|
|
767
|
-
var account =
|
|
768
|
-
intl =
|
|
769
|
-
method =
|
|
770
|
-
change =
|
|
797
|
+
var EzeeWallet = function EzeeWallet(_ref15) {
|
|
798
|
+
var account = _ref15.account,
|
|
799
|
+
intl = _ref15.intl,
|
|
800
|
+
method = _ref15.method,
|
|
801
|
+
change = _ref15.change;
|
|
771
802
|
|
|
772
803
|
return _react2.default.createElement(
|
|
773
804
|
'div',
|
|
@@ -800,12 +831,12 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
800
831
|
);
|
|
801
832
|
};
|
|
802
833
|
|
|
803
|
-
var Paramount = function Paramount(
|
|
804
|
-
var account =
|
|
805
|
-
intl =
|
|
806
|
-
values =
|
|
807
|
-
change =
|
|
808
|
-
detail =
|
|
834
|
+
var Paramount = function Paramount(_ref16) {
|
|
835
|
+
var account = _ref16.account,
|
|
836
|
+
intl = _ref16.intl,
|
|
837
|
+
values = _ref16.values,
|
|
838
|
+
change = _ref16.change,
|
|
839
|
+
detail = _ref16.detail;
|
|
809
840
|
|
|
810
841
|
var methodDetails = {
|
|
811
842
|
securityQuestions: (0, _get2.default)(detail, 'config.securityQuestions', [])
|
|
@@ -883,6 +914,11 @@ var VenusPointDeposit = exports.VenusPointDeposit = {
|
|
|
883
914
|
parser: Parser.parseVenusPoint
|
|
884
915
|
};
|
|
885
916
|
|
|
917
|
+
var VegaDeposit = exports.VegaDeposit = {
|
|
918
|
+
component: injectMethod('deposit', (0, _reactIntl.injectIntl)(Vega)),
|
|
919
|
+
parser: Parser.parseVega
|
|
920
|
+
};
|
|
921
|
+
|
|
886
922
|
var SiruDeposit = exports.SiruDeposit = {
|
|
887
923
|
component: (0, _reactIntl.injectIntl)(PhoneNumber),
|
|
888
924
|
parser: Parser.parsePhoneNumber
|
|
@@ -904,7 +940,7 @@ var MobilePayDeposit = exports.MobilePayDeposit = {
|
|
|
904
940
|
};
|
|
905
941
|
|
|
906
942
|
var AstroPayBankDeposit = exports.AstroPayBankDeposit = {
|
|
907
|
-
component: injectMethod({
|
|
943
|
+
component: injectMethod({ methodString: 'deposit' }, (0, _reactIntl.injectIntl)(AstroPayBank)),
|
|
908
944
|
initialValues: function initialValues(props) {
|
|
909
945
|
var values = {};
|
|
910
946
|
var details = {
|
|
@@ -990,6 +1026,11 @@ var VenusPointWithdrawal = exports.VenusPointWithdrawal = {
|
|
|
990
1026
|
parser: Parser.parseVenusPoint
|
|
991
1027
|
};
|
|
992
1028
|
|
|
1029
|
+
var VegaWithdrawal = exports.VegaWithdrawal = {
|
|
1030
|
+
component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Vega)),
|
|
1031
|
+
parser: Parser.parseVega
|
|
1032
|
+
};
|
|
1033
|
+
|
|
993
1034
|
var NetellerWithdrawal = exports.NetellerWithdrawal = {
|
|
994
1035
|
component: injectMethod({ method: 'withdraw' }, (0, _reactIntl.injectIntl)(Neteller)),
|
|
995
1036
|
parser: Parser.parseNeteller
|
|
@@ -1001,7 +1042,7 @@ var MuchBetterWithdrawal = exports.MuchBetterWithdrawal = {
|
|
|
1001
1042
|
};
|
|
1002
1043
|
|
|
1003
1044
|
var AstroPayBankWithdrawal = exports.AstroPayBankWithdrawal = {
|
|
1004
|
-
component: injectMethod({
|
|
1045
|
+
component: injectMethod({ methodString: 'withdraw' }, (0, _reactIntl.injectIntl)(AstroPayBank)),
|
|
1005
1046
|
initialValues: function initialValues(props) {
|
|
1006
1047
|
var values = {};
|
|
1007
1048
|
var details = {
|
|
@@ -44,6 +44,12 @@ var parseVenusPoint = exports.parseVenusPoint = function parseVenusPoint(account
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
var parseVega = exports.parseVega = function parseVega(account) {
|
|
48
|
+
return {
|
|
49
|
+
account: account.maskedAccount || account.account
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
|
|
47
53
|
var parseMifinity = exports.parseMifinity = function parseMifinity(account) {
|
|
48
54
|
return {
|
|
49
55
|
account: account.maskedAccount || account.account
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.16-pix-integration.0",
|
|
3
|
+
"version": "6.1.16-pix-vega-integration.0",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "27320128d23275e6f8081a74dca16e3a40123ae8"
|
|
80
80
|
}
|