@hmcts/ccpay-web-component 5.0.1-beta12 → 5.0.1-beta125

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 +2711 -1452
  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 +41 -39
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +284 -162
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +37 -59
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +394 -0
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +95 -18
  10. package/esm2015/lib/components/process-refund/process-refund.component.js +95 -9
  11. package/esm2015/lib/components/refund-list/refund-list.component.js +6 -10
  12. package/esm2015/lib/components/refund-status/refund-status.component.js +212 -121
  13. package/esm2015/lib/components/service-request/service-request.component.js +607 -0
  14. package/esm2015/lib/components/status-history/status-history.component.js +2 -2
  15. package/esm2015/lib/components/table/table.component.js +27 -10
  16. package/esm2015/lib/interfaces/IFee.js +3 -1
  17. package/esm2015/lib/interfaces/IPayment.js +3 -1
  18. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  19. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  20. package/esm2015/lib/interfaces/IRefundList.js +3 -1
  21. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  22. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  23. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -2
  24. package/esm2015/lib/payment-lib.component.js +54 -9
  25. package/esm2015/lib/payment-lib.module.js +8 -4
  26. package/esm2015/lib/payment-lib.service.js +16 -1
  27. package/esm2015/lib/services/notification/notification.service.js +85 -0
  28. package/esm2015/lib/services/orderslist.service.js +193 -1
  29. package/esm2015/lib/services/payment-view/payment-view.service.js +1 -29
  30. package/esm2015/lib/services/refunds/refunds.service.js +10 -1
  31. package/esm2015/lib/services/shared/error-handler.service.js +37 -19
  32. package/esm5/hmcts-ccpay-web-component.js +41 -39
  33. package/esm5/lib/components/add-remission/add-remission.component.js +311 -163
  34. package/esm5/lib/components/case-transactions/case-transactions.component.js +37 -69
  35. package/esm5/lib/components/contact-details/contact-details.component.js +419 -0
  36. package/esm5/lib/components/payment-view/payment-view.component.js +99 -18
  37. package/esm5/lib/components/process-refund/process-refund.component.js +98 -9
  38. package/esm5/lib/components/refund-list/refund-list.component.js +6 -10
  39. package/esm5/lib/components/refund-status/refund-status.component.js +240 -120
  40. package/esm5/lib/components/service-request/service-request.component.js +679 -0
  41. package/esm5/lib/components/status-history/status-history.component.js +2 -2
  42. package/esm5/lib/components/table/table.component.js +26 -11
  43. package/esm5/lib/interfaces/IFee.js +3 -1
  44. package/esm5/lib/interfaces/IPayment.js +3 -1
  45. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  46. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  47. package/esm5/lib/interfaces/IRefundList.js +3 -1
  48. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  49. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  50. package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
  51. package/esm5/lib/payment-lib.component.js +52 -6
  52. package/esm5/lib/payment-lib.module.js +8 -4
  53. package/esm5/lib/payment-lib.service.js +23 -1
  54. package/esm5/lib/services/notification/notification.service.js +89 -0
  55. package/esm5/lib/services/orderslist.service.js +256 -1
  56. package/esm5/lib/services/payment-view/payment-view.service.js +1 -42
  57. package/esm5/lib/services/refunds/refunds.service.js +16 -1
  58. package/esm5/lib/services/shared/error-handler.service.js +37 -19
  59. package/fesm2015/hmcts-ccpay-web-component.js +1790 -709
  60. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  61. package/fesm5/hmcts-ccpay-web-component.js +7952 -6675
  62. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  63. package/hmcts-ccpay-web-component.d.ts +40 -38
  64. package/hmcts-ccpay-web-component.metadata.json +1 -1
  65. package/lib/components/add-remission/add-remission.component.d.ts +23 -1
  66. package/lib/components/case-transactions/case-transactions.component.d.ts +1 -6
  67. package/lib/components/contact-details/contact-details.component.d.ts +45 -0
  68. package/lib/components/payment-view/payment-view.component.d.ts +13 -3
  69. package/lib/components/process-refund/process-refund.component.d.ts +11 -1
  70. package/lib/components/refund-status/refund-status.component.d.ts +20 -5
  71. package/lib/components/service-request/service-request.component.d.ts +103 -0
  72. package/lib/components/table/table.component.d.ts +5 -2
  73. package/lib/interfaces/IFee.d.ts +1 -0
  74. package/lib/interfaces/IPayment.d.ts +1 -0
  75. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  76. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  77. package/lib/interfaces/IRefundList.d.ts +2 -0
  78. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  79. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  80. package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
  81. package/lib/payment-lib.component.d.ts +17 -3
  82. package/lib/payment-lib.service.d.ts +3 -0
  83. package/lib/services/notification/notification.service.d.ts +15 -0
  84. package/lib/services/orderslist.service.d.ts +34 -0
  85. package/lib/services/payment-view/payment-view.service.d.ts +0 -5
  86. package/lib/services/refunds/refunds.service.d.ts +2 -0
  87. package/package.json +1 -1
  88. package/esm2015/lib/components/pba-payment/pba-payment.component.js +0 -199
  89. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +0 -23
  90. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +0 -28
  91. package/esm5/lib/components/pba-payment/pba-payment.component.js +0 -216
  92. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +0 -22
  93. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +0 -25
  94. package/lib/components/pba-payment/pba-payment.component.d.ts +0 -27
  95. package/lib/interfaces/IserviceRequestCardPayment.d.ts +0 -6
  96. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +0 -7
@@ -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(): 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;
@@ -66,7 +67,6 @@ export declare class CaseTransactionsComponent implements OnInit {
66
67
  isAddRemissionEnable: boolean;
67
68
  orderRemissionDetails: any[];
68
69
  orderLevelFees: IOrderReferenceFee[];
69
- ispaymentGroupApisuccess: boolean;
70
70
  cpoDetails: any;
71
71
  orderRef: string;
72
72
  orderStatus: string;
@@ -86,8 +86,6 @@ export declare class CaseTransactionsComponent implements OnInit {
86
86
  isAddRemissionBtnEnabled: boolean;
87
87
  isRefundRemissionBtnEnable: boolean;
88
88
  allowedRolesToAccessRefund: string[];
89
- isEligible4PBAPayment: string[];
90
- currentDate: Date;
91
89
  isFromServiceRequestPage: boolean;
92
90
  navigationpage: string;
93
91
  remissionFeeAmt: number;
@@ -100,7 +98,6 @@ export declare class CaseTransactionsComponent implements OnInit {
100
98
  resetOrderVariables(): void;
101
99
  goToOrderViewDetailSection(orderReferenceObj: any): void;
102
100
  redirectToOrderFeeSearchPage(event: any, orderef: any): void;
103
- goToCaseTransationPage(event: any): void;
104
101
  calculateAmounts(): void;
105
102
  calculateRefundAmount(): number;
106
103
  getGroupOutstandingAmount(paymentGroup: IPaymentGroup): number;
@@ -125,7 +122,5 @@ export declare class CaseTransactionsComponent implements OnInit {
125
122
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
126
123
  chkIsRefundRemissionBtnEnable(): boolean;
127
124
  check4AllowedRoles2AccessRefund: () => boolean;
128
- check4AllowedRoles2AccessPBApayment: () => boolean;
129
125
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
130
- loadPBAAccountPage(orderRef: IPayment): void;
131
126
  }
@@ -0,0 +1,45 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { PaymentLibComponent } from '../../payment-lib.component';
4
+ import { NotificationService } from '../../services/notification/notification.service';
5
+ export declare class ContactDetailsComponent implements OnInit {
6
+ private formBuilder;
7
+ private notificationService;
8
+ private paymentLibComponent;
9
+ isEditOperation: boolean;
10
+ addressObj: any;
11
+ assignContactDetails: EventEmitter<any>;
12
+ redirectToIssueRefund: EventEmitter<any>;
13
+ pageTitle: string;
14
+ errorMessage: string;
15
+ isEmailSAddressClicked: boolean;
16
+ isPostcodeClicked: boolean;
17
+ isManualAddressClicked: boolean;
18
+ emailAddressForm: FormGroup;
19
+ postCodeForm: FormGroup;
20
+ manualAddressForm: FormGroup;
21
+ addressPostcodeList: any[];
22
+ postcodeAddress: any;
23
+ isEmailEmpty: boolean;
24
+ emailHasError: boolean;
25
+ isPostcodeEmpty: boolean;
26
+ postcodeHasError: boolean;
27
+ isaddressLine1Empty: boolean;
28
+ addressLine1HasError: boolean;
29
+ addressLine2HasError: boolean;
30
+ isTownOrCityEmpty: boolean;
31
+ townOrCityHasError: boolean;
32
+ isCountyEmpty: boolean;
33
+ countyHasError: boolean;
34
+ isMPostcodeEmpty: boolean;
35
+ mpostcodeHasError: boolean;
36
+ isCountryEmpty: boolean;
37
+ constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
38
+ ngOnInit(): void;
39
+ setEditDetails(): void;
40
+ selectContactOption(type: any, isLinkedClied: any): void;
41
+ finalFormSubmit(): void;
42
+ postcodeValidation(str: any): void;
43
+ redirection(event: any): void;
44
+ resetForm(val: any, field: any): void;
45
+ }
@@ -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;
@@ -39,6 +45,9 @@ export declare class PaymentViewComponent implements OnInit {
39
45
  remissions: IRemission[];
40
46
  remissionFeeAmt: number;
41
47
  isRefundRemissionBtnEnable: boolean;
48
+ serviceReference: string;
49
+ isFromServiceRequestPage: boolean;
50
+ isFromPaymentDetailPage: boolean;
42
51
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
43
52
  ngAfterContentChecked(): void;
44
53
  ngOnInit(): void;
@@ -57,4 +66,5 @@ export declare class PaymentViewComponent implements OnInit {
57
66
  chkForAddRemission(feeCode: string): boolean;
58
67
  check4AllowedRoles2AccessRefund: () => boolean;
59
68
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
69
+ resetOrderData(): void;
60
70
  }
@@ -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,11 @@ 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;
40
48
  isConfirmButtondisabled: boolean;
41
- constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent);
49
+ constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
42
50
  ngOnInit(): void;
43
51
  checkRefundActions(code: string): void;
44
52
  processRefundSubmit(): void;
@@ -48,6 +56,8 @@ export declare class ProcessRefundComponent implements OnInit {
48
56
  showError: any;
49
57
  };
50
58
  loadRefundListPage(): void;
59
+ loadRefundsHomePage(): void;
51
60
  redirecttoRefundListPage(): void;
52
61
  resetForm(vals: any, field: any): void;
62
+ goToCaseReview(): void;
53
63
  }
@@ -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;
@@ -49,10 +57,11 @@ export declare class RefundStatusComponent implements OnInit {
49
57
  isProcessRefund: boolean;
50
58
  changedAmount: number;
51
59
  allowedRolesToAccessRefund: string[];
52
- constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
60
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
53
61
  ngOnInit(): void;
54
62
  check4AllowedRoles2AccessRefund: () => boolean;
55
63
  getRefundsStatusHistoryList(): void;
64
+ getRefundsNotification(): void;
56
65
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
57
66
  loadCaseTransactionPage(): void;
58
67
  loadRefundListPage(): void;
@@ -66,5 +75,11 @@ export declare class RefundStatusComponent implements OnInit {
66
75
  getRefundListReason(refundListReason: any): void;
67
76
  getRefundAmount(amount: number): void;
68
77
  gotoReviewRefundConfirmationPage(): void;
78
+ gotoEditAddressDetails(note: IRefundsNotifications): void;
79
+ getContactDetails(obj: IRefundContactDetails): void;
80
+ gotoEditDetailsPage(note?: any): void;
81
+ submitEditDetail(): void;
82
+ putResend(notification: IRefundsNotifications): void;
83
+ gotoCasetransationPageCancelBtnClicked(Event: Event): void;
69
84
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
70
85
  }
@@ -0,0 +1,103 @@
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
+ servicerequest: string;
31
+ excReference: string;
32
+ paymentGroups: any[];
33
+ payments: IPayment[];
34
+ nonPayments: IPayment[];
35
+ allPayments: IPayment[];
36
+ remissions: IRemission[];
37
+ fees: IFee[];
38
+ errorMessage: string;
39
+ totalFees: number;
40
+ totalPayments: number;
41
+ totalNonOffPayments: number;
42
+ totalRemissions: number;
43
+ selectedOption: string;
44
+ dcnNumber: string;
45
+ paymentRef: string;
46
+ isTurnOff: boolean;
47
+ isNewPcipalOff: boolean;
48
+ isRefundRemission: boolean;
49
+ isOldPcipalOff: boolean;
50
+ isStrategicFixEnable: boolean;
51
+ isAddFeeBtnEnabled: boolean;
52
+ isExceptionRecord: boolean;
53
+ isUnprocessedRecordSelected: boolean;
54
+ exceptionRecordReference: string;
55
+ isAnyFeeGroupAvilable: boolean;
56
+ isHistoricGroupAvailable: boolean;
57
+ isBulkScanEnable: any;
58
+ isRemissionsMatch: boolean;
59
+ isRemoveBtnDisabled: boolean;
60
+ feeId: IFee;
61
+ clAmountDue: number;
62
+ unprocessedRecordCount: number;
63
+ isFeeRecordsExist: boolean;
64
+ isGrpOutstandingAmtPositive: boolean;
65
+ totalRefundAmount: Number;
66
+ caseType: String;
67
+ payment: IPayment;
68
+ paymentGroup: IPaymentGroup;
69
+ paymentView: IPaymentView;
70
+ isAddRemissionEnable: boolean;
71
+ orderRemissionDetails: any[];
72
+ orderLevelFees: IOrderReferenceFee[];
73
+ cpoDetails: any;
74
+ serviceRequestValue: string;
75
+ orderAddBtnEnable: boolean;
76
+ isCPODown: boolean;
77
+ test: boolean;
78
+ isPBA: boolean;
79
+ isIssueRefunfBtnEnable: boolean;
80
+ isAddRemissionBtnEnabled: boolean;
81
+ isRefundRemissionBtnEnable: boolean;
82
+ allowedRolesToAccessRefund: string[];
83
+ isFromServiceRequestPage: boolean;
84
+ navigationpage: string;
85
+ remissionFeeAmt: number;
86
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
87
+ ngOnInit(): void;
88
+ goToCaseTransationPage(event: any): void;
89
+ chkForAddRemission(feeCode: string): boolean;
90
+ chkForPBAPayment(): boolean;
91
+ addRemission(fee: IFee): void;
92
+ addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
93
+ cancelRemoval(): void;
94
+ removeFee(fee: any): void;
95
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
96
+ chkIsRefundRemissionBtnEnable(): boolean;
97
+ check4AllowedRoles2AccessRefund: () => boolean;
98
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
99
+ issueRefund(payment: IPayment): void;
100
+ goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
101
+ goToPaymentViewComponent(paymentGroup: any): void;
102
+ resetOrderData(): void;
103
+ }
@@ -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
+ }
@@ -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,13 +1,15 @@
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 { IPayment } from './interfaces/IPayment';
4
+ import { OrderslistService } from './services/orderslist.service';
5
5
  export declare class PaymentLibComponent implements OnInit {
6
6
  private paymentLibService;
7
7
  private cd;
8
+ private OrderslistService;
8
9
  API_ROOT: string;
9
10
  BULKSCAN_API_ROOT: string;
10
11
  REFUNDS_API_ROOT: string;
12
+ NOTIFICATION_API_ROOT: string;
11
13
  CCD_CASE_NUMBER: string;
12
14
  EXC_REFERENCE: string;
13
15
  PAYMENT_METHOD: string;
@@ -49,8 +51,20 @@ export declare class PaymentLibComponent implements OnInit {
49
51
  isFromRefundStatusPage: boolean;
50
52
  iscancelClicked: boolean;
51
53
  isFromPaymentDetailPage: boolean;
52
- pbaPayOrderRef: IPayment;
53
- constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef);
54
+ isTakePayment: boolean;
55
+ orderDetail: any[];
56
+ orderRef: string;
57
+ orderStatus: string;
58
+ orderParty: string;
59
+ orderCreated: Date;
60
+ orderCCDEvent: string;
61
+ serviceRequestValue: string;
62
+ orderAddBtnEnable: boolean;
63
+ orderFeesTotal: number;
64
+ orderRemissionTotal: number;
65
+ orderTotalPayments: number;
66
+ orderPendingPayments: number;
67
+ constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
54
68
  ngAfterContentChecked(): void;
55
69
  ngOnInit(): void;
56
70
  }
@@ -2,6 +2,7 @@ export declare class PaymentLibService {
2
2
  API_ROOT: string;
3
3
  BULKSCAN_API_ROOT: string;
4
4
  REFUNDS_API_ROOT: string;
5
+ NOTIFICATION_API_ROOT: string;
5
6
  constructor();
6
7
  setApiRootUrl(apiRoot: string): void;
7
8
  getApiRootUrl(): string;
@@ -9,4 +10,6 @@ export declare class PaymentLibService {
9
10
  getBulkScanApiRootUrl(): string;
10
11
  setRefundndsApiRootUrl(refundsapiRoot: string): void;
11
12
  getRefundsApiRootUrl(): string;
13
+ setNoticationApiRootUrl(notificationapiRoot: string): void;
14
+ getNoticationApiRootUrl(): string;
12
15
  }
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ErrorHandlerService } from '../shared/error-handler.service';
3
+ import { WebComponentHttpClient } from '../shared/httpclient/webcomponent.http.client';
4
+ import { PaymentLibService } from '../../payment-lib.service';
5
+ import { Observable } from 'rxjs/Observable';
6
+ import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
7
+ export declare class NotificationService {
8
+ private http;
9
+ private https;
10
+ private errorHandlerService;
11
+ private paymentLibService;
12
+ constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
13
+ getRefundNotification(reference: string): Observable<IRefundsNotifications>;
14
+ getAddressByPostcode(postcode: string): Observable<any>;
15
+ }
@@ -17,6 +17,22 @@ export declare class OrderslistService {
17
17
  getOrderRefId: Observable<string>;
18
18
  private navigationPage;
19
19
  getnavigationPage: Observable<string>;
20
+ private orderRef;
21
+ getorderRef: Observable<string>;
22
+ private orderCCDEvent;
23
+ getorderCCDEvent: Observable<string>;
24
+ private orderCreated;
25
+ getorderCreated: Observable<Date>;
26
+ private orderParty;
27
+ getorderParty: Observable<string>;
28
+ private orderRemissionTotal;
29
+ getorderRemissionTotal: Observable<number>;
30
+ private orderFeesTotal;
31
+ getorderFeesTotal: Observable<number>;
32
+ private orderTotalPayments;
33
+ getorderTotalPayments: Observable<number>;
34
+ private rolesList;
35
+ private orderDetail;
20
36
  private paymentPageView;
21
37
  constructor();
22
38
  setOrdersList(orderLevelFees: IOrderReferenceFee[]): void;
@@ -37,4 +53,22 @@ export declare class OrderslistService {
37
53
  getnavigationPageValue(): BehaviorSubject<string>;
38
54
  setpaymentPageView(paymentpageList: IPaymentView): void;
39
55
  getpaymentPageView(): BehaviorSubject<IPaymentView>;
56
+ setUserRolesList(rolesList: any[]): void;
57
+ getUserRolesList(): BehaviorSubject<any[]>;
58
+ setorderDetail(orderDetail: any[]): void;
59
+ getorderDetail(): BehaviorSubject<any[]>;
60
+ setOrderRef(orderRef: string): void;
61
+ getorderRefs(): BehaviorSubject<string>;
62
+ setorderCCDEvent(orderCCDEvent: string): void;
63
+ getorderCCDEvents(): BehaviorSubject<string>;
64
+ setorderCreated(orderCreated: Date): void;
65
+ getorderCreateds(): BehaviorSubject<Date>;
66
+ setorderParty(orderParty: string): void;
67
+ getorderPartys(): BehaviorSubject<string>;
68
+ setorderRemissionTotal(orderRemissionTotal: number): void;
69
+ getorderRemissionTotals(): BehaviorSubject<number>;
70
+ setorderFeesTotal(orderFeesTotal: number): void;
71
+ getorderFeesTotals(): BehaviorSubject<number>;
72
+ setorderTotalPayments(orderTotalPayments: number): void;
73
+ getoorderTotalPaymentss(): BehaviorSubject<number>;
40
74
  }
@@ -15,8 +15,6 @@ import { AllocatePaymentRequest } from '../../interfaces/AllocatePaymentRequest'
15
15
  import { IAllocationPaymentsRequest } from '../../interfaces/IAllocationPaymentsRequest';
16
16
  import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
17
17
  import { BehaviorSubject } from 'rxjs';
18
- import { IserviceRequestPbaPayment } from '../../interfaces/IserviceRequestPbaPayment';
19
- import { IserviceRequestCardPayment } from '../../interfaces/IserviceRequestCardPayment';
20
18
  import { AddRetroRemissionRequest } from '../../interfaces/AddRetroRemissionRequest';
21
19
  import { PostRefundRetroRemission } from '../../interfaces/PostRefundRetroRemission';
22
20
  import { PostIssueRefundRetroRemission } from '../../interfaces/PostIssueRefundRetroRemission';
@@ -32,9 +30,6 @@ export declare class PaymentViewService {
32
30
  getPaymentDetails(paymentReference: string, paymentMethod: string): Observable<IPayment>;
33
31
  getPaymentGroupDetails(paymentGroupReference: string): Observable<IPaymentGroup>;
34
32
  getApportionPaymentDetails(paymentReference: string): Observable<IPaymentGroup>;
35
- getPBAaccountDetails(): Observable<any>;
36
- postWays2PayCardPayment(serviceRef: string, body: IserviceRequestCardPayment): Observable<any>;
37
- postPBAaccountPayment(serviceRef: string, body: IserviceRequestPbaPayment): Observable<any>;
38
33
  postBSPayments(body: AllocatePaymentRequest): Observable<any>;
39
34
  postBSUnidentifiedPayments(body: UnidentifiedPaymentsRequest): Observable<any>;
40
35
  postBSUnsolicitedPayments(body: UnsolicitedPaymentsRequest): Observable<any>;