@hmcts/ccpay-web-component 5.0.7-beta29 → 5.0.7-beta30

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.
@@ -3067,9 +3067,7 @@
3067
3067
  * @return {?}
3068
3068
  */
3069
3069
  function (body) {
3070
- return this.https.post(this.paymentLibService.NOTIFICATION_API_ROOT + "/doc-preview", body, {
3071
- withCredentials: true
3072
- }).pipe(operators.catchError(this.errorHandlerService.handleError));
3070
+ return this.https.post(this.paymentLibService.NOTIFICATION_API_ROOT + "/doc-preview", body).pipe(operators.catchError(this.errorHandlerService.handleError));
3073
3071
  };
3074
3072
  NotificationService.decorators = [
3075
3073
  { type: i0.Injectable, args: [{
@@ -11369,7 +11367,6 @@
11369
11367
  * @return {?}
11370
11368
  */
11371
11369
  function () {
11372
- var _this = this;
11373
11370
  console.log('Notification app started');
11374
11371
  /** @type {?} */
11375
11372
  var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
@@ -11377,22 +11374,7 @@
11377
11374
  * @param {?} res
11378
11375
  * @return {?}
11379
11376
  */function (res) {
11380
- _this.errorMessage = _this.errorHandlerService.getServerErrorMessage(false, false, '');
11381
- /** @type {?} */
11382
- var JsonResponse = JSON.parse(res);
11383
- console.log("2." + JsonResponse);
11384
- _this.notification = JsonResponse['data'];
11385
- console.log("3." + _this.notification);
11386
- if (_this.notification.template_type === 'letter') {
11387
- _this.notification.body = _this.notification.body.replace(/\r\n/g, '<br/>');
11388
- }
11389
- }), ( /**
11390
- * @param {?} error
11391
- * @return {?}
11392
- */function (error) {
11393
- _this.errorMessage = _this.errorHandlerService.getServerErrorMessage(true, false, '');
11394
- console.log(_this.errorMessage);
11395
- window.scrollTo(0, 0);
11377
+ console.log('subscribed');
11396
11378
  }));
11397
11379
  console.log('Notification app loaded');
11398
11380
  };