@hmcts/ccpay-web-component 4.0.0-beta552 → 4.0.0-beta553
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/bundles/hmcts-ccpay-web-component.umd.js +88 -72
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +61 -53
- package/esm2015/lib/components/payment-view/payment-view.component.js +37 -29
- package/esm5/lib/components/case-transactions/case-transactions.component.js +61 -53
- package/esm5/lib/components/payment-view/payment-view.component.js +37 -29
- package/fesm2015/hmcts-ccpay-web-component.js +93 -77
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +93 -77
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -1086,10 +1086,12 @@
|
|
|
1086
1086
|
* @param {?} payment
|
|
1087
1087
|
* @return {?}
|
|
1088
1088
|
*/function (payment) {
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1089
|
+
if (payment !== null && payment !== undefined) {
|
|
1090
|
+
/** @type {?} */
|
|
1091
|
+
var tmp4DayAgo = new Date();
|
|
1092
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1093
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1094
|
+
}
|
|
1093
1095
|
});
|
|
1094
1096
|
}
|
|
1095
1097
|
/**
|
|
@@ -1267,7 +1269,7 @@
|
|
|
1267
1269
|
*/
|
|
1268
1270
|
function (payment, remission, fees) {
|
|
1269
1271
|
var _this = this;
|
|
1270
|
-
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1272
|
+
if (this.chkIsRefundRemissionBtnEnable() && this.payment !== undefined) {
|
|
1271
1273
|
this.payment = payment;
|
|
1272
1274
|
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe(( /**
|
|
1273
1275
|
* @param {?} paymentGroup
|
|
@@ -1301,19 +1303,21 @@
|
|
|
1301
1303
|
*/
|
|
1302
1304
|
function () {
|
|
1303
1305
|
var _this = this;
|
|
1304
|
-
this.paymentGroup.
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
_this.
|
|
1306
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1307
|
+
this.paymentGroup.payments.forEach(( /**
|
|
1308
|
+
* @param {?} payment
|
|
1309
|
+
* @return {?}
|
|
1310
|
+
*/function (payment) {
|
|
1311
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1312
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1313
|
+
}
|
|
1314
|
+
}));
|
|
1315
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1316
|
+
return true;
|
|
1317
|
+
}
|
|
1318
|
+
else {
|
|
1319
|
+
return false;
|
|
1310
1320
|
}
|
|
1311
|
-
}));
|
|
1312
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
1313
|
-
return true;
|
|
1314
|
-
}
|
|
1315
|
-
else {
|
|
1316
|
-
return false;
|
|
1317
1321
|
}
|
|
1318
1322
|
};
|
|
1319
1323
|
/**
|
|
@@ -1325,10 +1329,12 @@
|
|
|
1325
1329
|
* @return {?}
|
|
1326
1330
|
*/
|
|
1327
1331
|
function (paymentgrp) {
|
|
1328
|
-
if (
|
|
1329
|
-
this.
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
+
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1333
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1334
|
+
this.paymentGroup = paymentgrp;
|
|
1335
|
+
this.viewStatus = 'issuerefund';
|
|
1336
|
+
this.isRefundRemission = true;
|
|
1337
|
+
}
|
|
1332
1338
|
}
|
|
1333
1339
|
};
|
|
1334
1340
|
/**
|
|
@@ -1396,12 +1402,14 @@
|
|
|
1396
1402
|
* @return {?}
|
|
1397
1403
|
*/
|
|
1398
1404
|
function () {
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1405
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1406
|
+
/** @type {?} */
|
|
1407
|
+
var payment = this.paymentGroup.payments[0];
|
|
1408
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1409
|
+
return true;
|
|
1410
|
+
}
|
|
1411
|
+
return false;
|
|
1403
1412
|
}
|
|
1404
|
-
return false;
|
|
1405
1413
|
};
|
|
1406
1414
|
/**
|
|
1407
1415
|
* @param {?} feeCode
|
|
@@ -2747,10 +2755,12 @@
|
|
|
2747
2755
|
* @param {?} payment
|
|
2748
2756
|
* @return {?}
|
|
2749
2757
|
*/function (payment) {
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2758
|
+
if (payment !== null && payment !== undefined) {
|
|
2759
|
+
/** @type {?} */
|
|
2760
|
+
var tmp4DayAgo = new Date();
|
|
2761
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
2762
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
2763
|
+
}
|
|
2754
2764
|
});
|
|
2755
2765
|
}
|
|
2756
2766
|
/**
|
|
@@ -3698,10 +3708,12 @@
|
|
|
3698
3708
|
* @return {?}
|
|
3699
3709
|
*/
|
|
3700
3710
|
function (payment) {
|
|
3701
|
-
if (
|
|
3702
|
-
this.
|
|
3703
|
-
|
|
3704
|
-
|
|
3711
|
+
if (payment !== null && payment !== undefined) {
|
|
3712
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
3713
|
+
this.viewStatus = 'issuerefund';
|
|
3714
|
+
this.payment = payment;
|
|
3715
|
+
this.isRefundRemission = true;
|
|
3716
|
+
}
|
|
3705
3717
|
}
|
|
3706
3718
|
};
|
|
3707
3719
|
/**
|
|
@@ -3752,26 +3764,28 @@
|
|
|
3752
3764
|
*/
|
|
3753
3765
|
function () {
|
|
3754
3766
|
var _this = this;
|
|
3755
|
-
this.orderDetail.
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
orderDetail.payments
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
_this.
|
|
3766
|
-
|
|
3767
|
-
|
|
3767
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
3768
|
+
this.orderDetail.forEach(( /**
|
|
3769
|
+
* @param {?} orderDetail
|
|
3770
|
+
* @return {?}
|
|
3771
|
+
*/function (orderDetail) {
|
|
3772
|
+
if (orderDetail.payments) {
|
|
3773
|
+
orderDetail.payments.forEach(( /**
|
|
3774
|
+
* @param {?} payment
|
|
3775
|
+
* @return {?}
|
|
3776
|
+
*/function (payment) {
|
|
3777
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
3778
|
+
_this.isPBA = true;
|
|
3779
|
+
}
|
|
3780
|
+
}));
|
|
3781
|
+
}
|
|
3782
|
+
}));
|
|
3783
|
+
if (this.isPBA) {
|
|
3784
|
+
return true;
|
|
3785
|
+
}
|
|
3786
|
+
else {
|
|
3787
|
+
return false;
|
|
3768
3788
|
}
|
|
3769
|
-
}));
|
|
3770
|
-
if (this.isPBA) {
|
|
3771
|
-
return true;
|
|
3772
|
-
}
|
|
3773
|
-
else {
|
|
3774
|
-
return false;
|
|
3775
3789
|
}
|
|
3776
3790
|
};
|
|
3777
3791
|
/**
|
|
@@ -3802,26 +3816,28 @@
|
|
|
3802
3816
|
*/
|
|
3803
3817
|
function () {
|
|
3804
3818
|
var _this = this;
|
|
3805
|
-
this.orderDetail.
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
orderDetail.payments
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
_this.
|
|
3816
|
-
|
|
3817
|
-
|
|
3819
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
3820
|
+
this.orderDetail.forEach(( /**
|
|
3821
|
+
* @param {?} orderDetail
|
|
3822
|
+
* @return {?}
|
|
3823
|
+
*/function (orderDetail) {
|
|
3824
|
+
if (orderDetail.payments) {
|
|
3825
|
+
orderDetail.payments.forEach(( /**
|
|
3826
|
+
* @param {?} payment
|
|
3827
|
+
* @return {?}
|
|
3828
|
+
*/function (payment) {
|
|
3829
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
3830
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
3831
|
+
}
|
|
3832
|
+
}));
|
|
3833
|
+
}
|
|
3834
|
+
}));
|
|
3835
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
3836
|
+
return true;
|
|
3837
|
+
}
|
|
3838
|
+
else {
|
|
3839
|
+
return false;
|
|
3818
3840
|
}
|
|
3819
|
-
}));
|
|
3820
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
3821
|
-
return true;
|
|
3822
|
-
}
|
|
3823
|
-
else {
|
|
3824
|
-
return false;
|
|
3825
3841
|
}
|
|
3826
3842
|
};
|
|
3827
3843
|
CaseTransactionsComponent.decorators = [
|