@hmcts/ccpay-web-component 5.0.7-beta34 → 5.0.7-beta36
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 +129 -18
- 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 +2 -2
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +8 -2
- package/esm2015/lib/components/payment-view/payment-view.component.js +2 -2
- package/esm2015/lib/components/process-refund/process-refund.component.js +116 -14
- package/esm2015/lib/components/refund-status/refund-status.component.js +2 -2
- package/esm2015/lib/components/service-request/service-request.component.js +2 -2
- package/esm2015/lib/interfaces/NotificationPreviewRequest.js +1 -1
- package/esm5/lib/components/add-remission/add-remission.component.js +2 -2
- package/esm5/lib/components/notification-preview/notification-preview.component.js +8 -2
- package/esm5/lib/components/payment-view/payment-view.component.js +2 -2
- package/esm5/lib/components/process-refund/process-refund.component.js +126 -14
- package/esm5/lib/components/refund-status/refund-status.component.js +2 -2
- package/esm5/lib/components/service-request/service-request.component.js +2 -2
- package/esm5/lib/interfaces/NotificationPreviewRequest.js +1 -1
- package/fesm2015/hmcts-ccpay-web-component.js +119 -18
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +129 -18
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/notification-preview/notification-preview.component.d.ts +2 -0
- package/lib/components/process-refund/process-refund.component.d.ts +6 -0
- package/lib/interfaces/NotificationPreviewRequest.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
|
5
5
|
import { NotificationPreviewRequest } from '../../interfaces/NotificationPreviewRequest';
|
|
6
6
|
import { NotificationService } from '../../services/notification/notification.service';
|
|
7
7
|
import { ErrorHandlerService } from '../../services/shared/error-handler.service';
|
|
8
|
+
import { EventEmitter } from '@angular/core';
|
|
8
9
|
export declare class NotificationPreviewComponent implements OnInit {
|
|
9
10
|
private errorHandlerService;
|
|
10
11
|
private notificationService;
|
|
@@ -14,6 +15,7 @@ export declare class NotificationPreviewComponent implements OnInit {
|
|
|
14
15
|
refundAmount: number;
|
|
15
16
|
paymentReference: string;
|
|
16
17
|
refundReference: string;
|
|
18
|
+
notificationPreviewEvent: EventEmitter<INotificationPreview>;
|
|
17
19
|
notification: INotificationPreview;
|
|
18
20
|
notificationPreviewRequest: NotificationPreviewRequest;
|
|
19
21
|
today: number;
|
|
@@ -8,6 +8,7 @@ import { OrderslistService } from '../../services/orderslist.service';
|
|
|
8
8
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
9
9
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
10
10
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
11
|
+
import { INotificationPreview } from '../../interfaces/INotificationPreview';
|
|
11
12
|
export declare class ProcessRefundComponent implements OnInit {
|
|
12
13
|
private RefundsService;
|
|
13
14
|
private paymentViewService;
|
|
@@ -47,9 +48,12 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
47
48
|
cpoDetails: any;
|
|
48
49
|
isCPODown: boolean;
|
|
49
50
|
isConfirmButtondisabled: boolean;
|
|
51
|
+
notificationPreview: boolean;
|
|
52
|
+
notificationPreviewObj: INotificationPreview;
|
|
50
53
|
constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
51
54
|
ngOnInit(): void;
|
|
52
55
|
checkRefundActions(code: string): void;
|
|
56
|
+
getNotificationPreviewObj(notificationPreviewObj: INotificationPreview): void;
|
|
53
57
|
processRefundSubmit(): void;
|
|
54
58
|
getErrorMessage(isErrorExist: any, status: any, errorMsg: any, err: any): {
|
|
55
59
|
title: string;
|
|
@@ -62,4 +66,6 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
62
66
|
loadCaseTransactionPage(): void;
|
|
63
67
|
resetForm(vals: any, field: any): void;
|
|
64
68
|
goToCaseReview(): void;
|
|
69
|
+
showNotificationPreview(): void;
|
|
70
|
+
hideNotificationPreview(): void;
|
|
65
71
|
}
|
|
@@ -17,7 +17,7 @@ export declare class NotificationPreviewRequest {
|
|
|
17
17
|
city?: string;
|
|
18
18
|
county?: string;
|
|
19
19
|
country?: string;
|
|
20
|
-
postal_code?:
|
|
20
|
+
postal_code?: string;
|
|
21
21
|
};
|
|
22
22
|
service_name?: string;
|
|
23
23
|
constructor(payment: IPayment, contactDetails: IRefundContactDetails, refund_reason: string, refund_amount: number, refund_reference: string, payment_reference: string);
|