@hmcts/ccpay-web-component 5.0.7-beta15 → 5.0.7-beta16

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.
@@ -7973,7 +7973,7 @@ var XlFileService = /** @class */ (function () {
7973
7973
  worksheet = this.autoFitColumns(worksheet, json);
7974
7974
  }
7975
7975
  else if (excelFileName.match('Payment failure') !== null) {
7976
- worksheet = utils.json_to_sheet(json, { header: ['payment_reference', 'ccd_reference', 'org_id', 'service_name', 'failure_reference', 'failure_reason', 'disputed_amount', 'event_name', 'event_date', 'representment_status', 'representment_date', 'refund_references', 'refund_amount', 'refund_date'] });
7976
+ worksheet = utils.json_to_sheet(json, { header: ['payment_reference', 'ccd_reference', 'org_id', 'service_name', 'failure_reference', 'failure_reason', 'disputed_amount', 'event_name', 'event_date', 'representment_status', 'representment_date', 'refund_reference', 'refund_amount', 'refund_date'] });
7977
7977
  worksheet = this.setPaymentFailureReportHeaders(worksheet);
7978
7978
  worksheet = this.autoFitColumns(worksheet, json);
7979
7979
  }
@@ -8371,21 +8371,6 @@ var ReportsComponent = /** @class */ (function () {
8371
8371
  if (res['data'][i]["representment_status"] !== undefined) {
8372
8372
  res['data'][i]['representment_status'] = res['data'][i]["representment_status"].toLowerCase() === 'yes' ? 'Success' : 'Failure';
8373
8373
  }
8374
- if (res['data'][i]['representment_status'] === undefined) {
8375
- res['data'][i]['representment_status'] = 'No representment received';
8376
- }
8377
- if (res['data'][i]['representment_date'] === undefined) {
8378
- res['data'][i]['representment_date'] = 'N/A';
8379
- }
8380
- if (res['data'][i]['refund_reference'] === undefined) {
8381
- res['data'][i]['refund_reference'] = 'No refund available';
8382
- }
8383
- if (res['data'][i]['refund_amount'] === undefined) {
8384
- res['data'][i]['refund_amount'] = 'N/A';
8385
- }
8386
- if (res['data'][i]['refund_date'] === undefined) {
8387
- res['data'][i]['refund_date'] = 'N/A';
8388
- }
8389
8374
  }
8390
8375
  }
8391
8376
  _this.isDownLoadButtondisabled = false;