@hmcts/ccpay-web-component 5.0.1-beta17 → 5.0.1-beta172

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