@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
|
@@ -7146,11 +7146,11 @@ var AddRetroRemissionRequest = /** @class */ (function () {
|
|
|
7146
7146
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7147
7147
|
*/
|
|
7148
7148
|
var PostRefundRetroRemission = /** @class */ (function () {
|
|
7149
|
-
function PostRefundRetroRemission(ccd_case_number, payment_reference,
|
|
7149
|
+
function PostRefundRetroRemission(ccd_case_number, payment_reference, total_refund_amount, refund_amount, fees, contact_details) {
|
|
7150
7150
|
this.ccd_case_number = ccd_case_number;
|
|
7151
7151
|
this.payment_reference = payment_reference;
|
|
7152
|
-
this.refund_reason =
|
|
7153
|
-
this.
|
|
7152
|
+
this.refund_reason = total_refund_amount;
|
|
7153
|
+
this.total_refund_amount = refund_amount;
|
|
7154
7154
|
this.fees = fees;
|
|
7155
7155
|
this.contact_details = contact_details;
|
|
7156
7156
|
}
|
|
@@ -8036,6 +8036,11 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8036
8036
|
* @return {?}
|
|
8037
8037
|
*/
|
|
8038
8038
|
function (a, c) { return a + c.refund_amount * c.selected; }), 0);
|
|
8039
|
+
this.fees = this.remissionForm.value.feesList.filter((/**
|
|
8040
|
+
* @param {?} value
|
|
8041
|
+
* @return {?}
|
|
8042
|
+
*/
|
|
8043
|
+
function (value) { return value.selected === true; }));
|
|
8039
8044
|
this.viewStatus = 'checkissuerefundpage';
|
|
8040
8045
|
this.viewCompStatus = '';
|
|
8041
8046
|
return;
|
|
@@ -8197,6 +8202,18 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8197
8202
|
* @return {?}
|
|
8198
8203
|
*/
|
|
8199
8204
|
function (value) { return value.selected === true; }));
|
|
8205
|
+
this.fees = this.fees.map((/**
|
|
8206
|
+
* @param {?} obj
|
|
8207
|
+
* @return {?}
|
|
8208
|
+
*/
|
|
8209
|
+
function (obj) { return ({ id: obj.id,
|
|
8210
|
+
code: obj.code,
|
|
8211
|
+
version: obj.version,
|
|
8212
|
+
apportion_amount: obj.apportion_amount,
|
|
8213
|
+
calculated_amount: obj.calculated_amount,
|
|
8214
|
+
updatedVolume: obj.updatedVolume,
|
|
8215
|
+
volume: obj.volume,
|
|
8216
|
+
refund_amount: obj.refund_amount }); }));
|
|
8200
8217
|
/** @type {?} */
|
|
8201
8218
|
var requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
|
|
8202
8219
|
this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
|