@hmcts/ccpay-web-component 5.0.7-beta28 → 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.
@@ -3071,9 +3071,7 @@ var NotificationService = /** @class */ (function () {
3071
3071
  * @return {?}
3072
3072
  */
3073
3073
  function (body) {
3074
- return this.https.post(this.paymentLibService.NOTIFICATION_API_ROOT + "/doc-preview", body, {
3075
- withCredentials: true
3076
- }).pipe(catchError(this.errorHandlerService.handleError));
3074
+ return this.https.post(this.paymentLibService.NOTIFICATION_API_ROOT + "/doc-preview", body).pipe(catchError(this.errorHandlerService.handleError));
3077
3075
  };
3078
3076
  NotificationService.decorators = [
3079
3077
  { type: Injectable, args: [{
@@ -11570,30 +11568,13 @@ var NotificationPreviewComponent = /** @class */ (function () {
11570
11568
  console.log('Notification app started');
11571
11569
  /** @type {?} */
11572
11570
  var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
11573
- for (var notifPrev in notficationPreviewRequestBody) {
11574
- console.log(notifPrev);
11575
- }
11576
11571
  this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe((/**
11577
11572
  * @param {?} res
11578
11573
  * @return {?}
11579
11574
  */
11580
- function (res) { console.log(JSON.parse(res)); }));
11581
- // this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe(
11582
- // res => {
11583
- // this.errorMessage = this.errorHandlerService.getServerErrorMessage(false, false, '');
11584
- // const JsonResponse = JSON.parse(res);
11585
- // console.log("2." + JsonResponse);
11586
- // this.notification = JsonResponse['data'];
11587
- // console.log("3." + this.notification);
11588
- // if (this.notification.template_type === 'letter') {
11589
- // this.notification.body = this.notification.body.replace(/\r\n/g, '<br/>');
11590
- // }
11591
- // },
11592
- // (error: any) => {
11593
- // this.errorMessage = this.errorHandlerService.getServerErrorMessage(true, false, '');
11594
- // console.log(this.errorMessage);
11595
- // window.scrollTo(0, 0);
11596
- // });
11575
+ function (res) {
11576
+ console.log('subscribed');
11577
+ }));
11597
11578
  console.log('Notification app loaded');
11598
11579
  };
11599
11580
  NotificationPreviewComponent.decorators = [