@hmcts/ccpay-web-component 5.0.2-beta104 → 5.0.2-beta105
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/service-request/service-request.component.js +23 -1
- package/esm5/lib/components/service-request/service-request.component.js +23 -1
- package/fesm2015/hmcts-ccpay-web-component.js +22 -0
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +22 -0
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -10566,6 +10566,22 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10566
10566
|
if (this.paymentLibComponent.isFromServiceRequestPage && this.paymentLibComponent.TAKEPAYMENT) {
|
|
10567
10567
|
this.isServiceRequest = 'false';
|
|
10568
10568
|
}
|
|
10569
|
+
this.paymentViewService.getApportionPaymentDetails(this.paymentLibComponent.paymentReference).subscribe((/**
|
|
10570
|
+
* @param {?} paymentGroup
|
|
10571
|
+
* @return {?}
|
|
10572
|
+
*/
|
|
10573
|
+
function (paymentGroup) {
|
|
10574
|
+
_this.paymentGroup = paymentGroup;
|
|
10575
|
+
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
10576
|
+
* @param {?} paymentGroupObj
|
|
10577
|
+
* @return {?}
|
|
10578
|
+
*/
|
|
10579
|
+
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
10580
|
+
}), (/**
|
|
10581
|
+
* @param {?} error
|
|
10582
|
+
* @return {?}
|
|
10583
|
+
*/
|
|
10584
|
+
function (error) { return _this.errorMessage = error; }));
|
|
10569
10585
|
};
|
|
10570
10586
|
/**
|
|
10571
10587
|
* @return {?}
|
|
@@ -10746,10 +10762,12 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10746
10762
|
if (payment !== null && payment !== undefined) {
|
|
10747
10763
|
if (this.chkIsIssueRefundBtnEnable(payment)) {
|
|
10748
10764
|
if (payment.over_payment > 0) {
|
|
10765
|
+
this.viewStatus = '';
|
|
10749
10766
|
this.viewCompStatus = 'overpayment';
|
|
10750
10767
|
}
|
|
10751
10768
|
else {
|
|
10752
10769
|
this.viewStatus = 'issuerefund';
|
|
10770
|
+
this.viewCompStatus = '';
|
|
10753
10771
|
this.payment = payment;
|
|
10754
10772
|
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
10755
10773
|
this.isRefundRemission = true;
|
|
@@ -10892,6 +10910,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10892
10910
|
function (paymentgrp) {
|
|
10893
10911
|
if (this.paymentType === 'op') {
|
|
10894
10912
|
this.isFullyRefund = false;
|
|
10913
|
+
this.viewStatus = '';
|
|
10895
10914
|
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10896
10915
|
}
|
|
10897
10916
|
else if (this.paymentType === 'fp') {
|
|
@@ -10915,6 +10934,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10915
10934
|
*/
|
|
10916
10935
|
function (obj) {
|
|
10917
10936
|
this.contactDetailsObj = obj;
|
|
10937
|
+
this.viewStatus = '';
|
|
10918
10938
|
this.viewCompStatus = 'overpaymentcheckandanswer';
|
|
10919
10939
|
};
|
|
10920
10940
|
/**
|
|
@@ -10927,6 +10947,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10927
10947
|
*/
|
|
10928
10948
|
function (event) {
|
|
10929
10949
|
event.preventDefault();
|
|
10950
|
+
this.viewStatus = '';
|
|
10930
10951
|
this.viewCompStatus = 'overpayment';
|
|
10931
10952
|
};
|
|
10932
10953
|
/**
|
|
@@ -10942,6 +10963,7 @@ var ServiceRequestComponent = /** @class */ (function () {
|
|
|
10942
10963
|
this.notification = { contact_details: note, notification_type: note.notification_type };
|
|
10943
10964
|
}
|
|
10944
10965
|
this.errorMessage = '';
|
|
10966
|
+
this.viewStatus = '';
|
|
10945
10967
|
this.viewCompStatus = 'overPaymentAddressCapture';
|
|
10946
10968
|
};
|
|
10947
10969
|
/**
|