@hmcts/ccpay-web-component 5.0.2-beta35 → 5.0.2-beta36
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 +20 -3
- 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/add-remission/add-remission.component.js +18 -1
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -6
- package/esm5/lib/components/add-remission/add-remission.component.js +18 -1
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -5
- package/fesm2015/hmcts-ccpay-web-component.js +21 -4
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +20 -3
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +2 -2
- package/package.json +1 -1
|
@@ -7043,11 +7043,11 @@
|
|
|
7043
7043
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7044
7044
|
*/
|
|
7045
7045
|
var PostRefundRetroRemission = /** @class */ (function () {
|
|
7046
|
-
function PostRefundRetroRemission(ccd_case_number, payment_reference,
|
|
7046
|
+
function PostRefundRetroRemission(ccd_case_number, payment_reference, total_refund_amount, refund_amount, fees, contact_details) {
|
|
7047
7047
|
this.ccd_case_number = ccd_case_number;
|
|
7048
7048
|
this.payment_reference = payment_reference;
|
|
7049
|
-
this.refund_reason =
|
|
7050
|
-
this.
|
|
7049
|
+
this.refund_reason = total_refund_amount;
|
|
7050
|
+
this.total_refund_amount = refund_amount;
|
|
7051
7051
|
this.fees = fees;
|
|
7052
7052
|
this.contact_details = contact_details;
|
|
7053
7053
|
}
|
|
@@ -7905,6 +7905,10 @@
|
|
|
7905
7905
|
* @param {?} c
|
|
7906
7906
|
* @return {?}
|
|
7907
7907
|
*/function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
7908
|
+
this.fees = this.remissionForm.value.feesList.filter(( /**
|
|
7909
|
+
* @param {?} value
|
|
7910
|
+
* @return {?}
|
|
7911
|
+
*/function (value) { return value.selected === true; }));
|
|
7908
7912
|
this.viewStatus = 'checkissuerefundpage';
|
|
7909
7913
|
this.viewCompStatus = '';
|
|
7910
7914
|
return;
|
|
@@ -8058,6 +8062,19 @@
|
|
|
8058
8062
|
* @param {?} value
|
|
8059
8063
|
* @return {?}
|
|
8060
8064
|
*/function (value) { return value.selected === true; }));
|
|
8065
|
+
this.fees = this.fees.map(( /**
|
|
8066
|
+
* @param {?} obj
|
|
8067
|
+
* @return {?}
|
|
8068
|
+
*/function (obj) {
|
|
8069
|
+
return ({ id: obj.id,
|
|
8070
|
+
code: obj.code,
|
|
8071
|
+
version: obj.version,
|
|
8072
|
+
apportion_amount: obj.apportion_amount,
|
|
8073
|
+
calculated_amount: obj.calculated_amount,
|
|
8074
|
+
updatedVolume: obj.updatedVolume,
|
|
8075
|
+
volume: obj.volume,
|
|
8076
|
+
refund_amount: obj.refund_amount });
|
|
8077
|
+
}));
|
|
8061
8078
|
/** @type {?} */
|
|
8062
8079
|
var requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
|
|
8063
8080
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|