@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.
@@ -7855,7 +7855,7 @@
7855
7855
  worksheet = this.autoFitColumns(worksheet, json);
7856
7856
  }
7857
7857
  else if (excelFileName.match('Payment failure') !== null) {
7858
- worksheet = XLSX.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'] });
7858
+ worksheet = XLSX.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'] });
7859
7859
  worksheet = this.setPaymentFailureReportHeaders(worksheet);
7860
7860
  worksheet = this.autoFitColumns(worksheet, json);
7861
7861
  }
@@ -8250,21 +8250,6 @@
8250
8250
  if (res['data'][i]["representment_status"] !== undefined) {
8251
8251
  res['data'][i]['representment_status'] = res['data'][i]["representment_status"].toLowerCase() === 'yes' ? 'Success' : 'Failure';
8252
8252
  }
8253
- if (res['data'][i]['representment_status'] === undefined) {
8254
- res['data'][i]['representment_status'] = 'No representment received';
8255
- }
8256
- if (res['data'][i]['representment_date'] === undefined) {
8257
- res['data'][i]['representment_date'] = 'N/A';
8258
- }
8259
- if (res['data'][i]['refund_reference'] === undefined) {
8260
- res['data'][i]['refund_reference'] = 'No refund available';
8261
- }
8262
- if (res['data'][i]['refund_amount'] === undefined) {
8263
- res['data'][i]['refund_amount'] = 'N/A';
8264
- }
8265
- if (res['data'][i]['refund_date'] === undefined) {
8266
- res['data'][i]['refund_date'] = 'N/A';
8267
- }
8268
8253
  }
8269
8254
  }
8270
8255
  _this.isDownLoadButtondisabled = false;