@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.
- package/bundles/hmcts-ccpay-web-component.umd.js +23 -20
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +21 -20
- package/esm2015/lib/services/notification/notification.service.js +4 -2
- package/esm5/lib/components/notification-preview/notification-preview.component.js +21 -21
- package/esm5/lib/services/notification/notification.service.js +4 -2
- package/fesm2015/hmcts-ccpay-web-component.js +23 -20
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +23 -21
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -3071,7 +3071,9 @@ 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
|
|
3074
|
+
return this.https.post(this.paymentLibService.NOTIFICATION_API_ROOT + "/doc-preview", body, {
|
|
3075
|
+
withCredentials: true
|
|
3076
|
+
}).pipe(catchError(this.errorHandlerService.handleError));
|
|
3075
3077
|
};
|
|
3076
3078
|
NotificationService.decorators = [
|
|
3077
3079
|
{ type: Injectable, args: [{
|
|
@@ -11565,33 +11567,33 @@ var NotificationPreviewComponent = /** @class */ (function () {
|
|
|
11565
11567
|
* @return {?}
|
|
11566
11568
|
*/
|
|
11567
11569
|
function () {
|
|
11568
|
-
var _this = this;
|
|
11569
11570
|
console.log('Notification app started');
|
|
11570
11571
|
/** @type {?} */
|
|
11571
11572
|
var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
|
|
11572
|
-
|
|
11573
|
+
for (var notifPrev in notficationPreviewRequestBody) {
|
|
11574
|
+
console.log(notifPrev);
|
|
11575
|
+
}
|
|
11573
11576
|
this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe((/**
|
|
11574
11577
|
* @param {?} res
|
|
11575
11578
|
* @return {?}
|
|
11576
11579
|
*/
|
|
11577
|
-
function (res) {
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
}
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
}));
|
|
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
|
+
// });
|
|
11595
11597
|
console.log('Notification app loaded');
|
|
11596
11598
|
};
|
|
11597
11599
|
NotificationPreviewComponent.decorators = [
|