@hmcts/ccpay-web-component 5.0.7-beta39 → 5.0.7-beta41
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 +209 -213
- 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 +32 -25
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +3 -3
- package/esm2015/lib/components/payment-view/payment-view.component.js +16 -26
- package/esm2015/lib/components/process-refund/process-refund.component.js +32 -26
- package/esm2015/lib/components/refund-status/refund-status.component.js +22 -25
- package/esm2015/lib/components/service-request/service-request.component.js +16 -26
- 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 +33 -26
- package/esm5/lib/components/notification-preview/notification-preview.component.js +3 -3
- package/esm5/lib/components/payment-view/payment-view.component.js +16 -28
- package/esm5/lib/components/process-refund/process-refund.component.js +33 -28
- package/esm5/lib/components/refund-status/refund-status.component.js +24 -27
- package/esm5/lib/components/service-request/service-request.component.js +16 -28
- 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 +194 -192
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +211 -209
- 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 +4 -2
- package/lib/components/payment-view/payment-view.component.d.ts +4 -2
- package/lib/components/process-refund/process-refund.component.d.ts +4 -2
- package/lib/components/refund-status/refund-status.component.d.ts +1 -1
- package/lib/components/service-request/service-request.component.d.ts +4 -2
- 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;
|
|
@@ -143,7 +145,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
143
145
|
site_id: string;
|
|
144
146
|
status: string;
|
|
145
147
|
};
|
|
146
|
-
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);
|
|
147
149
|
ngOnInit(): void;
|
|
148
150
|
goToPaymentViewComponent(): void;
|
|
149
151
|
refundFeesList(): void;
|
|
@@ -185,5 +187,5 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
185
187
|
getFormattedCurrency(currency: number): string | number;
|
|
186
188
|
showNotificationPreview(): void;
|
|
187
189
|
hideNotificationPreview(): void;
|
|
188
|
-
getTemplateInstructionType(
|
|
190
|
+
getTemplateInstructionType(paymentReference: string, payment?: IPayment): any;
|
|
189
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,7 +94,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
92
94
|
resetOrderData(): void;
|
|
93
95
|
goToPaymentFailuePage(payment: any): void;
|
|
94
96
|
goBackToPaymentView(event: any): void;
|
|
95
|
-
getTemplateInstructionType(payment
|
|
97
|
+
getTemplateInstructionType(payment: IPayment): any;
|
|
96
98
|
showNotificationPreview(): void;
|
|
97
99
|
hideNotificationPreview(): void;
|
|
98
100
|
}
|
|
@@ -6,6 +6,7 @@ import { IRefundList } from '../../interfaces/IRefundList';
|
|
|
6
6
|
import { IPayment } from '../../interfaces/IPayment';
|
|
7
7
|
import { IRefundRejectReason } from '../../interfaces/IRefundRejectReason';
|
|
8
8
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
9
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
9
10
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
10
11
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
11
12
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
@@ -15,6 +16,7 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
15
16
|
private paymentViewService;
|
|
16
17
|
private formBuilder;
|
|
17
18
|
private OrderslistService;
|
|
19
|
+
private notificationService;
|
|
18
20
|
private paymentLibComponent;
|
|
19
21
|
private router;
|
|
20
22
|
private activeRoute;
|
|
@@ -52,7 +54,7 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
52
54
|
paymentObj: IPayment;
|
|
53
55
|
notificationPreview: boolean;
|
|
54
56
|
notificationPreviewObj: INotificationPreview;
|
|
55
|
-
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);
|
|
56
58
|
ngOnInit(): void;
|
|
57
59
|
checkRefundActions(code: string): void;
|
|
58
60
|
getNotificationPreviewObj(notificationPreviewObj: INotificationPreview): void;
|
|
@@ -68,7 +70,7 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
68
70
|
loadCaseTransactionPage(): void;
|
|
69
71
|
resetForm(vals: any, field: any): void;
|
|
70
72
|
goToCaseReview(): void;
|
|
71
|
-
getTemplateInstructionType(
|
|
73
|
+
getTemplateInstructionType(paymentReference: string): string;
|
|
72
74
|
showNotificationPreview(): void;
|
|
73
75
|
hideNotificationPreview(): void;
|
|
74
76
|
}
|
|
@@ -98,7 +98,7 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
98
98
|
putResend(notification: IRefundsNotifications): void;
|
|
99
99
|
gotoCasetransationPageCancelBtnClicked(Event: Event): void;
|
|
100
100
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
101
|
-
getTemplateInstructionType(
|
|
101
|
+
getTemplateInstructionType(paymentReference: string): string;
|
|
102
102
|
showNotificationPreview(): void;
|
|
103
103
|
hideNotificationPreview(): void;
|
|
104
104
|
showNotificationSentView(index: number): void;
|
|
@@ -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,7 +123,7 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
121
123
|
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
122
124
|
processRefund(): void;
|
|
123
125
|
getOverPaymentValue(): number;
|
|
124
|
-
getTemplateInstructionType(payment
|
|
126
|
+
getTemplateInstructionType(payment: IPayment): any;
|
|
125
127
|
showNotificationPreview(): void;
|
|
126
128
|
hideNotificationPreview(): void;
|
|
127
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>;
|