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

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 (96) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +8372 -6290
  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 +628 -206
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +68 -40
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +346 -0
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +95 -19
  10. package/esm2015/lib/components/pba-payment/pba-payment.component.js +199 -0
  11. package/esm2015/lib/components/process-refund/process-refund.component.js +100 -9
  12. package/esm2015/lib/components/refund-list/refund-list.component.js +2 -2
  13. package/esm2015/lib/components/refund-status/refund-status.component.js +164 -70
  14. package/esm2015/lib/components/service-request/service-request.component.js +626 -0
  15. package/esm2015/lib/components/status-history/status-history.component.js +2 -2
  16. package/esm2015/lib/components/table/table.component.js +26 -9
  17. package/esm2015/lib/interfaces/IFee.js +3 -1
  18. package/esm2015/lib/interfaces/IPayment.js +3 -1
  19. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  20. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  21. package/esm2015/lib/interfaces/IRefundList.js +3 -1
  22. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  23. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  24. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  25. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  26. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +18 -2
  27. package/esm2015/lib/payment-lib.component.js +58 -9
  28. package/esm2015/lib/payment-lib.module.js +8 -4
  29. package/esm2015/lib/payment-lib.service.js +16 -1
  30. package/esm2015/lib/services/notification/notification.service.js +85 -0
  31. package/esm2015/lib/services/orderslist.service.js +193 -1
  32. package/esm2015/lib/services/payment-view/payment-view.service.js +29 -1
  33. package/esm2015/lib/services/refunds/refunds.service.js +10 -1
  34. package/esm2015/lib/services/shared/error-handler.service.js +43 -5
  35. package/esm5/hmcts-ccpay-web-component.js +42 -38
  36. package/esm5/lib/components/add-remission/add-remission.component.js +729 -214
  37. package/esm5/lib/components/case-transactions/case-transactions.component.js +74 -44
  38. package/esm5/lib/components/contact-details/contact-details.component.js +370 -0
  39. package/esm5/lib/components/payment-view/payment-view.component.js +99 -19
  40. package/esm5/lib/components/pba-payment/pba-payment.component.js +216 -0
  41. package/esm5/lib/components/process-refund/process-refund.component.js +103 -9
  42. package/esm5/lib/components/refund-list/refund-list.component.js +2 -2
  43. package/esm5/lib/components/refund-status/refund-status.component.js +195 -81
  44. package/esm5/lib/components/service-request/service-request.component.js +702 -0
  45. package/esm5/lib/components/status-history/status-history.component.js +2 -2
  46. package/esm5/lib/components/table/table.component.js +25 -10
  47. package/esm5/lib/interfaces/IFee.js +3 -1
  48. package/esm5/lib/interfaces/IPayment.js +3 -1
  49. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  50. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  51. package/esm5/lib/interfaces/IRefundList.js +3 -1
  52. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  53. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  54. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
  55. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  56. package/esm5/lib/interfaces/PostRefundRetroRemission.js +14 -2
  57. package/esm5/lib/payment-lib.component.js +54 -7
  58. package/esm5/lib/payment-lib.module.js +8 -4
  59. package/esm5/lib/payment-lib.service.js +23 -1
  60. package/esm5/lib/services/notification/notification.service.js +89 -0
  61. package/esm5/lib/services/orderslist.service.js +256 -1
  62. package/esm5/lib/services/payment-view/payment-view.service.js +42 -1
  63. package/esm5/lib/services/refunds/refunds.service.js +16 -1
  64. package/esm5/lib/services/shared/error-handler.service.js +43 -5
  65. package/fesm2015/hmcts-ccpay-web-component.js +2371 -559
  66. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  67. package/fesm5/hmcts-ccpay-web-component.js +8393 -6269
  68. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  69. package/hmcts-ccpay-web-component.d.ts +41 -37
  70. package/hmcts-ccpay-web-component.metadata.json +1 -1
  71. package/lib/components/add-remission/add-remission.component.d.ts +44 -3
  72. package/lib/components/case-transactions/case-transactions.component.d.ts +7 -3
  73. package/lib/components/contact-details/contact-details.component.d.ts +41 -0
  74. package/lib/components/payment-view/payment-view.component.d.ts +13 -3
  75. package/lib/components/pba-payment/pba-payment.component.d.ts +27 -0
  76. package/lib/components/process-refund/process-refund.component.d.ts +12 -1
  77. package/lib/components/refund-status/refund-status.component.d.ts +22 -5
  78. package/lib/components/service-request/service-request.component.d.ts +105 -0
  79. package/lib/components/table/table.component.d.ts +5 -2
  80. package/lib/interfaces/IFee.d.ts +1 -0
  81. package/lib/interfaces/IPayment.d.ts +1 -0
  82. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  83. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  84. package/lib/interfaces/IRefundList.d.ts +2 -0
  85. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  86. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  87. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
  88. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  89. package/lib/interfaces/PostRefundRetroRemission.d.ts +6 -1
  90. package/lib/payment-lib.component.d.ts +19 -1
  91. package/lib/payment-lib.service.d.ts +3 -0
  92. package/lib/services/notification/notification.service.d.ts +15 -0
  93. package/lib/services/orderslist.service.d.ts +34 -0
  94. package/lib/services/payment-view/payment-view.service.d.ts +6 -2
  95. package/lib/services/refunds/refunds.service.d.ts +2 -0
  96. 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,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,7 @@ export declare class AddRemissionComponent implements OnInit {
50
63
  other: string;
51
64
  };
52
65
  };
66
+ contactDetailsObj: IRefundContactDetails;
53
67
  remissionForm: FormGroup;
54
68
  hasErrors: boolean;
55
69
  viewStatus: string;
@@ -79,6 +93,7 @@ export declare class AddRemissionComponent implements OnInit {
79
93
  isPaymentSuccess: boolean;
80
94
  isRemissionApplied: boolean;
81
95
  remissionamt: number;
96
+ elementId: any;
82
97
  commonRefundReasons: any[];
83
98
  showReasonText: boolean;
84
99
  isRefundReasonsSelected: boolean;
@@ -87,6 +102,19 @@ export declare class AddRemissionComponent implements OnInit {
87
102
  refundReasons: IRefundReasons[];
88
103
  pattern1: string;
89
104
  pattern2: string;
105
+ sendOrderDetail: any[];
106
+ sendOrderRef: string;
107
+ paymentReference: string;
108
+ class: string;
109
+ errorMsg: any[];
110
+ totalRefundAmount: number;
111
+ quantityUpdated: number;
112
+ fullRefund: boolean;
113
+ allowedRefundAmount: number;
114
+ isRemissionsMatch: boolean;
115
+ paymentFees: IFee[];
116
+ paymentGroup: IPaymentGroup;
117
+ isStatusAllocated: boolean;
90
118
  component: {
91
119
  account_number: string;
92
120
  amount: number;
@@ -108,24 +136,37 @@ export declare class AddRemissionComponent implements OnInit {
108
136
  };
109
137
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
110
138
  ngOnInit(): void;
139
+ refundFeesList(): void;
140
+ readonly feesList: FormArray;
141
+ noneSelected(): boolean;
142
+ check_en(v1: any): void;
111
143
  addRemission(): void;
112
144
  confirmRemission(): void;
113
145
  resetRemissionForm(val: any, field: any): void;
114
146
  addRemissionCode(): void;
115
147
  gotoAddRetroRemissionCodePage(): void;
116
148
  gotoCheckRetroRemissionPage(payment: IPayment): void;
149
+ gotoAmountRetroRemission(): void;
117
150
  gotoProcessRetroRemissionPage(): void;
151
+ gotoProcessRetroRemission(): void;
118
152
  confirmRetroRemission(): void;
119
153
  processRefund(): void;
120
154
  gotoIssueRefundConfirmation(payment: IPayment): void;
121
155
  gotoIssueRefundPage(): void;
156
+ gotoIssuePage(): void;
157
+ gotoContactDetailsPage(): void;
158
+ getRefundReasons(): void;
159
+ getErrorClass(elementId: any): void;
122
160
  changeIssueRefundReason(): void;
123
161
  confirmIssueRefund(): void;
124
- confirmRetroRefund(): void;
125
162
  selectRadioButton(key: any, value: any): void;
126
163
  selectchange(args: any): void;
164
+ getContactDetails(obj: IRefundContactDetails, type: any): void;
127
165
  gotoServiceRequestPage(event: any): void;
166
+ gotoAddressPage(): void;
167
+ gotoRemissionSuccess(event: Event): void;
128
168
  gotoCasetransationPage(): void;
129
169
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
170
+ resetOrderData(): void;
130
171
  getFormattedCurrency(currency: number): string | number;
131
172
  }
@@ -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;
@@ -123,5 +125,7 @@ export declare class CaseTransactionsComponent implements OnInit {
123
125
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
124
126
  chkIsRefundRemissionBtnEnable(): boolean;
125
127
  check4AllowedRoles2AccessRefund: () => boolean;
128
+ check4AllowedRoles2AccessPBApayment: () => boolean;
126
129
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
130
+ loadPBAAccountPage(orderRef: IPayment): void;
127
131
  }
@@ -0,0 +1,41 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { PaymentLibComponent } from '../../payment-lib.component';
4
+ export declare class ContactDetailsComponent implements OnInit {
5
+ private formBuilder;
6
+ private paymentLibComponent;
7
+ isEditOperation: boolean;
8
+ addressObj: any;
9
+ assignContactDetails: EventEmitter<any>;
10
+ redirectToIssueRefund: EventEmitter<any>;
11
+ pageTitle: string;
12
+ errorMessage: string;
13
+ isEmailSAddressClicked: boolean;
14
+ isPostcodeClicked: boolean;
15
+ isManualAddressClicked: boolean;
16
+ emailAddressForm: FormGroup;
17
+ postCodeForm: FormGroup;
18
+ manualAddressForm: FormGroup;
19
+ isEmailEmpty: boolean;
20
+ emailHasError: boolean;
21
+ isPostcodeEmpty: boolean;
22
+ postcodeHasError: boolean;
23
+ isaddressLine1Empty: boolean;
24
+ addressLine1HasError: boolean;
25
+ addressLine2HasError: boolean;
26
+ isTownOrCityEmpty: boolean;
27
+ townOrCityHasError: boolean;
28
+ isCountyEmpty: boolean;
29
+ countyHasError: boolean;
30
+ isMPostcodeEmpty: boolean;
31
+ mpostcodeHasError: boolean;
32
+ isCountryEmpty: boolean;
33
+ constructor(formBuilder: FormBuilder, paymentLibComponent: PaymentLibComponent);
34
+ ngOnInit(): void;
35
+ setEditDetails(): void;
36
+ selectContactOption(type: any, isLinkedClied: any): void;
37
+ finalFormSubmit(): void;
38
+ postcodeValidation(): void;
39
+ redirection(event: any): void;
40
+ resetForm(val: any, field: any): void;
41
+ }
@@ -17,11 +17,17 @@ 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[];
25
31
  paymentGroup: IPaymentGroup;
26
32
  errorMessage: string;
27
33
  ccdCaseNumber: string;
@@ -40,6 +46,9 @@ export declare class PaymentViewComponent implements OnInit {
40
46
  remissionFeeAmt: number;
41
47
  isRefundRemissionBtnEnable: boolean;
42
48
  serviceReference: string;
49
+ isFromServiceRequestPage: boolean;
50
+ isFromPaymentDetailPage: boolean;
51
+ paymentFees: IFee[];
43
52
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
44
53
  ngAfterContentChecked(): void;
45
54
  ngOnInit(): void;
@@ -58,4 +67,5 @@ export declare class PaymentViewComponent implements OnInit {
58
67
  chkForAddRemission(feeCode: string): boolean;
59
68
  check4AllowedRoles2AccessRefund: () => boolean;
60
69
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
70
+ resetOrderData(): void;
61
71
  }
@@ -0,0 +1,27 @@
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
+ errorMsg: any;
11
+ isCardPaymentSuccess: boolean;
12
+ isInSufficiantFund: boolean;
13
+ isPBAAccountNotExist: boolean;
14
+ isPBAServerError: boolean;
15
+ isGetPBAAccountSucceed: boolean;
16
+ selectedPbaAccount: string;
17
+ pbaAccountRef: string;
18
+ isContinueButtondisabled: boolean;
19
+ isPBAAccountPaymentSuccess: boolean;
20
+ pbaAccountrPaymentResult: any;
21
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
22
+ ngOnInit(): void;
23
+ selectpbaaccount(args: any): void;
24
+ saveAndContinue(): void;
25
+ cardPayment(): void;
26
+ gotoCasetransationPage(): void;
27
+ }
@@ -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: IRefundsNotifications;
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(): void;
81
+ submitEditDetail(): void;
82
+ putResend(notification: IRefundsNotifications): void;
83
+ gotoCasetransationPageCancelBtnClicked(obj: any): void;
67
84
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
68
85
  }
@@ -0,0 +1,105 @@
1
+ import { OnInit } 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
+ servicerequest: string;
32
+ excReference: string;
33
+ paymentGroups: any[];
34
+ payments: IPayment[];
35
+ nonPayments: IPayment[];
36
+ allPayments: IPayment[];
37
+ remissions: IRemission[];
38
+ fees: IFee[];
39
+ errorMessage: string;
40
+ totalFees: number;
41
+ totalPayments: number;
42
+ totalNonOffPayments: number;
43
+ totalRemissions: number;
44
+ selectedOption: string;
45
+ dcnNumber: string;
46
+ paymentRef: string;
47
+ isTurnOff: boolean;
48
+ isNewPcipalOff: boolean;
49
+ isRefundRemission: boolean;
50
+ isOldPcipalOff: boolean;
51
+ isStrategicFixEnable: boolean;
52
+ isAddFeeBtnEnabled: boolean;
53
+ isExceptionRecord: boolean;
54
+ isUnprocessedRecordSelected: boolean;
55
+ exceptionRecordReference: string;
56
+ isAnyFeeGroupAvilable: boolean;
57
+ isHistoricGroupAvailable: boolean;
58
+ isBulkScanEnable: any;
59
+ isRemissionsMatch: boolean;
60
+ isRemoveBtnDisabled: boolean;
61
+ feeId: IFee;
62
+ clAmountDue: number;
63
+ unprocessedRecordCount: number;
64
+ isFeeRecordsExist: boolean;
65
+ isGrpOutstandingAmtPositive: boolean;
66
+ totalRefundAmount: Number;
67
+ caseType: String;
68
+ payment: IPayment;
69
+ paymentGroup: IPaymentGroup;
70
+ paymentView: IPaymentView;
71
+ isAddRemissionEnable: boolean;
72
+ orderRemissionDetails: any[];
73
+ orderLevelFees: IOrderReferenceFee[];
74
+ cpoDetails: any;
75
+ serviceRequestValue: string;
76
+ orderAddBtnEnable: boolean;
77
+ isCPODown: boolean;
78
+ test: boolean;
79
+ isPBA: boolean;
80
+ isIssueRefunfBtnEnable: boolean;
81
+ isAddRemissionBtnEnabled: boolean;
82
+ isRefundRemissionBtnEnable: boolean;
83
+ allowedRolesToAccessRefund: string[];
84
+ isFromServiceRequestPage: boolean;
85
+ navigationpage: string;
86
+ remissionFeeAmt: number;
87
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
88
+ ngOnInit(): void;
89
+ goToCaseTransationPage(event: any): void;
90
+ chkForAddRemission(feeCode: string): boolean;
91
+ chkForPBAPayment(): boolean;
92
+ addRemission(fee: IFee): void;
93
+ addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
94
+ cancelRemoval(): void;
95
+ removeFee(fee: any): void;
96
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
97
+ chkIsRefundRemissionBtnEnable(): boolean;
98
+ check4AllowedRoles2AccessRefund: () => boolean;
99
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
100
+ issueRefund(payment: IPayment): void;
101
+ goToServiceRequestPage(event: any): void;
102
+ goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
103
+ goToPaymentViewComponent(paymentGroup: any): void;
104
+ resetOrderData(): void;
105
+ }
@@ -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;
@@ -21,7 +24,7 @@ export declare class TableComponent {
21
24
  refundList: IRefundList[];
22
25
  paginator: MatPaginator;
23
26
  sort: MatSort;
24
- constructor(paymentLibComponent: PaymentLibComponent, cdRef: ChangeDetectorRef, OrderslistService: OrderslistService);
27
+ constructor(paymentLibComponent: PaymentLibComponent, cdRef: ChangeDetectorRef, OrderslistService: OrderslistService, router: Router, activeRoute: ActivatedRoute);
25
28
  ngOnInit(): void;
26
29
  /**
27
30
  * Set the paginator and sort after the view init since this component will
@@ -30,7 +33,7 @@ export declare class TableComponent {
30
33
  ngAfterViewInit(): void;
31
34
  applyFilter(filterValue: string): void;
32
35
  selectchange(args: any): void;
33
- goToRefundProcessComponent(refundReference: string, refundDate: IRefundList): void;
36
+ goToRefundProcessComponent(refundReference: string, refundData: IRefundList): void;
34
37
  goToRefundViewComponent(refundReference: string, refundData: IRefundList): void;
35
38
  goToCaseReview(ccdCaseNumber: string, refundData: IRefundList): void;
36
39
  }
@@ -19,4 +19,5 @@ export interface IFee {
19
19
  date_created?: string;
20
20
  date_updated?: string;
21
21
  amount_due?: number;
22
+ remission_enable?: boolean;
22
23
  }
@@ -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,6 @@ export interface IRefundList {
10
11
  description: string;
11
12
  name: string;
12
13
  };
14
+ contact_details: IRefundContactDetails;
13
15
  user_full_name: string;
14
16
  }
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ export declare class IserviceRequestCardPayment {
2
+ amount: string;
3
+ currency: string;
4
+ language: string;
5
+ constructor(amount: string);
6
+ }
@@ -0,0 +1,7 @@
1
+ export declare class IserviceRequestPbaPayment {
2
+ account_number: string;
3
+ amount: string;
4
+ currency: string;
5
+ customer_reference: string;
6
+ constructor(account_number: string, amount: string, customer_reference: string);
7
+ }
@@ -1,4 +1,6 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
1
2
  export declare class PostIssueRefundRetroRemission {
2
3
  remissionReference: string;
3
- constructor(remissionReference: string);
4
+ contact_details: IRefundContactDetails;
5
+ constructor(remissionReference: string, contactDeatils: any);
4
6
  }
@@ -1,5 +1,10 @@
1
+ import { IRefundContactDetails } from "./IRefundContactDetails";
1
2
  export declare class PostRefundRetroRemission {
3
+ ccd_case_number: string;
2
4
  payment_reference: string;
3
5
  refund_reason: string;
4
- constructor(payment_reference: string, refund_reason: string);
6
+ refund_amount: any;
7
+ fees: any[];
8
+ contact_details: IRefundContactDetails;
9
+ constructor(ccd_case_number: string, payment_reference: string, refund_reason: string, refund_amount: any, fees: any[], contact_details: any);
5
10
  }