@hmcts/ccpay-web-component 5.0.2-beta27 → 5.0.2-beta28

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 (59) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +537 -345
  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/lib/components/add-remission/add-remission.component.js +108 -96
  6. package/esm2015/lib/components/case-transactions/case-transactions.component.js +14 -15
  7. package/esm2015/lib/components/contact-details/contact-details.component.js +13 -43
  8. package/esm2015/lib/components/payment-view/payment-view.component.js +196 -42
  9. package/esm2015/lib/components/process-refund/process-refund.component.js +6 -6
  10. package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
  11. package/esm2015/lib/components/refund-status/refund-status.component.js +11 -68
  12. package/esm2015/lib/components/service-request/service-request.component.js +138 -55
  13. package/esm2015/lib/components/table/table.component.js +3 -3
  14. package/esm2015/lib/interfaces/IFee.js +2 -8
  15. package/esm2015/lib/interfaces/IPayment.js +1 -5
  16. package/esm2015/lib/interfaces/IRefundList.js +1 -3
  17. package/esm2015/lib/interfaces/IRemission.js +2 -4
  18. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +2 -10
  19. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +1 -1
  20. package/esm2015/lib/payment-lib.service.js +1 -1
  21. package/esm2015/lib/services/refunds/refunds.service.js +2 -2
  22. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
  23. package/esm5/lib/components/add-remission/add-remission.component.js +108 -96
  24. package/esm5/lib/components/case-transactions/case-transactions.component.js +14 -15
  25. package/esm5/lib/components/contact-details/contact-details.component.js +13 -43
  26. package/esm5/lib/components/payment-view/payment-view.component.js +242 -49
  27. package/esm5/lib/components/process-refund/process-refund.component.js +6 -6
  28. package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
  29. package/esm5/lib/components/refund-status/refund-status.component.js +11 -76
  30. package/esm5/lib/components/service-request/service-request.component.js +170 -67
  31. package/esm5/lib/components/table/table.component.js +3 -3
  32. package/esm5/lib/interfaces/IFee.js +2 -8
  33. package/esm5/lib/interfaces/IPayment.js +1 -5
  34. package/esm5/lib/interfaces/IRefundList.js +1 -3
  35. package/esm5/lib/interfaces/IRemission.js +2 -4
  36. package/esm5/lib/interfaces/IResubmitRefundRequest.js +2 -8
  37. package/esm5/lib/interfaces/PostRefundRetroRemission.js +1 -1
  38. package/esm5/lib/payment-lib.service.js +1 -1
  39. package/esm5/lib/services/refunds/refunds.service.js +2 -2
  40. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
  41. package/fesm2015/hmcts-ccpay-web-component.js +470 -323
  42. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  43. package/fesm5/hmcts-ccpay-web-component.js +542 -342
  44. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  45. package/hmcts-ccpay-web-component.metadata.json +1 -1
  46. package/lib/components/add-remission/add-remission.component.d.ts +1 -4
  47. package/lib/components/case-transactions/case-transactions.component.d.ts +1 -0
  48. package/lib/components/contact-details/contact-details.component.d.ts +0 -2
  49. package/lib/components/payment-view/payment-view.component.d.ts +23 -5
  50. package/lib/components/process-refund/process-refund.component.d.ts +1 -1
  51. package/lib/components/refund-status/refund-status.component.d.ts +3 -13
  52. package/lib/components/service-request/service-request.component.d.ts +6 -3
  53. package/lib/interfaces/IFee.d.ts +1 -4
  54. package/lib/interfaces/IPayment.d.ts +0 -2
  55. package/lib/interfaces/IRefundList.d.ts +0 -1
  56. package/lib/interfaces/IRemission.d.ts +1 -2
  57. package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -5
  58. package/lib/interfaces/PostRefundRetroRemission.d.ts +2 -2
  59. package/package.json +5 -1
@@ -37,10 +37,8 @@ export declare class AddRemissionComponent implements OnInit {
37
37
  isFromRefundListPage: boolean;
38
38
  isFromPaymentDetailPage: boolean;
39
39
  isFromServiceRequestPage: boolean;
40
+ isFullyRefund: boolean;
40
41
  feeamount: number;
41
- refundPaymentReference: string;
42
- isFromRefundStatusPage: boolean;
43
- changeRefundReason: string;
44
42
  LOGGEDINUSERROLES: string[];
45
43
  orderDetail: any[];
46
44
  orderRef: string;
@@ -58,7 +56,6 @@ export declare class AddRemissionComponent implements OnInit {
58
56
  code: string;
59
57
  }>;
60
58
  refundListAmount: EventEmitter<string>;
61
- refundFees: EventEmitter<IFee[]>;
62
59
  refund: {
63
60
  reason: {
64
61
  duplicate: string;
@@ -55,6 +55,7 @@ export declare class CaseTransactionsComponent implements OnInit {
55
55
  isRemoveBtnDisabled: boolean;
56
56
  feeId: IFee;
57
57
  clAmountDue: number;
58
+ overPaymentAmount: number;
58
59
  unprocessedRecordCount: number;
59
60
  isFeeRecordsExist: boolean;
60
61
  isGrpOutstandingAmtPositive: boolean;
@@ -7,10 +7,8 @@ export declare class ContactDetailsComponent implements OnInit {
7
7
  private notificationService;
8
8
  private paymentLibComponent;
9
9
  isEditOperation: boolean;
10
- isEditOperationInRefundList: boolean;
11
10
  addressObj: any;
12
11
  assignContactDetails: EventEmitter<any>;
13
- assignContactDetailsInFefundsList: EventEmitter<any>;
14
12
  redirectToIssueRefund: EventEmitter<any>;
15
13
  pageTitle: string;
16
14
  errorMessage: string;
@@ -7,6 +7,7 @@ import { IPayment } from '../../interfaces/IPayment';
7
7
  import { IRemission } from '../../interfaces/IRemission';
8
8
  import { ChangeDetectorRef } from '@angular/core';
9
9
  import { OrderslistService } from '../../services/orderslist.service';
10
+ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
10
11
  export declare class PaymentViewComponent implements OnInit {
11
12
  private paymentViewService;
12
13
  private paymentLibComponent;
@@ -28,7 +29,8 @@ export declare class PaymentViewComponent implements OnInit {
28
29
  orderFeesTotal: number;
29
30
  orderRemissionTotal: number;
30
31
  orderDetail: any[];
31
- isServiceRequest: string;
32
+ fees: any;
33
+ isFullyRefund: boolean;
32
34
  paymentGroup: IPaymentGroup;
33
35
  errorMessage: string;
34
36
  ccdCaseNumber: string;
@@ -50,21 +52,37 @@ export declare class PaymentViewComponent implements OnInit {
50
52
  isFromServiceRequestPage: boolean;
51
53
  isFromPaymentDetailPage: boolean;
52
54
  paymentFees: IFee[];
55
+ paymentType: string;
56
+ isContinueBtnDisabled: boolean;
57
+ viewCompStatus: string;
58
+ contactDetailsObj: IRefundContactDetails;
59
+ notification: any;
60
+ isConfirmationBtnDisabled: boolean;
61
+ refundReference: string;
62
+ refundAmount: string;
53
63
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
54
64
  ngAfterContentChecked(): void;
55
65
  ngOnInit(): void;
56
66
  readonly isCardPayment: boolean;
57
67
  readonly isTelephonyPayment: boolean;
58
68
  goToPaymentList(): void;
59
- goToServiceRequestPage(): void;
60
69
  goToCaseTransationPage(event: any): void;
61
70
  addRemission(fee: IFee): void;
62
71
  checkForFees(paymentGroup: any): boolean;
72
+ processRefund(): void;
73
+ gotoAddressPage(note?: IRefundContactDetails): void;
63
74
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
75
+ chkIsRefundRemissionBtnEnable(): boolean;
64
76
  issueRefund(paymentgrp: IPaymentGroup): void;
65
77
  getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
66
- chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
67
- chkIsAddRefundBtnEnable(remission: IRemission): boolean;
68
- chkIsAddRemissionBtnEnable(fee: IFee): boolean;
78
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
79
+ chkForPBAPayment(): boolean;
80
+ chkForAddRemission(feeCode: string, feeId: number): boolean;
81
+ check4AllowedRoles2AccessRefund: () => boolean;
82
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
83
+ selectPymentOption(paymentType: string): void;
84
+ continuePayment(paymentgrp: IPaymentGroup): void;
85
+ gotoPaymentSelectPage(event: Event): void;
86
+ getContactDetails(obj: IRefundContactDetails): void;
69
87
  resetOrderData(): void;
70
88
  }
@@ -43,9 +43,9 @@ export declare class ProcessRefundComponent implements OnInit {
43
43
  successMsg: string;
44
44
  navigationpage: string;
45
45
  ccdCaseNumber: string;
46
+ isFromRefundListPage: boolean;
46
47
  cpoDetails: any;
47
48
  isCPODown: boolean;
48
- isFromRefundListPage: boolean;
49
49
  isConfirmButtondisabled: boolean;
50
50
  constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
51
51
  ngOnInit(): void;
@@ -8,16 +8,12 @@ import { OrderslistService } from '../../services/orderslist.service';
8
8
  import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
9
9
  import { IRefundStatus } from '../../interfaces/IRefundStatus';
10
10
  import { PaymentLibComponent } from '../../payment-lib.component';
11
- import { PaymentViewService } from '../../services/payment-view/payment-view.service';
12
- import { IPayment } from '../../interfaces/IPayment';
13
- import { IFee } from '../../interfaces/IFee';
14
11
  export declare class RefundStatusComponent implements OnInit {
15
12
  private formBuilder;
16
13
  private refundService;
17
14
  private notificationService;
18
15
  private paymentLibComponent;
19
16
  private OrderslistService;
20
- private paymentViewService;
21
17
  LOGGEDINUSERROLES: string[];
22
18
  isOldPcipalOff: boolean;
23
19
  isNewPcipalOff: boolean;
@@ -27,7 +23,7 @@ export declare class RefundStatusComponent implements OnInit {
27
23
  refundStatusForm: FormGroup;
28
24
  selectedRefundReason: string;
29
25
  rejectedRefundList: IRefundList[];
30
- notificationList: any;
26
+ notificationList: IRefundsNotifications;
31
27
  notification: any;
32
28
  approvalStatus: string;
33
29
  rejectStatus: string;
@@ -60,12 +56,8 @@ export declare class RefundStatusComponent implements OnInit {
60
56
  isLastUpdatedByCurrentUser: boolean;
61
57
  isProcessRefund: boolean;
62
58
  changedAmount: number;
63
- isRemissionsMatch: boolean;
64
- payment: IPayment;
65
- changeRefundReason: string;
66
- fees: IFee[];
67
59
  allowedRolesToAccessRefund: string[];
68
- constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService, paymentViewService: PaymentViewService);
60
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
69
61
  ngOnInit(): void;
70
62
  check4AllowedRoles2AccessRefund: () => boolean;
71
63
  getRefundsStatusHistoryList(): void;
@@ -75,18 +67,16 @@ export declare class RefundStatusComponent implements OnInit {
75
67
  loadRefundListPage(): void;
76
68
  gotoReviewDetailsPage(event: any): void;
77
69
  gotoReviewAndReSubmitPage(): void;
78
- gotoRefundReasonPage(refundReason: string): void;
70
+ gotoRefundReasonPage(): void;
79
71
  gotoAmountPage(): void;
80
72
  goToReviewAndSubmitView(): void;
81
73
  resetRemissionForm(val: any, field: any): void;
82
74
  selectRadioButton(key: any, value: any): void;
83
75
  getRefundListReason(refundListReason: any): void;
84
76
  getRefundAmount(amount: number): void;
85
- getRefundFees(fees: IFee[]): void;
86
77
  gotoReviewRefundConfirmationPage(): void;
87
78
  gotoEditAddressDetails(note: IRefundsNotifications): void;
88
79
  getContactDetails(obj: IRefundContactDetails): void;
89
- getContactDetailsForRefundList(obj: IRefundContactDetails): void;
90
80
  gotoEditDetailsPage(note?: any): void;
91
81
  submitEditDetail(): void;
92
82
  putResend(notification: IRefundsNotifications): void;
@@ -89,15 +89,18 @@ export declare class ServiceRequestComponent implements OnInit {
89
89
  ngOnInit(): void;
90
90
  goToServiceRequestPage(): void;
91
91
  goToCaseTransationPage(event: any): void;
92
+ chkForAddRemission(feeCode: string, feeId: number): boolean;
93
+ chkForPBAPayment(): boolean;
92
94
  addRemission(fee: IFee): void;
93
95
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
94
96
  cancelRemoval(): void;
95
97
  removeFee(fee: any): void;
98
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
99
+ chkIsRefundRemissionBtnEnable(): boolean;
100
+ check4AllowedRoles2AccessRefund: () => boolean;
101
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
96
102
  issueRefund(payment: IPayment): void;
97
103
  goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
98
104
  goToPaymentViewComponent(paymentGroup: any): void;
99
- chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
100
- chkIsAddRefundBtnEnable(remission: IRemission): boolean;
101
- chkIsAddRemissionBtnEnable(fee: IFee): boolean;
102
105
  resetOrderData(): void;
103
106
  }
@@ -20,8 +20,5 @@ export interface IFee {
20
20
  date_updated?: string;
21
21
  amount_due?: number;
22
22
  remission_enable?: boolean;
23
- refund_amount?: number;
24
- updatedVolume?: number;
25
- selected?: any;
26
- issue_refund_add_refund_add_remission: boolean;
23
+ over_payment?: number;
27
24
  }
@@ -29,6 +29,4 @@ export interface IPayment {
29
29
  payment_group_reference: string;
30
30
  paymentGroupReference?: string;
31
31
  refund_enable?: boolean;
32
- issue_refund_add_refund_add_remission: boolean;
33
- issue_refund: boolean;
34
32
  }
@@ -14,5 +14,4 @@ export interface IRefundList {
14
14
  contact_details: IRefundContactDetails;
15
15
  user_full_name: string;
16
16
  service_type: string;
17
- code: string;
18
17
  }
@@ -6,6 +6,5 @@ export interface IRemission {
6
6
  ccd_case_number: string;
7
7
  fee_code: string;
8
8
  date_created: string;
9
- issue_refund_add_refund_add_remission: boolean;
10
- add_refund: boolean;
9
+ fee_id: number;
11
10
  }
@@ -1,9 +1,5 @@
1
- import { IFee } from "./IFee";
2
- import { IRefundContactDetails } from "./IRefundContactDetails";
3
1
  export declare class IResubmitRefundRequest {
4
2
  refund_reason: string;
5
3
  amount: number;
6
- contact_details: IRefundContactDetails;
7
- refund_fees: IFee[];
8
- constructor(refund_reason: string, amount: number, contact_details: any, refund_fees: any[]);
4
+ constructor(refund_reason: string, amount: number);
9
5
  }
@@ -4,7 +4,7 @@ export declare class PostRefundRetroRemission {
4
4
  payment_reference: string;
5
5
  refund_reason: string;
6
6
  refund_amount: any;
7
- fees: any[];
7
+ fees: any;
8
8
  contact_details: IRefundContactDetails;
9
- constructor(ccd_case_number: string, payment_reference: string, refund_reason: string, refund_amount: any, fees: any[], contact_details: any);
9
+ constructor(ccd_case_number: string, payment_reference: string, refund_reason: string, refund_amount: any, fees: any, contact_details: any);
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.2-beta27",
3
+ "version": "5.0.2-beta28",
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"