tg-core-components 6.1.16-pix-integration.0 → 6.1.16-pix-integration.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.
|
@@ -322,6 +322,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
322
322
|
intl = _ref8.intl,
|
|
323
323
|
country = _ref8.country,
|
|
324
324
|
method = _ref8.method,
|
|
325
|
+
methodd = _ref8.methodd,
|
|
325
326
|
detail = _ref8.detail,
|
|
326
327
|
change = _ref8.change,
|
|
327
328
|
values = _ref8.values,
|
|
@@ -337,6 +338,16 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
337
338
|
isLoading = _useState4[0],
|
|
338
339
|
setIsLoading = _useState4[1];
|
|
339
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
|
+
|
|
340
351
|
useEffect(function () {
|
|
341
352
|
setIsLoading(true);
|
|
342
353
|
|
|
@@ -375,7 +386,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
375
386
|
return React.createElement(
|
|
376
387
|
'div',
|
|
377
388
|
null,
|
|
378
|
-
|
|
389
|
+
methodd === 'withdraw' && methodDetails.idTypes && methodDetails.idTypes.length > 1 && React.createElement(
|
|
379
390
|
Select,
|
|
380
391
|
{
|
|
381
392
|
required: true,
|
|
@@ -416,7 +427,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
416
427
|
defaultMessage: 'nationalId'
|
|
417
428
|
}, intl)
|
|
418
429
|
}),
|
|
419
|
-
|
|
430
|
+
methodd === 'withdraw' && methodDetails.banks && methodDetails.banks.length > 1 && React.createElement(
|
|
420
431
|
Select,
|
|
421
432
|
{
|
|
422
433
|
required: true,
|
|
@@ -445,7 +456,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
445
456
|
);
|
|
446
457
|
})
|
|
447
458
|
),
|
|
448
|
-
|
|
459
|
+
methodd === 'withdraw' && ['BR', 'UY', 'IN'].includes(country) && React.createElement(Input, {
|
|
449
460
|
required: true,
|
|
450
461
|
name: 'bankBranch',
|
|
451
462
|
value: values['bankBranch'],
|
|
@@ -457,7 +468,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
457
468
|
defaultMessage: 'bankBranch'
|
|
458
469
|
}, intl)
|
|
459
470
|
}),
|
|
460
|
-
|
|
471
|
+
methodd === 'withdraw' && methodDetails.accountTypes && methodDetails.accountTypes.length > 1 && React.createElement(
|
|
461
472
|
Select,
|
|
462
473
|
{
|
|
463
474
|
required: true,
|
|
@@ -486,7 +497,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
486
497
|
);
|
|
487
498
|
})
|
|
488
499
|
),
|
|
489
|
-
|
|
500
|
+
methodd === 'withdraw' && React.createElement(Input, {
|
|
490
501
|
required: true,
|
|
491
502
|
name: 'bankAccount',
|
|
492
503
|
value: values['bankAccount'],
|
|
@@ -498,7 +509,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
498
509
|
defaultMessage: 'bankAccount'
|
|
499
510
|
}, intl)
|
|
500
511
|
}),
|
|
501
|
-
|
|
512
|
+
methodd === 'deposit' && methodDetails.services && methodDetails.services.length > 1 && React.createElement(
|
|
502
513
|
Select,
|
|
503
514
|
{
|
|
504
515
|
required: true,
|
|
@@ -861,7 +872,7 @@ export var MobilePayDeposit = {
|
|
|
861
872
|
};
|
|
862
873
|
|
|
863
874
|
export var AstroPayBankDeposit = {
|
|
864
|
-
component: injectMethod({
|
|
875
|
+
component: injectMethod({ methodd: 'deposit' }, injectIntl(AstroPayBank)),
|
|
865
876
|
initialValues: function initialValues(props) {
|
|
866
877
|
var values = {};
|
|
867
878
|
var details = {
|
|
@@ -365,6 +365,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
365
365
|
intl = _ref8.intl,
|
|
366
366
|
country = _ref8.country,
|
|
367
367
|
method = _ref8.method,
|
|
368
|
+
methodd = _ref8.methodd,
|
|
368
369
|
detail = _ref8.detail,
|
|
369
370
|
change = _ref8.change,
|
|
370
371
|
values = _ref8.values,
|
|
@@ -380,6 +381,16 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
380
381
|
isLoading = _useState4[0],
|
|
381
382
|
setIsLoading = _useState4[1];
|
|
382
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
|
+
|
|
383
394
|
(0, _react.useEffect)(function () {
|
|
384
395
|
setIsLoading(true);
|
|
385
396
|
|
|
@@ -418,7 +429,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
418
429
|
return _react2.default.createElement(
|
|
419
430
|
'div',
|
|
420
431
|
null,
|
|
421
|
-
|
|
432
|
+
methodd === 'withdraw' && methodDetails.idTypes && methodDetails.idTypes.length > 1 && _react2.default.createElement(
|
|
422
433
|
_Select2.default,
|
|
423
434
|
{
|
|
424
435
|
required: true,
|
|
@@ -459,7 +470,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
459
470
|
defaultMessage: 'nationalId'
|
|
460
471
|
}, intl)
|
|
461
472
|
}),
|
|
462
|
-
|
|
473
|
+
methodd === 'withdraw' && methodDetails.banks && methodDetails.banks.length > 1 && _react2.default.createElement(
|
|
463
474
|
_Select2.default,
|
|
464
475
|
{
|
|
465
476
|
required: true,
|
|
@@ -488,7 +499,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
488
499
|
);
|
|
489
500
|
})
|
|
490
501
|
),
|
|
491
|
-
|
|
502
|
+
methodd === 'withdraw' && ['BR', 'UY', 'IN'].includes(country) && _react2.default.createElement(_Input2.default, {
|
|
492
503
|
required: true,
|
|
493
504
|
name: 'bankBranch',
|
|
494
505
|
value: values['bankBranch'],
|
|
@@ -500,7 +511,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
500
511
|
defaultMessage: 'bankBranch'
|
|
501
512
|
}, intl)
|
|
502
513
|
}),
|
|
503
|
-
|
|
514
|
+
methodd === 'withdraw' && methodDetails.accountTypes && methodDetails.accountTypes.length > 1 && _react2.default.createElement(
|
|
504
515
|
_Select2.default,
|
|
505
516
|
{
|
|
506
517
|
required: true,
|
|
@@ -529,7 +540,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
529
540
|
);
|
|
530
541
|
})
|
|
531
542
|
),
|
|
532
|
-
|
|
543
|
+
methodd === 'withdraw' && _react2.default.createElement(_Input2.default, {
|
|
533
544
|
required: true,
|
|
534
545
|
name: 'bankAccount',
|
|
535
546
|
value: values['bankAccount'],
|
|
@@ -541,7 +552,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
541
552
|
defaultMessage: 'bankAccount'
|
|
542
553
|
}, intl)
|
|
543
554
|
}),
|
|
544
|
-
|
|
555
|
+
methodd === 'deposit' && methodDetails.services && methodDetails.services.length > 1 && _react2.default.createElement(
|
|
545
556
|
_Select2.default,
|
|
546
557
|
{
|
|
547
558
|
required: true,
|
|
@@ -904,7 +915,7 @@ var MobilePayDeposit = exports.MobilePayDeposit = {
|
|
|
904
915
|
};
|
|
905
916
|
|
|
906
917
|
var AstroPayBankDeposit = exports.AstroPayBankDeposit = {
|
|
907
|
-
component: injectMethod({
|
|
918
|
+
component: injectMethod({ methodd: 'deposit' }, (0, _reactIntl.injectIntl)(AstroPayBank)),
|
|
908
919
|
initialValues: function initialValues(props) {
|
|
909
920
|
var values = {};
|
|
910
921
|
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.1",
|
|
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": "63dcec59f7d88fd8bceba6299f9e5d5acf7a8b6a"
|
|
80
80
|
}
|