@hmcts/ccpay-web-component 5.0.7-beta29 → 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.
- package/bundles/hmcts-ccpay-web-component.umd.js +2 -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 +2 -18
- package/esm2015/lib/services/notification/notification.service.js +2 -4
- package/esm5/lib/components/notification-preview/notification-preview.component.js +2 -19
- package/esm5/lib/services/notification/notification.service.js +2 -4
- package/fesm2015/hmcts-ccpay-web-component.js +2 -20
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +2 -21
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -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: [{
|
|
@@ -11567,7 +11565,6 @@ var NotificationPreviewComponent = /** @class */ (function () {
|
|
|
11567
11565
|
* @return {?}
|
|
11568
11566
|
*/
|
|
11569
11567
|
function () {
|
|
11570
|
-
var _this = this;
|
|
11571
11568
|
console.log('Notification app started');
|
|
11572
11569
|
/** @type {?} */
|
|
11573
11570
|
var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
|
|
@@ -11576,23 +11573,7 @@ var NotificationPreviewComponent = /** @class */ (function () {
|
|
|
11576
11573
|
* @return {?}
|
|
11577
11574
|
*/
|
|
11578
11575
|
function (res) {
|
|
11579
|
-
|
|
11580
|
-
/** @type {?} */
|
|
11581
|
-
var JsonResponse = JSON.parse(res);
|
|
11582
|
-
console.log("2." + JsonResponse);
|
|
11583
|
-
_this.notification = JsonResponse['data'];
|
|
11584
|
-
console.log("3." + _this.notification);
|
|
11585
|
-
if (_this.notification.template_type === 'letter') {
|
|
11586
|
-
_this.notification.body = _this.notification.body.replace(/\r\n/g, '<br/>');
|
|
11587
|
-
}
|
|
11588
|
-
}), (/**
|
|
11589
|
-
* @param {?} error
|
|
11590
|
-
* @return {?}
|
|
11591
|
-
*/
|
|
11592
|
-
function (error) {
|
|
11593
|
-
_this.errorMessage = _this.errorHandlerService.getServerErrorMessage(true, false, '');
|
|
11594
|
-
console.log(_this.errorMessage);
|
|
11595
|
-
window.scrollTo(0, 0);
|
|
11576
|
+
console.log('subscribed');
|
|
11596
11577
|
}));
|
|
11597
11578
|
console.log('Notification app loaded');
|
|
11598
11579
|
};
|