@hmcts/ccpay-web-component 5.0.1 → 5.0.2-beta100

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.
Files changed (111) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +8801 -6260
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +42 -38
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +810 -198
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +137 -86
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +447 -0
  9. package/esm2015/lib/components/fee-summary/fee-summary.component.js +17 -14
  10. package/esm2015/lib/components/payment-view/payment-view.component.js +290 -119
  11. package/esm2015/lib/components/pba-payment/pba-payment.component.js +248 -0
  12. package/esm2015/lib/components/process-refund/process-refund.component.js +94 -9
  13. package/esm2015/lib/components/refund-list/refund-list.component.js +6 -10
  14. package/esm2015/lib/components/refund-status/refund-status.component.js +231 -67
  15. package/esm2015/lib/components/service-request/service-request.component.js +533 -0
  16. package/esm2015/lib/components/status-history/status-history.component.js +2 -2
  17. package/esm2015/lib/components/table/table.component.js +48 -16
  18. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  19. package/esm2015/lib/interfaces/IFee.js +15 -1
  20. package/esm2015/lib/interfaces/IPayment.js +9 -1
  21. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  22. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  23. package/esm2015/lib/interfaces/IRefundFee.js +21 -0
  24. package/esm2015/lib/interfaces/IRefundList.js +7 -1
  25. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  26. package/esm2015/lib/interfaces/IRemission.js +7 -1
  27. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
  28. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  29. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +32 -0
  30. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  31. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +16 -2
  32. package/esm2015/lib/payment-lib.component.js +62 -6
  33. package/esm2015/lib/payment-lib.module.js +8 -2
  34. package/esm2015/lib/payment-lib.service.js +31 -1
  35. package/esm2015/lib/services/notification/notification.service.js +85 -0
  36. package/esm2015/lib/services/orderslist.service.js +193 -1
  37. package/esm2015/lib/services/payment-view/payment-view.service.js +36 -2
  38. package/esm2015/lib/services/refunds/refunds.service.js +25 -3
  39. package/esm2015/lib/services/shared/error-handler.service.js +49 -22
  40. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  41. package/esm5/hmcts-ccpay-web-component.js +42 -38
  42. package/esm5/lib/components/add-remission/add-remission.component.js +936 -204
  43. package/esm5/lib/components/case-transactions/case-transactions.component.js +146 -90
  44. package/esm5/lib/components/contact-details/contact-details.component.js +472 -0
  45. package/esm5/lib/components/fee-summary/fee-summary.component.js +17 -14
  46. package/esm5/lib/components/payment-view/payment-view.component.js +328 -137
  47. package/esm5/lib/components/pba-payment/pba-payment.component.js +269 -0
  48. package/esm5/lib/components/process-refund/process-refund.component.js +94 -9
  49. package/esm5/lib/components/refund-list/refund-list.component.js +6 -10
  50. package/esm5/lib/components/refund-status/refund-status.component.js +270 -66
  51. package/esm5/lib/components/service-request/service-request.component.js +589 -0
  52. package/esm5/lib/components/status-history/status-history.component.js +2 -2
  53. package/esm5/lib/components/table/table.component.js +50 -17
  54. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  55. package/esm5/lib/interfaces/IFee.js +15 -1
  56. package/esm5/lib/interfaces/IPayment.js +9 -1
  57. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  58. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  59. package/esm5/lib/interfaces/IRefundFee.js +21 -0
  60. package/esm5/lib/interfaces/IRefundList.js +7 -1
  61. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  62. package/esm5/lib/interfaces/IRemission.js +7 -1
  63. package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
  64. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  65. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  66. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  67. package/esm5/lib/interfaces/PostRefundRetroRemission.js +13 -2
  68. package/esm5/lib/payment-lib.component.js +58 -5
  69. package/esm5/lib/payment-lib.module.js +8 -2
  70. package/esm5/lib/payment-lib.service.js +45 -1
  71. package/esm5/lib/services/notification/notification.service.js +89 -0
  72. package/esm5/lib/services/orderslist.service.js +256 -1
  73. package/esm5/lib/services/payment-view/payment-view.service.js +49 -2
  74. package/esm5/lib/services/refunds/refunds.service.js +31 -3
  75. package/esm5/lib/services/shared/error-handler.service.js +49 -22
  76. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  77. package/fesm2015/hmcts-ccpay-web-component.js +2966 -730
  78. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  79. package/fesm5/hmcts-ccpay-web-component.js +8935 -6333
  80. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  81. package/hmcts-ccpay-web-component.d.ts +41 -37
  82. package/hmcts-ccpay-web-component.metadata.json +1 -1
  83. package/lib/components/add-remission/add-remission.component.d.ts +59 -4
  84. package/lib/components/case-transactions/case-transactions.component.d.ts +10 -4
  85. package/lib/components/contact-details/contact-details.component.d.ts +49 -0
  86. package/lib/components/payment-view/payment-view.component.d.ts +38 -9
  87. package/lib/components/pba-payment/pba-payment.component.d.ts +33 -0
  88. package/lib/components/process-refund/process-refund.component.d.ts +11 -1
  89. package/lib/components/refund-status/refund-status.component.d.ts +35 -6
  90. package/lib/components/service-request/service-request.component.d.ts +103 -0
  91. package/lib/components/table/table.component.d.ts +6 -2
  92. package/lib/interfaces/IFee.d.ts +7 -0
  93. package/lib/interfaces/IPayment.d.ts +4 -0
  94. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  95. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  96. package/lib/interfaces/IRefundFee.d.ts +7 -0
  97. package/lib/interfaces/IRefundList.d.ts +4 -0
  98. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  99. package/lib/interfaces/IRemission.d.ts +3 -0
  100. package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
  101. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  102. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +8 -0
  103. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  104. package/lib/interfaces/PostRefundRetroRemission.d.ts +6 -1
  105. package/lib/payment-lib.component.d.ts +20 -1
  106. package/lib/payment-lib.service.d.ts +6 -0
  107. package/lib/services/notification/notification.service.d.ts +15 -0
  108. package/lib/services/orderslist.service.d.ts +34 -0
  109. package/lib/services/payment-view/payment-view.service.d.ts +5 -0
  110. package/lib/services/refunds/refunds.service.d.ts +2 -0
  111. package/package.json +5 -1
@@ -0,0 +1,6 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
2
+ export declare class IPutNotificationRequest {
3
+ recipient_email_address?: string;
4
+ recipient_postal_address?: IRefundContactDetails;
5
+ constructor(contactDetails: any, notificationType: string);
6
+ }
@@ -0,0 +1,9 @@
1
+ export interface IRefundContactDetails {
2
+ address_line?: string;
3
+ city?: string;
4
+ country?: string;
5
+ county?: string;
6
+ email?: string;
7
+ notification_type?: string;
8
+ postal_code?: string;
9
+ }
@@ -0,0 +1,7 @@
1
+ export interface IRefundFee {
2
+ fee_id: number;
3
+ code: string;
4
+ version: string;
5
+ volume: number;
6
+ refund_amount: number;
7
+ }
@@ -1,3 +1,4 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
1
2
  export interface IRefundList {
2
3
  amount: number;
3
4
  ccd_case_number: string;
@@ -10,5 +11,8 @@ export interface IRefundList {
10
11
  description: string;
11
12
  name: string;
12
13
  };
14
+ contact_details: IRefundContactDetails;
13
15
  user_full_name: string;
16
+ service_type: string;
17
+ code: string;
14
18
  }
@@ -0,0 +1,16 @@
1
+ export interface IRefundsNotifications {
2
+ contact_details: {
3
+ address_line: string;
4
+ city: string;
5
+ country: string;
6
+ county: string;
7
+ date_created: string;
8
+ date_updated: string;
9
+ email: string;
10
+ postal_code: string;
11
+ };
12
+ date_created: string;
13
+ date_updated: string;
14
+ notification_type: string;
15
+ reference: string;
16
+ }
@@ -6,4 +6,7 @@ export interface IRemission {
6
6
  ccd_case_number: string;
7
7
  fee_code: string;
8
8
  date_created: string;
9
+ fee_id: number;
10
+ issue_refund_add_refund_add_remission: boolean;
11
+ add_refund: boolean;
9
12
  }
@@ -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
- constructor(refund_reason: string, amount: number);
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,6 @@
1
+ export declare class IserviceRequestCardPayment {
2
+ amount: string;
3
+ currency: string;
4
+ language: string;
5
+ constructor(amount: string);
6
+ }
@@ -0,0 +1,8 @@
1
+ export declare class IserviceRequestPbaPayment {
2
+ account_number: string;
3
+ amount: string;
4
+ currency: string;
5
+ customer_reference: string;
6
+ organisation_name: string;
7
+ constructor(account_number: string, amount: string, customer_reference: string, orgName: string);
8
+ }
@@ -1,4 +1,6 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
1
2
  export declare class PostIssueRefundRetroRemission {
2
3
  remissionReference: string;
3
- constructor(remissionReference: string);
4
+ contact_details: IRefundContactDetails;
5
+ constructor(remissionReference: string, contactDeatils: any);
4
6
  }
@@ -1,5 +1,10 @@
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
- constructor(payment_reference: string, refund_reason: string);
6
+ total_refund_amount: any;
7
+ fees: any[];
8
+ contact_details: IRefundContactDetails;
9
+ constructor(contact_details: any, fees: any[], payment_reference: string, refund_reason: string, total_refund_amount: any);
5
10
  }
@@ -1,12 +1,17 @@
1
1
  import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { PaymentLibService } from './payment-lib.service';
3
3
  import { IBSPayments } from './interfaces/IBSPayments';
4
+ import { OrderslistService } from './services/orderslist.service';
5
+ import { IPayment } from './interfaces/IPayment';
4
6
  export declare class PaymentLibComponent implements OnInit {
5
7
  private paymentLibService;
6
8
  private cd;
9
+ private OrderslistService;
7
10
  API_ROOT: string;
8
11
  BULKSCAN_API_ROOT: string;
9
12
  REFUNDS_API_ROOT: string;
13
+ NOTIFICATION_API_ROOT: string;
14
+ CARDPAYMENTRETURNURL: string;
10
15
  CCD_CASE_NUMBER: string;
11
16
  EXC_REFERENCE: string;
12
17
  PAYMENT_METHOD: string;
@@ -48,7 +53,21 @@ export declare class PaymentLibComponent implements OnInit {
48
53
  isFromRefundStatusPage: boolean;
49
54
  iscancelClicked: boolean;
50
55
  isFromPaymentDetailPage: boolean;
51
- constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef);
56
+ pbaPayOrderRef: IPayment;
57
+ isTakePayment: boolean;
58
+ orderDetail: any[];
59
+ orderRef: string;
60
+ orderStatus: string;
61
+ orderParty: string;
62
+ orderCreated: Date;
63
+ orderCCDEvent: string;
64
+ serviceRequestValue: string;
65
+ orderAddBtnEnable: boolean;
66
+ orderFeesTotal: number;
67
+ orderRemissionTotal: number;
68
+ orderTotalPayments: number;
69
+ orderPendingPayments: number;
70
+ constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
52
71
  ngAfterContentChecked(): void;
53
72
  ngOnInit(): void;
54
73
  }
@@ -2,6 +2,8 @@ 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;
6
+ CARDPAYMENTRETURNURL: string;
5
7
  constructor();
6
8
  setApiRootUrl(apiRoot: string): void;
7
9
  getApiRootUrl(): string;
@@ -9,4 +11,8 @@ export declare class PaymentLibService {
9
11
  getBulkScanApiRootUrl(): string;
10
12
  setRefundndsApiRootUrl(refundsapiRoot: string): void;
11
13
  getRefundsApiRootUrl(): string;
14
+ setNoticationApiRootUrl(notificationapiRoot: string): void;
15
+ getNoticationApiRootUrl(): string;
16
+ setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
17
+ getCardPaymentReturnUrl(): string;
12
18
  }
@@ -0,0 +1,15 @@
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
+ export declare class NotificationService {
8
+ private http;
9
+ private https;
10
+ private errorHandlerService;
11
+ private paymentLibService;
12
+ constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
13
+ getRefundNotification(reference: string): Observable<IRefundsNotifications>;
14
+ getAddressByPostcode(postcode: string): Observable<any>;
15
+ }
@@ -17,6 +17,22 @@ export declare class OrderslistService {
17
17
  getOrderRefId: Observable<string>;
18
18
  private navigationPage;
19
19
  getnavigationPage: Observable<string>;
20
+ private orderRef;
21
+ getorderRef: Observable<string>;
22
+ private orderCCDEvent;
23
+ getorderCCDEvent: Observable<string>;
24
+ private orderCreated;
25
+ getorderCreated: Observable<Date>;
26
+ private orderParty;
27
+ getorderParty: Observable<string>;
28
+ private orderRemissionTotal;
29
+ getorderRemissionTotal: Observable<number>;
30
+ private orderFeesTotal;
31
+ getorderFeesTotal: Observable<number>;
32
+ private orderTotalPayments;
33
+ getorderTotalPayments: Observable<number>;
34
+ private rolesList;
35
+ private orderDetail;
20
36
  private paymentPageView;
21
37
  constructor();
22
38
  setOrdersList(orderLevelFees: IOrderReferenceFee[]): void;
@@ -37,4 +53,22 @@ export declare class OrderslistService {
37
53
  getnavigationPageValue(): BehaviorSubject<string>;
38
54
  setpaymentPageView(paymentpageList: IPaymentView): void;
39
55
  getpaymentPageView(): BehaviorSubject<IPaymentView>;
56
+ setUserRolesList(rolesList: any[]): void;
57
+ getUserRolesList(): BehaviorSubject<any[]>;
58
+ setorderDetail(orderDetail: any[]): void;
59
+ getorderDetail(): BehaviorSubject<any[]>;
60
+ setOrderRef(orderRef: string): void;
61
+ getorderRefs(): BehaviorSubject<string>;
62
+ setorderCCDEvent(orderCCDEvent: string): void;
63
+ getorderCCDEvents(): BehaviorSubject<string>;
64
+ setorderCreated(orderCreated: Date): void;
65
+ getorderCreateds(): BehaviorSubject<Date>;
66
+ setorderParty(orderParty: string): void;
67
+ getorderPartys(): BehaviorSubject<string>;
68
+ setorderRemissionTotal(orderRemissionTotal: number): void;
69
+ getorderRemissionTotals(): BehaviorSubject<number>;
70
+ setorderFeesTotal(orderFeesTotal: number): void;
71
+ getorderFeesTotals(): BehaviorSubject<number>;
72
+ setorderTotalPayments(orderTotalPayments: number): void;
73
+ getoorderTotalPaymentss(): BehaviorSubject<number>;
40
74
  }
@@ -15,6 +15,8 @@ import { AllocatePaymentRequest } from '../../interfaces/AllocatePaymentRequest'
15
15
  import { IAllocationPaymentsRequest } from '../../interfaces/IAllocationPaymentsRequest';
16
16
  import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
17
17
  import { BehaviorSubject } from 'rxjs';
18
+ import { IserviceRequestPbaPayment } from '../../interfaces/IserviceRequestPbaPayment';
19
+ import { IserviceRequestCardPayment } from '../../interfaces/IserviceRequestCardPayment';
18
20
  import { AddRetroRemissionRequest } from '../../interfaces/AddRetroRemissionRequest';
19
21
  import { PostRefundRetroRemission } from '../../interfaces/PostRefundRetroRemission';
20
22
  import { PostIssueRefundRetroRemission } from '../../interfaces/PostIssueRefundRetroRemission';
@@ -30,6 +32,9 @@ export declare class PaymentViewService {
30
32
  getPaymentDetails(paymentReference: string, paymentMethod: string): Observable<IPayment>;
31
33
  getPaymentGroupDetails(paymentGroupReference: string): Observable<IPaymentGroup>;
32
34
  getApportionPaymentDetails(paymentReference: string): Observable<IPaymentGroup>;
35
+ getPBAaccountDetails(): Observable<any>;
36
+ postWays2PayCardPayment(serviceRef: string, body: IserviceRequestCardPayment): Observable<any>;
37
+ postPBAaccountPayment(serviceRef: string, body: IserviceRequestPbaPayment): Observable<any>;
33
38
  postBSPayments(body: AllocatePaymentRequest): Observable<any>;
34
39
  postBSUnidentifiedPayments(body: UnidentifiedPaymentsRequest): Observable<any>;
35
40
  postBSUnsolicitedPayments(body: UnsolicitedPaymentsRequest): Observable<any>;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.1",
3
+ "version": "5.0.2-beta100",
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"