@hmcts/ccpay-web-component 5.0.2-beta54 → 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.
@@ -8363,9 +8363,9 @@ var AddRemissionComponent = /** @class */ (function () {
8363
8363
  version: obj.version,
8364
8364
  apportion_amount: obj.apportion_amount,
8365
8365
  calculated_amount: obj.calculated_amount,
8366
- updated_volume: obj.updated_volume,
8366
+ updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
8367
8367
  volume: obj.volume,
8368
- refund_amount: obj.refund_amount }); }));
8368
+ refund_amount: isFullyRefund ? _this.totalRefundAmount : obj.refund_amount }); }));
8369
8369
  /** @type {?} */
8370
8370
  var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.payment.reference, this.refundReason, this.totalRefundAmount);
8371
8371
  this.paymentViewService.postRefundsReason(requestBody).subscribe((/**