@hmcts/ccpay-web-component 5.0.2-beta69 → 5.0.2-beta70
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 +19 -0
- 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 +6 -1
- package/esm2015/lib/components/payment-view/payment-view.component.js +11 -1
- package/esm5/lib/components/case-transactions/case-transactions.component.js +6 -1
- package/esm5/lib/components/payment-view/payment-view.component.js +15 -1
- package/fesm2015/hmcts-ccpay-web-component.js +15 -0
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +19 -0
- 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 +1 -0
- package/package.json +1 -1
|
@@ -1742,6 +1742,20 @@
|
|
|
1742
1742
|
* @param {?} paymentgrp
|
|
1743
1743
|
* @return {?}
|
|
1744
1744
|
*/
|
|
1745
|
+
PaymentViewComponent.prototype.goToPaymentViewComponent = /**
|
|
1746
|
+
* @param {?} paymentgrp
|
|
1747
|
+
* @return {?}
|
|
1748
|
+
*/
|
|
1749
|
+
function (paymentgrp) {
|
|
1750
|
+
this.paymentLibComponent.paymentMethod = paymentgrp.payments[0].method;
|
|
1751
|
+
this.paymentLibComponent.paymentGroupReference = paymentgrp.payment_group_reference;
|
|
1752
|
+
this.paymentLibComponent.paymentReference = paymentgrp.payments[0].reference;
|
|
1753
|
+
this.paymentLibComponent.viewName = 'payment-view';
|
|
1754
|
+
};
|
|
1755
|
+
/**
|
|
1756
|
+
* @param {?} paymentgrp
|
|
1757
|
+
* @return {?}
|
|
1758
|
+
*/
|
|
1745
1759
|
PaymentViewComponent.prototype.issueRefund = /**
|
|
1746
1760
|
* @param {?} paymentgrp
|
|
1747
1761
|
* @return {?}
|
|
@@ -4057,10 +4071,15 @@
|
|
|
4057
4071
|
}));
|
|
4058
4072
|
}
|
|
4059
4073
|
if (paymentGroup.payments) {
|
|
4074
|
+
/** @type {?} */
|
|
4075
|
+
var isFeeOverPaymentExist_1 = _this.overPaymentAmount === 0;
|
|
4060
4076
|
paymentGroup.payments.forEach(( /**
|
|
4061
4077
|
* @param {?} payment
|
|
4062
4078
|
* @return {?}
|
|
4063
4079
|
*/function (payment) {
|
|
4080
|
+
if (isFeeOverPaymentExist_1) {
|
|
4081
|
+
_this.overPaymentAmount = _this.overPaymentAmount + payment.over_payment;
|
|
4082
|
+
}
|
|
4064
4083
|
if (payment.status.toUpperCase() === 'SUCCESS') {
|
|
4065
4084
|
_this.orderTotalPayments = _this.orderTotalPayments + payment.amount;
|
|
4066
4085
|
}
|