@hmcts/ccpay-web-component 5.0.5-beta02 → 5.0.5-beta03

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 (98) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +675 -2055
  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 +31 -33
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +126 -697
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +17 -31
  8. package/esm2015/lib/components/fee-summary/fee-summary.component.js +12 -17
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +158 -187
  10. package/esm2015/lib/components/process-refund/process-refund.component.js +28 -49
  11. package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
  12. package/esm2015/lib/components/refund-status/refund-status.component.js +30 -211
  13. package/esm2015/lib/components/reports/reports.component.js +6 -2
  14. package/esm2015/lib/components/service-request/service-request.component.js +146 -237
  15. package/esm2015/lib/components/table/table.component.js +9 -24
  16. package/esm2015/lib/interfaces/IFee.js +1 -13
  17. package/esm2015/lib/interfaces/IPayment.js +1 -7
  18. package/esm2015/lib/interfaces/IPaymentFailure.js +33 -0
  19. package/esm2015/lib/interfaces/IRefundList.js +1 -7
  20. package/esm2015/lib/interfaces/IRemission.js +1 -7
  21. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +2 -10
  22. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +2 -6
  23. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -20
  24. package/esm2015/lib/payment-lib.component.js +6 -9
  25. package/esm2015/lib/payment-lib.module.js +1 -3
  26. package/esm2015/lib/payment-lib.service.js +1 -16
  27. package/esm2015/lib/services/payment-view/payment-view.service.js +10 -1
  28. package/esm2015/lib/services/refunds/refunds.service.js +1 -10
  29. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
  30. package/esm5/hmcts-ccpay-web-component.js +31 -33
  31. package/esm5/lib/components/add-remission/add-remission.component.js +131 -819
  32. package/esm5/lib/components/case-transactions/case-transactions.component.js +17 -31
  33. package/esm5/lib/components/fee-summary/fee-summary.component.js +12 -17
  34. package/esm5/lib/components/payment-view/payment-view.component.js +179 -213
  35. package/esm5/lib/components/process-refund/process-refund.component.js +78 -52
  36. package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
  37. package/esm5/lib/components/refund-status/refund-status.component.js +28 -247
  38. package/esm5/lib/components/reports/reports.component.js +6 -2
  39. package/esm5/lib/components/service-request/service-request.component.js +176 -278
  40. package/esm5/lib/components/table/table.component.js +9 -27
  41. package/esm5/lib/interfaces/IFee.js +1 -13
  42. package/esm5/lib/interfaces/IPayment.js +1 -7
  43. package/esm5/lib/interfaces/IPaymentFailure.js +33 -0
  44. package/esm5/lib/interfaces/IRefundList.js +1 -7
  45. package/esm5/lib/interfaces/IRemission.js +1 -7
  46. package/esm5/lib/interfaces/IResubmitRefundRequest.js +2 -8
  47. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +2 -5
  48. package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -16
  49. package/esm5/lib/payment-lib.component.js +5 -9
  50. package/esm5/lib/payment-lib.module.js +1 -3
  51. package/esm5/lib/payment-lib.service.js +1 -23
  52. package/esm5/lib/services/payment-view/payment-view.service.js +14 -1
  53. package/esm5/lib/services/refunds/refunds.service.js +1 -16
  54. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
  55. package/fesm2015/hmcts-ccpay-web-component.js +539 -1802
  56. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  57. package/fesm5/hmcts-ccpay-web-component.js +644 -2062
  58. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  59. package/hmcts-ccpay-web-component.d.ts +30 -32
  60. package/hmcts-ccpay-web-component.metadata.json +1 -1
  61. package/lib/components/add-remission/add-remission.component.d.ts +3 -45
  62. package/lib/components/case-transactions/case-transactions.component.d.ts +1 -2
  63. package/lib/components/payment-view/payment-view.component.d.ts +13 -23
  64. package/lib/components/process-refund/process-refund.component.d.ts +1 -6
  65. package/lib/components/refund-status/refund-status.component.d.ts +6 -34
  66. package/lib/components/service-request/service-request.component.d.ts +9 -28
  67. package/lib/components/table/table.component.d.ts +0 -1
  68. package/lib/interfaces/IFee.d.ts +0 -6
  69. package/lib/interfaces/IPayment.d.ts +0 -3
  70. package/lib/interfaces/IPaymentFailure.d.ts +13 -0
  71. package/lib/interfaces/IRefundList.d.ts +0 -4
  72. package/lib/interfaces/IRemission.d.ts +0 -3
  73. package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -5
  74. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -3
  75. package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -7
  76. package/lib/payment-lib.component.d.ts +1 -2
  77. package/lib/payment-lib.service.d.ts +0 -3
  78. package/lib/services/payment-view/payment-view.service.d.ts +1 -0
  79. package/lib/services/refunds/refunds.service.d.ts +0 -2
  80. package/package.json +1 -5
  81. package/esm2015/lib/components/contact-details/contact-details.component.js +0 -447
  82. package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -25
  83. package/esm2015/lib/interfaces/IRefundContactDetails.js +0 -25
  84. package/esm2015/lib/interfaces/IRefundFee.js +0 -21
  85. package/esm2015/lib/interfaces/IRefundsNotifications.js +0 -21
  86. package/esm2015/lib/services/notification/notification.service.js +0 -85
  87. package/esm5/lib/components/contact-details/contact-details.component.js +0 -472
  88. package/esm5/lib/interfaces/IPutNotificationRequest.js +0 -23
  89. package/esm5/lib/interfaces/IRefundContactDetails.js +0 -25
  90. package/esm5/lib/interfaces/IRefundFee.js +0 -21
  91. package/esm5/lib/interfaces/IRefundsNotifications.js +0 -21
  92. package/esm5/lib/services/notification/notification.service.js +0 -89
  93. package/lib/components/contact-details/contact-details.component.d.ts +0 -49
  94. package/lib/interfaces/IPutNotificationRequest.d.ts +0 -6
  95. package/lib/interfaces/IRefundContactDetails.d.ts +0 -9
  96. package/lib/interfaces/IRefundFee.d.ts +0 -7
  97. package/lib/interfaces/IRefundsNotifications.d.ts +0 -16
  98. package/lib/services/notification/notification.service.d.ts +0 -15
@@ -1,5 +1,5 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { IFee } from '../../interfaces/IFee';
4
4
  import { Router } from '@angular/router';
5
5
  import { PaymentViewService } from '../../services/payment-view/payment-view.service';
@@ -7,11 +7,9 @@ import { PaymentLibComponent } from '../../payment-lib.component';
7
7
  import { IPayment } from '../../interfaces/IPayment';
8
8
  import { RefundsService } from '../../services/refunds/refunds.service';
9
9
  import { IRefundReasons } from '../../interfaces/IRefundReasons';
10
- import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
11
10
  import { ChangeDetectorRef } from '@angular/core';
12
11
  import { IRemission } from '../../interfaces/IRemission';
13
12
  import { OrderslistService } from '../../services/orderslist.service';
14
- import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
15
13
  export declare class AddRemissionComponent implements OnInit {
16
14
  private formBuilder;
17
15
  private router;
@@ -21,7 +19,6 @@ export declare class AddRemissionComponent implements OnInit {
21
19
  private cd;
22
20
  private OrderslistService;
23
21
  fee: IFee;
24
- fees: any[];
25
22
  payment: IPayment;
26
23
  remission: IRemission;
27
24
  ccdCaseNumber: string;
@@ -37,12 +34,7 @@ export declare class AddRemissionComponent implements OnInit {
37
34
  isFromRefundListPage: boolean;
38
35
  isFromPaymentDetailPage: boolean;
39
36
  isFromServiceRequestPage: boolean;
40
- isFullyRefund: boolean;
41
37
  feeamount: number;
42
- refundPaymentReference: string;
43
- isFromRefundStatusPage: boolean;
44
- changeRefundReason: string;
45
- isServiceRequest: string;
46
38
  LOGGEDINUSERROLES: string[];
47
39
  orderDetail: any[];
48
40
  orderRef: string;
@@ -60,7 +52,6 @@ export declare class AddRemissionComponent implements OnInit {
60
52
  code: string;
61
53
  }>;
62
54
  refundListAmount: EventEmitter<string>;
63
- refundFees: EventEmitter<IFee[]>;
64
55
  refund: {
65
56
  reason: {
66
57
  duplicate: string;
@@ -69,8 +60,6 @@ export declare class AddRemissionComponent implements OnInit {
69
60
  other: string;
70
61
  };
71
62
  };
72
- contactDetailsObj: IRefundContactDetails;
73
- notification: any;
74
63
  remissionForm: FormGroup;
75
64
  hasErrors: boolean;
76
65
  viewStatus: string;
@@ -100,7 +89,6 @@ export declare class AddRemissionComponent implements OnInit {
100
89
  isPaymentSuccess: boolean;
101
90
  isRemissionApplied: boolean;
102
91
  remissionamt: number;
103
- elementId: any;
104
92
  commonRefundReasons: any[];
105
93
  showReasonText: boolean;
106
94
  isRefundReasonsSelected: boolean;
@@ -111,19 +99,6 @@ export declare class AddRemissionComponent implements OnInit {
111
99
  pattern2: string;
112
100
  sendOrderDetail: any[];
113
101
  sendOrderRef: string;
114
- paymentReference: string;
115
- class: string;
116
- errorMsg: any[];
117
- totalRefundAmount: number;
118
- quantityUpdated: number;
119
- fullRefund: boolean;
120
- allowedRefundAmount: number;
121
- isRemissionsMatch: boolean;
122
- paymentFees: IFee[];
123
- paymentGroup: IPaymentGroup;
124
- isStatusAllocated: boolean;
125
- isFromCheckAnsPage: boolean;
126
- refundAmtForFeeVolumes: number;
127
102
  component: {
128
103
  account_number: string;
129
104
  amount: number;
@@ -145,42 +120,25 @@ export declare class AddRemissionComponent implements OnInit {
145
120
  };
146
121
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
147
122
  ngOnInit(): void;
148
- goToPaymentViewComponent(): void;
149
- refundFeesList(): void;
150
- readonly feesList: FormArray;
151
- noneSelected(): boolean;
152
- check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
153
123
  addRemission(): void;
154
124
  confirmRemission(): void;
155
125
  resetRemissionForm(val: any, field: any): void;
156
126
  addRemissionCode(): void;
157
127
  gotoAddRetroRemissionCodePage(): void;
158
128
  gotoCheckRetroRemissionPage(payment: IPayment): void;
159
- gotoAmountRetroRemission(): void;
160
129
  gotoProcessRetroRemissionPage(): void;
161
- gotoProcessRetroRemission(note?: IRefundContactDetails): void;
162
130
  confirmRetroRemission(): void;
163
131
  processRefund(): void;
164
132
  gotoIssueRefundConfirmation(payment: IPayment): void;
165
133
  gotoIssueRefundPage(): void;
166
- gotoIssuePage(isFullyRefund: any): void;
167
- calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
168
- gotoContactDetailsPage(note?: IRefundContactDetails): void;
169
- getRefundReasons(): void;
170
- getErrorClass(elementId: any): void;
171
134
  changeIssueRefundReason(): void;
172
- confirmIssueRefund(isFullyRefund: any): void;
173
- gotoRefundReasonPage(): void;
135
+ confirmIssueRefund(): void;
136
+ confirmRetroRefund(): void;
174
137
  selectRadioButton(key: any, value: any): void;
175
138
  selectchange(args: any): void;
176
- getContactDetails(obj: IRefundContactDetails, type: any): void;
177
- gotoPartialFeeRefundScreen(): void;
178
139
  gotoServiceRequestPage(event: any): void;
179
- gotoAddressPage(note?: IRefundContactDetails): void;
180
- gotoRemissionSuccess(event: Event): void;
181
140
  gotoCasetransationPage(): void;
182
141
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
183
142
  resetOrderData(): void;
184
- changeRefundAmount(): void;
185
143
  getFormattedCurrency(currency: number): string | number;
186
144
  }
@@ -20,7 +20,6 @@ export declare class CaseTransactionsComponent implements OnInit {
20
20
  private OrderslistService;
21
21
  LOGGEDINUSERROLES: string[];
22
22
  isTakePayment: boolean;
23
- isFromServiceRequestPage: boolean;
24
23
  takePayment: boolean;
25
24
  ccdCaseNumber: string;
26
25
  excReference: string;
@@ -55,7 +54,6 @@ export declare class CaseTransactionsComponent implements OnInit {
55
54
  isRemoveBtnDisabled: boolean;
56
55
  feeId: IFee;
57
56
  clAmountDue: number;
58
- overPaymentAmount: number;
59
57
  unprocessedRecordCount: number;
60
58
  isFeeRecordsExist: boolean;
61
59
  isGrpOutstandingAmtPositive: boolean;
@@ -90,6 +88,7 @@ export declare class CaseTransactionsComponent implements OnInit {
90
88
  allowedRolesToAccessRefund: string[];
91
89
  isEligible4PBAPayment: string[];
92
90
  currentDate: Date;
91
+ isFromServiceRequestPage: boolean;
93
92
  navigationpage: string;
94
93
  remissionFeeAmt: number;
95
94
  constructor(router: Router, paymentViewService: PaymentViewService, bulkScaningPaymentService: BulkScaningPaymentService, caseTransactionsService: CaseTransactionsService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
@@ -6,8 +6,8 @@ import { IFee } from '../../interfaces/IFee';
6
6
  import { IPayment } from '../../interfaces/IPayment';
7
7
  import { IRemission } from '../../interfaces/IRemission';
8
8
  import { ChangeDetectorRef } from '@angular/core';
9
+ import { IPaymentFailure } from '../../interfaces/IPaymentFailure';
9
10
  import { OrderslistService } from '../../services/orderslist.service';
10
- import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
11
11
  export declare class PaymentViewComponent implements OnInit {
12
12
  private paymentViewService;
13
13
  private paymentLibComponent;
@@ -23,15 +23,15 @@ export declare class PaymentViewComponent implements OnInit {
23
23
  orderTotalPayments: number;
24
24
  payment: IPayment;
25
25
  LOGGEDINUSERROLES: string[];
26
+ ISPAYMENTSTATUSENABLED: string;
26
27
  orderParty: string;
27
28
  orderCreated: Date;
28
29
  orderCCDEvent: string;
29
30
  orderFeesTotal: number;
30
31
  orderRemissionTotal: number;
31
32
  orderDetail: any[];
32
- fees: any;
33
- isFullyRefund: boolean;
34
33
  isServiceRequest: string;
34
+ errorMsg: string;
35
35
  paymentGroup: IPaymentGroup;
36
36
  errorMessage: string;
37
37
  ccdCaseNumber: string;
@@ -47,43 +47,33 @@ export declare class PaymentViewComponent implements OnInit {
47
47
  isIssueRefunfBtnEnable: boolean;
48
48
  allowedRolesToAccessRefund: string[];
49
49
  remissions: IRemission[];
50
+ allPaymentsFailure: IPaymentFailure[];
51
+ selectedPaymentsStatus: IPaymentFailure;
50
52
  remissionFeeAmt: number;
51
53
  isRefundRemissionBtnEnable: boolean;
52
54
  serviceReference: string;
53
55
  isFromServiceRequestPage: boolean;
54
56
  isFromPaymentDetailPage: boolean;
55
- paymentFees: IFee[];
56
- paymentType: string;
57
- isContinueBtnDisabled: boolean;
58
- viewCompStatus: string;
59
- contactDetailsObj: IRefundContactDetails;
60
- notification: any;
61
- isConfirmationBtnDisabled: boolean;
62
- refundReference: string;
63
- refundAmount: string;
64
57
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
65
58
  ngAfterContentChecked(): void;
66
59
  ngOnInit(): void;
67
60
  readonly isCardPayment: boolean;
68
61
  readonly isTelephonyPayment: boolean;
69
62
  goToPaymentList(): void;
70
- getOverPaymentValue(): number;
71
63
  goToServiceRequestPage(): void;
72
64
  goToCaseTransationPage(event: any): void;
73
65
  addRemission(fee: IFee): void;
74
66
  checkForFees(paymentGroup: any): boolean;
75
- processRefund(): void;
76
- gotoAddressPage(note?: IRefundContactDetails): void;
77
67
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
78
- goToPaymentViewComponent(): void;
68
+ chkIsRefundRemissionBtnEnable(): boolean;
79
69
  issueRefund(paymentgrp: IPaymentGroup): void;
80
70
  getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
81
- chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
82
- chkIsAddRefundBtnEnable(remission: IRemission): boolean;
83
- chkIsAddRemissionBtnEnable(fee: IFee): boolean;
84
- selectPymentOption(paymentType: string): void;
85
- continuePayment(paymentgrp: IPaymentGroup): void;
86
- gotoPaymentSelectPage(event: Event): void;
87
- getContactDetails(obj: IRefundContactDetails): void;
71
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
72
+ chkForPBAPayment(): boolean;
73
+ chkForAddRemission(feeCode: string): boolean;
74
+ check4AllowedRoles2AccessRefund: () => boolean;
75
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
88
76
  resetOrderData(): void;
77
+ goToPaymentFailuePage(payment: any): void;
78
+ goBackToPaymentView(event: any): void;
89
79
  }
@@ -5,12 +5,10 @@ import { IRefundAction } from '../../interfaces/IRefundAction';
5
5
  import { IRefundList } from '../../interfaces/IRefundList';
6
6
  import { IRefundRejectReason } from '../../interfaces/IRefundRejectReason';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
- import { PaymentViewService } from '../../services/payment-view/payment-view.service';
9
8
  import { PaymentLibComponent } from '../../payment-lib.component';
10
9
  import { ActivatedRoute, Router } from '@angular/router';
11
10
  export declare class ProcessRefundComponent implements OnInit {
12
11
  private RefundsService;
13
- private paymentViewService;
14
12
  private formBuilder;
15
13
  private OrderslistService;
16
14
  private paymentLibComponent;
@@ -44,10 +42,8 @@ export declare class ProcessRefundComponent implements OnInit {
44
42
  navigationpage: string;
45
43
  ccdCaseNumber: string;
46
44
  isFromRefundListPage: boolean;
47
- cpoDetails: any;
48
- isCPODown: boolean;
49
45
  isConfirmButtondisabled: boolean;
50
- constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
46
+ constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
51
47
  ngOnInit(): void;
52
48
  checkRefundActions(code: string): void;
53
49
  processRefundSubmit(): void;
@@ -59,7 +55,6 @@ export declare class ProcessRefundComponent implements OnInit {
59
55
  loadRefundListPage(): void;
60
56
  loadRefundsHomePage(): void;
61
57
  redirecttoRefundListPage(): void;
62
- loadCaseTransactionPage(): void;
63
58
  resetForm(vals: any, field: any): void;
64
59
  goToCaseReview(): void;
65
60
  }
@@ -1,37 +1,29 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { RefundsService } from '../../services/refunds/refunds.service';
3
- import { NotificationService } from '../../services/notification/notification.service';
4
3
  import { FormBuilder, FormGroup } from '@angular/forms';
5
4
  import { IRefundList } from '../../interfaces/IRefundList';
6
- import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
5
+ import { PaymentViewService } from '../../services/payment-view/payment-view.service';
6
+ import { Router } from '@angular/router';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
- import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
9
8
  import { IRefundStatus } from '../../interfaces/IRefundStatus';
10
9
  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
- import { IRefundFee } from '../../interfaces/IRefundFee';
15
10
  export declare class RefundStatusComponent implements OnInit {
16
11
  private formBuilder;
17
12
  private refundService;
18
- private notificationService;
19
13
  private paymentLibComponent;
20
- private OrderslistService;
21
14
  private paymentViewService;
15
+ private router;
16
+ private OrderslistService;
22
17
  LOGGEDINUSERROLES: string[];
23
18
  API_ROOT: string;
24
19
  isOldPcipalOff: boolean;
25
20
  isNewPcipalOff: boolean;
26
21
  ccdCaseNumber: string;
27
22
  isTurnOff: boolean;
28
- orderParty: string;
29
23
  isEliginbleToAccess: boolean;
30
24
  refundStatusForm: FormGroup;
31
25
  selectedRefundReason: string;
32
26
  rejectedRefundList: IRefundList[];
33
- notificationList: any;
34
- notification: any;
35
27
  approvalStatus: string;
36
28
  rejectStatus: string;
37
29
  errorMessage: any;
@@ -48,11 +40,6 @@ export declare class RefundStatusComponent implements OnInit {
48
40
  refundHasError: boolean;
49
41
  refundReasons: any[];
50
42
  refundStatusHistories: IRefundStatus[];
51
- refundNotifications: IRefundStatus[];
52
- isResendOperationSuccess: boolean;
53
- isEditDetailsClicked: boolean;
54
- isEditAddressDeatilsClicked: boolean;
55
- addressDetails: IRefundContactDetails;
56
43
  refundReference: string;
57
44
  refundAmount: string;
58
45
  refundCode: string;
@@ -63,37 +50,22 @@ export declare class RefundStatusComponent implements OnInit {
63
50
  isLastUpdatedByCurrentUser: boolean;
64
51
  isProcessRefund: boolean;
65
52
  changedAmount: number;
66
- isRemissionsMatch: boolean;
67
- payment: IPayment;
68
- changeRefundReason: string;
69
- fees: IFee[];
70
- refundFees: IRefundFee[];
71
- allowedRolesToAccessRefund: string[];
72
- constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService, paymentViewService: PaymentViewService);
53
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
73
54
  ngOnInit(): void;
74
55
  isFromPayBubble: () => boolean;
75
56
  getRefundsStatusHistoryList(): void;
76
- getRefundsNotification(): void;
77
57
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
78
58
  loadCaseTransactionPage(): void;
79
59
  loadRefundListPage(): void;
80
60
  gotoReviewDetailsPage(event: any): void;
81
61
  gotoReviewAndReSubmitPage(): void;
82
- gotoRefundReasonPage(refundReason: string): void;
62
+ gotoRefundReasonPage(): void;
83
63
  gotoAmountPage(): void;
84
64
  goToReviewAndSubmitView(): void;
85
65
  resetRemissionForm(val: any, field: any): void;
86
66
  selectRadioButton(key: any, value: any): void;
87
67
  getRefundListReason(refundListReason: any): void;
88
68
  getRefundAmount(amount: number): void;
89
- getRefundFees(fees: IFee[]): void;
90
69
  gotoReviewRefundConfirmationPage(): void;
91
- gotoEditAddressDetails(note: IRefundsNotifications): void;
92
- getContactDetails(obj: IRefundContactDetails): void;
93
- getContactDetailsForRefundList(obj: IRefundContactDetails): void;
94
- gotoEditDetailsPage(note?: any): void;
95
- submitEditDetail(): void;
96
- putResend(notification: IRefundsNotifications): void;
97
- gotoCasetransationPageCancelBtnClicked(Event: Event): void;
98
70
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
99
71
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { PaymentLibComponent } from '../../payment-lib.component';
3
3
  import { IPayment } from '../../interfaces/IPayment';
4
4
  import { IRemission } from '../../interfaces/IRemission';
@@ -9,12 +9,10 @@ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
9
9
  import { Router } from '@angular/router';
10
10
  import { PaymentViewService } from '../../services/payment-view/payment-view.service';
11
11
  import { OrderslistService } from '../../services/orderslist.service';
12
- import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
13
12
  export declare class ServiceRequestComponent implements OnInit {
14
13
  private paymentLibComponent;
15
14
  private paymentViewService;
16
15
  private OrderslistService;
17
- private cd;
18
16
  private router;
19
17
  LOGGEDINUSERROLES: string[];
20
18
  viewStatus: string;
@@ -27,22 +25,18 @@ export declare class ServiceRequestComponent implements OnInit {
27
25
  orderFeesTotal: number;
28
26
  orderTotalPayments: number;
29
27
  orderRemissionTotal: number;
30
- paymentGroupList: IPaymentGroup;
31
28
  takePayment: boolean;
32
29
  ccdCaseNumber: boolean;
33
30
  isServiceRequest: string;
34
31
  goToServiceRquestComponent: EventEmitter<any>;
35
- viewCompStatus: any;
36
32
  servicerequest: string;
37
- paymentType: string;
38
33
  excReference: string;
39
34
  paymentGroups: any[];
40
35
  payments: IPayment[];
41
36
  nonPayments: IPayment[];
42
37
  allPayments: IPayment[];
43
38
  remissions: IRemission[];
44
- paymentFees: IFee[];
45
- fees: any;
39
+ fees: IFee[];
46
40
  errorMessage: string;
47
41
  totalFees: number;
48
42
  totalPayments: number;
@@ -72,9 +66,6 @@ export declare class ServiceRequestComponent implements OnInit {
72
66
  isGrpOutstandingAmtPositive: boolean;
73
67
  totalRefundAmount: Number;
74
68
  caseType: String;
75
- isConfirmationBtnDisabled: boolean;
76
- refundReference: string;
77
- refundAmount: string;
78
69
  payment: IPayment;
79
70
  paymentGroup: IPaymentGroup;
80
71
  paymentView: IPaymentView;
@@ -84,9 +75,6 @@ export declare class ServiceRequestComponent implements OnInit {
84
75
  cpoDetails: any;
85
76
  serviceRequestValue: string;
86
77
  orderAddBtnEnable: boolean;
87
- isFromPaymentDetailPage: boolean;
88
- contactDetailsObj: IRefundContactDetails;
89
- notification: any;
90
78
  isCPODown: boolean;
91
79
  test: boolean;
92
80
  isPBA: boolean;
@@ -97,29 +85,22 @@ export declare class ServiceRequestComponent implements OnInit {
97
85
  isFromServiceRequestPage: boolean;
98
86
  navigationpage: string;
99
87
  remissionFeeAmt: number;
100
- isContinueBtnDisabled: boolean;
101
- isFullyRefund: boolean;
102
- constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, cd: ChangeDetectorRef, router: Router);
88
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
103
89
  ngOnInit(): void;
104
90
  goToServiceRequestPage(): void;
105
91
  goToCaseTransationPage(event: any): void;
92
+ chkForAddRemission(feeCode: string): boolean;
93
+ chkForPBAPayment(): boolean;
106
94
  addRemission(fee: IFee): void;
107
95
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
108
96
  cancelRemoval(): void;
109
97
  removeFee(fee: any): void;
98
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
99
+ chkIsRefundRemissionBtnEnable(): boolean;
100
+ check4AllowedRoles2AccessRefund: () => boolean;
101
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
110
102
  issueRefund(payment: IPayment): void;
111
103
  goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
112
104
  goToPaymentViewComponent(paymentGroup: any): void;
113
- chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
114
- chkIsAddRefundBtnEnable(remission: IRemission): boolean;
115
- chkIsAddRemissionBtnEnable(fee: IFee): boolean;
116
105
  resetOrderData(): void;
117
- selectPymentOption(paymentType: string): void;
118
- goToPaymentViewComp(): void;
119
- continuePayment(paymentgrp: IPaymentGroup): void;
120
- getContactDetails(obj: IRefundContactDetails): void;
121
- gotoPaymentSelectPage(event: Event): void;
122
- gotoAddressPage(note?: IRefundContactDetails): void;
123
- processRefund(): void;
124
- getOverPaymentValue(): number;
125
106
  }
@@ -19,7 +19,6 @@ export declare class TableComponent {
19
19
  displayedColumns: string[];
20
20
  dataSource: MatTableDataSource<any>;
21
21
  userLst: any;
22
- serviceLst: any;
23
22
  actualcount: number;
24
23
  count: number;
25
24
  refundList: IRefundList[];
@@ -20,10 +20,4 @@ export interface IFee {
20
20
  date_updated?: string;
21
21
  amount_due?: number;
22
22
  remission_enable?: boolean;
23
- add_remission?: boolean;
24
- over_payment?: number;
25
- refund_amount?: number;
26
- updated_volume?: number;
27
- selected?: any;
28
- issue_refund_add_refund_add_remission: boolean;
29
23
  }
@@ -29,7 +29,4 @@ export interface IPayment {
29
29
  payment_group_reference: string;
30
30
  paymentGroupReference?: string;
31
31
  refund_enable?: boolean;
32
- over_payment?: number;
33
- issue_refund_add_refund_add_remission: boolean;
34
- issue_refund: boolean;
35
32
  }
@@ -0,0 +1,13 @@
1
+ export interface IPaymentFailure {
2
+ additional_reference: string;
3
+ disputed_amount: number;
4
+ failure_event_date_time: string;
5
+ failure_reason: string;
6
+ failure_reference: string;
7
+ failure_type: string;
8
+ payment_reference: string;
9
+ representment_date: string;
10
+ representment_status: string;
11
+ has_amount_debited?: string;
12
+ status: string;
13
+ }
@@ -1,4 +1,3 @@
1
- import { IRefundContactDetails } from './IRefundContactDetails';
2
1
  export interface IRefundList {
3
2
  amount: number;
4
3
  ccd_case_number: string;
@@ -11,8 +10,5 @@ export interface IRefundList {
11
10
  description: string;
12
11
  name: string;
13
12
  };
14
- contact_details: IRefundContactDetails;
15
13
  user_full_name: string;
16
- service_type: string;
17
- code: string;
18
14
  }
@@ -6,7 +6,4 @@ 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;
12
9
  }
@@ -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
  }
@@ -1,6 +1,4 @@
1
- import { IRefundContactDetails } from './IRefundContactDetails';
2
1
  export declare class PostIssueRefundRetroRemission {
3
2
  remissionReference: string;
4
- contact_details: IRefundContactDetails;
5
- constructor(remissionReference: string, contactDeatils: any);
3
+ constructor(remissionReference: string);
6
4
  }
@@ -1,11 +1,5 @@
1
- import { IRefundContactDetails } from "./IRefundContactDetails";
2
1
  export declare class PostRefundRetroRemission {
3
- ccd_case_number: string;
4
2
  payment_reference: string;
5
3
  refund_reason: string;
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);
4
+ constructor(payment_reference: string, refund_reason: string);
11
5
  }
@@ -10,7 +10,6 @@ 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;
14
13
  CARDPAYMENTRETURNURL: string;
15
14
  CCD_CASE_NUMBER: string;
16
15
  EXC_REFERENCE: string;
@@ -28,6 +27,7 @@ export declare class PaymentLibComponent implements OnInit {
28
27
  CASETYPE: string;
29
28
  ISOLDPCIPALOFF: boolean;
30
29
  ISNEWPCIPALOFF: boolean;
30
+ ISPAYMENTSTATUSENABLED: boolean;
31
31
  rootUrl: boolean;
32
32
  REFUNDLIST: string;
33
33
  USERID: string;
@@ -40,7 +40,6 @@ export declare class PaymentLibComponent implements OnInit {
40
40
  paymentGroupReference: string;
41
41
  paymentReference: string;
42
42
  refundReference: string;
43
- isFromPayBubble: boolean;
44
43
  refundlistsource: any;
45
44
  viewName: string;
46
45
  isTurnOff: boolean;
@@ -2,7 +2,6 @@ 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
5
  CARDPAYMENTRETURNURL: string;
7
6
  constructor();
8
7
  setApiRootUrl(apiRoot: string): void;
@@ -11,8 +10,6 @@ export declare class PaymentLibService {
11
10
  getBulkScanApiRootUrl(): string;
12
11
  setRefundndsApiRootUrl(refundsapiRoot: string): void;
13
12
  getRefundsApiRootUrl(): string;
14
- setNoticationApiRootUrl(notificationapiRoot: string): void;
15
- getNoticationApiRootUrl(): string;
16
13
  setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
17
14
  getCardPaymentReturnUrl(): string;
18
15
  }
@@ -52,4 +52,5 @@ export declare class PaymentViewService {
52
52
  postRefundsReason(body: PostRefundRetroRemission): Observable<any>;
53
53
  postPaymentGroupWithRetroRemissions(paymentGroupReference: string, feeId: number, body: AddRetroRemissionRequest): Observable<any>;
54
54
  postRefundRetroRemission(body: PostIssueRefundRetroRemission): Observable<any>;
55
+ getPaymentFailure(paymentReference: string): Observable<any>;
55
56
  }
@@ -9,7 +9,6 @@ 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';
13
12
  export declare class RefundsService {
14
13
  private http;
15
14
  private https;
@@ -26,7 +25,6 @@ export declare class RefundsService {
26
25
  getRefundStatusList(ccdCaseNumber: string): Observable<IRefundList[]>;
27
26
  getUserDetails(): Observable<any>;
28
27
  postIssueRefund(body: IssueRefundRequest): Observable<any>;
29
- putResendOrEdit(body: IPutNotificationRequest, refundRef: string, notificationType: string): Observable<any>;
30
28
  patchResubmitRefund(body: IResubmitRefundRequest, refund_reference: string): Observable<any>;
31
29
  addHeaders(options: any): any;
32
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.5-beta02",
3
+ "version": "5.0.5-beta03",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,10 +17,6 @@
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
- },
24
20
  {
25
21
  "name": "Tarun Palisetty",
26
22
  "email": "tarun.palisetty@hmcts.net"