@hmcts/ccpay-web-component 5.0.2-beta73 → 5.0.2-beta76
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 +45 -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/payment-view/payment-view.component.js +36 -48
- package/esm2015/lib/components/service-request/service-request.component.js +13 -28
- package/esm5/lib/components/payment-view/payment-view.component.js +36 -48
- package/esm5/lib/components/service-request/service-request.component.js +13 -28
- package/fesm2015/hmcts-ccpay-web-component.js +47 -74
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +47 -74
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -1729,35 +1729,35 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1729
1729
|
*/
|
|
1730
1730
|
function (payment, remission, fees) {
|
|
1731
1731
|
var _this = this;
|
|
1732
|
-
if
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1732
|
+
//if(!this.chkIsIssueRefundBtnEnable(payment)) {
|
|
1733
|
+
this.payment = payment;
|
|
1734
|
+
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
1735
|
+
* @param {?} paymentGroup
|
|
1736
|
+
* @return {?}
|
|
1737
|
+
*/
|
|
1738
|
+
function (paymentGroup) {
|
|
1739
|
+
_this.paymentGroup = paymentGroup;
|
|
1740
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1741
|
+
* @param {?} paymentGroupObj
|
|
1736
1742
|
* @return {?}
|
|
1737
1743
|
*/
|
|
1738
|
-
function (
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
*/
|
|
1744
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1745
|
-
_this.payment = _this.paymentGroup.payments[0];
|
|
1746
|
-
_this.remissions = remission;
|
|
1747
|
-
_this.remissionFeeAmt = fees.filter((/**
|
|
1748
|
-
* @param {?} data
|
|
1749
|
-
* @return {?}
|
|
1750
|
-
*/
|
|
1751
|
-
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1752
|
-
_this.viewStatus = 'addrefundforremission';
|
|
1753
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1754
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1755
|
-
}), (/**
|
|
1756
|
-
* @param {?} error
|
|
1744
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
1745
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1746
|
+
_this.remissions = remission;
|
|
1747
|
+
_this.remissionFeeAmt = fees.filter((/**
|
|
1748
|
+
* @param {?} data
|
|
1757
1749
|
* @return {?}
|
|
1758
1750
|
*/
|
|
1759
|
-
function (
|
|
1760
|
-
|
|
1751
|
+
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1752
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1753
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1754
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1755
|
+
}), (/**
|
|
1756
|
+
* @param {?} error
|
|
1757
|
+
* @return {?}
|
|
1758
|
+
*/
|
|
1759
|
+
function (error) { return _this.errorMessage = error; }));
|
|
1760
|
+
//}
|
|
1761
1761
|
};
|
|
1762
1762
|
/**
|
|
1763
1763
|
* @param {?} paymentgrp
|
|
@@ -1839,14 +1839,10 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1839
1839
|
*/
|
|
1840
1840
|
function (payment) {
|
|
1841
1841
|
if (payment !== null && payment !== undefined) {
|
|
1842
|
-
return payment.issue_refund;
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
// return true
|
|
1847
|
-
// } else {
|
|
1848
|
-
// return false;
|
|
1849
|
-
// }
|
|
1842
|
+
return payment.issue_refund && payment.refund_enable;
|
|
1843
|
+
}
|
|
1844
|
+
else {
|
|
1845
|
+
return false;
|
|
1850
1846
|
}
|
|
1851
1847
|
};
|
|
1852
1848
|
/**
|
|
@@ -1860,13 +1856,9 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1860
1856
|
function (remission) {
|
|
1861
1857
|
if (remission !== null && remission !== undefined) {
|
|
1862
1858
|
return remission.add_refund;
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
// return true
|
|
1867
|
-
// } else {
|
|
1868
|
-
// return false;
|
|
1869
|
-
// }
|
|
1859
|
+
}
|
|
1860
|
+
else {
|
|
1861
|
+
return false;
|
|
1870
1862
|
}
|
|
1871
1863
|
};
|
|
1872
1864
|
/**
|
|
@@ -1880,13 +1872,9 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1880
1872
|
function (fee) {
|
|
1881
1873
|
if (fee !== null && fee !== undefined) {
|
|
1882
1874
|
return fee.add_remission && fee.remission_enable;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
// return true
|
|
1887
|
-
// } else {
|
|
1888
|
-
// return false;
|
|
1889
|
-
// }
|
|
1875
|
+
}
|
|
1876
|
+
else {
|
|
1877
|
+
return false;
|
|
1890
1878
|
}
|
|
1891
1879
|
};
|
|
1892
1880
|
/**
|
|
@@ -10807,15 +10795,10 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10807
10795
|
*/
|
|
10808
10796
|
function (payment) {
|
|
10809
10797
|
if (payment !== null && payment !== undefined) {
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
return true;
|
|
10815
|
-
}
|
|
10816
|
-
else {
|
|
10817
|
-
return false;
|
|
10818
|
-
}
|
|
10798
|
+
return payment.issue_refund && payment.refund_enable;
|
|
10799
|
+
}
|
|
10800
|
+
else {
|
|
10801
|
+
return false;
|
|
10819
10802
|
}
|
|
10820
10803
|
};
|
|
10821
10804
|
/**
|
|
@@ -10828,15 +10811,10 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10828
10811
|
*/
|
|
10829
10812
|
function (remission) {
|
|
10830
10813
|
if (remission !== null && remission !== undefined) {
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
return true;
|
|
10836
|
-
}
|
|
10837
|
-
else {
|
|
10838
|
-
return false;
|
|
10839
|
-
}
|
|
10814
|
+
return remission.add_refund;
|
|
10815
|
+
}
|
|
10816
|
+
else {
|
|
10817
|
+
return false;
|
|
10840
10818
|
}
|
|
10841
10819
|
};
|
|
10842
10820
|
/**
|
|
@@ -10849,15 +10827,10 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10849
10827
|
*/
|
|
10850
10828
|
function (fee) {
|
|
10851
10829
|
if (fee !== null && fee !== undefined) {
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
return true;
|
|
10857
|
-
}
|
|
10858
|
-
else {
|
|
10859
|
-
return false;
|
|
10860
|
-
}
|
|
10830
|
+
return fee.add_remission && fee.remission_enable;
|
|
10831
|
+
}
|
|
10832
|
+
else {
|
|
10833
|
+
return false;
|
|
10861
10834
|
}
|
|
10862
10835
|
};
|
|
10863
10836
|
/**
|