@hmcts/ccpay-web-component 5.0.1-beta18 → 5.0.1-beta182

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 +8709 -6391
  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 +750 -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 +215 -56
  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 +11 -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 +7 -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 +10 -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 +35 -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 +873 -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 +255 -66
  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 +11 -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 +7 -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 +8 -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 +35 -5
  74. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  75. package/fesm2015/hmcts-ccpay-web-component.js +3023 -971
  76. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  77. package/fesm5/hmcts-ccpay-web-component.js +8665 -6288
  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 +55 -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 +33 -6
  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 +5 -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 +4 -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 +5 -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,18 +33,32 @@ 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
+ changeRefundReason: string;
44
+ LOGGEDINUSERROLES: string[];
45
+ orderDetail: any[];
46
+ orderRef: string;
47
+ orderStatus: string;
48
+ orderParty: string;
49
+ orderCreated: Date;
50
+ orderCCDEvent: string;
51
+ takePayment: boolean;
52
+ orderFeesTotal: number;
53
+ orderTotalPayments: number;
54
+ orderRemissionTotal: number;
39
55
  cancelRemission: EventEmitter<void>;
40
56
  refundListReason: EventEmitter<{
41
57
  reason: string;
42
58
  code: string;
43
59
  }>;
44
60
  refundListAmount: EventEmitter<string>;
61
+ refundFees: EventEmitter<IFee[]>;
45
62
  refund: {
46
63
  reason: {
47
64
  duplicate: string;
@@ -50,6 +67,8 @@ export declare class AddRemissionComponent implements OnInit {
50
67
  other: string;
51
68
  };
52
69
  };
70
+ contactDetailsObj: IRefundContactDetails;
71
+ notification: any;
53
72
  remissionForm: FormGroup;
54
73
  hasErrors: boolean;
55
74
  viewStatus: string;
@@ -79,6 +98,7 @@ export declare class AddRemissionComponent implements OnInit {
79
98
  isPaymentSuccess: boolean;
80
99
  isRemissionApplied: boolean;
81
100
  remissionamt: number;
101
+ elementId: any;
82
102
  commonRefundReasons: any[];
83
103
  showReasonText: boolean;
84
104
  isRefundReasonsSelected: boolean;
@@ -87,6 +107,21 @@ export declare class AddRemissionComponent implements OnInit {
87
107
  refundReasons: IRefundReasons[];
88
108
  pattern1: string;
89
109
  pattern2: string;
110
+ sendOrderDetail: any[];
111
+ sendOrderRef: string;
112
+ paymentReference: string;
113
+ class: string;
114
+ errorMsg: any[];
115
+ totalRefundAmount: number;
116
+ quantityUpdated: number;
117
+ fullRefund: boolean;
118
+ allowedRefundAmount: number;
119
+ isRemissionsMatch: boolean;
120
+ paymentFees: IFee[];
121
+ paymentGroup: IPaymentGroup;
122
+ isStatusAllocated: boolean;
123
+ isFromCheckAnsPage: boolean;
124
+ refundAmtForFeeVolumes: number;
90
125
  component: {
91
126
  account_number: string;
92
127
  amount: number;
@@ -108,24 +143,41 @@ export declare class AddRemissionComponent implements OnInit {
108
143
  };
109
144
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
110
145
  ngOnInit(): void;
146
+ refundFeesList(): void;
147
+ readonly feesList: FormArray;
148
+ noneSelected(): boolean;
149
+ check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
111
150
  addRemission(): void;
112
151
  confirmRemission(): void;
113
152
  resetRemissionForm(val: any, field: any): void;
114
153
  addRemissionCode(): void;
115
154
  gotoAddRetroRemissionCodePage(): void;
116
155
  gotoCheckRetroRemissionPage(payment: IPayment): void;
156
+ gotoAmountRetroRemission(): void;
117
157
  gotoProcessRetroRemissionPage(): void;
158
+ gotoProcessRetroRemission(note?: IRefundContactDetails): void;
118
159
  confirmRetroRemission(): void;
119
160
  processRefund(): void;
120
161
  gotoIssueRefundConfirmation(payment: IPayment): void;
121
162
  gotoIssueRefundPage(): void;
163
+ gotoIssuePage(): void;
164
+ calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
165
+ gotoContactDetailsPage(note?: IRefundContactDetails): void;
166
+ getRefundReasons(): void;
167
+ getErrorClass(elementId: any): void;
122
168
  changeIssueRefundReason(): void;
123
169
  confirmIssueRefund(): void;
124
- confirmRetroRefund(): void;
170
+ gotoRefundReasonPage(): void;
125
171
  selectRadioButton(key: any, value: any): void;
126
172
  selectchange(args: any): void;
173
+ getContactDetails(obj: IRefundContactDetails, type: any): void;
174
+ gotoPartialFeeRefundScreen(): void;
127
175
  gotoServiceRequestPage(event: any): void;
176
+ gotoAddressPage(note?: IRefundContactDetails): void;
177
+ gotoRemissionSuccess(event: Event): void;
128
178
  gotoCasetransationPage(): void;
129
179
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
180
+ resetOrderData(): void;
181
+ changeRefundAmount(): void;
130
182
  getFormattedCurrency(currency: number): string | number;
131
183
  }
@@ -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,34 @@
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';
13
+ import { IFee } from '../../interfaces/IFee';
10
14
  export declare class RefundStatusComponent implements OnInit {
11
15
  private formBuilder;
12
16
  private refundService;
17
+ private notificationService;
13
18
  private paymentLibComponent;
14
- private paymentViewService;
15
- private router;
16
19
  private OrderslistService;
20
+ private paymentViewService;
17
21
  LOGGEDINUSERROLES: string[];
18
22
  isOldPcipalOff: boolean;
19
23
  isNewPcipalOff: boolean;
20
24
  ccdCaseNumber: string;
21
25
  isTurnOff: boolean;
26
+ orderParty: string;
22
27
  refundStatusForm: FormGroup;
23
28
  selectedRefundReason: string;
24
29
  rejectedRefundList: IRefundList[];
30
+ notificationList: any;
31
+ notification: any;
25
32
  approvalStatus: string;
26
33
  rejectStatus: string;
27
34
  errorMessage: any;
@@ -38,6 +45,11 @@ export declare class RefundStatusComponent implements OnInit {
38
45
  refundHasError: boolean;
39
46
  refundReasons: any[];
40
47
  refundStatusHistories: IRefundStatus[];
48
+ refundNotifications: IRefundStatus[];
49
+ isResendOperationSuccess: boolean;
50
+ isEditDetailsClicked: boolean;
51
+ isEditAddressDeatilsClicked: boolean;
52
+ addressDetails: IRefundContactDetails;
41
53
  refundReference: string;
42
54
  refundAmount: string;
43
55
  refundCode: string;
@@ -48,21 +60,36 @@ export declare class RefundStatusComponent implements OnInit {
48
60
  isLastUpdatedByCurrentUser: boolean;
49
61
  isProcessRefund: boolean;
50
62
  changedAmount: number;
51
- constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
63
+ isRemissionsMatch: boolean;
64
+ payment: IPayment;
65
+ changeRefundReason: string;
66
+ fees: IFee[];
67
+ allowedRolesToAccessRefund: string[];
68
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService, paymentViewService: PaymentViewService);
52
69
  ngOnInit(): void;
70
+ check4AllowedRoles2AccessRefund: () => boolean;
53
71
  getRefundsStatusHistoryList(): void;
72
+ getRefundsNotification(): void;
54
73
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
55
74
  loadCaseTransactionPage(): void;
56
75
  loadRefundListPage(): void;
57
76
  gotoReviewDetailsPage(event: any): void;
58
77
  gotoReviewAndReSubmitPage(): void;
59
- gotoRefundReasonPage(): void;
78
+ gotoRefundReasonPage(refundReason: string): void;
60
79
  gotoAmountPage(): void;
61
80
  goToReviewAndSubmitView(): void;
62
81
  resetRemissionForm(val: any, field: any): void;
63
82
  selectRadioButton(key: any, value: any): void;
64
83
  getRefundListReason(refundListReason: any): void;
65
84
  getRefundAmount(amount: number): void;
85
+ getRefundFees(fees: IFee[]): void;
66
86
  gotoReviewRefundConfirmationPage(): void;
87
+ gotoEditAddressDetails(note: IRefundsNotifications): void;
88
+ getContactDetails(obj: IRefundContactDetails): void;
89
+ getContactDetailsForRefundList(obj: IRefundContactDetails): void;
90
+ gotoEditDetailsPage(note?: any): void;
91
+ submitEditDetail(): void;
92
+ putResend(notification: IRefundsNotifications): void;
93
+ gotoCasetransationPageCancelBtnClicked(Event: Event): void;
67
94
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
68
95
  }
@@ -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,9 @@ export interface IFee {
19
19
  date_created?: string;
20
20
  date_updated?: string;
21
21
  amount_due?: number;
22
+ remission_enable?: boolean;
23
+ refund_amount?: number;
24
+ updatedVolume?: number;
25
+ selected?: any;
26
+ issue_refund_add_refund_add_remission: boolean;
22
27
  }
@@ -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,8 @@ export interface IRefundList {
10
11
  description: string;
11
12
  name: string;
12
13
  };
14
+ contact_details: IRefundContactDetails;
13
15
  user_full_name: string;
16
+ service_type: string;
17
+ code: string;
14
18
  }