@hmcts/ccpay-web-component 5.0.7-beta20 → 5.0.7-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 +2442 -670
- 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 +34 -31
- package/esm2015/lib/components/add-remission/add-remission.component.js +709 -120
- package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +16 -16
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +31 -17
- package/esm2015/lib/components/contact-details/contact-details.component.js +447 -0
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +18 -13
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +102 -0
- package/esm2015/lib/components/payment-view/payment-view.component.js +202 -106
- package/esm2015/lib/components/process-refund/process-refund.component.js +49 -28
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +225 -30
- package/esm2015/lib/components/reports/reports.component.js +105 -20
- package/esm2015/lib/components/service-request/service-request.component.js +251 -146
- package/esm2015/lib/components/status-history/status-history.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +24 -9
- package/esm2015/lib/interfaces/IFee.js +13 -1
- package/esm2015/lib/interfaces/INotificationPreview.js +25 -0
- package/esm2015/lib/interfaces/IPayment.js +7 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/IRefundFee.js +21 -0
- package/esm2015/lib/interfaces/IRefundList.js +7 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/IRemission.js +7 -1
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
- package/esm2015/lib/interfaces/NotificationPreviewRequest.js +71 -0
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +20 -2
- package/esm2015/lib/payment-lib.component.js +12 -3
- package/esm2015/lib/payment-lib.module.js +6 -2
- package/esm2015/lib/payment-lib.service.js +16 -1
- package/esm2015/lib/services/notification/notification.service.js +92 -0
- package/esm2015/lib/services/refunds/refunds.service.js +10 -1
- package/esm2015/lib/services/shared/error-handler.service.js +7 -3
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm2015/lib/services/xl-file/xl-file.service.js +28 -1
- package/esm5/hmcts-ccpay-web-component.js +34 -31
- package/esm5/lib/components/add-remission/add-remission.component.js +837 -125
- package/esm5/lib/components/allocate-payments/allocate-payments.component.js +16 -16
- package/esm5/lib/components/case-transactions/case-transactions.component.js +31 -17
- package/esm5/lib/components/contact-details/contact-details.component.js +472 -0
- package/esm5/lib/components/fee-summary/fee-summary.component.js +18 -13
- package/esm5/lib/components/notification-preview/notification-preview.component.js +104 -0
- package/esm5/lib/components/payment-view/payment-view.component.js +239 -124
- package/esm5/lib/components/process-refund/process-refund.component.js +52 -78
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +267 -28
- package/esm5/lib/components/reports/reports.component.js +111 -20
- package/esm5/lib/components/service-request/service-request.component.js +298 -176
- package/esm5/lib/components/status-history/status-history.component.js +2 -2
- package/esm5/lib/components/table/table.component.js +27 -9
- package/esm5/lib/interfaces/IFee.js +13 -1
- package/esm5/lib/interfaces/INotificationPreview.js +25 -0
- package/esm5/lib/interfaces/IPayment.js +7 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/IRefundFee.js +21 -0
- package/esm5/lib/interfaces/IRefundList.js +7 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/IRemission.js +7 -1
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
- package/esm5/lib/interfaces/NotificationPreviewRequest.js +65 -0
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +16 -2
- package/esm5/lib/payment-lib.component.js +9 -2
- package/esm5/lib/payment-lib.module.js +6 -2
- package/esm5/lib/payment-lib.service.js +23 -1
- package/esm5/lib/services/notification/notification.service.js +100 -0
- package/esm5/lib/services/refunds/refunds.service.js +16 -1
- package/esm5/lib/services/shared/error-handler.service.js +11 -3
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/lib/services/xl-file/xl-file.service.js +33 -1
- package/fesm2015/hmcts-ccpay-web-component.js +2156 -546
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +2431 -620
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +33 -30
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +48 -3
- package/lib/components/case-transactions/case-transactions.component.d.ts +2 -1
- package/lib/components/contact-details/contact-details.component.d.ts +49 -0
- package/lib/components/notification-preview/notification-preview.component.d.ts +27 -0
- package/lib/components/payment-view/payment-view.component.d.ts +26 -6
- package/lib/components/process-refund/process-refund.component.d.ts +6 -1
- package/lib/components/refund-status/refund-status.component.d.ts +37 -6
- package/lib/components/reports/reports.component.d.ts +6 -0
- package/lib/components/service-request/service-request.component.d.ts +31 -9
- package/lib/components/table/table.component.d.ts +1 -0
- package/lib/interfaces/IFee.d.ts +6 -0
- package/lib/interfaces/INotificationPreview.d.ts +27 -0
- package/lib/interfaces/IPayment.d.ts +3 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/IRefundFee.d.ts +7 -0
- package/lib/interfaces/IRefundList.d.ts +4 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/IRemission.d.ts +3 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
- package/lib/interfaces/NotificationPreviewRequest.d.ts +24 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +7 -1
- package/lib/payment-lib.component.d.ts +2 -0
- package/lib/payment-lib.service.d.ts +3 -0
- package/lib/services/notification/notification.service.d.ts +17 -0
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/lib/services/shared/error-handler.service.d.ts +1 -1
- package/lib/services/xl-file/xl-file.service.d.ts +1 -0
- package/package.json +5 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { IFee } from "./IFee";
|
|
2
|
+
import { IRefundContactDetails } from "./IRefundContactDetails";
|
|
1
3
|
export declare class IResubmitRefundRequest {
|
|
2
4
|
refund_reason: string;
|
|
3
5
|
amount: number;
|
|
4
|
-
|
|
6
|
+
contact_details: IRefundContactDetails;
|
|
7
|
+
refund_fees: IFee[];
|
|
8
|
+
constructor(refund_reason: string, amount: number, contact_details: any, refund_fees: any[]);
|
|
5
9
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IPayment } from './IPayment';
|
|
2
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
3
|
+
export declare class NotificationPreviewRequest {
|
|
4
|
+
notification_type?: string;
|
|
5
|
+
payment_channel?: string;
|
|
6
|
+
payment_method?: string;
|
|
7
|
+
payment_reference?: string;
|
|
8
|
+
personalisation?: {
|
|
9
|
+
ccd_case_number?: string;
|
|
10
|
+
refund_amount?: number;
|
|
11
|
+
refund_reason?: string;
|
|
12
|
+
refund_reference?: string;
|
|
13
|
+
};
|
|
14
|
+
recipient_email_address?: string;
|
|
15
|
+
recipient_postal_address?: {
|
|
16
|
+
address_line?: string;
|
|
17
|
+
city?: string;
|
|
18
|
+
county?: string;
|
|
19
|
+
country?: string;
|
|
20
|
+
postal_code?: String;
|
|
21
|
+
};
|
|
22
|
+
service_name?: string;
|
|
23
|
+
constructor(payment: IPayment, contactDetails: IRefundContactDetails, refund_reason: string, refund_amount: number, refund_reference: string, payment_reference: string);
|
|
24
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
1
2
|
export declare class PostIssueRefundRetroRemission {
|
|
2
3
|
remissionReference: string;
|
|
3
|
-
|
|
4
|
+
contact_details: IRefundContactDetails;
|
|
5
|
+
constructor(remissionReference: string, contactDeatils: any);
|
|
4
6
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { IRefundContactDetails } from "./IRefundContactDetails";
|
|
1
2
|
export declare class PostRefundRetroRemission {
|
|
3
|
+
ccd_case_number: string;
|
|
2
4
|
payment_reference: string;
|
|
3
5
|
refund_reason: string;
|
|
4
|
-
|
|
6
|
+
total_refund_amount: any;
|
|
7
|
+
fees: any[];
|
|
8
|
+
is_over_payment: boolean;
|
|
9
|
+
contact_details: IRefundContactDetails;
|
|
10
|
+
constructor(contact_details: any, fees: any[], payment_reference: string, refund_reason: string, total_refund_amount: any, is_over_payment: string);
|
|
5
11
|
}
|
|
@@ -10,6 +10,7 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
10
10
|
API_ROOT: string;
|
|
11
11
|
BULKSCAN_API_ROOT: string;
|
|
12
12
|
REFUNDS_API_ROOT: string;
|
|
13
|
+
NOTIFICATION_API_ROOT: string;
|
|
13
14
|
CARDPAYMENTRETURNURL: string;
|
|
14
15
|
CCD_CASE_NUMBER: string;
|
|
15
16
|
EXC_REFERENCE: string;
|
|
@@ -38,6 +39,7 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
38
39
|
paymentGroupReference: string;
|
|
39
40
|
paymentReference: string;
|
|
40
41
|
refundReference: string;
|
|
42
|
+
isFromPayBubble: boolean;
|
|
41
43
|
refundlistsource: any;
|
|
42
44
|
viewName: string;
|
|
43
45
|
isTurnOff: boolean;
|
|
@@ -2,6 +2,7 @@ export declare class PaymentLibService {
|
|
|
2
2
|
API_ROOT: string;
|
|
3
3
|
BULKSCAN_API_ROOT: string;
|
|
4
4
|
REFUNDS_API_ROOT: string;
|
|
5
|
+
NOTIFICATION_API_ROOT: string;
|
|
5
6
|
CARDPAYMENTRETURNURL: string;
|
|
6
7
|
constructor();
|
|
7
8
|
setApiRootUrl(apiRoot: string): void;
|
|
@@ -10,6 +11,8 @@ export declare class PaymentLibService {
|
|
|
10
11
|
getBulkScanApiRootUrl(): string;
|
|
11
12
|
setRefundndsApiRootUrl(refundsapiRoot: string): void;
|
|
12
13
|
getRefundsApiRootUrl(): string;
|
|
14
|
+
setNoticationApiRootUrl(notificationapiRoot: string): void;
|
|
15
|
+
getNoticationApiRootUrl(): string;
|
|
13
16
|
setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
|
|
14
17
|
getCardPaymentReturnUrl(): string;
|
|
15
18
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ErrorHandlerService } from '../shared/error-handler.service';
|
|
3
|
+
import { WebComponentHttpClient } from '../shared/httpclient/webcomponent.http.client';
|
|
4
|
+
import { PaymentLibService } from '../../payment-lib.service';
|
|
5
|
+
import { Observable } from 'rxjs/Observable';
|
|
6
|
+
import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
|
|
7
|
+
import { NotificationPreviewRequest } from '../../interfaces/NotificationPreviewRequest';
|
|
8
|
+
export declare class NotificationService {
|
|
9
|
+
private http;
|
|
10
|
+
private https;
|
|
11
|
+
private errorHandlerService;
|
|
12
|
+
private paymentLibService;
|
|
13
|
+
constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
|
|
14
|
+
getRefundNotification(reference: string): Observable<IRefundsNotifications>;
|
|
15
|
+
getAddressByPostcode(postcode: string): Observable<any>;
|
|
16
|
+
getNotificationPreview(body: NotificationPreviewRequest): Observable<any>;
|
|
17
|
+
}
|
|
@@ -9,6 +9,7 @@ import { IPatchRefundAction } from '../../interfaces/IPatchRefundAction';
|
|
|
9
9
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
10
10
|
import { IssueRefundRequest } from '../../interfaces/IssueRefundRequest';
|
|
11
11
|
import { IResubmitRefundRequest } from '../../interfaces/IResubmitRefundRequest';
|
|
12
|
+
import { IPutNotificationRequest } from '../../interfaces/IPutNotificationRequest';
|
|
12
13
|
export declare class RefundsService {
|
|
13
14
|
private http;
|
|
14
15
|
private https;
|
|
@@ -25,6 +26,7 @@ export declare class RefundsService {
|
|
|
25
26
|
getRefundStatusList(ccdCaseNumber: string): Observable<IRefundList[]>;
|
|
26
27
|
getUserDetails(): Observable<any>;
|
|
27
28
|
postIssueRefund(body: IssueRefundRequest): Observable<any>;
|
|
29
|
+
putResendOrEdit(body: IPutNotificationRequest, refundRef: string, notificationType: string): Observable<any>;
|
|
28
30
|
patchResubmitRefund(body: IResubmitRefundRequest, refund_reference: string): Observable<any>;
|
|
29
31
|
addHeaders(options: any): any;
|
|
30
32
|
}
|
|
@@ -3,7 +3,7 @@ import { HttpErrorResponse } from '@angular/common/http';
|
|
|
3
3
|
export declare class ErrorHandlerService {
|
|
4
4
|
constructor();
|
|
5
5
|
handleError(err: HttpErrorResponse): Observable<any>;
|
|
6
|
-
getServerErrorMessage(isErrorExist: any): {
|
|
6
|
+
getServerErrorMessage(isErrorExist: any, isDataNotExist?: boolean, error?: string): {
|
|
7
7
|
title: string;
|
|
8
8
|
body: string;
|
|
9
9
|
showError: any;
|
|
@@ -5,6 +5,7 @@ export declare class XlFileService {
|
|
|
5
5
|
private setDataLossReportHeaders;
|
|
6
6
|
private setUnprocessedReportHeaders;
|
|
7
7
|
private setProcessedUnallocatedReportHeaders;
|
|
8
|
+
private setPaymentFailureReportHeaders;
|
|
8
9
|
private setShortFallReportHeaders;
|
|
9
10
|
private saveAsExcelFile;
|
|
10
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmcts/ccpay-web-component",
|
|
3
|
-
"version": "5.0.7-
|
|
3
|
+
"version": "5.0.7-beta23",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"name": "Santosh Govindu",
|
|
18
18
|
"email": "santosh.govindu@hmcts.net"
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Kumar dhanasamy",
|
|
22
|
+
"email": "kumar.dhanasamy@hmcts.net"
|
|
23
|
+
},
|
|
20
24
|
{
|
|
21
25
|
"name": "Tarun Palisetty",
|
|
22
26
|
"email": "tarun.palisetty@hmcts.net"
|