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

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.
@@ -11369,32 +11369,31 @@
11369
11369
  * @return {?}
11370
11370
  */
11371
11371
  function () {
11372
+ var _this = this;
11372
11373
  console.log('Notification app started');
11373
11374
  /** @type {?} */
11374
11375
  var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
11375
- for (var notifPrev in notficationPreviewRequestBody) {
11376
- console.log(notifPrev);
11377
- }
11378
11376
  this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe(( /**
11379
11377
  * @param {?} res
11380
11378
  * @return {?}
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
- // });
11379
+ */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);
11396
+ }));
11398
11397
  console.log('Notification app loaded');
11399
11398
  };
11400
11399
  NotificationPreviewComponent.decorators = [