@hmcts/ccpay-web-component 5.0.2-beta75 → 5.0.2-beta78
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 +27 -30
- 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 +4 -5
- package/esm2015/lib/components/payment-view/payment-view.component.js +25 -26
- package/esm2015/lib/components/service-request/service-request.component.js +3 -4
- package/esm5/lib/components/case-transactions/case-transactions.component.js +4 -5
- package/esm5/lib/components/payment-view/payment-view.component.js +25 -26
- package/esm5/lib/components/service-request/service-request.component.js +3 -4
- package/fesm2015/hmcts-ccpay-web-component.js +29 -32
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +29 -32
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -1729,35 +1729,34 @@ 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.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe((/**
|
|
1734
|
+
* @param {?} paymentGroup
|
|
1735
|
+
* @return {?}
|
|
1736
|
+
*/
|
|
1737
|
+
function (paymentGroup) {
|
|
1738
|
+
_this.paymentGroup = paymentGroup;
|
|
1739
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
1740
|
+
* @param {?} paymentGroupObj
|
|
1736
1741
|
* @return {?}
|
|
1737
1742
|
*/
|
|
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
|
|
1743
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
|
|
1744
|
+
_this.payment = _this.paymentGroup.payments[0];
|
|
1745
|
+
_this.remissions = remission;
|
|
1746
|
+
_this.remissionFeeAmt = fees.filter((/**
|
|
1747
|
+
* @param {?} data
|
|
1757
1748
|
* @return {?}
|
|
1758
1749
|
*/
|
|
1759
|
-
function (
|
|
1760
|
-
|
|
1750
|
+
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
1751
|
+
_this.viewStatus = 'addrefundforremission';
|
|
1752
|
+
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
1753
|
+
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
1754
|
+
}), (/**
|
|
1755
|
+
* @param {?} error
|
|
1756
|
+
* @return {?}
|
|
1757
|
+
*/
|
|
1758
|
+
function (error) { return _this.errorMessage = error; }));
|
|
1759
|
+
//}
|
|
1761
1760
|
};
|
|
1762
1761
|
/**
|
|
1763
1762
|
* @param {?} paymentgrp
|
|
@@ -4602,18 +4601,17 @@ var CaseTransactionsComponent = /** @class */ (function () {
|
|
|
4602
4601
|
function (payment, remission, fees) {
|
|
4603
4602
|
var _this = this;
|
|
4604
4603
|
this.viewStatus = 'addrefundforremission';
|
|
4605
|
-
this.payment
|
|
4606
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
4604
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe((/**
|
|
4607
4605
|
* @param {?} paymentGroup
|
|
4608
4606
|
* @return {?}
|
|
4609
4607
|
*/
|
|
4610
4608
|
function (paymentGroup) {
|
|
4611
4609
|
_this.paymentGroup = paymentGroup;
|
|
4612
|
-
_this.paymentGroup.payments =
|
|
4610
|
+
_this.paymentGroup.payments = paymentGroup.payments.filter((/**
|
|
4613
4611
|
* @param {?} paymentGroupObj
|
|
4614
4612
|
* @return {?}
|
|
4615
4613
|
*/
|
|
4616
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(
|
|
4614
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
|
|
4617
4615
|
_this.payment = _this.paymentGroup.payments[0];
|
|
4618
4616
|
_this.remissions = remission;
|
|
4619
4617
|
_this.remissionFeeAmt = fees.filter((/**
|
|
@@ -10667,8 +10665,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10667
10665
|
var _this = this;
|
|
10668
10666
|
this.viewStatus = 'addrefundforremission';
|
|
10669
10667
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
10670
|
-
this.payment
|
|
10671
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
10668
|
+
this.paymentViewService.getApportionPaymentDetails(payment.reference).subscribe((/**
|
|
10672
10669
|
* @param {?} paymentGroup
|
|
10673
10670
|
* @return {?}
|
|
10674
10671
|
*/
|
|
@@ -10678,7 +10675,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10678
10675
|
* @param {?} paymentGroupObj
|
|
10679
10676
|
* @return {?}
|
|
10680
10677
|
*/
|
|
10681
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(
|
|
10678
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(payment.reference); }));
|
|
10682
10679
|
_this.payment = _this.paymentGroup.payments[0];
|
|
10683
10680
|
_this.remissions = remission;
|
|
10684
10681
|
_this.remissionFeeAmt = fees.filter((/**
|