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

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 (105) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +8819 -6325
  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 +754 -200
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +114 -76
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +406 -0
  9. package/esm2015/lib/components/fee-summary/fee-summary.component.js +1 -3
  10. package/esm2015/lib/components/payment-view/payment-view.component.js +172 -26
  11. package/esm2015/lib/components/pba-payment/pba-payment.component.js +248 -0
  12. package/esm2015/lib/components/process-refund/process-refund.component.js +100 -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 +171 -63
  15. package/esm2015/lib/components/service-request/service-request.component.js +623 -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 +5 -1
  20. package/esm2015/lib/interfaces/IPayment.js +3 -1
  21. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  22. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  23. package/esm2015/lib/interfaces/IRefundList.js +5 -1
  24. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  25. package/esm2015/lib/interfaces/IRemission.js +3 -1
  26. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  27. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +32 -0
  28. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  29. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +18 -2
  30. package/esm2015/lib/payment-lib.component.js +62 -6
  31. package/esm2015/lib/payment-lib.module.js +8 -2
  32. package/esm2015/lib/payment-lib.service.js +31 -1
  33. package/esm2015/lib/services/notification/notification.service.js +85 -0
  34. package/esm2015/lib/services/orderslist.service.js +193 -1
  35. package/esm2015/lib/services/payment-view/payment-view.service.js +36 -2
  36. package/esm2015/lib/services/refunds/refunds.service.js +25 -3
  37. package/esm2015/lib/services/shared/error-handler.service.js +49 -22
  38. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  39. package/esm5/hmcts-ccpay-web-component.js +42 -38
  40. package/esm5/lib/components/add-remission/add-remission.component.js +877 -208
  41. package/esm5/lib/components/case-transactions/case-transactions.component.js +123 -80
  42. package/esm5/lib/components/contact-details/contact-details.component.js +431 -0
  43. package/esm5/lib/components/fee-summary/fee-summary.component.js +1 -3
  44. package/esm5/lib/components/payment-view/payment-view.component.js +199 -26
  45. package/esm5/lib/components/pba-payment/pba-payment.component.js +269 -0
  46. package/esm5/lib/components/process-refund/process-refund.component.js +103 -9
  47. package/esm5/lib/components/refund-list/refund-list.component.js +6 -10
  48. package/esm5/lib/components/refund-status/refund-status.component.js +202 -62
  49. package/esm5/lib/components/service-request/service-request.component.js +699 -0
  50. package/esm5/lib/components/status-history/status-history.component.js +2 -2
  51. package/esm5/lib/components/table/table.component.js +50 -17
  52. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  53. package/esm5/lib/interfaces/IFee.js +5 -1
  54. package/esm5/lib/interfaces/IPayment.js +3 -1
  55. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  56. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  57. package/esm5/lib/interfaces/IRefundList.js +5 -1
  58. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  59. package/esm5/lib/interfaces/IRemission.js +3 -1
  60. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  61. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  62. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  63. package/esm5/lib/interfaces/PostRefundRetroRemission.js +14 -2
  64. package/esm5/lib/payment-lib.component.js +58 -5
  65. package/esm5/lib/payment-lib.module.js +8 -2
  66. package/esm5/lib/payment-lib.service.js +45 -1
  67. package/esm5/lib/services/notification/notification.service.js +89 -0
  68. package/esm5/lib/services/orderslist.service.js +256 -1
  69. package/esm5/lib/services/payment-view/payment-view.service.js +49 -2
  70. package/esm5/lib/services/refunds/refunds.service.js +31 -3
  71. package/esm5/lib/services/shared/error-handler.service.js +49 -22
  72. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  73. package/fesm2015/hmcts-ccpay-web-component.js +2753 -590
  74. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  75. package/fesm5/hmcts-ccpay-web-component.js +8955 -6409
  76. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  77. package/hmcts-ccpay-web-component.d.ts +41 -37
  78. package/hmcts-ccpay-web-component.metadata.json +1 -1
  79. package/lib/components/add-remission/add-remission.component.d.ts +51 -3
  80. package/lib/components/case-transactions/case-transactions.component.d.ts +9 -3
  81. package/lib/components/contact-details/contact-details.component.d.ts +47 -0
  82. package/lib/components/payment-view/payment-view.component.d.ts +27 -4
  83. package/lib/components/pba-payment/pba-payment.component.d.ts +33 -0
  84. package/lib/components/process-refund/process-refund.component.d.ts +12 -1
  85. package/lib/components/refund-status/refund-status.component.d.ts +22 -5
  86. package/lib/components/service-request/service-request.component.d.ts +106 -0
  87. package/lib/components/table/table.component.d.ts +6 -2
  88. package/lib/interfaces/IFee.d.ts +2 -0
  89. package/lib/interfaces/IPayment.d.ts +1 -0
  90. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  91. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  92. package/lib/interfaces/IRefundList.d.ts +3 -0
  93. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  94. package/lib/interfaces/IRemission.d.ts +1 -0
  95. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  96. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +8 -0
  97. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  98. package/lib/interfaces/PostRefundRetroRemission.d.ts +6 -1
  99. package/lib/payment-lib.component.d.ts +20 -1
  100. package/lib/payment-lib.service.d.ts +6 -0
  101. package/lib/services/notification/notification.service.d.ts +15 -0
  102. package/lib/services/orderslist.service.d.ts +34 -0
  103. package/lib/services/payment-view/payment-view.service.d.ts +5 -0
  104. package/lib/services/refunds/refunds.service.d.ts +2 -0
  105. package/package.json +5 -1
@@ -1,5 +1,5 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { FormBuilder, FormGroup } from '@angular/forms';
2
+ import { FormBuilder, FormGroup, FormArray } 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,9 +7,11 @@ 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';
10
11
  import { ChangeDetectorRef } from '@angular/core';
11
12
  import { IRemission } from '../../interfaces/IRemission';
12
13
  import { OrderslistService } from '../../services/orderslist.service';
14
+ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
13
15
  export declare class AddRemissionComponent implements OnInit {
14
16
  private formBuilder;
15
17
  private router;
@@ -19,6 +21,7 @@ export declare class AddRemissionComponent implements OnInit {
19
21
  private cd;
20
22
  private OrderslistService;
21
23
  fee: IFee;
24
+ fees: any[];
22
25
  payment: IPayment;
23
26
  remission: IRemission;
24
27
  ccdCaseNumber: string;
@@ -30,12 +33,22 @@ export declare class AddRemissionComponent implements OnInit {
30
33
  isOldPcipalOff: boolean;
31
34
  isNewPcipalOff: boolean;
32
35
  isStrategicFixEnable: boolean;
33
- orderStatus: string;
34
36
  paidAmount: any;
35
37
  isFromRefundListPage: boolean;
36
38
  isFromPaymentDetailPage: boolean;
37
39
  isFromServiceRequestPage: boolean;
38
40
  feeamount: number;
41
+ LOGGEDINUSERROLES: string[];
42
+ orderDetail: any[];
43
+ orderRef: string;
44
+ orderStatus: string;
45
+ orderParty: string;
46
+ orderCreated: Date;
47
+ orderCCDEvent: string;
48
+ takePayment: boolean;
49
+ orderFeesTotal: number;
50
+ orderTotalPayments: number;
51
+ orderRemissionTotal: number;
39
52
  cancelRemission: EventEmitter<void>;
40
53
  refundListReason: EventEmitter<{
41
54
  reason: string;
@@ -50,6 +63,8 @@ export declare class AddRemissionComponent implements OnInit {
50
63
  other: string;
51
64
  };
52
65
  };
66
+ contactDetailsObj: IRefundContactDetails;
67
+ notification: any;
53
68
  remissionForm: FormGroup;
54
69
  hasErrors: boolean;
55
70
  viewStatus: string;
@@ -79,6 +94,7 @@ export declare class AddRemissionComponent implements OnInit {
79
94
  isPaymentSuccess: boolean;
80
95
  isRemissionApplied: boolean;
81
96
  remissionamt: number;
97
+ elementId: any;
82
98
  commonRefundReasons: any[];
83
99
  showReasonText: boolean;
84
100
  isRefundReasonsSelected: boolean;
@@ -87,6 +103,21 @@ export declare class AddRemissionComponent implements OnInit {
87
103
  refundReasons: IRefundReasons[];
88
104
  pattern1: string;
89
105
  pattern2: string;
106
+ sendOrderDetail: any[];
107
+ sendOrderRef: string;
108
+ paymentReference: string;
109
+ class: string;
110
+ errorMsg: any[];
111
+ totalRefundAmount: number;
112
+ quantityUpdated: number;
113
+ fullRefund: boolean;
114
+ allowedRefundAmount: number;
115
+ isRemissionsMatch: boolean;
116
+ paymentFees: IFee[];
117
+ paymentGroup: IPaymentGroup;
118
+ isStatusAllocated: boolean;
119
+ isFromCheckAnsPage: boolean;
120
+ refundAmtForFeeVolumes: number;
90
121
  component: {
91
122
  account_number: string;
92
123
  amount: number;
@@ -108,24 +139,41 @@ export declare class AddRemissionComponent implements OnInit {
108
139
  };
109
140
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
110
141
  ngOnInit(): void;
142
+ refundFeesList(): void;
143
+ readonly feesList: FormArray;
144
+ noneSelected(): boolean;
145
+ check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
111
146
  addRemission(): void;
112
147
  confirmRemission(): void;
113
148
  resetRemissionForm(val: any, field: any): void;
114
149
  addRemissionCode(): void;
115
150
  gotoAddRetroRemissionCodePage(): void;
116
151
  gotoCheckRetroRemissionPage(payment: IPayment): void;
152
+ gotoAmountRetroRemission(): void;
117
153
  gotoProcessRetroRemissionPage(): void;
154
+ gotoProcessRetroRemission(note?: IRefundContactDetails): void;
118
155
  confirmRetroRemission(): void;
119
156
  processRefund(): void;
120
157
  gotoIssueRefundConfirmation(payment: IPayment): void;
121
158
  gotoIssueRefundPage(): void;
159
+ gotoIssuePage(): void;
160
+ calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
161
+ gotoContactDetailsPage(note?: IRefundContactDetails): void;
162
+ getRefundReasons(): void;
163
+ getErrorClass(elementId: any): void;
122
164
  changeIssueRefundReason(): void;
123
165
  confirmIssueRefund(): void;
124
- confirmRetroRefund(): void;
166
+ gotoRefundReasonPage(): void;
125
167
  selectRadioButton(key: any, value: any): void;
126
168
  selectchange(args: any): void;
169
+ getContactDetails(obj: IRefundContactDetails, type: any): void;
170
+ gotoPartialFeeRefundScreen(): void;
127
171
  gotoServiceRequestPage(event: any): void;
172
+ gotoAddressPage(note?: IRefundContactDetails): void;
173
+ gotoRemissionSuccess(event: Event): void;
128
174
  gotoCasetransationPage(): void;
129
175
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
176
+ resetOrderData(): void;
177
+ changeRefundAmount(): void;
130
178
  getFormattedCurrency(currency: number): string | number;
131
179
  }
@@ -19,6 +19,7 @@ export declare class CaseTransactionsComponent implements OnInit {
19
19
  private paymentLibComponent;
20
20
  private OrderslistService;
21
21
  LOGGEDINUSERROLES: string[];
22
+ isTakePayment: boolean;
22
23
  takePayment: boolean;
23
24
  servicerequest: string;
24
25
  ccdCaseNumber: string;
@@ -54,12 +55,12 @@ export declare class CaseTransactionsComponent implements OnInit {
54
55
  isRemoveBtnDisabled: boolean;
55
56
  feeId: IFee;
56
57
  clAmountDue: number;
58
+ overPaymentAmount: number;
57
59
  unprocessedRecordCount: number;
58
60
  isFeeRecordsExist: boolean;
59
61
  isGrpOutstandingAmtPositive: boolean;
60
62
  totalRefundAmount: Number;
61
63
  caseType: String;
62
- lsCcdNumber: any;
63
64
  payment: IPayment;
64
65
  paymentGroup: IPaymentGroup;
65
66
  paymentView: IPaymentView;
@@ -67,13 +68,14 @@ export declare class CaseTransactionsComponent implements OnInit {
67
68
  isAddRemissionEnable: boolean;
68
69
  orderRemissionDetails: any[];
69
70
  orderLevelFees: IOrderReferenceFee[];
71
+ ispaymentGroupApisuccess: boolean;
70
72
  cpoDetails: any;
71
73
  orderRef: string;
72
74
  orderStatus: string;
73
75
  orderParty: string;
74
76
  orderCreated: Date;
75
77
  orderCCDEvent: string;
76
- serviveRequestValue: string;
78
+ serviceRequestValue: string;
77
79
  orderAddBtnEnable: boolean;
78
80
  orderFeesTotal: number;
79
81
  orderRemissionTotal: number;
@@ -86,6 +88,8 @@ export declare class CaseTransactionsComponent implements OnInit {
86
88
  isAddRemissionBtnEnabled: boolean;
87
89
  isRefundRemissionBtnEnable: boolean;
88
90
  allowedRolesToAccessRefund: string[];
91
+ isEligible4PBAPayment: string[];
92
+ currentDate: Date;
89
93
  isFromServiceRequestPage: boolean;
90
94
  navigationpage: string;
91
95
  remissionFeeAmt: number;
@@ -98,7 +102,6 @@ export declare class CaseTransactionsComponent implements OnInit {
98
102
  resetOrderVariables(): void;
99
103
  goToOrderViewDetailSection(orderReferenceObj: any): void;
100
104
  redirectToOrderFeeSearchPage(event: any, orderef: any): void;
101
- goToCaseTransationPage(event: any): void;
102
105
  calculateAmounts(): void;
103
106
  calculateRefundAmount(): number;
104
107
  getGroupOutstandingAmount(paymentGroup: IPaymentGroup): number;
@@ -106,6 +109,7 @@ export declare class CaseTransactionsComponent implements OnInit {
106
109
  addRemission(fee: IFee): void;
107
110
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
108
111
  redirectToremissionPage(event: any): void;
112
+ goToServiceRequestPage(): void;
109
113
  redirectToReportsPage(event: any): void;
110
114
  loadFeeSummaryPage(paymentGroup: IPaymentGroup): void;
111
115
  goToPaymentViewComponent(paymentGroup: any): void;
@@ -123,5 +127,7 @@ export declare class CaseTransactionsComponent implements OnInit {
123
127
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
124
128
  chkIsRefundRemissionBtnEnable(): boolean;
125
129
  check4AllowedRoles2AccessRefund: () => boolean;
130
+ check4AllowedRoles2AccessPBApayment: () => boolean;
126
131
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
132
+ loadPBAAccountPage(orderRef: IPayment): void;
127
133
  }
@@ -0,0 +1,47 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { PaymentLibComponent } from '../../payment-lib.component';
4
+ import { NotificationService } from '../../services/notification/notification.service';
5
+ export declare class ContactDetailsComponent implements OnInit {
6
+ private formBuilder;
7
+ private notificationService;
8
+ private paymentLibComponent;
9
+ isEditOperation: boolean;
10
+ addressObj: any;
11
+ assignContactDetails: EventEmitter<any>;
12
+ redirectToIssueRefund: EventEmitter<any>;
13
+ pageTitle: string;
14
+ errorMessage: string;
15
+ isEmailSAddressClicked: boolean;
16
+ isShowPickAddress: boolean;
17
+ isPostcodeClicked: boolean;
18
+ isManualAddressClicked: boolean;
19
+ emailAddressForm: FormGroup;
20
+ postCodeForm: FormGroup;
21
+ manualAddressForm: FormGroup;
22
+ addressPostcodeList: any[];
23
+ postcodeAddress: any;
24
+ isAddressBoxEmpty: boolean;
25
+ isEmailEmpty: boolean;
26
+ emailHasError: boolean;
27
+ isPostcodeEmpty: boolean;
28
+ postcodeHasError: boolean;
29
+ isaddressLine1Empty: boolean;
30
+ addressLine1HasError: boolean;
31
+ addressLine2HasError: boolean;
32
+ isTownOrCityEmpty: boolean;
33
+ townOrCityHasError: boolean;
34
+ isCountyEmpty: boolean;
35
+ countyHasError: boolean;
36
+ isMPostcodeEmpty: boolean;
37
+ mpostcodeHasError: boolean;
38
+ isCountryEmpty: boolean;
39
+ constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
40
+ ngOnInit(): void;
41
+ setEditDetails(): void;
42
+ selectContactOption(type: any, isLinkedClied: any): void;
43
+ finalFormSubmit(): void;
44
+ postcodeValidation(str: any): void;
45
+ redirection(event: any): void;
46
+ resetForm(val: any, field: any): void;
47
+ }
@@ -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;
@@ -17,11 +18,17 @@ export declare class PaymentViewComponent implements OnInit {
17
18
  caseType: boolean;
18
19
  isNewPcipalOff: boolean;
19
20
  isOldPcipalOff: boolean;
20
- orderRef: boolean;
21
- orderStatus: boolean;
22
- orderTotalPayments: boolean;
21
+ orderRef: string;
22
+ orderStatus: string;
23
+ orderTotalPayments: number;
23
24
  payment: IPayment;
24
25
  LOGGEDINUSERROLES: string[];
26
+ orderParty: string;
27
+ orderCreated: Date;
28
+ orderCCDEvent: string;
29
+ orderFeesTotal: number;
30
+ orderRemissionTotal: number;
31
+ orderDetail: any[];
25
32
  paymentGroup: IPaymentGroup;
26
33
  errorMessage: string;
27
34
  ccdCaseNumber: string;
@@ -39,6 +46,15 @@ export declare class PaymentViewComponent implements OnInit {
39
46
  remissions: IRemission[];
40
47
  remissionFeeAmt: number;
41
48
  isRefundRemissionBtnEnable: boolean;
49
+ serviceReference: string;
50
+ isFromServiceRequestPage: boolean;
51
+ isFromPaymentDetailPage: boolean;
52
+ paymentFees: IFee[];
53
+ paymentType: string;
54
+ isContinueBtnDisabled: boolean;
55
+ viewCompStatus: string;
56
+ contactDetailsObj: IRefundContactDetails;
57
+ notification: any;
42
58
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
43
59
  ngAfterContentChecked(): void;
44
60
  ngOnInit(): void;
@@ -48,13 +64,20 @@ export declare class PaymentViewComponent implements OnInit {
48
64
  goToCaseTransationPage(event: any): void;
49
65
  addRemission(fee: IFee): void;
50
66
  checkForFees(paymentGroup: any): boolean;
67
+ processRefund(): void;
68
+ gotoAddressPage(note?: IRefundContactDetails): void;
51
69
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
52
70
  chkIsRefundRemissionBtnEnable(): boolean;
53
71
  issueRefund(paymentgrp: IPaymentGroup): void;
54
72
  getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
55
73
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
56
74
  chkForPBAPayment(): boolean;
57
- chkForAddRemission(feeCode: string): boolean;
75
+ chkForAddRemission(feeCode: string, feeId: number): boolean;
58
76
  check4AllowedRoles2AccessRefund: () => boolean;
59
77
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
78
+ selectPymentOption(paymentType: string): void;
79
+ continuePayment(): void;
80
+ gotoPaymentSelectPage(event: Event): void;
81
+ getContactDetails(obj: IRefundContactDetails): void;
82
+ resetOrderData(): void;
60
83
  }
@@ -0,0 +1,33 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PaymentViewService } from '../../services/payment-view/payment-view.service';
3
+ import { PaymentLibComponent } from '../../payment-lib.component';
4
+ export declare class PbaPaymentComponent implements OnInit {
5
+ private paymentLibComponent;
6
+ private paymentViewService;
7
+ pbaPayOrderRef: any;
8
+ viewStatus: string;
9
+ pbaAccountList: string[];
10
+ isPBAAccountHold: boolean;
11
+ errorMsg: any;
12
+ isCardPaymentSuccess: boolean;
13
+ isInSufficiantFund: boolean;
14
+ isPBAAccountNotExist: boolean;
15
+ isPBAServerError: boolean;
16
+ isGetPBAAccountSucceed: boolean;
17
+ selectedPbaAccount: string;
18
+ pbaAccountRef: string;
19
+ isPbaAccountSelected: boolean;
20
+ isCardPaymentSelected: boolean;
21
+ isPBADropdownSelected: boolean;
22
+ isContinueButtondisabled: boolean;
23
+ isPBAAccountPaymentSuccess: boolean;
24
+ pbaAccountrPaymentResult: any;
25
+ orgName: string;
26
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
27
+ ngOnInit(): void;
28
+ selectpbaaccount(args: any): void;
29
+ saveAndContinue(): void;
30
+ cardPayment(): void;
31
+ selectPaymentMethod(type: string): void;
32
+ gotoCasetransationPage(): void;
33
+ }
@@ -5,12 +5,17 @@ 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';
8
9
  import { PaymentLibComponent } from '../../payment-lib.component';
10
+ import { ActivatedRoute, Router } from '@angular/router';
9
11
  export declare class ProcessRefundComponent implements OnInit {
10
12
  private RefundsService;
13
+ private paymentViewService;
11
14
  private formBuilder;
12
15
  private OrderslistService;
13
16
  private paymentLibComponent;
17
+ private router;
18
+ private activeRoute;
14
19
  refundReference: string;
15
20
  refundlistsource: IRefundList;
16
21
  processRefundForm: FormGroup;
@@ -37,8 +42,12 @@ export declare class ProcessRefundComponent implements OnInit {
37
42
  isReasonInvalid: boolean;
38
43
  successMsg: string;
39
44
  navigationpage: string;
45
+ ccdCaseNumber: string;
46
+ isFromRefundListPage: boolean;
47
+ cpoDetails: any;
48
+ isCPODown: boolean;
40
49
  isConfirmButtondisabled: boolean;
41
- constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent);
50
+ constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
42
51
  ngOnInit(): void;
43
52
  checkRefundActions(code: string): void;
44
53
  processRefundSubmit(): void;
@@ -48,6 +57,8 @@ export declare class ProcessRefundComponent implements OnInit {
48
57
  showError: any;
49
58
  };
50
59
  loadRefundListPage(): void;
60
+ loadRefundsHomePage(): void;
51
61
  redirecttoRefundListPage(): void;
52
62
  resetForm(vals: any, field: any): void;
63
+ goToCaseReview(): void;
53
64
  }
@@ -1,27 +1,30 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { RefundsService } from '../../services/refunds/refunds.service';
3
+ import { NotificationService } from '../../services/notification/notification.service';
3
4
  import { FormBuilder, FormGroup } from '@angular/forms';
4
5
  import { IRefundList } from '../../interfaces/IRefundList';
5
- import { PaymentViewService } from '../../services/payment-view/payment-view.service';
6
- import { Router } from '@angular/router';
6
+ import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
+ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
8
9
  import { IRefundStatus } from '../../interfaces/IRefundStatus';
9
10
  import { PaymentLibComponent } from '../../payment-lib.component';
10
11
  export declare class RefundStatusComponent implements OnInit {
11
12
  private formBuilder;
12
13
  private refundService;
14
+ private notificationService;
13
15
  private paymentLibComponent;
14
- private paymentViewService;
15
- private router;
16
16
  private OrderslistService;
17
17
  LOGGEDINUSERROLES: string[];
18
18
  isOldPcipalOff: boolean;
19
19
  isNewPcipalOff: boolean;
20
20
  ccdCaseNumber: string;
21
21
  isTurnOff: boolean;
22
+ orderParty: string;
22
23
  refundStatusForm: FormGroup;
23
24
  selectedRefundReason: string;
24
25
  rejectedRefundList: IRefundList[];
26
+ notificationList: IRefundsNotifications;
27
+ notification: any;
25
28
  approvalStatus: string;
26
29
  rejectStatus: string;
27
30
  errorMessage: any;
@@ -38,6 +41,11 @@ export declare class RefundStatusComponent implements OnInit {
38
41
  refundHasError: boolean;
39
42
  refundReasons: any[];
40
43
  refundStatusHistories: IRefundStatus[];
44
+ refundNotifications: IRefundStatus[];
45
+ isResendOperationSuccess: boolean;
46
+ isEditDetailsClicked: boolean;
47
+ isEditAddressDeatilsClicked: boolean;
48
+ addressDetails: IRefundContactDetails;
41
49
  refundReference: string;
42
50
  refundAmount: string;
43
51
  refundCode: string;
@@ -48,9 +56,12 @@ export declare class RefundStatusComponent implements OnInit {
48
56
  isLastUpdatedByCurrentUser: boolean;
49
57
  isProcessRefund: boolean;
50
58
  changedAmount: number;
51
- constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
59
+ allowedRolesToAccessRefund: string[];
60
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
52
61
  ngOnInit(): void;
62
+ check4AllowedRoles2AccessRefund: () => boolean;
53
63
  getRefundsStatusHistoryList(): void;
64
+ getRefundsNotification(): void;
54
65
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
55
66
  loadCaseTransactionPage(): void;
56
67
  loadRefundListPage(): void;
@@ -64,5 +75,11 @@ export declare class RefundStatusComponent implements OnInit {
64
75
  getRefundListReason(refundListReason: any): void;
65
76
  getRefundAmount(amount: number): void;
66
77
  gotoReviewRefundConfirmationPage(): void;
78
+ gotoEditAddressDetails(note: IRefundsNotifications): void;
79
+ getContactDetails(obj: IRefundContactDetails): void;
80
+ gotoEditDetailsPage(note?: any): void;
81
+ submitEditDetail(): void;
82
+ putResend(notification: IRefundsNotifications): void;
83
+ gotoCasetransationPageCancelBtnClicked(Event: Event): void;
67
84
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
68
85
  }
@@ -0,0 +1,106 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { PaymentLibComponent } from '../../payment-lib.component';
3
+ import { IPayment } from '../../interfaces/IPayment';
4
+ import { IRemission } from '../../interfaces/IRemission';
5
+ import { IPaymentView } from '../../interfaces/IPaymentView';
6
+ import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
7
+ import { IFee } from '../../interfaces/IFee';
8
+ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
9
+ import { Router } from '@angular/router';
10
+ import { PaymentViewService } from '../../services/payment-view/payment-view.service';
11
+ import { OrderslistService } from '../../services/orderslist.service';
12
+ export declare class ServiceRequestComponent implements OnInit {
13
+ private paymentLibComponent;
14
+ private paymentViewService;
15
+ private OrderslistService;
16
+ private router;
17
+ LOGGEDINUSERROLES: string[];
18
+ viewStatus: string;
19
+ orderDetail: any[];
20
+ orderRef: string;
21
+ orderStatus: string;
22
+ orderParty: string;
23
+ orderCreated: Date;
24
+ orderCCDEvent: string;
25
+ orderFeesTotal: number;
26
+ orderTotalPayments: number;
27
+ orderRemissionTotal: number;
28
+ takePayment: boolean;
29
+ ccdCaseNumber: boolean;
30
+ isServiceRequest: string;
31
+ goToServiceRquestComponent: EventEmitter<any>;
32
+ servicerequest: string;
33
+ excReference: string;
34
+ paymentGroups: any[];
35
+ payments: IPayment[];
36
+ nonPayments: IPayment[];
37
+ allPayments: IPayment[];
38
+ remissions: IRemission[];
39
+ fees: IFee[];
40
+ errorMessage: string;
41
+ totalFees: number;
42
+ totalPayments: number;
43
+ totalNonOffPayments: number;
44
+ totalRemissions: number;
45
+ selectedOption: string;
46
+ dcnNumber: string;
47
+ paymentRef: string;
48
+ isTurnOff: boolean;
49
+ isNewPcipalOff: boolean;
50
+ isRefundRemission: boolean;
51
+ isOldPcipalOff: boolean;
52
+ isStrategicFixEnable: boolean;
53
+ isAddFeeBtnEnabled: boolean;
54
+ isExceptionRecord: boolean;
55
+ isUnprocessedRecordSelected: boolean;
56
+ exceptionRecordReference: string;
57
+ isAnyFeeGroupAvilable: boolean;
58
+ isHistoricGroupAvailable: boolean;
59
+ isBulkScanEnable: any;
60
+ isRemissionsMatch: boolean;
61
+ isRemoveBtnDisabled: boolean;
62
+ feeId: IFee;
63
+ clAmountDue: number;
64
+ unprocessedRecordCount: number;
65
+ isFeeRecordsExist: boolean;
66
+ isGrpOutstandingAmtPositive: boolean;
67
+ totalRefundAmount: Number;
68
+ caseType: String;
69
+ payment: IPayment;
70
+ paymentGroup: IPaymentGroup;
71
+ paymentView: IPaymentView;
72
+ isAddRemissionEnable: boolean;
73
+ orderRemissionDetails: any[];
74
+ orderLevelFees: IOrderReferenceFee[];
75
+ cpoDetails: any;
76
+ serviceRequestValue: string;
77
+ orderAddBtnEnable: boolean;
78
+ isCPODown: boolean;
79
+ test: boolean;
80
+ isPBA: boolean;
81
+ isIssueRefunfBtnEnable: boolean;
82
+ isAddRemissionBtnEnabled: boolean;
83
+ isRefundRemissionBtnEnable: boolean;
84
+ allowedRolesToAccessRefund: string[];
85
+ isFromServiceRequestPage: boolean;
86
+ navigationpage: string;
87
+ remissionFeeAmt: number;
88
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
89
+ ngOnInit(): void;
90
+ goToServiceRequestPage(): void;
91
+ goToCaseTransationPage(event: any): void;
92
+ chkForAddRemission(feeCode: string, feeId: number): boolean;
93
+ chkForPBAPayment(): boolean;
94
+ addRemission(fee: IFee): void;
95
+ addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
96
+ cancelRemoval(): void;
97
+ removeFee(fee: any): void;
98
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
99
+ chkIsRefundRemissionBtnEnable(): boolean;
100
+ check4AllowedRoles2AccessRefund: () => boolean;
101
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
102
+ issueRefund(payment: IPayment): void;
103
+ goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
104
+ goToPaymentViewComponent(paymentGroup: any): void;
105
+ resetOrderData(): void;
106
+ }
@@ -5,10 +5,13 @@ import { MatSort } from '@angular/material/sort';
5
5
  import { MatPaginator } from '@angular/material/paginator';
6
6
  import { IRefundList } from '../../interfaces/IRefundList';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
+ import { ActivatedRoute, Router } from '@angular/router';
8
9
  export declare class TableComponent {
9
10
  private paymentLibComponent;
10
11
  private cdRef;
11
12
  private OrderslistService;
13
+ private router;
14
+ private activeRoute;
12
15
  DATASOURCE: any[];
13
16
  STATUS: string;
14
17
  errorMessage: string;
@@ -16,12 +19,13 @@ export declare class TableComponent {
16
19
  displayedColumns: string[];
17
20
  dataSource: MatTableDataSource<any>;
18
21
  userLst: any;
22
+ serviceLst: any;
19
23
  actualcount: number;
20
24
  count: number;
21
25
  refundList: IRefundList[];
22
26
  paginator: MatPaginator;
23
27
  sort: MatSort;
24
- constructor(paymentLibComponent: PaymentLibComponent, cdRef: ChangeDetectorRef, OrderslistService: OrderslistService);
28
+ constructor(paymentLibComponent: PaymentLibComponent, cdRef: ChangeDetectorRef, OrderslistService: OrderslistService, router: Router, activeRoute: ActivatedRoute);
25
29
  ngOnInit(): void;
26
30
  /**
27
31
  * Set the paginator and sort after the view init since this component will
@@ -30,7 +34,7 @@ export declare class TableComponent {
30
34
  ngAfterViewInit(): void;
31
35
  applyFilter(filterValue: string): void;
32
36
  selectchange(args: any): void;
33
- goToRefundProcessComponent(refundReference: string, refundDate: IRefundList): void;
37
+ goToRefundProcessComponent(refundReference: string, refundData: IRefundList): void;
34
38
  goToRefundViewComponent(refundReference: string, refundData: IRefundList): void;
35
39
  goToCaseReview(ccdCaseNumber: string, refundData: IRefundList): void;
36
40
  }
@@ -19,4 +19,6 @@ export interface IFee {
19
19
  date_created?: string;
20
20
  date_updated?: string;
21
21
  amount_due?: number;
22
+ remission_enable?: boolean;
23
+ over_payment?: number;
22
24
  }
@@ -28,4 +28,5 @@ export interface IPayment {
28
28
  status_histories: IStatusHistory[];
29
29
  payment_group_reference: string;
30
30
  paymentGroupReference?: string;
31
+ refund_enable?: boolean;
31
32
  }
@@ -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
+ }
@@ -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,7 @@ 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;
14
17
  }
@@ -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,5 @@ export interface IRemission {
6
6
  ccd_case_number: string;
7
7
  fee_code: string;
8
8
  date_created: string;
9
+ fee_id: number;
9
10
  }