@hmcts/ccpay-web-component 5.0.7-beta26 → 5.0.7-beta28

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