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

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 (100) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +8152 -6372
  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 +283 -171
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +68 -41
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +371 -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 +92 -19
  11. package/esm2015/lib/components/pba-payment/pba-payment.component.js +205 -0
  12. package/esm2015/lib/components/process-refund/process-refund.component.js +97 -9
  13. package/esm2015/lib/components/refund-list/refund-list.component.js +2 -2
  14. package/esm2015/lib/components/refund-status/refund-status.component.js +164 -70
  15. package/esm2015/lib/components/service-request/service-request.component.js +626 -0
  16. package/esm2015/lib/components/status-history/status-history.component.js +2 -2
  17. package/esm2015/lib/components/table/table.component.js +26 -9
  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 +3 -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 +28 -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 +58 -9
  30. package/esm2015/lib/payment-lib.module.js +8 -4
  31. package/esm2015/lib/payment-lib.service.js +16 -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 +29 -1
  35. package/esm2015/lib/services/refunds/refunds.service.js +25 -3
  36. package/esm2015/lib/services/shared/error-handler.service.js +43 -5
  37. package/esm5/hmcts-ccpay-web-component.js +42 -38
  38. package/esm5/lib/components/add-remission/add-remission.component.js +308 -172
  39. package/esm5/lib/components/case-transactions/case-transactions.component.js +74 -45
  40. package/esm5/lib/components/contact-details/contact-details.component.js +395 -0
  41. package/esm5/lib/components/fee-summary/fee-summary.component.js +1 -3
  42. package/esm5/lib/components/payment-view/payment-view.component.js +96 -19
  43. package/esm5/lib/components/pba-payment/pba-payment.component.js +222 -0
  44. package/esm5/lib/components/process-refund/process-refund.component.js +100 -9
  45. package/esm5/lib/components/refund-list/refund-list.component.js +2 -2
  46. package/esm5/lib/components/refund-status/refund-status.component.js +195 -81
  47. package/esm5/lib/components/service-request/service-request.component.js +702 -0
  48. package/esm5/lib/components/status-history/status-history.component.js +2 -2
  49. package/esm5/lib/components/table/table.component.js +25 -10
  50. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  51. package/esm5/lib/interfaces/IFee.js +3 -1
  52. package/esm5/lib/interfaces/IPayment.js +3 -1
  53. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  54. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  55. package/esm5/lib/interfaces/IRefundList.js +3 -1
  56. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  57. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  58. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
  59. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  60. package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
  61. package/esm5/lib/payment-lib.component.js +54 -7
  62. package/esm5/lib/payment-lib.module.js +8 -4
  63. package/esm5/lib/payment-lib.service.js +23 -1
  64. package/esm5/lib/services/notification/notification.service.js +89 -0
  65. package/esm5/lib/services/orderslist.service.js +256 -1
  66. package/esm5/lib/services/payment-view/payment-view.service.js +42 -1
  67. package/esm5/lib/services/refunds/refunds.service.js +31 -3
  68. package/esm5/lib/services/shared/error-handler.service.js +43 -5
  69. package/fesm2015/hmcts-ccpay-web-component.js +2054 -487
  70. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  71. package/fesm5/hmcts-ccpay-web-component.js +8225 -6414
  72. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  73. package/hmcts-ccpay-web-component.d.ts +41 -37
  74. package/hmcts-ccpay-web-component.metadata.json +1 -1
  75. package/lib/components/add-remission/add-remission.component.d.ts +22 -1
  76. package/lib/components/case-transactions/case-transactions.component.d.ts +7 -3
  77. package/lib/components/contact-details/contact-details.component.d.ts +44 -0
  78. package/lib/components/payment-view/payment-view.component.d.ts +12 -3
  79. package/lib/components/pba-payment/pba-payment.component.d.ts +28 -0
  80. package/lib/components/process-refund/process-refund.component.d.ts +12 -1
  81. package/lib/components/refund-status/refund-status.component.d.ts +22 -5
  82. package/lib/components/service-request/service-request.component.d.ts +105 -0
  83. package/lib/components/table/table.component.d.ts +5 -2
  84. package/lib/interfaces/IFee.d.ts +1 -0
  85. package/lib/interfaces/IPayment.d.ts +1 -0
  86. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  87. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  88. package/lib/interfaces/IRefundList.d.ts +2 -0
  89. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  90. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  91. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
  92. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  93. package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
  94. package/lib/payment-lib.component.d.ts +19 -1
  95. package/lib/payment-lib.service.d.ts +3 -0
  96. package/lib/services/notification/notification.service.d.ts +15 -0
  97. package/lib/services/orderslist.service.d.ts +34 -0
  98. package/lib/services/payment-view/payment-view.service.d.ts +5 -0
  99. package/lib/services/refunds/refunds.service.d.ts +2 -0
  100. 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,7 @@ export declare class AddRemissionComponent implements OnInit {
50
61
  other: string;
51
62
  };
52
63
  };
64
+ contactDetailsObj: IRefundContactDetails;
53
65
  remissionForm: FormGroup;
54
66
  hasErrors: boolean;
55
67
  viewStatus: string;
@@ -87,6 +99,8 @@ export declare class AddRemissionComponent implements OnInit {
87
99
  refundReasons: IRefundReasons[];
88
100
  pattern1: string;
89
101
  pattern2: string;
102
+ sendOrderDetail: any[];
103
+ sendOrderRef: string;
90
104
  component: {
91
105
  account_number: string;
92
106
  amount: number;
@@ -114,18 +128,25 @@ export declare class AddRemissionComponent implements OnInit {
114
128
  addRemissionCode(): void;
115
129
  gotoAddRetroRemissionCodePage(): void;
116
130
  gotoCheckRetroRemissionPage(payment: IPayment): void;
131
+ gotoAmountRetroRemission(): void;
117
132
  gotoProcessRetroRemissionPage(): void;
133
+ gotoProcessRetroRemission(): void;
118
134
  confirmRetroRemission(): void;
119
135
  processRefund(): void;
120
136
  gotoIssueRefundConfirmation(payment: IPayment): void;
121
137
  gotoIssueRefundPage(): void;
138
+ gotoContactDetailsPage(): void;
122
139
  changeIssueRefundReason(): void;
123
140
  confirmIssueRefund(): void;
124
141
  confirmRetroRefund(): void;
125
142
  selectRadioButton(key: any, value: any): void;
126
143
  selectchange(args: any): void;
144
+ getContactDetails(obj: IRefundContactDetails, type: any): void;
127
145
  gotoServiceRequestPage(event: any): void;
146
+ gotoAddressPage(): void;
147
+ gotoRemissionSuccess(event: Event): void;
128
148
  gotoCasetransationPage(): void;
129
149
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
150
+ resetOrderData(): void;
130
151
  getFormattedCurrency(currency: number): string | number;
131
152
  }
@@ -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,44 @@
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
+ isEmailEmpty: boolean;
23
+ emailHasError: boolean;
24
+ isPostcodeEmpty: boolean;
25
+ postcodeHasError: boolean;
26
+ isaddressLine1Empty: boolean;
27
+ addressLine1HasError: boolean;
28
+ addressLine2HasError: boolean;
29
+ isTownOrCityEmpty: boolean;
30
+ townOrCityHasError: boolean;
31
+ isCountyEmpty: boolean;
32
+ countyHasError: boolean;
33
+ isMPostcodeEmpty: boolean;
34
+ mpostcodeHasError: boolean;
35
+ isCountryEmpty: boolean;
36
+ constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
37
+ ngOnInit(): void;
38
+ setEditDetails(): void;
39
+ selectContactOption(type: any, isLinkedClied: any): void;
40
+ finalFormSubmit(): void;
41
+ postcodeValidation(): void;
42
+ redirection(event: any): void;
43
+ resetForm(val: any, field: any): void;
44
+ }
@@ -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,8 @@ export declare class PaymentViewComponent implements OnInit {
40
46
  remissionFeeAmt: number;
41
47
  isRefundRemissionBtnEnable: boolean;
42
48
  serviceReference: string;
49
+ isFromServiceRequestPage: boolean;
50
+ isFromPaymentDetailPage: boolean;
43
51
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
44
52
  ngAfterContentChecked(): void;
45
53
  ngOnInit(): void;
@@ -58,4 +66,5 @@ export declare class PaymentViewComponent implements OnInit {
58
66
  chkForAddRemission(feeCode: string): boolean;
59
67
  check4AllowedRoles2AccessRefund: () => boolean;
60
68
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
69
+ resetOrderData(): void;
61
70
  }
@@ -0,0 +1,28 @@
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
+ isContinueButtondisabled: boolean;
20
+ isPBAAccountPaymentSuccess: boolean;
21
+ pbaAccountrPaymentResult: any;
22
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
23
+ ngOnInit(): void;
24
+ selectpbaaccount(args: any): void;
25
+ saveAndContinue(): void;
26
+ cardPayment(): void;
27
+ gotoCasetransationPage(): void;
28
+ }
@@ -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: 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,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,16 @@
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;
10
14
  CCD_CASE_NUMBER: string;
11
15
  EXC_REFERENCE: string;
12
16
  PAYMENT_METHOD: string;
@@ -48,7 +52,21 @@ export declare class PaymentLibComponent implements OnInit {
48
52
  isFromRefundStatusPage: boolean;
49
53
  iscancelClicked: boolean;
50
54
  isFromPaymentDetailPage: boolean;
51
- constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef);
55
+ pbaPayOrderRef: IPayment;
56
+ isTakePayment: boolean;
57
+ orderDetail: any[];
58
+ orderRef: string;
59
+ orderStatus: string;
60
+ orderParty: string;
61
+ orderCreated: Date;
62
+ orderCCDEvent: string;
63
+ serviceRequestValue: string;
64
+ orderAddBtnEnable: boolean;
65
+ orderFeesTotal: number;
66
+ orderRemissionTotal: number;
67
+ orderTotalPayments: number;
68
+ orderPendingPayments: number;
69
+ constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
52
70
  ngAfterContentChecked(): void;
53
71
  ngOnInit(): void;
54
72
  }
@@ -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
+ }