@hmcts/ccpay-web-component 5.0.7-beta27 → 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.
- package/bundles/hmcts-ccpay-web-component.umd.js +22 -19
- 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 +20 -19
- package/esm2015/lib/services/notification/notification.service.js +4 -2
- package/esm5/lib/components/notification-preview/notification-preview.component.js +21 -19
- package/esm5/lib/services/notification/notification.service.js +4 -2
- package/fesm2015/hmcts-ccpay-web-component.js +22 -19
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +23 -19
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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,30 +11369,31 @@
|
|
|
11367
11369
|
* @return {?}
|
|
11368
11370
|
*/
|
|
11369
11371
|
function () {
|
|
11372
|
+
var _this = this;
|
|
11370
11373
|
console.log('Notification app started');
|
|
11371
11374
|
/** @type {?} */
|
|
11372
11375
|
var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
|
|
11373
|
-
console.log("1." + notficationPreviewRequestBody);
|
|
11374
11376
|
this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe(( /**
|
|
11375
11377
|
* @param {?} res
|
|
11376
11378
|
* @return {?}
|
|
11377
|
-
*/function (res) {
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
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
|
+
}));
|
|
11394
11397
|
console.log('Notification app loaded');
|
|
11395
11398
|
};
|
|
11396
11399
|
NotificationPreviewComponent.decorators = [
|