@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
|
@@ -1067,10 +1067,12 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1067
1067
|
* @return {?}
|
|
1068
1068
|
*/
|
|
1069
1069
|
function (payment) {
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1070
|
+
if (payment !== null && payment !== undefined) {
|
|
1071
|
+
/** @type {?} */
|
|
1072
|
+
var tmp4DayAgo = new Date();
|
|
1073
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
1074
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
1075
|
+
}
|
|
1074
1076
|
});
|
|
1075
1077
|
}
|
|
1076
1078
|
/**
|
|
@@ -1258,7 +1260,7 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1258
1260
|
*/
|
|
1259
1261
|
function (payment, remission, fees) {
|
|
1260
1262
|
var _this = this;
|
|
1261
|
-
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
1263
|
+
if (this.chkIsRefundRemissionBtnEnable() && this.payment !== undefined) {
|
|
1262
1264
|
this.payment = payment;
|
|
1263
1265
|
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
1264
1266
|
* @param {?} paymentGroup
|
|
@@ -1296,20 +1298,22 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1296
1298
|
*/
|
|
1297
1299
|
function () {
|
|
1298
1300
|
var _this = this;
|
|
1299
|
-
this.paymentGroup.
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
_this.
|
|
1301
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1302
|
+
this.paymentGroup.payments.forEach((/**
|
|
1303
|
+
* @param {?} payment
|
|
1304
|
+
* @return {?}
|
|
1305
|
+
*/
|
|
1306
|
+
function (payment) {
|
|
1307
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
1308
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
1309
|
+
}
|
|
1310
|
+
}));
|
|
1311
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
1312
|
+
return true;
|
|
1313
|
+
}
|
|
1314
|
+
else {
|
|
1315
|
+
return false;
|
|
1306
1316
|
}
|
|
1307
|
-
}));
|
|
1308
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
1309
|
-
return true;
|
|
1310
|
-
}
|
|
1311
|
-
else {
|
|
1312
|
-
return false;
|
|
1313
1317
|
}
|
|
1314
1318
|
};
|
|
1315
1319
|
/**
|
|
@@ -1321,10 +1325,12 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1321
1325
|
* @return {?}
|
|
1322
1326
|
*/
|
|
1323
1327
|
function (paymentgrp) {
|
|
1324
|
-
if (
|
|
1325
|
-
this.
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
+
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1329
|
+
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1330
|
+
this.paymentGroup = paymentgrp;
|
|
1331
|
+
this.viewStatus = 'issuerefund';
|
|
1332
|
+
this.isRefundRemission = true;
|
|
1333
|
+
}
|
|
1328
1334
|
}
|
|
1329
1335
|
};
|
|
1330
1336
|
/**
|
|
@@ -1386,12 +1392,14 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1386
1392
|
* @return {?}
|
|
1387
1393
|
*/
|
|
1388
1394
|
function () {
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1395
|
+
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
1396
|
+
/** @type {?} */
|
|
1397
|
+
var payment = this.paymentGroup.payments[0];
|
|
1398
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
1399
|
+
return true;
|
|
1400
|
+
}
|
|
1401
|
+
return false;
|
|
1393
1402
|
}
|
|
1394
|
-
return false;
|
|
1395
1403
|
};
|
|
1396
1404
|
/**
|
|
1397
1405
|
* @param {?} feeCode
|
|
@@ -2740,10 +2748,12 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
2740
2748
|
* @return {?}
|
|
2741
2749
|
*/
|
|
2742
2750
|
function (payment) {
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2751
|
+
if (payment !== null && payment !== undefined) {
|
|
2752
|
+
/** @type {?} */
|
|
2753
|
+
var tmp4DayAgo = new Date();
|
|
2754
|
+
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
2755
|
+
return tmp4DayAgo >= new Date(payment.date_created);
|
|
2756
|
+
}
|
|
2747
2757
|
});
|
|
2748
2758
|
}
|
|
2749
2759
|
/**
|
|
@@ -3737,10 +3747,12 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3737
3747
|
* @return {?}
|
|
3738
3748
|
*/
|
|
3739
3749
|
function (payment) {
|
|
3740
|
-
if (
|
|
3741
|
-
this.
|
|
3742
|
-
|
|
3743
|
-
|
|
3750
|
+
if (payment !== null && payment !== undefined) {
|
|
3751
|
+
if (this.chkIssueRefundBtnEnable(payment)) {
|
|
3752
|
+
this.viewStatus = 'issuerefund';
|
|
3753
|
+
this.payment = payment;
|
|
3754
|
+
this.isRefundRemission = true;
|
|
3755
|
+
}
|
|
3744
3756
|
}
|
|
3745
3757
|
};
|
|
3746
3758
|
/**
|
|
@@ -3785,28 +3797,30 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3785
3797
|
*/
|
|
3786
3798
|
function () {
|
|
3787
3799
|
var _this = this;
|
|
3788
|
-
this.orderDetail.
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
orderDetail.payments
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
_this.
|
|
3801
|
-
|
|
3802
|
-
|
|
3800
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
3801
|
+
this.orderDetail.forEach((/**
|
|
3802
|
+
* @param {?} orderDetail
|
|
3803
|
+
* @return {?}
|
|
3804
|
+
*/
|
|
3805
|
+
function (orderDetail) {
|
|
3806
|
+
if (orderDetail.payments) {
|
|
3807
|
+
orderDetail.payments.forEach((/**
|
|
3808
|
+
* @param {?} payment
|
|
3809
|
+
* @return {?}
|
|
3810
|
+
*/
|
|
3811
|
+
function (payment) {
|
|
3812
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
3813
|
+
_this.isPBA = true;
|
|
3814
|
+
}
|
|
3815
|
+
}));
|
|
3816
|
+
}
|
|
3817
|
+
}));
|
|
3818
|
+
if (this.isPBA) {
|
|
3819
|
+
return true;
|
|
3820
|
+
}
|
|
3821
|
+
else {
|
|
3822
|
+
return false;
|
|
3803
3823
|
}
|
|
3804
|
-
}));
|
|
3805
|
-
if (this.isPBA) {
|
|
3806
|
-
return true;
|
|
3807
|
-
}
|
|
3808
|
-
else {
|
|
3809
|
-
return false;
|
|
3810
3824
|
}
|
|
3811
3825
|
};
|
|
3812
3826
|
/**
|
|
@@ -3837,28 +3851,30 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
3837
3851
|
*/
|
|
3838
3852
|
function () {
|
|
3839
3853
|
var _this = this;
|
|
3840
|
-
this.orderDetail.
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
orderDetail.payments
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
_this.
|
|
3853
|
-
|
|
3854
|
-
|
|
3854
|
+
if (this.orderDetail !== null && this.orderDetail !== undefined) {
|
|
3855
|
+
this.orderDetail.forEach((/**
|
|
3856
|
+
* @param {?} orderDetail
|
|
3857
|
+
* @return {?}
|
|
3858
|
+
*/
|
|
3859
|
+
function (orderDetail) {
|
|
3860
|
+
if (orderDetail.payments) {
|
|
3861
|
+
orderDetail.payments.forEach((/**
|
|
3862
|
+
* @param {?} payment
|
|
3863
|
+
* @return {?}
|
|
3864
|
+
*/
|
|
3865
|
+
function (payment) {
|
|
3866
|
+
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
3867
|
+
_this.isRefundRemissionBtnEnable = true;
|
|
3868
|
+
}
|
|
3869
|
+
}));
|
|
3870
|
+
}
|
|
3871
|
+
}));
|
|
3872
|
+
if (this.isRefundRemissionBtnEnable) {
|
|
3873
|
+
return true;
|
|
3874
|
+
}
|
|
3875
|
+
else {
|
|
3876
|
+
return false;
|
|
3855
3877
|
}
|
|
3856
|
-
}));
|
|
3857
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
3858
|
-
return true;
|
|
3859
|
-
}
|
|
3860
|
-
else {
|
|
3861
|
-
return false;
|
|
3862
3878
|
}
|
|
3863
3879
|
};
|
|
3864
3880
|
CaseTransactionsComponent.decorators = [
|