@hmcts/ccpay-web-component 5.0.1-beta16 → 5.0.1-beta160

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 (102) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +8447 -6427
  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 +296 -170
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +114 -80
  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 +105 -19
  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 +177 -51
  15. package/esm2015/lib/components/service-request/service-request.component.js +629 -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 +3 -1
  20. package/esm2015/lib/interfaces/IPayment.js +3 -1
  21. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  22. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  23. package/esm2015/lib/interfaces/IRefundList.js +5 -1
  24. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  25. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  26. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +32 -0
  27. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  28. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -2
  29. package/esm2015/lib/payment-lib.component.js +62 -9
  30. package/esm2015/lib/payment-lib.module.js +8 -3
  31. package/esm2015/lib/payment-lib.service.js +31 -1
  32. package/esm2015/lib/services/notification/notification.service.js +85 -0
  33. package/esm2015/lib/services/orderslist.service.js +193 -1
  34. package/esm2015/lib/services/payment-view/payment-view.service.js +35 -1
  35. package/esm2015/lib/services/refunds/refunds.service.js +25 -3
  36. package/esm2015/lib/services/shared/error-handler.service.js +38 -5
  37. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  38. package/esm5/hmcts-ccpay-web-component.js +42 -38
  39. package/esm5/lib/components/add-remission/add-remission.component.js +324 -171
  40. package/esm5/lib/components/case-transactions/case-transactions.component.js +123 -84
  41. package/esm5/lib/components/contact-details/contact-details.component.js +461 -0
  42. package/esm5/lib/components/fee-summary/fee-summary.component.js +1 -3
  43. package/esm5/lib/components/payment-view/payment-view.component.js +112 -19
  44. package/esm5/lib/components/pba-payment/pba-payment.component.js +269 -0
  45. package/esm5/lib/components/process-refund/process-refund.component.js +103 -9
  46. package/esm5/lib/components/refund-list/refund-list.component.js +4 -4
  47. package/esm5/lib/components/refund-status/refund-status.component.js +213 -61
  48. package/esm5/lib/components/service-request/service-request.component.js +721 -0
  49. package/esm5/lib/components/status-history/status-history.component.js +2 -2
  50. package/esm5/lib/components/table/table.component.js +44 -19
  51. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  52. package/esm5/lib/interfaces/IFee.js +3 -1
  53. package/esm5/lib/interfaces/IPayment.js +3 -1
  54. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  55. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  56. package/esm5/lib/interfaces/IRefundList.js +5 -1
  57. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  58. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  59. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  60. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  61. package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
  62. package/esm5/lib/payment-lib.component.js +58 -7
  63. package/esm5/lib/payment-lib.module.js +8 -3
  64. package/esm5/lib/payment-lib.service.js +45 -1
  65. package/esm5/lib/services/notification/notification.service.js +89 -0
  66. package/esm5/lib/services/orderslist.service.js +256 -1
  67. package/esm5/lib/services/payment-view/payment-view.service.js +48 -1
  68. package/esm5/lib/services/refunds/refunds.service.js +31 -3
  69. package/esm5/lib/services/shared/error-handler.service.js +38 -5
  70. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  71. package/fesm2015/hmcts-ccpay-web-component.js +2282 -515
  72. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  73. package/fesm5/hmcts-ccpay-web-component.js +8423 -6366
  74. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  75. package/hmcts-ccpay-web-component.d.ts +41 -37
  76. package/hmcts-ccpay-web-component.metadata.json +1 -1
  77. package/lib/components/add-remission/add-remission.component.d.ts +23 -1
  78. package/lib/components/case-transactions/case-transactions.component.d.ts +8 -3
  79. package/lib/components/contact-details/contact-details.component.d.ts +49 -0
  80. package/lib/components/payment-view/payment-view.component.d.ts +14 -3
  81. package/lib/components/pba-payment/pba-payment.component.d.ts +33 -0
  82. package/lib/components/process-refund/process-refund.component.d.ts +12 -1
  83. package/lib/components/refund-status/refund-status.component.d.ts +23 -5
  84. package/lib/components/service-request/service-request.component.d.ts +106 -0
  85. package/lib/components/table/table.component.d.ts +6 -4
  86. package/lib/interfaces/IFee.d.ts +1 -0
  87. package/lib/interfaces/IPayment.d.ts +1 -0
  88. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  89. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  90. package/lib/interfaces/IRefundList.d.ts +3 -0
  91. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  92. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  93. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +8 -0
  94. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  95. package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
  96. package/lib/payment-lib.component.d.ts +20 -1
  97. package/lib/payment-lib.service.d.ts +6 -0
  98. package/lib/services/notification/notification.service.d.ts +15 -0
  99. package/lib/services/orderslist.service.d.ts +34 -0
  100. package/lib/services/payment-view/payment-view.service.d.ts +5 -0
  101. package/lib/services/refunds/refunds.service.d.ts +2 -0
  102. package/package.json +1 -1
@@ -7,6 +7,7 @@ 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';
@@ -30,12 +31,22 @@ export declare class AddRemissionComponent implements OnInit {
30
31
  isOldPcipalOff: boolean;
31
32
  isNewPcipalOff: boolean;
32
33
  isStrategicFixEnable: boolean;
33
- orderStatus: string;
34
34
  paidAmount: any;
35
35
  isFromRefundListPage: boolean;
36
36
  isFromPaymentDetailPage: boolean;
37
37
  isFromServiceRequestPage: boolean;
38
38
  feeamount: number;
39
+ LOGGEDINUSERROLES: string[];
40
+ orderDetail: any[];
41
+ orderRef: string;
42
+ orderStatus: string;
43
+ orderParty: string;
44
+ orderCreated: Date;
45
+ orderCCDEvent: string;
46
+ takePayment: boolean;
47
+ orderFeesTotal: number;
48
+ orderTotalPayments: number;
49
+ orderRemissionTotal: number;
39
50
  cancelRemission: EventEmitter<void>;
40
51
  refundListReason: EventEmitter<{
41
52
  reason: string;
@@ -50,6 +61,8 @@ export declare class AddRemissionComponent implements OnInit {
50
61
  other: string;
51
62
  };
52
63
  };
64
+ contactDetailsObj: IRefundContactDetails;
65
+ notification: any;
53
66
  remissionForm: FormGroup;
54
67
  hasErrors: boolean;
55
68
  viewStatus: string;
@@ -87,6 +100,8 @@ export declare class AddRemissionComponent implements OnInit {
87
100
  refundReasons: IRefundReasons[];
88
101
  pattern1: string;
89
102
  pattern2: string;
103
+ sendOrderDetail: any[];
104
+ sendOrderRef: string;
90
105
  component: {
91
106
  account_number: string;
92
107
  amount: number;
@@ -114,18 +129,25 @@ export declare class AddRemissionComponent implements OnInit {
114
129
  addRemissionCode(): void;
115
130
  gotoAddRetroRemissionCodePage(): void;
116
131
  gotoCheckRetroRemissionPage(payment: IPayment): void;
132
+ gotoAmountRetroRemission(): void;
117
133
  gotoProcessRetroRemissionPage(): void;
134
+ gotoProcessRetroRemission(note?: IRefundContactDetails): void;
118
135
  confirmRetroRemission(): void;
119
136
  processRefund(): void;
120
137
  gotoIssueRefundConfirmation(payment: IPayment): void;
121
138
  gotoIssueRefundPage(): void;
139
+ gotoContactDetailsPage(note?: IRefundContactDetails): void;
122
140
  changeIssueRefundReason(): void;
123
141
  confirmIssueRefund(): void;
124
142
  confirmRetroRefund(): void;
125
143
  selectRadioButton(key: any, value: any): void;
126
144
  selectchange(args: any): void;
145
+ getContactDetails(obj: IRefundContactDetails, type: any): void;
127
146
  gotoServiceRequestPage(event: any): void;
147
+ gotoAddressPage(note?: IRefundContactDetails): void;
148
+ gotoRemissionSuccess(event: Event): void;
128
149
  gotoCasetransationPage(): void;
129
150
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
151
+ resetOrderData(): void;
130
152
  getFormattedCurrency(currency: number): string | number;
131
153
  }
@@ -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,12 +47,15 @@ export declare class PaymentViewComponent implements OnInit {
40
47
  remissionFeeAmt: number;
41
48
  isRefundRemissionBtnEnable: boolean;
42
49
  serviceReference: string;
50
+ isFromServiceRequestPage: boolean;
51
+ isFromPaymentDetailPage: boolean;
43
52
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
44
53
  ngAfterContentChecked(): void;
45
54
  ngOnInit(): void;
46
55
  readonly isCardPayment: boolean;
47
56
  readonly isTelephonyPayment: boolean;
48
57
  goToPaymentList(): void;
58
+ goToServiceRequestPage(): void;
49
59
  goToCaseTransationPage(event: any): void;
50
60
  addRemission(fee: IFee): void;
51
61
  checkForFees(paymentGroup: any): boolean;
@@ -58,4 +68,5 @@ export declare class PaymentViewComponent implements OnInit {
58
68
  chkForAddRemission(feeCode: string): boolean;
59
69
  check4AllowedRoles2AccessRefund: () => boolean;
60
70
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
71
+ resetOrderData(): void;
61
72
  }
@@ -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,30 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { RefundsService } from '../../services/refunds/refunds.service';
3
+ import { NotificationService } from '../../services/notification/notification.service';
3
4
  import { FormBuilder, FormGroup } from '@angular/forms';
4
5
  import { IRefundList } from '../../interfaces/IRefundList';
5
- import { PaymentViewService } from '../../services/payment-view/payment-view.service';
6
- import { Router } from '@angular/router';
6
+ import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
+ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
8
9
  import { IRefundStatus } from '../../interfaces/IRefundStatus';
9
10
  import { PaymentLibComponent } from '../../payment-lib.component';
10
11
  export declare class RefundStatusComponent implements OnInit {
11
12
  private formBuilder;
12
13
  private refundService;
14
+ private notificationService;
13
15
  private paymentLibComponent;
14
- private paymentViewService;
15
- private router;
16
16
  private OrderslistService;
17
17
  LOGGEDINUSERROLES: string[];
18
18
  isOldPcipalOff: boolean;
19
19
  isNewPcipalOff: boolean;
20
20
  ccdCaseNumber: string;
21
21
  isTurnOff: boolean;
22
+ orderParty: string;
22
23
  refundStatusForm: FormGroup;
23
24
  selectedRefundReason: string;
24
25
  rejectedRefundList: IRefundList[];
26
+ notificationList: IRefundsNotifications;
27
+ notification: any;
25
28
  approvalStatus: string;
26
29
  rejectStatus: string;
27
30
  errorMessage: any;
@@ -38,6 +41,11 @@ export declare class RefundStatusComponent implements OnInit {
38
41
  refundHasError: boolean;
39
42
  refundReasons: any[];
40
43
  refundStatusHistories: IRefundStatus[];
44
+ refundNotifications: IRefundStatus[];
45
+ isResendOperationSuccess: boolean;
46
+ isEditDetailsClicked: boolean;
47
+ isEditAddressDeatilsClicked: boolean;
48
+ addressDetails: IRefundContactDetails;
41
49
  refundReference: string;
42
50
  refundAmount: string;
43
51
  refundCode: string;
@@ -48,9 +56,12 @@ export declare class RefundStatusComponent implements OnInit {
48
56
  isLastUpdatedByCurrentUser: boolean;
49
57
  isProcessRefund: boolean;
50
58
  changedAmount: number;
51
- constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
59
+ allowedRolesToAccessRefund: string[];
60
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
52
61
  ngOnInit(): void;
62
+ check4AllowedRoles2AccessRefund: () => boolean;
53
63
  getRefundsStatusHistoryList(): void;
64
+ getRefundsNotification(): void;
54
65
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
55
66
  loadCaseTransactionPage(): void;
56
67
  loadRefundListPage(): void;
@@ -64,5 +75,12 @@ 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
+ getContactDetailsForRefundList(obj: IRefundContactDetails): void;
81
+ gotoEditDetailsPage(note?: any): void;
82
+ submitEditDetail(): void;
83
+ putResend(notification: IRefundsNotifications): void;
84
+ gotoCasetransationPageCancelBtnClicked(Event: Event): void;
67
85
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
68
86
  }
@@ -0,0 +1,106 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { PaymentLibComponent } from '../../payment-lib.component';
3
+ import { IPayment } from '../../interfaces/IPayment';
4
+ import { IRemission } from '../../interfaces/IRemission';
5
+ import { IPaymentView } from '../../interfaces/IPaymentView';
6
+ import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
7
+ import { IFee } from '../../interfaces/IFee';
8
+ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
9
+ import { Router } from '@angular/router';
10
+ import { PaymentViewService } from '../../services/payment-view/payment-view.service';
11
+ import { OrderslistService } from '../../services/orderslist.service';
12
+ export declare class ServiceRequestComponent implements OnInit {
13
+ private paymentLibComponent;
14
+ private paymentViewService;
15
+ private OrderslistService;
16
+ private router;
17
+ LOGGEDINUSERROLES: string[];
18
+ viewStatus: string;
19
+ orderDetail: any[];
20
+ orderRef: string;
21
+ orderStatus: string;
22
+ orderParty: string;
23
+ orderCreated: Date;
24
+ orderCCDEvent: string;
25
+ orderFeesTotal: number;
26
+ orderTotalPayments: number;
27
+ orderRemissionTotal: number;
28
+ takePayment: boolean;
29
+ ccdCaseNumber: boolean;
30
+ isServiceRequest: string;
31
+ goToServiceRquestComponent: EventEmitter<any>;
32
+ servicerequest: string;
33
+ excReference: string;
34
+ paymentGroups: any[];
35
+ payments: IPayment[];
36
+ nonPayments: IPayment[];
37
+ allPayments: IPayment[];
38
+ remissions: IRemission[];
39
+ fees: IFee[];
40
+ errorMessage: string;
41
+ totalFees: number;
42
+ totalPayments: number;
43
+ totalNonOffPayments: number;
44
+ totalRemissions: number;
45
+ selectedOption: string;
46
+ dcnNumber: string;
47
+ paymentRef: string;
48
+ isTurnOff: boolean;
49
+ isNewPcipalOff: boolean;
50
+ isRefundRemission: boolean;
51
+ isOldPcipalOff: boolean;
52
+ isStrategicFixEnable: boolean;
53
+ isAddFeeBtnEnabled: boolean;
54
+ isExceptionRecord: boolean;
55
+ isUnprocessedRecordSelected: boolean;
56
+ exceptionRecordReference: string;
57
+ isAnyFeeGroupAvilable: boolean;
58
+ isHistoricGroupAvailable: boolean;
59
+ isBulkScanEnable: any;
60
+ isRemissionsMatch: boolean;
61
+ isRemoveBtnDisabled: boolean;
62
+ feeId: IFee;
63
+ clAmountDue: number;
64
+ unprocessedRecordCount: number;
65
+ isFeeRecordsExist: boolean;
66
+ isGrpOutstandingAmtPositive: boolean;
67
+ totalRefundAmount: Number;
68
+ caseType: String;
69
+ payment: IPayment;
70
+ paymentGroup: IPaymentGroup;
71
+ paymentView: IPaymentView;
72
+ isAddRemissionEnable: boolean;
73
+ orderRemissionDetails: any[];
74
+ orderLevelFees: IOrderReferenceFee[];
75
+ cpoDetails: any;
76
+ serviceRequestValue: string;
77
+ orderAddBtnEnable: boolean;
78
+ isCPODown: boolean;
79
+ test: boolean;
80
+ isPBA: boolean;
81
+ isIssueRefunfBtnEnable: boolean;
82
+ isAddRemissionBtnEnabled: boolean;
83
+ isRefundRemissionBtnEnable: boolean;
84
+ allowedRolesToAccessRefund: string[];
85
+ isFromServiceRequestPage: boolean;
86
+ navigationpage: string;
87
+ remissionFeeAmt: number;
88
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
89
+ ngOnInit(): void;
90
+ goToServiceRequestPage(): void;
91
+ goToCaseTransationPage(event: any): void;
92
+ chkForAddRemission(feeCode: string): boolean;
93
+ chkForPBAPayment(): boolean;
94
+ addRemission(fee: IFee): void;
95
+ addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
96
+ cancelRemoval(): void;
97
+ removeFee(fee: any): void;
98
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
99
+ chkIsRefundRemissionBtnEnable(): boolean;
100
+ check4AllowedRoles2AccessRefund: () => boolean;
101
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
102
+ issueRefund(payment: IPayment): void;
103
+ goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
104
+ goToPaymentViewComponent(paymentGroup: any): void;
105
+ resetOrderData(): void;
106
+ }
@@ -5,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,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,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
+ }
@@ -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,8 @@
1
+ export declare class IserviceRequestPbaPayment {
2
+ account_number: string;
3
+ amount: string;
4
+ currency: string;
5
+ customer_reference: string;
6
+ organisation_name: string;
7
+ constructor(account_number: string, amount: string, customer_reference: string, orgName: string);
8
+ }
@@ -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,7 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
1
2
  export declare class PostRefundRetroRemission {
2
3
  payment_reference: string;
3
4
  refund_reason: string;
4
- constructor(payment_reference: string, refund_reason: string);
5
+ contact_details: IRefundContactDetails;
6
+ constructor(payment_reference: string, refund_reason: string, contactDeatils: any);
5
7
  }
@@ -1,12 +1,17 @@
1
1
  import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { PaymentLibService } from './payment-lib.service';
3
3
  import { IBSPayments } from './interfaces/IBSPayments';
4
+ import { OrderslistService } from './services/orderslist.service';
5
+ import { IPayment } from './interfaces/IPayment';
4
6
  export declare class PaymentLibComponent implements OnInit {
5
7
  private paymentLibService;
6
8
  private cd;
9
+ private OrderslistService;
7
10
  API_ROOT: string;
8
11
  BULKSCAN_API_ROOT: string;
9
12
  REFUNDS_API_ROOT: string;
13
+ NOTIFICATION_API_ROOT: string;
14
+ CARDPAYMENTRETURNURL: string;
10
15
  CCD_CASE_NUMBER: string;
11
16
  EXC_REFERENCE: string;
12
17
  PAYMENT_METHOD: string;
@@ -48,7 +53,21 @@ export declare class PaymentLibComponent implements OnInit {
48
53
  isFromRefundStatusPage: boolean;
49
54
  iscancelClicked: boolean;
50
55
  isFromPaymentDetailPage: boolean;
51
- constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef);
56
+ pbaPayOrderRef: IPayment;
57
+ isTakePayment: boolean;
58
+ orderDetail: any[];
59
+ orderRef: string;
60
+ orderStatus: string;
61
+ orderParty: string;
62
+ orderCreated: Date;
63
+ orderCCDEvent: string;
64
+ serviceRequestValue: string;
65
+ orderAddBtnEnable: boolean;
66
+ orderFeesTotal: number;
67
+ orderRemissionTotal: number;
68
+ orderTotalPayments: number;
69
+ orderPendingPayments: number;
70
+ constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
52
71
  ngAfterContentChecked(): void;
53
72
  ngOnInit(): void;
54
73
  }