@hmcts/ccpay-web-component 5.0.10-beta21 → 5.0.10-beta23
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 +4 -3
- 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/add-remission/add-remission.component.js +1 -2
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +3 -1
- package/esm2015/lib/services/notification/notification.service.js +3 -3
- package/fesm2015/hmcts-ccpay-web-component.js +4 -3
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts.map +1 -1
- package/lib/components/notification-preview/notification-preview.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1019,7 +1019,7 @@
|
|
|
1019
1019
|
this.paymentLibService = paymentLibService;
|
|
1020
1020
|
}
|
|
1021
1021
|
NotificationService.prototype.getRefundNotification = function (reference) {
|
|
1022
|
-
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/
|
|
1022
|
+
return this.http.get(this.paymentLibService.NOTIFICATION_API_ROOT + "/" + reference, {
|
|
1023
1023
|
withCredentials: true
|
|
1024
1024
|
})
|
|
1025
1025
|
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
@@ -1031,7 +1031,7 @@
|
|
|
1031
1031
|
.pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
1032
1032
|
};
|
|
1033
1033
|
NotificationService.prototype.getNotificationPreview = function (body) {
|
|
1034
|
-
return this.https.post(this.paymentLibService.
|
|
1034
|
+
return this.https.post(this.paymentLibService.NOTIFICATION_API_ROOT + "/doc-preview", body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
1035
1035
|
};
|
|
1036
1036
|
NotificationService.prototype.getNotificationInstructionType = function (paymentChannel, paymentMethod) {
|
|
1037
1037
|
if (paymentChannel === 'bulk scan' && paymentMethod === 'postal order') {
|
|
@@ -5113,7 +5113,6 @@
|
|
|
5113
5113
|
this.isFromCheckAnsPage = false;
|
|
5114
5114
|
this.errorMsg = [];
|
|
5115
5115
|
if (this.isRefundRemission) {
|
|
5116
|
-
this.paymentLibComponent.iscancelClicked = true;
|
|
5117
5116
|
this.refundListAmount.emit();
|
|
5118
5117
|
this.paymentLibComponent.isFromRefundStatusPage = true;
|
|
5119
5118
|
return;
|
|
@@ -7382,7 +7381,9 @@
|
|
|
7382
7381
|
this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe(function (res) {
|
|
7383
7382
|
_this.errorMessage = _this.errorHandlerService.getServerErrorMessage(false, false, '');
|
|
7384
7383
|
var JsonResponse = JSON.parse(res);
|
|
7384
|
+
console.log("JSON Response :" + JSON.stringify(JSON.parse(res).data));
|
|
7385
7385
|
_this.notification = JsonResponse['data'];
|
|
7386
|
+
console.log("Notification :" + JSON.stringify(_this.notification));
|
|
7386
7387
|
if (_this.notification != undefined && _this.notification != null && _this.notification.template_type === 'letter') {
|
|
7387
7388
|
_this.notification.body = _this.notification.body.replace(/\r\n/g, '<br/>');
|
|
7388
7389
|
}
|