@hmcts/ccpay-web-component 5.0.2-beta122 → 5.0.2-beta123

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.
@@ -1389,12 +1389,13 @@ var PaymentViewService = /** @class */ (function () {
1389
1389
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1390
1390
  */
1391
1391
  var PostRefundRetroRemission = /** @class */ (function () {
1392
- function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount) {
1392
+ function PostRefundRetroRemission(contact_details, fees, payment_reference, refund_reason, total_refund_amount, is_over_payment) {
1393
1393
  this.contact_details = contact_details;
1394
1394
  this.fees = fees;
1395
1395
  this.payment_reference = payment_reference;
1396
1396
  this.refund_reason = refund_reason;
1397
1397
  this.total_refund_amount = total_refund_amount;
1398
+ this.is_over_payment = is_over_payment === 'op';
1398
1399
  }
1399
1400
  return PostRefundRetroRemission;
1400
1401
  }());
@@ -1678,7 +1679,7 @@ var PaymentViewComponent = /** @class */ (function () {
1678
1679
  volume: obj.volume,
1679
1680
  refund_amount: this.getOverPaymentValue() }];
1680
1681
  /** @type {?} */
1681
- var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue());
1682
+ var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroup.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
1682
1683
  this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
1683
1684
  * @param {?} response
1684
1685
  * @return {?}
@@ -8425,7 +8426,7 @@ var AddRemissionComponent = /** @class */ (function () {
8425
8426
  updated_volume: obj.updated_volume ? obj.updated_volume : obj.volume,
8426
8427
  refund_amount: obj.refund_amount ? obj.refund_amount : _this.totalRefundAmount }); }));
8427
8428
  /** @type {?} */
8428
- var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.payment.reference, this.refundReason, this.totalRefundAmount);
8429
+ var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.payment.reference, this.refundReason, this.totalRefundAmount, 'op');
8429
8430
  this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
8430
8431
  * @param {?} response
8431
8432
  * @return {?}
@@ -11004,7 +11005,7 @@ var ServiceRequestComponent = /** @class */ (function () {
11004
11005
  volume: obj.volume,
11005
11006
  refund_amount: this.getOverPaymentValue() }];
11006
11007
  /** @type {?} */
11007
- var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue());
11008
+ var requestBody = new PostRefundRetroRemission(this.contactDetailsObj, this.fees, this.paymentGroupList.payments[0].reference, 'RR037', this.getOverPaymentValue(), 'op');
11008
11009
  this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
11009
11010
  * @param {?} response
11010
11011
  * @return {?}