@hmcts/ccpay-web-component 5.0.2-beta52 → 5.0.2-beta55
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 +12 -16
- 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 +3 -3
- package/esm2015/lib/components/payment-view/payment-view.component.js +6 -9
- package/esm5/lib/components/add-remission/add-remission.component.js +3 -3
- package/esm5/lib/components/payment-view/payment-view.component.js +6 -9
- package/fesm2015/hmcts-ccpay-web-component.js +7 -10
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +7 -10
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -1652,20 +1652,16 @@
|
|
|
1652
1652
|
var _this = this;
|
|
1653
1653
|
this.isConfirmationBtnDisabled = true;
|
|
1654
1654
|
this.errorMessage = '';
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
updated_volume: obj.updated_volume,
|
|
1666
|
-
volume: obj.volume,
|
|
1667
|
-
refund_amount: obj.refund_amount });
|
|
1668
|
-
}));
|
|
1655
|
+
/** @type {?} */
|
|
1656
|
+
var obj = this.paymentGroup.fees[0];
|
|
1657
|
+
this.fees = { id: obj.id,
|
|
1658
|
+
code: obj.code,
|
|
1659
|
+
version: obj.version,
|
|
1660
|
+
apportion_amount: obj.apportion_amount,
|
|
1661
|
+
calculated_amount: obj.calculated_amount,
|
|
1662
|
+
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
1663
|
+
volume: obj.volume,
|
|
1664
|
+
refund_amount: obj.over_payment };
|
|
1669
1665
|
/** @type {?} */
|
|
1670
1666
|
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.paymentGroup.fees[0].over_payment);
|
|
1671
1667
|
this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**
|
|
@@ -8225,9 +8221,9 @@
|
|
|
8225
8221
|
version: obj.version,
|
|
8226
8222
|
apportion_amount: obj.apportion_amount,
|
|
8227
8223
|
calculated_amount: obj.calculated_amount,
|
|
8228
|
-
updated_volume: obj.updated_volume,
|
|
8224
|
+
updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
|
|
8229
8225
|
volume: obj.volume,
|
|
8230
|
-
refund_amount: obj.refund_amount });
|
|
8226
|
+
refund_amount: isFullyRefund ? _this.totalRefundAmount : obj.refund_amount });
|
|
8231
8227
|
}));
|
|
8232
8228
|
/** @type {?} */
|
|
8233
8229
|
var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.payment.reference, this.refundReason, this.totalRefundAmount);
|