@hmcts/ccpay-web-component 5.0.2-beta46 → 5.0.2-beta47
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 +1 -21
- 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 +2 -18
- package/esm2015/lib/interfaces/IPayment.js +3 -1
- package/esm5/lib/components/payment-view/payment-view.component.js +2 -23
- package/esm5/lib/interfaces/IPayment.js +3 -1
- package/fesm2015/hmcts-ccpay-web-component.js +1 -17
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +1 -22
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/payment-view/payment-view.component.d.ts +0 -1
- package/lib/interfaces/IPayment.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1782,7 +1782,7 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1782
1782
|
function (paymentgrp) {
|
|
1783
1783
|
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
1784
1784
|
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
1785
|
-
if (
|
|
1785
|
+
if (paymentgrp.payments[0].over_payment > 0) {
|
|
1786
1786
|
this.viewCompStatus = 'overpayment';
|
|
1787
1787
|
}
|
|
1788
1788
|
else {
|
|
@@ -1796,27 +1796,6 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
};
|
|
1799
|
-
/**
|
|
1800
|
-
* @param {?} payments
|
|
1801
|
-
* @return {?}
|
|
1802
|
-
*/
|
|
1803
|
-
PaymentViewComponent.prototype.checkIsOverPayment = /**
|
|
1804
|
-
* @param {?} payments
|
|
1805
|
-
* @return {?}
|
|
1806
|
-
*/
|
|
1807
|
-
function (payments) {
|
|
1808
|
-
var _this = this;
|
|
1809
|
-
/** @type {?} */
|
|
1810
|
-
var isOverpaymentAvailable = false;
|
|
1811
|
-
payments.forEach((/**
|
|
1812
|
-
* @param {?} payment
|
|
1813
|
-
* @return {?}
|
|
1814
|
-
*/
|
|
1815
|
-
function (payment) {
|
|
1816
|
-
isOverpaymentAvailable = payment.reference === _this.payment.reference && payment.over_payment > 0;
|
|
1817
|
-
}));
|
|
1818
|
-
return isOverpaymentAvailable;
|
|
1819
|
-
};
|
|
1820
1799
|
/**
|
|
1821
1800
|
* @param {?} feeCode
|
|
1822
1801
|
* @param {?} remissions
|