@hmcts/ccpay-web-component 5.0.7-beta37 → 5.0.7-beta40
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 +285 -92
- 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/hmcts-ccpay-web-component.js +4 -4
- package/esm2015/lib/components/add-remission/add-remission.component.js +41 -3
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +4 -4
- package/esm2015/lib/components/payment-view/payment-view.component.js +22 -3
- package/esm2015/lib/components/process-refund/process-refund.component.js +41 -4
- package/esm2015/lib/components/refund-status/refund-status.component.js +52 -2
- package/esm2015/lib/components/service-request/service-request.component.js +22 -3
- package/esm2015/lib/services/notification/notification.service.js +29 -1
- package/esm2015/lib/services/payment-view/payment-view.service.js +16 -8
- package/esm5/hmcts-ccpay-web-component.js +4 -4
- package/esm5/lib/components/add-remission/add-remission.component.js +46 -3
- package/esm5/lib/components/notification-preview/notification-preview.component.js +4 -4
- package/esm5/lib/components/payment-view/payment-view.component.js +25 -3
- package/esm5/lib/components/process-refund/process-refund.component.js +46 -4
- package/esm5/lib/components/refund-status/refund-status.component.js +65 -2
- package/esm5/lib/components/service-request/service-request.component.js +25 -3
- package/esm5/lib/services/notification/notification.service.js +34 -1
- package/esm5/lib/services/payment-view/payment-view.service.js +17 -9
- package/fesm2015/hmcts-ccpay-web-component.js +245 -80
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +287 -88
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +3 -3
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +5 -1
- package/lib/components/payment-view/payment-view.component.d.ts +4 -1
- package/lib/components/process-refund/process-refund.component.d.ts +6 -1
- package/lib/components/refund-status/refund-status.component.d.ts +6 -0
- package/lib/components/service-request/service-request.component.d.ts +4 -1
- package/lib/services/notification/notification.service.d.ts +1 -0
- package/lib/services/payment-view/payment-view.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { PaymentViewService } from '../../services/payment-view/payment-view.ser
|
|
|
6
6
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
7
7
|
import { IPayment } from '../../interfaces/IPayment';
|
|
8
8
|
import { RefundsService } from '../../services/refunds/refunds.service';
|
|
9
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
9
10
|
import { IRefundReasons } from '../../interfaces/IRefundReasons';
|
|
10
11
|
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
11
12
|
import { ChangeDetectorRef } from '@angular/core';
|
|
@@ -16,6 +17,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
16
17
|
private formBuilder;
|
|
17
18
|
private router;
|
|
18
19
|
private paymentViewService;
|
|
20
|
+
private notificationService;
|
|
19
21
|
private paymentLibComponent;
|
|
20
22
|
private refundService;
|
|
21
23
|
private cd;
|
|
@@ -122,6 +124,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
122
124
|
isStatusAllocated: boolean;
|
|
123
125
|
isFromCheckAnsPage: boolean;
|
|
124
126
|
refundAmtForFeeVolumes: number;
|
|
127
|
+
paymentObj: IPayment;
|
|
125
128
|
notificationPreview: boolean;
|
|
126
129
|
component: {
|
|
127
130
|
account_number: string;
|
|
@@ -142,7 +145,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
142
145
|
site_id: string;
|
|
143
146
|
status: string;
|
|
144
147
|
};
|
|
145
|
-
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
148
|
+
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
146
149
|
ngOnInit(): void;
|
|
147
150
|
goToPaymentViewComponent(): void;
|
|
148
151
|
refundFeesList(): void;
|
|
@@ -184,4 +187,5 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
184
187
|
getFormattedCurrency(currency: number): string | number;
|
|
185
188
|
showNotificationPreview(): void;
|
|
186
189
|
hideNotificationPreview(): void;
|
|
190
|
+
getTemplateInstructionType(payment: IPayment, paymentReference?: string): any;
|
|
187
191
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
3
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
3
4
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
5
|
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
5
6
|
import { IFee } from '../../interfaces/IFee';
|
|
@@ -11,6 +12,7 @@ import { OrderslistService } from '../../services/orderslist.service';
|
|
|
11
12
|
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
12
13
|
export declare class PaymentViewComponent implements OnInit {
|
|
13
14
|
private paymentViewService;
|
|
15
|
+
private notificationService;
|
|
14
16
|
private paymentLibComponent;
|
|
15
17
|
private cd;
|
|
16
18
|
private OrderslistService;
|
|
@@ -65,7 +67,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
65
67
|
refundReference: string;
|
|
66
68
|
refundAmount: string;
|
|
67
69
|
notificationPreview: boolean;
|
|
68
|
-
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
70
|
+
constructor(paymentViewService: PaymentViewService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
69
71
|
ngAfterContentChecked(): void;
|
|
70
72
|
ngOnInit(): void;
|
|
71
73
|
readonly isCardPayment: boolean;
|
|
@@ -92,6 +94,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
92
94
|
resetOrderData(): void;
|
|
93
95
|
goToPaymentFailuePage(payment: any): void;
|
|
94
96
|
goBackToPaymentView(event: any): void;
|
|
97
|
+
getTemplateInstructionType(payment: IPayment): any;
|
|
95
98
|
showNotificationPreview(): void;
|
|
96
99
|
hideNotificationPreview(): void;
|
|
97
100
|
}
|
|
@@ -3,8 +3,10 @@ import { FormBuilder, FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { RefundsService } from '../../services/refunds/refunds.service';
|
|
4
4
|
import { IRefundAction } from '../../interfaces/IRefundAction';
|
|
5
5
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
6
|
+
import { IPayment } from '../../interfaces/IPayment';
|
|
6
7
|
import { IRefundRejectReason } from '../../interfaces/IRefundRejectReason';
|
|
7
8
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
9
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
8
10
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
9
11
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
10
12
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
@@ -14,6 +16,7 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
14
16
|
private paymentViewService;
|
|
15
17
|
private formBuilder;
|
|
16
18
|
private OrderslistService;
|
|
19
|
+
private notificationService;
|
|
17
20
|
private paymentLibComponent;
|
|
18
21
|
private router;
|
|
19
22
|
private activeRoute;
|
|
@@ -48,9 +51,10 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
48
51
|
cpoDetails: any;
|
|
49
52
|
isCPODown: boolean;
|
|
50
53
|
isConfirmButtondisabled: boolean;
|
|
54
|
+
paymentObj: IPayment;
|
|
51
55
|
notificationPreview: boolean;
|
|
52
56
|
notificationPreviewObj: INotificationPreview;
|
|
53
|
-
constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
57
|
+
constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
54
58
|
ngOnInit(): void;
|
|
55
59
|
checkRefundActions(code: string): void;
|
|
56
60
|
getNotificationPreviewObj(notificationPreviewObj: INotificationPreview): void;
|
|
@@ -66,6 +70,7 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
66
70
|
loadCaseTransactionPage(): void;
|
|
67
71
|
resetForm(vals: any, field: any): void;
|
|
68
72
|
goToCaseReview(): void;
|
|
73
|
+
getTemplateInstructionType(payment: IPayment, paymentReference: string): any;
|
|
69
74
|
showNotificationPreview(): void;
|
|
70
75
|
hideNotificationPreview(): void;
|
|
71
76
|
}
|
|
@@ -66,7 +66,10 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
66
66
|
changeRefundReason: string;
|
|
67
67
|
fees: IFee[];
|
|
68
68
|
refundFees: IRefundFee[];
|
|
69
|
+
paymentObj: IPayment;
|
|
70
|
+
notificationSentViewIndex: number;
|
|
69
71
|
notificationPreview: boolean;
|
|
72
|
+
notificationSentView: boolean;
|
|
70
73
|
allowedRolesToAccessRefund: string[];
|
|
71
74
|
constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService, paymentViewService: PaymentViewService);
|
|
72
75
|
ngOnInit(): void;
|
|
@@ -95,6 +98,9 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
95
98
|
putResend(notification: IRefundsNotifications): void;
|
|
96
99
|
gotoCasetransationPageCancelBtnClicked(Event: Event): void;
|
|
97
100
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
101
|
+
getTemplateInstructionType(payment: IPayment, paymentReference: string): any;
|
|
98
102
|
showNotificationPreview(): void;
|
|
99
103
|
hideNotificationPreview(): void;
|
|
104
|
+
showNotificationSentView(index: number): void;
|
|
105
|
+
hideNotificationSentView(): void;
|
|
100
106
|
}
|
|
@@ -8,12 +8,14 @@ import { IFee } from '../../interfaces/IFee';
|
|
|
8
8
|
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
9
9
|
import { Router } from '@angular/router';
|
|
10
10
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
11
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
11
12
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
12
13
|
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
13
14
|
export declare class ServiceRequestComponent implements OnInit {
|
|
14
15
|
private paymentLibComponent;
|
|
15
16
|
private paymentViewService;
|
|
16
17
|
private OrderslistService;
|
|
18
|
+
private notificationService;
|
|
17
19
|
private cd;
|
|
18
20
|
private router;
|
|
19
21
|
LOGGEDINUSERROLES: string[];
|
|
@@ -98,7 +100,7 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
98
100
|
isContinueBtnDisabled: boolean;
|
|
99
101
|
isFullyRefund: boolean;
|
|
100
102
|
notificationPreview: boolean;
|
|
101
|
-
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, cd: ChangeDetectorRef, router: Router);
|
|
103
|
+
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, notificationService: NotificationService, cd: ChangeDetectorRef, router: Router);
|
|
102
104
|
ngOnInit(): void;
|
|
103
105
|
goToServiceRequestPage(): void;
|
|
104
106
|
goToCaseTransationPage(event: any): void;
|
|
@@ -121,6 +123,7 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
121
123
|
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
122
124
|
processRefund(): void;
|
|
123
125
|
getOverPaymentValue(): number;
|
|
126
|
+
getTemplateInstructionType(payment: IPayment): any;
|
|
124
127
|
showNotificationPreview(): void;
|
|
125
128
|
hideNotificationPreview(): void;
|
|
126
129
|
}
|
|
@@ -14,4 +14,5 @@ export declare class NotificationService {
|
|
|
14
14
|
getRefundNotification(reference: string): Observable<IRefundsNotifications>;
|
|
15
15
|
getAddressByPostcode(postcode: string): Observable<any>;
|
|
16
16
|
getNotificationPreview(body: NotificationPreviewRequest): Observable<any>;
|
|
17
|
+
getNotificationInstructionType(paymentChannel: string, paymentMethod: string): any;
|
|
17
18
|
}
|
|
@@ -29,7 +29,7 @@ export declare class PaymentViewService {
|
|
|
29
29
|
private ordersList;
|
|
30
30
|
private meta;
|
|
31
31
|
constructor(http: HttpClient, https: WebComponentHttpClient, logger: LoggerService, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
|
|
32
|
-
getPaymentDetails(paymentReference: string, paymentMethod
|
|
32
|
+
getPaymentDetails(paymentReference: string, paymentMethod?: string): Observable<IPayment>;
|
|
33
33
|
getPaymentGroupDetails(paymentGroupReference: string): Observable<IPaymentGroup>;
|
|
34
34
|
getApportionPaymentDetails(paymentReference: string): Observable<IPaymentGroup>;
|
|
35
35
|
getPBAaccountDetails(): Observable<any>;
|