@hmcts/ccpay-web-component 5.0.5-beta04 → 5.0.5-beta05

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.
@@ -1251,14 +1251,18 @@ var PaymentViewService = /** @class */ (function () {
1251
1251
  return this.https.get(url, { withCredentials: true }).pipe(catchError(this.errorHandlerService.handleError));
1252
1252
  };
1253
1253
  /**
1254
+ * @param {?} startDate
1255
+ * @param {?} endDate
1254
1256
  * @return {?}
1255
1257
  */
1256
1258
  PaymentViewService.prototype.downloadFailureReport = /**
1259
+ * @param {?} startDate
1260
+ * @param {?} endDate
1257
1261
  * @return {?}
1258
1262
  */
1259
- function () {
1263
+ function (startDate, endDate) {
1260
1264
  /** @type {?} */
1261
- var url = this.paymentLibService.API_ROOT + "/payment-failures/failure-report";
1265
+ var url = this.paymentLibService.API_ROOT + "/payment-failures/failure-report?date_from=" + startDate + "&date_to=" + endDate;
1262
1266
  return this.https.get(url, { withCredentials: true }).pipe(catchError(this.errorHandlerService.handleError));
1263
1267
  };
1264
1268
  /**
@@ -8295,7 +8299,7 @@ var ReportsComponent = /** @class */ (function () {
8295
8299
  }));
8296
8300
  }
8297
8301
  else if (selectedReportName === 'PAYMENT_FAILURE_EVENT') {
8298
- this.paymentViewService.downloadFailureReport().subscribe((/**
8302
+ this.paymentViewService.downloadFailureReport(selectedStartDate, selectedEndDate).subscribe((/**
8299
8303
  * @param {?} response
8300
8304
  * @return {?}
8301
8305
  */