tg-core-components 6.1.16-pix-integration.1 → 6.1.16-pix-integration.2
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.
|
@@ -322,7 +322,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
322
322
|
intl = _ref8.intl,
|
|
323
323
|
country = _ref8.country,
|
|
324
324
|
method = _ref8.method,
|
|
325
|
-
|
|
325
|
+
methodString = _ref8.methodString,
|
|
326
326
|
detail = _ref8.detail,
|
|
327
327
|
change = _ref8.change,
|
|
328
328
|
values = _ref8.values,
|
|
@@ -338,17 +338,9 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
338
338
|
isLoading = _useState4[0],
|
|
339
339
|
setIsLoading = _useState4[1];
|
|
340
340
|
|
|
341
|
-
console.log({
|
|
342
|
-
country: country,
|
|
343
|
-
method: method,
|
|
344
|
-
methodd: methodd,
|
|
345
|
-
detail: detail,
|
|
346
|
-
change: change,
|
|
347
|
-
values: values,
|
|
348
|
-
config: config
|
|
349
|
-
});
|
|
350
|
-
|
|
351
341
|
useEffect(function () {
|
|
342
|
+
if (method.service === 'PIX') return;
|
|
343
|
+
|
|
352
344
|
setIsLoading(true);
|
|
353
345
|
|
|
354
346
|
axios.post(config.devcode.host + '/directa24/getBanksByCountry', {
|
|
@@ -386,7 +378,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
386
378
|
return React.createElement(
|
|
387
379
|
'div',
|
|
388
380
|
null,
|
|
389
|
-
|
|
381
|
+
methodString === 'withdraw' && methodDetails.idTypes && methodDetails.idTypes.length > 1 && React.createElement(
|
|
390
382
|
Select,
|
|
391
383
|
{
|
|
392
384
|
required: true,
|
|
@@ -427,7 +419,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
427
419
|
defaultMessage: 'nationalId'
|
|
428
420
|
}, intl)
|
|
429
421
|
}),
|
|
430
|
-
|
|
422
|
+
methodString === 'withdraw' && methodDetails.banks && methodDetails.banks.length > 1 && React.createElement(
|
|
431
423
|
Select,
|
|
432
424
|
{
|
|
433
425
|
required: true,
|
|
@@ -456,7 +448,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
456
448
|
);
|
|
457
449
|
})
|
|
458
450
|
),
|
|
459
|
-
|
|
451
|
+
methodString === 'withdraw' && ['BR', 'UY', 'IN'].includes(country) && React.createElement(Input, {
|
|
460
452
|
required: true,
|
|
461
453
|
name: 'bankBranch',
|
|
462
454
|
value: values['bankBranch'],
|
|
@@ -468,7 +460,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
468
460
|
defaultMessage: 'bankBranch'
|
|
469
461
|
}, intl)
|
|
470
462
|
}),
|
|
471
|
-
|
|
463
|
+
methodString === 'withdraw' && methodDetails.accountTypes && methodDetails.accountTypes.length > 1 && React.createElement(
|
|
472
464
|
Select,
|
|
473
465
|
{
|
|
474
466
|
required: true,
|
|
@@ -497,7 +489,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
497
489
|
);
|
|
498
490
|
})
|
|
499
491
|
),
|
|
500
|
-
|
|
492
|
+
methodString === 'withdraw' && React.createElement(Input, {
|
|
501
493
|
required: true,
|
|
502
494
|
name: 'bankAccount',
|
|
503
495
|
value: values['bankAccount'],
|
|
@@ -509,7 +501,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
509
501
|
defaultMessage: 'bankAccount'
|
|
510
502
|
}, intl)
|
|
511
503
|
}),
|
|
512
|
-
|
|
504
|
+
methodString === 'deposit' && methodDetails.services && methodDetails.services.length > 1 && React.createElement(
|
|
513
505
|
Select,
|
|
514
506
|
{
|
|
515
507
|
required: true,
|
|
@@ -872,7 +864,7 @@ export var MobilePayDeposit = {
|
|
|
872
864
|
};
|
|
873
865
|
|
|
874
866
|
export var AstroPayBankDeposit = {
|
|
875
|
-
component: injectMethod({
|
|
867
|
+
component: injectMethod({ methodString: 'deposit' }, injectIntl(AstroPayBank)),
|
|
876
868
|
initialValues: function initialValues(props) {
|
|
877
869
|
var values = {};
|
|
878
870
|
var details = {
|
|
@@ -969,7 +961,7 @@ export var MuchBetterWithdrawal = {
|
|
|
969
961
|
};
|
|
970
962
|
|
|
971
963
|
export var AstroPayBankWithdrawal = {
|
|
972
|
-
component: injectMethod({
|
|
964
|
+
component: injectMethod({ methodString: 'withdraw' }, injectIntl(AstroPayBank)),
|
|
973
965
|
initialValues: function initialValues(props) {
|
|
974
966
|
var values = {};
|
|
975
967
|
var details = {
|
|
@@ -365,7 +365,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
365
365
|
intl = _ref8.intl,
|
|
366
366
|
country = _ref8.country,
|
|
367
367
|
method = _ref8.method,
|
|
368
|
-
|
|
368
|
+
methodString = _ref8.methodString,
|
|
369
369
|
detail = _ref8.detail,
|
|
370
370
|
change = _ref8.change,
|
|
371
371
|
values = _ref8.values,
|
|
@@ -381,17 +381,9 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
381
381
|
isLoading = _useState4[0],
|
|
382
382
|
setIsLoading = _useState4[1];
|
|
383
383
|
|
|
384
|
-
console.log({
|
|
385
|
-
country: country,
|
|
386
|
-
method: method,
|
|
387
|
-
methodd: methodd,
|
|
388
|
-
detail: detail,
|
|
389
|
-
change: change,
|
|
390
|
-
values: values,
|
|
391
|
-
config: config
|
|
392
|
-
});
|
|
393
|
-
|
|
394
384
|
(0, _react.useEffect)(function () {
|
|
385
|
+
if (method.service === 'PIX') return;
|
|
386
|
+
|
|
395
387
|
setIsLoading(true);
|
|
396
388
|
|
|
397
389
|
_axios2.default.post(config.devcode.host + '/directa24/getBanksByCountry', {
|
|
@@ -429,7 +421,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
429
421
|
return _react2.default.createElement(
|
|
430
422
|
'div',
|
|
431
423
|
null,
|
|
432
|
-
|
|
424
|
+
methodString === 'withdraw' && methodDetails.idTypes && methodDetails.idTypes.length > 1 && _react2.default.createElement(
|
|
433
425
|
_Select2.default,
|
|
434
426
|
{
|
|
435
427
|
required: true,
|
|
@@ -470,7 +462,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
470
462
|
defaultMessage: 'nationalId'
|
|
471
463
|
}, intl)
|
|
472
464
|
}),
|
|
473
|
-
|
|
465
|
+
methodString === 'withdraw' && methodDetails.banks && methodDetails.banks.length > 1 && _react2.default.createElement(
|
|
474
466
|
_Select2.default,
|
|
475
467
|
{
|
|
476
468
|
required: true,
|
|
@@ -499,7 +491,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
499
491
|
);
|
|
500
492
|
})
|
|
501
493
|
),
|
|
502
|
-
|
|
494
|
+
methodString === 'withdraw' && ['BR', 'UY', 'IN'].includes(country) && _react2.default.createElement(_Input2.default, {
|
|
503
495
|
required: true,
|
|
504
496
|
name: 'bankBranch',
|
|
505
497
|
value: values['bankBranch'],
|
|
@@ -511,7 +503,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
511
503
|
defaultMessage: 'bankBranch'
|
|
512
504
|
}, intl)
|
|
513
505
|
}),
|
|
514
|
-
|
|
506
|
+
methodString === 'withdraw' && methodDetails.accountTypes && methodDetails.accountTypes.length > 1 && _react2.default.createElement(
|
|
515
507
|
_Select2.default,
|
|
516
508
|
{
|
|
517
509
|
required: true,
|
|
@@ -540,7 +532,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
540
532
|
);
|
|
541
533
|
})
|
|
542
534
|
),
|
|
543
|
-
|
|
535
|
+
methodString === 'withdraw' && _react2.default.createElement(_Input2.default, {
|
|
544
536
|
required: true,
|
|
545
537
|
name: 'bankAccount',
|
|
546
538
|
value: values['bankAccount'],
|
|
@@ -552,7 +544,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
552
544
|
defaultMessage: 'bankAccount'
|
|
553
545
|
}, intl)
|
|
554
546
|
}),
|
|
555
|
-
|
|
547
|
+
methodString === 'deposit' && methodDetails.services && methodDetails.services.length > 1 && _react2.default.createElement(
|
|
556
548
|
_Select2.default,
|
|
557
549
|
{
|
|
558
550
|
required: true,
|
|
@@ -915,7 +907,7 @@ var MobilePayDeposit = exports.MobilePayDeposit = {
|
|
|
915
907
|
};
|
|
916
908
|
|
|
917
909
|
var AstroPayBankDeposit = exports.AstroPayBankDeposit = {
|
|
918
|
-
component: injectMethod({
|
|
910
|
+
component: injectMethod({ methodString: 'deposit' }, (0, _reactIntl.injectIntl)(AstroPayBank)),
|
|
919
911
|
initialValues: function initialValues(props) {
|
|
920
912
|
var values = {};
|
|
921
913
|
var details = {
|
|
@@ -1012,7 +1004,7 @@ var MuchBetterWithdrawal = exports.MuchBetterWithdrawal = {
|
|
|
1012
1004
|
};
|
|
1013
1005
|
|
|
1014
1006
|
var AstroPayBankWithdrawal = exports.AstroPayBankWithdrawal = {
|
|
1015
|
-
component: injectMethod({
|
|
1007
|
+
component: injectMethod({ methodString: 'withdraw' }, (0, _reactIntl.injectIntl)(AstroPayBank)),
|
|
1016
1008
|
initialValues: function initialValues(props) {
|
|
1017
1009
|
var values = {};
|
|
1018
1010
|
var details = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.16-pix-integration.
|
|
3
|
+
"version": "6.1.16-pix-integration.2",
|
|
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": "b20a4161872f434ee1c3356513abcfdb87bfd8a7"
|
|
80
80
|
}
|