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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +8372 -6290
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +42 -38
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +628 -206
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +68 -40
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +346 -0
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +95 -19
  10. package/esm2015/lib/components/pba-payment/pba-payment.component.js +199 -0
  11. package/esm2015/lib/components/process-refund/process-refund.component.js +100 -9
  12. package/esm2015/lib/components/refund-list/refund-list.component.js +2 -2
  13. package/esm2015/lib/components/refund-status/refund-status.component.js +164 -70
  14. package/esm2015/lib/components/service-request/service-request.component.js +626 -0
  15. package/esm2015/lib/components/status-history/status-history.component.js +2 -2
  16. package/esm2015/lib/components/table/table.component.js +26 -9
  17. package/esm2015/lib/interfaces/IFee.js +3 -1
  18. package/esm2015/lib/interfaces/IPayment.js +3 -1
  19. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  20. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  21. package/esm2015/lib/interfaces/IRefundList.js +3 -1
  22. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  23. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  24. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  25. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  26. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +18 -2
  27. package/esm2015/lib/payment-lib.component.js +58 -9
  28. package/esm2015/lib/payment-lib.module.js +8 -4
  29. package/esm2015/lib/payment-lib.service.js +16 -1
  30. package/esm2015/lib/services/notification/notification.service.js +85 -0
  31. package/esm2015/lib/services/orderslist.service.js +193 -1
  32. package/esm2015/lib/services/payment-view/payment-view.service.js +29 -1
  33. package/esm2015/lib/services/refunds/refunds.service.js +10 -1
  34. package/esm2015/lib/services/shared/error-handler.service.js +43 -5
  35. package/esm5/hmcts-ccpay-web-component.js +42 -38
  36. package/esm5/lib/components/add-remission/add-remission.component.js +729 -214
  37. package/esm5/lib/components/case-transactions/case-transactions.component.js +74 -44
  38. package/esm5/lib/components/contact-details/contact-details.component.js +370 -0
  39. package/esm5/lib/components/payment-view/payment-view.component.js +99 -19
  40. package/esm5/lib/components/pba-payment/pba-payment.component.js +216 -0
  41. package/esm5/lib/components/process-refund/process-refund.component.js +103 -9
  42. package/esm5/lib/components/refund-list/refund-list.component.js +2 -2
  43. package/esm5/lib/components/refund-status/refund-status.component.js +195 -81
  44. package/esm5/lib/components/service-request/service-request.component.js +702 -0
  45. package/esm5/lib/components/status-history/status-history.component.js +2 -2
  46. package/esm5/lib/components/table/table.component.js +25 -10
  47. package/esm5/lib/interfaces/IFee.js +3 -1
  48. package/esm5/lib/interfaces/IPayment.js +3 -1
  49. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  50. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  51. package/esm5/lib/interfaces/IRefundList.js +3 -1
  52. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  53. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  54. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
  55. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  56. package/esm5/lib/interfaces/PostRefundRetroRemission.js +14 -2
  57. package/esm5/lib/payment-lib.component.js +54 -7
  58. package/esm5/lib/payment-lib.module.js +8 -4
  59. package/esm5/lib/payment-lib.service.js +23 -1
  60. package/esm5/lib/services/notification/notification.service.js +89 -0
  61. package/esm5/lib/services/orderslist.service.js +256 -1
  62. package/esm5/lib/services/payment-view/payment-view.service.js +42 -1
  63. package/esm5/lib/services/refunds/refunds.service.js +16 -1
  64. package/esm5/lib/services/shared/error-handler.service.js +43 -5
  65. package/fesm2015/hmcts-ccpay-web-component.js +2371 -559
  66. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  67. package/fesm5/hmcts-ccpay-web-component.js +8393 -6269
  68. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  69. package/hmcts-ccpay-web-component.d.ts +41 -37
  70. package/hmcts-ccpay-web-component.metadata.json +1 -1
  71. package/lib/components/add-remission/add-remission.component.d.ts +44 -3
  72. package/lib/components/case-transactions/case-transactions.component.d.ts +7 -3
  73. package/lib/components/contact-details/contact-details.component.d.ts +41 -0
  74. package/lib/components/payment-view/payment-view.component.d.ts +13 -3
  75. package/lib/components/pba-payment/pba-payment.component.d.ts +27 -0
  76. package/lib/components/process-refund/process-refund.component.d.ts +12 -1
  77. package/lib/components/refund-status/refund-status.component.d.ts +22 -5
  78. package/lib/components/service-request/service-request.component.d.ts +105 -0
  79. package/lib/components/table/table.component.d.ts +5 -2
  80. package/lib/interfaces/IFee.d.ts +1 -0
  81. package/lib/interfaces/IPayment.d.ts +1 -0
  82. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  83. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  84. package/lib/interfaces/IRefundList.d.ts +2 -0
  85. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  86. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  87. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
  88. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  89. package/lib/interfaces/PostRefundRetroRemission.d.ts +6 -1
  90. package/lib/payment-lib.component.d.ts +19 -1
  91. package/lib/payment-lib.service.d.ts +3 -0
  92. package/lib/services/notification/notification.service.d.ts +15 -0
  93. package/lib/services/orderslist.service.d.ts +34 -0
  94. package/lib/services/payment-view/payment-view.service.d.ts +6 -2
  95. package/lib/services/refunds/refunds.service.d.ts +2 -0
  96. package/package.json +1 -1
@@ -1,8 +1,5 @@
1
1
  import { _throw } from 'rxjs/observable/throw';
2
2
  import { BehaviorSubject } from 'rxjs';
3
- import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
4
- import { catchError } from 'rxjs/operators';
5
- import { get } from 'local-storage';
6
3
  import { Meta, DomSanitizer } from '@angular/platform-browser';
7
4
  import { Location, formatDate, CommonModule } from '@angular/common';
8
5
  import { saveAs } from 'file-saver';
@@ -12,9 +9,11 @@ import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
12
9
  import { MatSort, MatSortModule } from '@angular/material/sort';
13
10
  import { MatFormFieldModule } from '@angular/material/form-field';
14
11
  import { MatInputModule } from '@angular/material/input';
15
- import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
12
+ import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
13
+ import { catchError } from 'rxjs/operators';
16
14
  import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
17
- import { Router } from '@angular/router';
15
+ import { ActivatedRoute, Router } from '@angular/router';
16
+ import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
18
17
 
19
18
  /**
20
19
  * @fileoverview added by tsickle
@@ -61,6 +60,19 @@ class PaymentLibService {
61
60
  getRefundsApiRootUrl() {
62
61
  return this.REFUNDS_API_ROOT;
63
62
  }
63
+ /**
64
+ * @param {?} notificationapiRoot
65
+ * @return {?}
66
+ */
67
+ setNoticationApiRootUrl(notificationapiRoot) {
68
+ this.NOTIFICATION_API_ROOT = notificationapiRoot;
69
+ }
70
+ /**
71
+ * @return {?}
72
+ */
73
+ getNoticationApiRootUrl() {
74
+ return this.NOTIFICATION_API_ROOT;
75
+ }
64
76
  }
65
77
  PaymentLibService.decorators = [
66
78
  { type: Injectable, args: [{
@@ -75,19 +87,304 @@ PaymentLibService.ctorParameters = () => [];
75
87
  * @fileoverview added by tsickle
76
88
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
77
89
  */
78
- // import { IPayment } from './interfaces/IPayment';
90
+ class OrderslistService {
91
+ constructor() {
92
+ this.ordersList = new BehaviorSubject(null);
93
+ this.refundView = new BehaviorSubject(null);
94
+ this.caseType = new BehaviorSubject("");
95
+ this.getcaseType = this.caseType.asObservable();
96
+ this.feeExists = new BehaviorSubject(null);
97
+ this.getFeeExist = this.feeExists.asObservable();
98
+ this.ccdCaseNumber = new BehaviorSubject("");
99
+ this.getCCDCaseNumberforRefund = this.ccdCaseNumber.asObservable();
100
+ this.isFromServiceRequestPage = new BehaviorSubject(null);
101
+ this.getisFromServiceRequestPage = this.isFromServiceRequestPage.asObservable();
102
+ this.OrderRefId = new BehaviorSubject("");
103
+ this.getOrderRefId = this.OrderRefId.asObservable();
104
+ this.navigationPage = new BehaviorSubject("");
105
+ this.getnavigationPage = this.navigationPage.asObservable();
106
+ this.orderRef = new BehaviorSubject("");
107
+ this.getorderRef = this.orderRef.asObservable();
108
+ this.orderCCDEvent = new BehaviorSubject("");
109
+ this.getorderCCDEvent = this.caseType.asObservable();
110
+ this.orderCreated = new BehaviorSubject(null);
111
+ this.getorderCreated = this.orderCreated.asObservable();
112
+ this.orderParty = new BehaviorSubject("");
113
+ this.getorderParty = this.orderParty.asObservable();
114
+ this.orderRemissionTotal = new BehaviorSubject(null);
115
+ this.getorderRemissionTotal = this.orderRemissionTotal.asObservable();
116
+ this.orderFeesTotal = new BehaviorSubject(null);
117
+ this.getorderFeesTotal = this.orderFeesTotal.asObservable();
118
+ this.orderTotalPayments = new BehaviorSubject(null);
119
+ this.getorderTotalPayments = this.orderTotalPayments.asObservable();
120
+ this.rolesList = new BehaviorSubject(null);
121
+ this.orderDetail = new BehaviorSubject(null);
122
+ this.paymentPageView = new BehaviorSubject(null);
123
+ }
124
+ /**
125
+ * @param {?} orderLevelFees
126
+ * @return {?}
127
+ */
128
+ setOrdersList(orderLevelFees) {
129
+ this.ordersList.next(Object.assign([], orderLevelFees));
130
+ }
131
+ /**
132
+ * @return {?}
133
+ */
134
+ getOrdersList() {
135
+ return this.ordersList;
136
+ }
137
+ /**
138
+ * @param {?} refundList
139
+ * @return {?}
140
+ */
141
+ setRefundView(refundList) {
142
+ this.refundView.next(Object.assign([], refundList));
143
+ }
144
+ /**
145
+ * @return {?}
146
+ */
147
+ getRefundView() {
148
+ return this.refundView;
149
+ }
150
+ /**
151
+ * @param {?} caseType
152
+ * @return {?}
153
+ */
154
+ setCaseType(caseType) {
155
+ this.caseType.next(caseType);
156
+ }
157
+ /**
158
+ * @return {?}
159
+ */
160
+ getCaseType() {
161
+ return this.caseType;
162
+ }
163
+ /**
164
+ * @param {?} ccdCaseNumber
165
+ * @return {?}
166
+ */
167
+ setCCDCaseNumber(ccdCaseNumber) {
168
+ this.ccdCaseNumber.next(ccdCaseNumber);
169
+ }
170
+ /**
171
+ * @return {?}
172
+ */
173
+ getCCDCaseNumber() {
174
+ return this.ccdCaseNumber;
175
+ }
176
+ /**
177
+ * @param {?} feeExists
178
+ * @return {?}
179
+ */
180
+ setFeeExists(feeExists) {
181
+ this.feeExists.next(feeExists);
182
+ }
183
+ /**
184
+ * @return {?}
185
+ */
186
+ getFeeExists() {
187
+ return this.feeExists;
188
+ }
189
+ /**
190
+ * @param {?} isFromServiceRequestPage
191
+ * @return {?}
192
+ */
193
+ setisFromServiceRequestPage(isFromServiceRequestPage) {
194
+ this.isFromServiceRequestPage.next(isFromServiceRequestPage);
195
+ }
196
+ /**
197
+ * @return {?}
198
+ */
199
+ getisFromServiceRequestPages() {
200
+ return this.isFromServiceRequestPage;
201
+ }
202
+ /**
203
+ * @param {?} OrderRefId
204
+ * @return {?}
205
+ */
206
+ setOrderRefId(OrderRefId) {
207
+ this.OrderRefId.next(OrderRefId);
208
+ }
209
+ /**
210
+ * @return {?}
211
+ */
212
+ getSelectedOrderRefId() {
213
+ return this.OrderRefId;
214
+ }
215
+ /**
216
+ * @param {?} navigationPage
217
+ * @return {?}
218
+ */
219
+ setnavigationPage(navigationPage) {
220
+ this.navigationPage.next(navigationPage);
221
+ }
222
+ /**
223
+ * @return {?}
224
+ */
225
+ getnavigationPageValue() {
226
+ return this.navigationPage;
227
+ }
228
+ /**
229
+ * @param {?} paymentpageList
230
+ * @return {?}
231
+ */
232
+ setpaymentPageView(paymentpageList) {
233
+ this.paymentPageView.next(Object.assign([], paymentpageList));
234
+ }
235
+ /**
236
+ * @return {?}
237
+ */
238
+ getpaymentPageView() {
239
+ return this.paymentPageView;
240
+ }
241
+ /**
242
+ * @param {?} rolesList
243
+ * @return {?}
244
+ */
245
+ setUserRolesList(rolesList) {
246
+ this.rolesList.next(Object.assign([], rolesList));
247
+ }
248
+ /**
249
+ * @return {?}
250
+ */
251
+ getUserRolesList() {
252
+ return this.rolesList;
253
+ }
254
+ /**
255
+ * @param {?} orderDetail
256
+ * @return {?}
257
+ */
258
+ setorderDetail(orderDetail) {
259
+ this.orderDetail.next(Object.assign([], orderDetail));
260
+ }
261
+ /**
262
+ * @return {?}
263
+ */
264
+ getorderDetail() {
265
+ return this.orderDetail;
266
+ }
267
+ /**
268
+ * @param {?} orderRef
269
+ * @return {?}
270
+ */
271
+ setOrderRef(orderRef) {
272
+ this.orderRef.next(orderRef);
273
+ }
274
+ /**
275
+ * @return {?}
276
+ */
277
+ getorderRefs() {
278
+ return this.orderRef;
279
+ }
280
+ /**
281
+ * @param {?} orderCCDEvent
282
+ * @return {?}
283
+ */
284
+ setorderCCDEvent(orderCCDEvent) {
285
+ this.orderCCDEvent.next(orderCCDEvent);
286
+ }
287
+ /**
288
+ * @return {?}
289
+ */
290
+ getorderCCDEvents() {
291
+ return this.orderCCDEvent;
292
+ }
293
+ /**
294
+ * @param {?} orderCreated
295
+ * @return {?}
296
+ */
297
+ setorderCreated(orderCreated) {
298
+ this.orderCreated.next(orderCreated);
299
+ }
300
+ /**
301
+ * @return {?}
302
+ */
303
+ getorderCreateds() {
304
+ return this.orderCreated;
305
+ }
306
+ /**
307
+ * @param {?} orderParty
308
+ * @return {?}
309
+ */
310
+ setorderParty(orderParty) {
311
+ this.orderParty.next(orderParty);
312
+ }
313
+ /**
314
+ * @return {?}
315
+ */
316
+ getorderPartys() {
317
+ return this.orderParty;
318
+ }
319
+ /**
320
+ * @param {?} orderRemissionTotal
321
+ * @return {?}
322
+ */
323
+ setorderRemissionTotal(orderRemissionTotal) {
324
+ this.orderRemissionTotal.next(orderRemissionTotal);
325
+ }
326
+ /**
327
+ * @return {?}
328
+ */
329
+ getorderRemissionTotals() {
330
+ return this.orderRemissionTotal;
331
+ }
332
+ /**
333
+ * @param {?} orderFeesTotal
334
+ * @return {?}
335
+ */
336
+ setorderFeesTotal(orderFeesTotal) {
337
+ this.orderFeesTotal.next(orderFeesTotal);
338
+ }
339
+ /**
340
+ * @return {?}
341
+ */
342
+ getorderFeesTotals() {
343
+ return this.orderFeesTotal;
344
+ }
345
+ /**
346
+ * @param {?} orderTotalPayments
347
+ * @return {?}
348
+ */
349
+ setorderTotalPayments(orderTotalPayments) {
350
+ this.orderTotalPayments.next(orderTotalPayments);
351
+ }
352
+ /**
353
+ * @return {?}
354
+ */
355
+ getoorderTotalPaymentss() {
356
+ return this.orderTotalPayments;
357
+ }
358
+ }
359
+ OrderslistService.decorators = [
360
+ { type: Injectable, args: [{
361
+ providedIn: 'root'
362
+ },] }
363
+ ];
364
+ /** @nocollapse */
365
+ OrderslistService.ctorParameters = () => [];
366
+ /** @nocollapse */ OrderslistService.ngInjectableDef = defineInjectable({ factory: function OrderslistService_Factory() { return new OrderslistService(); }, token: OrderslistService, providedIn: "root" });
367
+
368
+ /**
369
+ * @fileoverview added by tsickle
370
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
371
+ */
79
372
  class PaymentLibComponent {
80
- // pbaPayOrderRef: IPayment;
81
- // isFromServiceRequestPage: boolean;
82
373
  /**
83
374
  * @param {?} paymentLibService
84
375
  * @param {?} cd
376
+ * @param {?} OrderslistService
85
377
  */
86
- constructor(paymentLibService, cd) {
378
+ constructor(paymentLibService, cd, OrderslistService$$1) {
87
379
  this.paymentLibService = paymentLibService;
88
380
  this.cd = cd;
381
+ this.OrderslistService = OrderslistService$$1;
89
382
  this.unProcessedPaymentServiceId = null;
90
383
  this.unProcessedPayment = null;
384
+ this.orderFeesTotal = 0.00;
385
+ this.orderRemissionTotal = 0.00;
386
+ this.orderTotalPayments = 0.00;
387
+ this.orderPendingPayments = 0.00;
91
388
  }
92
389
  /**
93
390
  * @return {?}
@@ -102,6 +399,10 @@ class PaymentLibComponent {
102
399
  this.paymentLibService.setApiRootUrl(this.API_ROOT);
103
400
  this.paymentLibService.setBulkScanApiRootUrl(this.BULKSCAN_API_ROOT);
104
401
  this.paymentLibService.setRefundndsApiRootUrl(this.REFUNDS_API_ROOT);
402
+ this.paymentLibService.setNoticationApiRootUrl(this.NOTIFICATION_API_ROOT);
403
+ if (this.LOGGEDINUSERROLES.length > 0) {
404
+ this.OrderslistService.setUserRolesList(this.LOGGEDINUSERROLES);
405
+ }
105
406
  if (this.PAYMENT_GROUP_REF) {
106
407
  this.paymentGroupReference = this.PAYMENT_GROUP_REF;
107
408
  }
@@ -121,6 +422,9 @@ class PaymentLibComponent {
121
422
  else {
122
423
  this.viewName = this.VIEW;
123
424
  }
425
+ if (this.isTakePayment) {
426
+ this.TAKEPAYMENT = true;
427
+ }
124
428
  }
125
429
  }
126
430
  PaymentLibComponent.decorators = [
@@ -139,9 +443,10 @@ PaymentLibComponent.decorators = [
139
443
  [refundReference]="refundReference"
140
444
  [refundlistsource]="refundlistsource"
141
445
  ></ccpay-process-refund>
142
-
143
-
144
- <ccpay-case-transactions [LOGGEDINUSERROLES]="LOGGEDINUSERROLES" *ngIf="viewName === 'case-transactions'"></ccpay-case-transactions>
446
+ <ccpay-pba-payment *ngIf="viewName === 'pba-payment'"
447
+ [pbaPayOrderRef]="pbaPayOrderRef"
448
+ ></ccpay-pba-payment>
449
+ <ccpay-case-transactions [isTakePayment]="isTakePayment" [LOGGEDINUSERROLES]="LOGGEDINUSERROLES" *ngIf="viewName === 'case-transactions'"></ccpay-case-transactions>
145
450
  <app-mark-unidentified-payment *ngIf="viewName === 'unidentifiedPage'"
146
451
  [caseType]="CASETYPE"></app-mark-unidentified-payment>
147
452
  <app-mark-unsolicited-payment *ngIf="viewName === 'unsolicitedPage'"
@@ -165,12 +470,14 @@ PaymentLibComponent.decorators = [
165
470
  /** @nocollapse */
166
471
  PaymentLibComponent.ctorParameters = () => [
167
472
  { type: PaymentLibService },
168
- { type: ChangeDetectorRef }
473
+ { type: ChangeDetectorRef },
474
+ { type: OrderslistService }
169
475
  ];
170
476
  PaymentLibComponent.propDecorators = {
171
477
  API_ROOT: [{ type: Input, args: ['API_ROOT',] }],
172
478
  BULKSCAN_API_ROOT: [{ type: Input, args: ['BULKSCAN_API_ROOT',] }],
173
479
  REFUNDS_API_ROOT: [{ type: Input, args: ['REFUNDS_API_ROOT',] }],
480
+ NOTIFICATION_API_ROOT: [{ type: Input, args: ['NOTIFICATION_API_ROOT',] }],
174
481
  CCD_CASE_NUMBER: [{ type: Input, args: ['CCD_CASE_NUMBER',] }],
175
482
  EXC_REFERENCE: [{ type: Input, args: ['EXC_REFERENCE',] }],
176
483
  PAYMENT_METHOD: [{ type: Input, args: ['PAYMENT_METHOD',] }],
@@ -215,19 +522,57 @@ class ErrorHandlerService {
215
522
  else {
216
523
  // The backend returned an unsuccessful response code.
217
524
  if (err.status === 404) {
218
- if (!err.error) {
219
- errorMessage = 'Not found';
525
+ if (typeof err.error === 'string' && err.error !== undefined) {
526
+ if (err.error.length > 60) {
527
+ if (JSON.parse(err.error).statusCode !== undefined && JSON.parse(err.error).statusCode === 500) {
528
+ errorMessage = 'Internal server error';
529
+ }
530
+ else {
531
+ if (err.error.length > 60) {
532
+ errorMessage = JSON.parse(err.error).error;
533
+ }
534
+ else {
535
+ errorMessage = err.error;
536
+ }
537
+ }
538
+ }
539
+ else {
540
+ errorMessage = err.error;
541
+ }
220
542
  }
221
543
  else {
222
- errorMessage = err.error;
544
+ errorMessage = JSON.parse(err.error).error;
223
545
  }
224
546
  }
547
+ else if (err.status === 500) {
548
+ errorMessage = 'Internal server error';
549
+ }
225
550
  else if (err.error.messsage === undefined) {
226
551
  if (typeof err.error === 'object') {
227
552
  errorMessage = JSON.parse(JSON.stringify(err.error)).error;
228
553
  }
229
554
  else {
230
- errorMessage = JSON.parse(err.error).error;
555
+ if (typeof err.error === 'string' && err.error !== undefined) {
556
+ if (err.error.length > 60) {
557
+ if (JSON.parse(err.error).statusCode !== undefined && JSON.parse(err.error).statusCode === 500) {
558
+ errorMessage = 'Internal server error';
559
+ }
560
+ else {
561
+ if (err.error.length > 60) {
562
+ errorMessage = JSON.parse(err.error).error;
563
+ }
564
+ else {
565
+ errorMessage = err.error;
566
+ }
567
+ }
568
+ }
569
+ else {
570
+ errorMessage = err.error;
571
+ }
572
+ }
573
+ else {
574
+ errorMessage = JSON.parse(err.error).error;
575
+ }
231
576
  }
232
577
  }
233
578
  else {
@@ -544,6 +889,34 @@ class PaymentViewService {
544
889
  })
545
890
  .pipe(catchError(this.errorHandlerService.handleError));
546
891
  }
892
+ /**
893
+ * @return {?}
894
+ */
895
+ getPBAaccountDetails() {
896
+ /** @type {?} */
897
+ const url = `${this.paymentLibService.API_ROOT}/pba-accounts`;
898
+ return this.http.get(url, { withCredentials: true }).pipe(catchError(this.errorHandlerService.handleError));
899
+ }
900
+ /**
901
+ * @param {?} serviceRef
902
+ * @param {?} body
903
+ * @return {?}
904
+ */
905
+ postWays2PayCardPayment(serviceRef, body) {
906
+ /** @type {?} */
907
+ const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/card-payments`;
908
+ return this.https.post(url, body).pipe(catchError(this.errorHandlerService.handleError));
909
+ }
910
+ /**
911
+ * @param {?} serviceRef
912
+ * @param {?} body
913
+ * @return {?}
914
+ */
915
+ postPBAaccountPayment(serviceRef, body) {
916
+ /** @type {?} */
917
+ const url = `${this.paymentLibService.API_ROOT}/service-request/${serviceRef}/pba-payments`;
918
+ return this.https.post(url, body);
919
+ }
547
920
  /**
548
921
  * @param {?} body
549
922
  * @return {?}
@@ -691,155 +1064,6 @@ PaymentViewService.ctorParameters = () => [
691
1064
  ];
692
1065
  /** @nocollapse */ PaymentViewService.ngInjectableDef = defineInjectable({ factory: function PaymentViewService_Factory() { return new PaymentViewService(inject(HttpClient), inject(WebComponentHttpClient), inject(LoggerService), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: PaymentViewService, providedIn: "root" });
693
1066
 
694
- /**
695
- * @fileoverview added by tsickle
696
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
697
- */
698
- class OrderslistService {
699
- constructor() {
700
- this.ordersList = new BehaviorSubject(null);
701
- this.refundView = new BehaviorSubject(null);
702
- this.caseType = new BehaviorSubject("");
703
- this.getcaseType = this.caseType.asObservable();
704
- this.feeExists = new BehaviorSubject(null);
705
- this.getFeeExist = this.feeExists.asObservable();
706
- this.ccdCaseNumber = new BehaviorSubject("");
707
- this.getCCDCaseNumberforRefund = this.ccdCaseNumber.asObservable();
708
- this.isFromServiceRequestPage = new BehaviorSubject(null);
709
- this.getisFromServiceRequestPage = this.isFromServiceRequestPage.asObservable();
710
- this.OrderRefId = new BehaviorSubject("");
711
- this.getOrderRefId = this.OrderRefId.asObservable();
712
- this.navigationPage = new BehaviorSubject("");
713
- this.getnavigationPage = this.navigationPage.asObservable();
714
- this.paymentPageView = new BehaviorSubject(null);
715
- }
716
- /**
717
- * @param {?} orderLevelFees
718
- * @return {?}
719
- */
720
- setOrdersList(orderLevelFees) {
721
- this.ordersList.next(Object.assign([], orderLevelFees));
722
- }
723
- /**
724
- * @return {?}
725
- */
726
- getOrdersList() {
727
- return this.ordersList;
728
- }
729
- /**
730
- * @param {?} refundList
731
- * @return {?}
732
- */
733
- setRefundView(refundList) {
734
- this.refundView.next(Object.assign([], refundList));
735
- }
736
- /**
737
- * @return {?}
738
- */
739
- getRefundView() {
740
- return this.refundView;
741
- }
742
- /**
743
- * @param {?} caseType
744
- * @return {?}
745
- */
746
- setCaseType(caseType) {
747
- this.caseType.next(caseType);
748
- }
749
- /**
750
- * @return {?}
751
- */
752
- getCaseType() {
753
- return this.caseType;
754
- }
755
- /**
756
- * @param {?} ccdCaseNumber
757
- * @return {?}
758
- */
759
- setCCDCaseNumber(ccdCaseNumber) {
760
- this.ccdCaseNumber.next(ccdCaseNumber);
761
- }
762
- /**
763
- * @return {?}
764
- */
765
- getCCDCaseNumber() {
766
- return this.ccdCaseNumber;
767
- }
768
- /**
769
- * @param {?} feeExists
770
- * @return {?}
771
- */
772
- setFeeExists(feeExists) {
773
- this.feeExists.next(feeExists);
774
- }
775
- /**
776
- * @return {?}
777
- */
778
- getFeeExists() {
779
- return this.feeExists;
780
- }
781
- /**
782
- * @param {?} isFromServiceRequestPage
783
- * @return {?}
784
- */
785
- setisFromServiceRequestPage(isFromServiceRequestPage) {
786
- this.isFromServiceRequestPage.next(isFromServiceRequestPage);
787
- }
788
- /**
789
- * @return {?}
790
- */
791
- getisFromServiceRequestPages() {
792
- return this.isFromServiceRequestPage;
793
- }
794
- /**
795
- * @param {?} OrderRefId
796
- * @return {?}
797
- */
798
- setOrderRefId(OrderRefId) {
799
- this.OrderRefId.next(OrderRefId);
800
- }
801
- /**
802
- * @return {?}
803
- */
804
- getSelectedOrderRefId() {
805
- return this.OrderRefId;
806
- }
807
- /**
808
- * @param {?} navigationPage
809
- * @return {?}
810
- */
811
- setnavigationPage(navigationPage) {
812
- this.navigationPage.next(navigationPage);
813
- }
814
- /**
815
- * @return {?}
816
- */
817
- getnavigationPageValue() {
818
- return this.navigationPage;
819
- }
820
- /**
821
- * @param {?} paymentpageList
822
- * @return {?}
823
- */
824
- setpaymentPageView(paymentpageList) {
825
- this.paymentPageView.next(Object.assign([], paymentpageList));
826
- }
827
- /**
828
- * @return {?}
829
- */
830
- getpaymentPageView() {
831
- return this.paymentPageView;
832
- }
833
- }
834
- OrderslistService.decorators = [
835
- { type: Injectable, args: [{
836
- providedIn: 'root'
837
- },] }
838
- ];
839
- /** @nocollapse */
840
- OrderslistService.ctorParameters = () => [];
841
- /** @nocollapse */ OrderslistService.ngInjectableDef = defineInjectable({ factory: function OrderslistService_Factory() { return new OrderslistService(); }, token: OrderslistService, providedIn: "root" });
842
-
843
1067
  /**
844
1068
  * @fileoverview added by tsickle
845
1069
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -929,6 +1153,7 @@ class PaymentViewComponent {
929
1153
  }
930
1154
  }));
931
1155
  paymentGroup.fees = fees;
1156
+ this.paymentFees = fees;
932
1157
  this.paymentGroup = paymentGroup;
933
1158
  this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
934
1159
  * @param {?} paymentGroupObj
@@ -938,7 +1163,6 @@ class PaymentViewComponent {
938
1163
  /** @type {?} */
939
1164
  const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
940
1165
  this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
941
- console.log(this.paymentGroup.payments[0] + '1');
942
1166
  }), (/**
943
1167
  * @param {?} error
944
1168
  * @return {?}
@@ -969,19 +1193,56 @@ class PaymentViewComponent {
969
1193
  */
970
1194
  goToCaseTransationPage(event) {
971
1195
  event.preventDefault();
972
- this.OrderslistService.setnavigationPage('casetransactions');
973
- this.OrderslistService.setisFromServiceRequestPage(false);
974
- this.paymentLibComponent.viewName = 'case-transactions';
975
- this.paymentLibComponent.ISBSENABLE = true;
976
- // this.paymentViewService.getBSfeature().subscribe(
977
- // features => {
978
- // let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
979
- // this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
980
- // },
981
- // err => {
982
- // this.paymentLibComponent.ISBSENABLE = false;
983
- // }
984
- // );
1196
+ if (!this.paymentLibComponent.isFromServiceRequestPage) {
1197
+ this.OrderslistService.setnavigationPage('casetransactions');
1198
+ this.OrderslistService.setisFromServiceRequestPage(false);
1199
+ this.paymentLibComponent.viewName = 'case-transactions';
1200
+ this.paymentLibComponent.ISBSENABLE = true;
1201
+ this.resetOrderData();
1202
+ }
1203
+ else {
1204
+ this.OrderslistService.getorderRefs().subscribe((/**
1205
+ * @param {?} data
1206
+ * @return {?}
1207
+ */
1208
+ (data) => this.orderRef = data));
1209
+ this.OrderslistService.getorderCCDEvents().subscribe((/**
1210
+ * @param {?} data
1211
+ * @return {?}
1212
+ */
1213
+ (data) => this.orderCCDEvent = data));
1214
+ this.OrderslistService.getorderCreateds().subscribe((/**
1215
+ * @param {?} data
1216
+ * @return {?}
1217
+ */
1218
+ (data) => this.orderCreated = data));
1219
+ this.OrderslistService.getorderDetail().subscribe((/**
1220
+ * @param {?} data
1221
+ * @return {?}
1222
+ */
1223
+ (data) => this.orderDetail = data));
1224
+ this.OrderslistService.getorderPartys().subscribe((/**
1225
+ * @param {?} data
1226
+ * @return {?}
1227
+ */
1228
+ (data) => this.orderParty = data));
1229
+ this.OrderslistService.getorderRemissionTotals().subscribe((/**
1230
+ * @param {?} data
1231
+ * @return {?}
1232
+ */
1233
+ (data) => this.orderRemissionTotal = data));
1234
+ this.OrderslistService.getorderFeesTotals().subscribe((/**
1235
+ * @param {?} data
1236
+ * @return {?}
1237
+ */
1238
+ (data) => this.orderFeesTotal = data));
1239
+ this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
1240
+ * @param {?} data
1241
+ * @return {?}
1242
+ */
1243
+ (data) => this.orderTotalPayments = data));
1244
+ this.viewStatus = 'order-full-view';
1245
+ }
985
1246
  }
986
1247
  /**
987
1248
  * @param {?} fee
@@ -1094,6 +1355,9 @@ class PaymentViewComponent {
1094
1355
  this.paymentGroup = paymentgrp;
1095
1356
  this.viewStatus = 'issuerefund';
1096
1357
  this.isRefundRemission = true;
1358
+ this.paymentLibComponent.isFromPaymentDetailPage = true;
1359
+ this.isFromPaymentDetailPage = true;
1360
+ this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
1097
1361
  }
1098
1362
  }
1099
1363
  }
@@ -1107,7 +1371,6 @@ class PaymentViewComponent {
1107
1371
  for (const remission of remissions) {
1108
1372
  if (remission.fee_code === feeCode) {
1109
1373
  return remission;
1110
- // this.isAddFeeBtnEnabled = true;
1111
1374
  }
1112
1375
  }
1113
1376
  }
@@ -1162,12 +1425,25 @@ class PaymentViewComponent {
1162
1425
  return false;
1163
1426
  }
1164
1427
  }
1428
+ /**
1429
+ * @return {?}
1430
+ */
1431
+ resetOrderData() {
1432
+ this.OrderslistService.setOrderRef(null);
1433
+ this.OrderslistService.setorderCCDEvent(null);
1434
+ this.OrderslistService.setorderCreated(null);
1435
+ this.OrderslistService.setorderDetail(null);
1436
+ this.OrderslistService.setorderParty(null);
1437
+ this.OrderslistService.setorderTotalPayments(null);
1438
+ this.OrderslistService.setorderRemissionTotal(null);
1439
+ this.OrderslistService.setorderFeesTotal(null);
1440
+ }
1165
1441
  }
1166
1442
  PaymentViewComponent.decorators = [
1167
1443
  { type: Component, args: [{
1168
1444
  selector: 'ccpay-payment-view',
1169
- template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <!-- <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr> -->\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service reference</td>\n <td>{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td>{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td>{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td>{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td>{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td>{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td>{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n \n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n\n\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n</ng-container>\n<!-- <ng-container *ngIf=\"isTakePayment\">\n <div class=\"govuk-width-container\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"#\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n \n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n \n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n \n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup\">\n \n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td>{{ paymentGroup.payments[0].reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup.payments[0].amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup.payments[0].external_reference }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n \n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <h2 class=\"heading-large\">Fee and remission details</h2>\n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.net_amount && isTurnOff\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\" >Net amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\">\u00A3{{ fee.net_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w\">Remission code</td>\n <td>{{fee.remissions.hwf_reference}}</td>\n </tr>\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w tr-border\">Remission amount</td>\n <td class=\"tr-border\">\u00A3{{ fee.remissions.hwf_amount | number:'.2'}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n \n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details>\n -->\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n <!-- Status histories -->\n <!-- <ccpay-payment-statuses *ngIf=\"isStatusAllocated\"[isTakePayment]=\"isTakePayment\" ></ccpay-payment-statuses>\n \n </div>\n \n </main>\n </div> -->\n<!-- </ng-container> --> \n",
1170
- styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:19px;float:left;margin-top:2em}.remission{margin-bottom:7em}.govuk-error-summary__title{font-size:24px!important}.govuk-table__cell,.govuk-table__header{padding:0;line-height:1.3}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}"]
1445
+ template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n \n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td> \n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n \n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n \n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n \n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n\n\n \n <!-- <button *ngIf=\"paymentGroup.payments[0].method === 'payment by account'\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n -->\n\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!paymentGroup.payments[0].refund_enable\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIsRefundRemissionBtnEnable()\" class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n </div></div>\n \n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n \n </div>\n\n\n\n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details> -->\n\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n\n \n\n </div>\n\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission \n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\" \n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission \n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\" \n [isOldPcipalOff]=\"isOldPcipalOff\" \n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [isNewPcipalOff]=\"isNewPcipalOff\" \n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\" \n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\" \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [fees] =\"paymentFees\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n \n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-service-request>\n</ng-container>\n<!-- <ng-container *ngIf=\"isTakePayment\">\n <div class=\"govuk-width-container\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"#\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n \n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\n \n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n \n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup\">\n \n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n <tr class=\"section\" *ngIf=\"isTurnOff\">\n <td class=\"bold tb-col-w\">Payment group reference</td>\n <td>{{ paymentGroup.payment_group_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td>{{ paymentGroup.payments[0].reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td>\u00A3{{ paymentGroup.payments[0].amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td>{{ paymentGroup.payments[0].external_reference }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td>{{ paymentGroup.payments[0].document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup.payments[0] && paymentGroup.payments[0].document_control_number && !paymentGroup.payments[0].external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td>{{ paymentGroup.payments[0].banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n </tbody>\n </table>\n \n <div class=\"govuk-grid-row\" *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <h2 class=\"heading-large\">Fee and remission details</h2>\n </div>\n </div>\n \n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td>Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td>{{ fee.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">\u00A3{{ fee.calculated_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.net_amount && isTurnOff\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\" >Net amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions}\">\u00A3{{ fee.net_amount | number:'.2' }}</td>\n </tr>\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee.apportion_amount | number:'.2' }}</td>\n </tr>\n \n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w\">Remission code</td>\n <td>{{fee.remissions.hwf_reference}}</td>\n </tr>\n <tr *ngIf=\"fee.remissions\">\n <td class=\"bold tb-col-w tr-border\">Remission amount</td>\n <td class=\"tr-border\">\u00A3{{ fee.remissions.hwf_amount | number:'.2'}}</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n \n <!-- card details -->\n <!-- <ccpay-card-details *ngIf=\"isCardPayment && !isTelephonyPayment\"></ccpay-card-details>\n -->\n <!-- pba details -->\n <!-- <ccpay-pba-details *ngIf=\"!isCardPayment\" [payment]=\"paymentGroup.payments[0]\"></ccpay-pba-details> -->\n <!-- Status histories -->\n <!-- <ccpay-payment-statuses *ngIf=\"isStatusAllocated\"[isTakePayment]=\"isTakePayment\" ></ccpay-payment-statuses>\n \n </div>\n \n </main>\n </div> -->\n<!-- </ng-container> --> \n",
1446
+ styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:19px;float:left;margin-top:2em}.remission{margin-bottom:7em}.govuk-error-summary__title{font-size:24px!important}.govuk-table__cell,.govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}.text-transform::first-letter{text-transform:capitalize}.govuk-link{cursor:pointer}"]
1171
1447
  }] }
1172
1448
  ];
1173
1449
  /** @nocollapse */
@@ -1187,7 +1463,13 @@ PaymentViewComponent.propDecorators = {
1187
1463
  orderStatus: [{ type: Input }],
1188
1464
  orderTotalPayments: [{ type: Input }],
1189
1465
  payment: [{ type: Input }],
1190
- LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }]
1466
+ LOGGEDINUSERROLES: [{ type: Input }],
1467
+ orderParty: [{ type: Input }],
1468
+ orderCreated: [{ type: Input }],
1469
+ orderCCDEvent: [{ type: Input }],
1470
+ orderFeesTotal: [{ type: Input }],
1471
+ orderRemissionTotal: [{ type: Input }],
1472
+ orderDetail: [{ type: Input }]
1191
1473
  };
1192
1474
 
1193
1475
  /**
@@ -1295,6 +1577,15 @@ class RefundsService {
1295
1577
  postIssueRefund(body) {
1296
1578
  return this.https.post(`${this.paymentLibService.REFUNDS_API_ROOT}/refund`, body).pipe(catchError(this.errorHandlerService.handleError));
1297
1579
  }
1580
+ /**
1581
+ * @param {?} body
1582
+ * @param {?} refundRef
1583
+ * @param {?} notificationType
1584
+ * @return {?}
1585
+ */
1586
+ putResendOrEdit(body, refundRef, notificationType) {
1587
+ return this.https.put(`${this.paymentLibService.REFUNDS_API_ROOT}/resend/notification/${refundRef}?notificationType=${notificationType}`, body).pipe(catchError(this.errorHandlerService.handleError));
1588
+ }
1298
1589
  /**
1299
1590
  * @param {?} body
1300
1591
  * @param {?} refund_reference
@@ -1360,15 +1651,21 @@ RefundsService.ctorParameters = () => [
1360
1651
  class ProcessRefundComponent {
1361
1652
  /**
1362
1653
  * @param {?} RefundsService
1654
+ * @param {?} paymentViewService
1363
1655
  * @param {?} formBuilder
1364
1656
  * @param {?} OrderslistService
1365
1657
  * @param {?} paymentLibComponent
1658
+ * @param {?} router
1659
+ * @param {?} activeRoute
1366
1660
  */
1367
- constructor(RefundsService$$1, formBuilder, OrderslistService$$1, paymentLibComponent) {
1661
+ constructor(RefundsService$$1, paymentViewService, formBuilder, OrderslistService$$1, paymentLibComponent, router, activeRoute) {
1368
1662
  this.RefundsService = RefundsService$$1;
1663
+ this.paymentViewService = paymentViewService;
1369
1664
  this.formBuilder = formBuilder;
1370
1665
  this.OrderslistService = OrderslistService$$1;
1371
1666
  this.paymentLibComponent = paymentLibComponent;
1667
+ this.router = router;
1668
+ this.activeRoute = activeRoute;
1372
1669
  this.errorMessage = this.getErrorMessage(false, '', '', '');
1373
1670
  this.sendmeback = null;
1374
1671
  this.refundActionList = [];
@@ -1386,6 +1683,7 @@ class ProcessRefundComponent {
1386
1683
  this.isReasonEmpty = false;
1387
1684
  this.isReasonInvalid = false;
1388
1685
  this.successMsg = null;
1686
+ this.cpoDetails = null;
1389
1687
  this.isConfirmButtondisabled = true;
1390
1688
  }
1391
1689
  /**
@@ -1422,15 +1720,38 @@ class ProcessRefundComponent {
1422
1720
  enterReasonField: new FormControl('', Validators.compose([
1423
1721
  Validators.required,
1424
1722
  Validators.maxLength(30),
1425
- Validators.pattern('^([a-zA-Z0-9\\s]*)$'),
1723
+ Validators.pattern('^([a-zA-Z0-9.\\s]*)$'),
1426
1724
  ])),
1427
1725
  });
1726
+ this.ccdCaseNumber = this.refundlistsource.ccd_case_number;
1727
+ if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
1728
+ this.isFromRefundListPage = true;
1729
+ }
1730
+ this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
1731
+ * @param {?} response
1732
+ * @return {?}
1733
+ */
1734
+ response => {
1735
+ this.cpoDetails = JSON.parse(response).content[0];
1736
+ }), (/**
1737
+ * @param {?} error
1738
+ * @return {?}
1739
+ */
1740
+ (error) => {
1741
+ this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
1742
+ this.isCPODown = true;
1743
+ }));
1428
1744
  }
1429
1745
  /**
1430
1746
  * @param {?} code
1431
1747
  * @return {?}
1432
1748
  */
1433
1749
  checkRefundActions(code) {
1750
+ this.refundActionsHasError = false;
1751
+ this.isReasonFieldEmpty = false;
1752
+ this.isReasonEmpty = false;
1753
+ this.isReasonInvalid = false;
1754
+ this.refundRejectReasonHasError = false;
1434
1755
  if (code === 'Return to caseworker') {
1435
1756
  this.isConfirmButtondisabled = true;
1436
1757
  this.isSendMeBackClicked = true;
@@ -1588,18 +1909,45 @@ class ProcessRefundComponent {
1588
1909
  */
1589
1910
  (data) => this.navigationpage = data));
1590
1911
  if (this.navigationpage === 'casetransactions') {
1591
- window.location.href = '/refund-list?takePayment=false&refundlist=true';
1912
+ // window.location.href='/refund-list?takePayment=false&refundlist=true';
1913
+ // // this.OrderslistService.setnavigationPage('casetransactions');
1914
+ // // this.OrderslistService.setisFromServiceRequestPage(false);
1915
+ // // this.paymentLibComponent.VIEW ='case-transactions';
1916
+ // // this.paymentLibComponent.viewName = 'case-transactions';
1917
+ // // this.paymentLibComponent.ISBSENABLE = true;
1918
+ // // this.paymentLibComponent.isRefundStatusView = false;
1919
+ this.paymentLibComponent.viewName = 'refundstatuslist';
1920
+ this.paymentLibComponent.isRefundStatusView = true;
1592
1921
  }
1593
1922
  else {
1923
+ this.paymentLibComponent.viewName = 'refundstatuslist';
1924
+ this.paymentLibComponent.isRefundStatusView = true;
1925
+ }
1926
+ }
1927
+ /**
1928
+ * @return {?}
1929
+ */
1930
+ loadRefundsHomePage() {
1931
+ if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
1932
+ //window.location.href='/refund-list?takePayment=false&refundlist=true';
1594
1933
  this.paymentLibComponent.viewName = 'refund-list';
1595
1934
  }
1935
+ else {
1936
+ this.OrderslistService.setnavigationPage('casetransactions');
1937
+ this.OrderslistService.setisFromServiceRequestPage(false);
1938
+ this.paymentLibComponent.VIEW = 'case-transactions';
1939
+ this.paymentLibComponent.viewName = 'case-transactions';
1940
+ this.paymentLibComponent.ISBSENABLE = true;
1941
+ this.paymentLibComponent.isRefundStatusView = false;
1942
+ }
1596
1943
  }
1597
1944
  /**
1598
1945
  * @return {?}
1599
1946
  */
1600
1947
  redirecttoRefundListPage() {
1601
- if (this.paymentLibComponent.API_ROOT === 'api/payment-history') {
1602
- window.location.href = '/refund-list?takePayment=false&refundlist=true';
1948
+ if ((typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') || (typeof this.paymentLibComponent.TAKEPAYMENT === 'boolean' && !this.paymentLibComponent.TAKEPAYMENT)) {
1949
+ // window.location.href='/refund-list?takePayment=false&refundlist=true';
1950
+ this.paymentLibComponent.viewName = 'refund-list';
1603
1951
  }
1604
1952
  else {
1605
1953
  this.loadRefundListPage();
@@ -1652,20 +2000,29 @@ class ProcessRefundComponent {
1652
2000
  this.isReasonInvalid = vals[7];
1653
2001
  }
1654
2002
  }
1655
- }
1656
- ProcessRefundComponent.decorators = [
1657
- { type: Component, args: [{
2003
+ /**
2004
+ * @return {?}
2005
+ */
2006
+ goToCaseReview() {
2007
+ this.router.navigate([`/cases/case-details/${this.ccdCaseNumber}`], { relativeTo: this.activeRoute });
2008
+ }
2009
+ }
2010
+ ProcessRefundComponent.decorators = [
2011
+ { type: Component, args: [{
1658
2012
  selector: 'ccpay-process-refund',
1659
- template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Submitted by</td>\n <td>{{refundlistsource?.user_full_name}}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date submitted</td>\n <td>\t{{refundlistsource?.date_created | date:'d MMMM yyyy' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n <div class=\"process-refund__panel\">\n <form [formGroup]=\"processRefundForm\" novalidate>\n <div class=\"\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sign-in-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"heading-large\">\n What do you want to do with this refund?\n </h1>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundActionsHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundActionsHasError\">\n <span *ngIf=\"refundActionsHasError\">Please select an action</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundAction of refundActionList; let i = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundAction-{{i}}\" \n name=\"refundActionField\"\n type=\"radio\"\n formControlName=\"refundActionField\"\n (click)=\"checkRefundActions(refundAction.code)\"\n value=\"{{refundAction.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundAction-{{i}}\">\n {{refundAction.code}}\n </label>\n <div id=\"sign-in-item-hint\" class=\"govuk-hint govuk-radios__hint process-refund-font\">\n {{refundAction.label}}\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSendMeBackClicked}\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font\" for=\"contact-by-text\">\n Add a reason\n </label>\n <p class=\"inline-error-message\"\n *ngIf=\"isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError\">\n <span *ngIf=\"isReasonFieldEmpty\">Add a reason</span>\n <span *ngIf=\"isReasonFieldInvalid\">Add a valid reason</span>\n <span *ngIf=\"reasonFieldMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonFieldMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n <textarea class=\"govuk-textarea govuk-!-width-one-third\"\n [ngClass]=\"{'inline-error-class': isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError}\"\n id=\"sendmeback\"\n name=\"sendMeBackField\" \n formControlName=\"sendMeBackField\"\n rows=\"5\"></textarea>\n \n </div>\n\n </div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div [ngClass]=\"{'govuk-radios__conditional--hidden': !isRejectClicked}\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h2 class=\"heading-medium\">\n Why are you rejecting this refund?\n </h2>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundRejectReasonHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundRejectReasonHasError\">\n <span *ngIf=\"refundRejectReasonHasError\">Please select a reject reason</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundRejectReason of refundRejectReasonList; let j = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundRejectReason-{{j}}\"\n formControlName=\"refundRejectReasonField\"\n name=\"refundRejectReasonField\"\n (click)=\"checkRefundActions(refundRejectReason.code)\"\n type=\"radio\" value=\"{{refundRejectReason.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundRejectReason-{{j}}\">\n {{refundRejectReason.name}}\n </label>\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isOtherClicked}\" id=\"conditional-contact-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font \" for=\"contact-by-text\">\n Enter reason\n </label>\n <input class=\"govuk-input govuk-!-width-one-third\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || isReasonInvalid\">\n <span *ngIf=\"isReasonEmpty\">Enter reason.</span>\n <span *ngIf=\"isReasonInvalid\">Enter a valid reason</span>\n </p>\n </div>\n \n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"redirecttoRefundListPage()\" class=\"govuk-button govuk-button--secondary marginright\"> Previous</button>\n <button (click)=\"processRefundSubmit()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit \n </button>\n <br/><br/>\n </div>\n \n <div class=\"govuk-button-group margin\">\n\n <p><a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n</div>\n</form>\n </div>\n \n\n </main>\n \n <main class=\"govuk-main-wrapper govuk-main-wrapper--l success-page-padding--top25\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSuccesspageEnable}\" id=\"main-content\" role=\"main\" >\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel-refund--confirmation\">\n <h1 class=\"heading-xlarge\">\n {{successMsg}}\n </h1>\n </div>\n <p class=\"govuk-body process-refund-font\">\n <a href=\"/orders/pages/v1caseinccd?result=approved\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </main>\n</div>\n</ng-container>\n\n",
1660
- styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:2.1875rem;float:left;margin-top:2em}.remission{margin-bottom:7em}.process-refund-font{font-size:19px!important}.govuk-radios__conditional--hidden{display:none}.inline-error-message{color:#c11717;font-weight:700;margin-top:10px;border-color:#c11717}.inline-error-class{outline:#c11717 solid 3px;outline-offset:0;border-color:#c11717}.form-group-error{border-left:5px solid #c11717;padding-left:15px}.govuk-panel-refund--confirmation{color:#fff;background:#00703c}.process-refund__panel{display:flex;flex-direction:column;margin-left:25px;margin-top:30px}.button-margin--left25{margin-left:25px}.success-page-padding--top25{padding-top:25px}.margin{margin-top:5em}.marginright{margin-right:1.5em}.govuk-textarea{line-height:2.25}"]
2013
+ template: "<ng-container *ngIf=\"viewStatus === 'RefundProcess'\">\n<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" [ngClass]=\"{'govuk-radios__conditional--hidden': isSuccesspageEnable}\" id=\"main-content\" role=\"main\">\n <div *ngIf=\"errorMessage.showError\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n {{errorMessage.title}}\n </h2>\n <div class=\"govuk-error-summary__body process-refund-font\">\n {{errorMessage.body}}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Review refund details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>\t{{refundlistsource?.refund_reference}} ({{refundlistsource.amount | currency :'GBP':'symbol':'1.2-2' }})</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>\t{{refundlistsource?.reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount to be refunded</td>\n <td>{{refundlistsource?.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent to</td>\n <td>{{cpoDetails.responsibleParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Sent via</td>\n <td>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlistsource?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlistsource?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlistsource?.contact_details?.address_line}} {{refundlistsource?.contact_details?.city}} {{refundlistsource?.contact_details?.county}} {{refundlistsource?.contact_details?.country}} {{refundlistsource?.contact_details?.postal_code}}\n </div> \n </td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Submitted by</td>\n <td>{{refundlistsource?.user_full_name}}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date submitted</td>\n <td>\t{{refundlistsource?.date_created | date:'d MMMM yyyy' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n <div class=\"process-refund__panel\">\n <form [formGroup]=\"processRefundForm\" novalidate>\n <div class=\"\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"sign-in-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"heading-large\">\n What do you want to do with this refund?\n </h1>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundActionsHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundActionsHasError\">\n <span *ngIf=\"refundActionsHasError\">Please select an action</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundAction of refundActionList; let i = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundAction-{{i}}\" \n name=\"refundActionField\"\n type=\"radio\"\n formControlName=\"refundActionField\"\n (click)=\"checkRefundActions(refundAction.code)\"\n value=\"{{refundAction.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundAction-{{i}}\">\n {{refundAction.code}}\n </label>\n <div id=\"sign-in-item-hint\" class=\"govuk-hint govuk-radios__hint process-refund-font\">\n {{refundAction.label}}\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSendMeBackClicked}\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font\" for=\"contact-by-text\">\n Add a reason\n </label>\n <p class=\"inline-error-message\"\n *ngIf=\"isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError\">\n <span *ngIf=\"isReasonFieldEmpty\">Add a reason</span>\n <span *ngIf=\"isReasonFieldInvalid\">Add a valid reason</span>\n <span *ngIf=\"reasonFieldMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonFieldMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n <textarea class=\"govuk-textarea govuk-!-width-one-third reason-font\"\n [ngClass]=\"{'inline-error-class': isReasonFieldEmpty || isReasonFieldInvalid || reasonFieldMinHasError || reasonFieldMaxHasError}\"\n id=\"sendmeback\"\n name=\"sendMeBackField\" \n formControlName=\"sendMeBackField\"\n rows=\"5\"></textarea>\n \n </div>\n\n </div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div [ngClass]=\"{'govuk-radios__conditional--hidden': !isRejectClicked}\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h2 class=\"heading-medium\">\n Why are you rejecting this refund?\n </h2>\n </legend>\n <div class=\"govuk-radios\" [ngClass]=\"{'form-group-error': refundRejectReasonHasError}\">\n <p class=\"inline-error-message\"\n *ngIf=\"refundRejectReasonHasError\">\n <span *ngIf=\"refundRejectReasonHasError\">Please select a reject reason</span>\n </p>\n <div class=\"govuk-radios__item\" *ngFor=\"let refundRejectReason of refundRejectReasonList; let j = index;\">\n <input class=\"govuk-radios__input\" \n id=\"refundRejectReason-{{j}}\"\n formControlName=\"refundRejectReasonField\"\n name=\"refundRejectReasonField\"\n (click)=\"checkRefundActions(refundRejectReason.code)\"\n type=\"radio\" value=\"{{refundRejectReason.code}}\">\n <label class=\"govuk-label govuk-radios__label process-refund-font\" for=\"refundRejectReason-{{j}}\">\n {{refundRejectReason.name}}\n </label>\n </div>\n </div>\n <div class=\"govuk-radios__conditional\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isOtherClicked}\" id=\"conditional-contact-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label process-refund-font \" for=\"contact-by-text\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || isReasonInvalid\">\n <span *ngIf=\"isReasonEmpty\">Enter reason.</span>\n <span *ngIf=\"isReasonInvalid\">Enter a valid reason</span>\n </p>\n <input class=\"govuk-input govuk-!-width-one-third reason-font\" id=\"otherReason\" \n [ngClass]=\"{'inline-error-class': isReasonEmpty || isReasonInvalid}\"\n formControlName=\"enterReasonField\" name=\"enterReasonField\" type=\"text\"></div>\n \n </div>\n \n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button (click)=\"redirecttoRefundListPage()\" class=\"govuk-button govuk-button--secondary marginright\"> Previous</button>\n <button (click)=\"processRefundSubmit()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit \n </button>\n <br/><br/>\n </div>\n \n <div *ngIf=\"!isFromRefundListPage\" class=\"govuk-button-group margin\">\n\n <p><a (click)=\"loadRefundsHomePage()\" class=\"govuk-link right\" data-module=\"govuk-button\">Cancel</a></p>\n</div>\n</form>\n </div>\n \n\n </main>\n \n <main class=\"govuk-main-wrapper govuk-main-wrapper--l success-page-padding--top25\" [ngClass]=\"{'govuk-radios__conditional--hidden': !isSuccesspageEnable}\" id=\"main-content\" role=\"main\" >\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel-refund--confirmation\">\n <h1 class=\"heading-xlarge\">\n {{successMsg}}\n </h1>\n </div>\n <p class=\"govuk-body process-refund-font\">\n <a (click) = \"goToCaseReview()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </main>\n</div>\n</ng-container>\n\n",
2014
+ styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{float:left!important;font-size:19px;margin-top:2em!important}.remission{margin-bottom:7em}.process-refund-font{font-size:19px!important}.govuk-radios__conditional--hidden{display:none}.inline-error-message{color:#c11717;font-weight:700;margin-top:10px;border-color:#c11717}.inline-error-class{outline:#c11717 solid 3px;outline-offset:0;border-color:#c11717}.form-group-error{border-left:5px solid #c11717;padding-left:15px}.govuk-panel-refund--confirmation{color:#fff;background:#00703c}.process-refund__panel{display:flex;flex-direction:column;margin-left:25px;margin-top:30px}.button-margin--left25{margin-left:25px}.success-page-padding--top25{padding-top:25px}.margin{margin-top:5em}.marginright{margin-right:1.5em}.govuk-textarea{line-height:2.25}.reason-font{font-size:19px!important}.right{cursor:pointer}"]
1661
2015
  }] }
1662
2016
  ];
1663
2017
  /** @nocollapse */
1664
2018
  ProcessRefundComponent.ctorParameters = () => [
1665
2019
  { type: RefundsService },
2020
+ { type: PaymentViewService },
1666
2021
  { type: FormBuilder },
1667
2022
  { type: OrderslistService },
1668
- { type: PaymentLibComponent }
2023
+ { type: PaymentLibComponent },
2024
+ { type: Router },
2025
+ { type: ActivatedRoute }
1669
2026
  ];
1670
2027
  ProcessRefundComponent.propDecorators = {
1671
2028
  refundReference: [{ type: Input }],
@@ -1746,7 +2103,7 @@ class RefundListComponent {
1746
2103
  RefundListComponent.decorators = [
1747
2104
  { type: Component, args: [{
1748
2105
  selector: 'ccpay-refund-list',
1749
- template: "\n\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h1 class=\"govuk-heading-xl\">Refund list</h1>\n <!-- <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>Select Option</option>\n <option *ngFor=\"let name of userLst;\" value=\"{{name}}\">{{name}}</option>\n </select> -->\n </div>\n</div>\n\n<ng-container *ngIf=\"isAuthorized\">\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h2 class=\"govuk-heading-l\">{{tableApprovalHeader}}</h2>\n </div>\n </div>\n <div *ngIf=\"!isApproveTableVisible\">\n <div class=\"govuk-label dropdpwn\" >No records to display</div>\n </div>\n</ng-container>\n \n<ng-container *ngIf=\"isApproveTableVisible\">\n \n <div><ccpay-table [DATASOURCE]=\"submittedRefundList\" [STATUS]=\"approvalStatus\" [errorMessage]=\"errorMessage\"></ccpay-table></div>\n</ng-container>\n\n\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h2 class=\"govuk-heading-l\">{{tableRejectedHeader}}</h2>\n </div>\n \n </div>\n <div *ngIf=\"!isRejectTableVisible\">\n <div class=\"govuk-label dropdpwn\">No records to display</div>\n </div>\n<ng-container *ngIf=\"isRejectTableVisible\">\n \n <div><ccpay-table [DATASOURCE]=\"rejectedRefundList\" [STATUS]=\"rejectStatus\" [errorMessage]=\"errorMessage\"></ccpay-table></div>\n</ng-container>\n\n\n",
2106
+ template: "\n\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h1 class=\"govuk-heading-xl\">Refund list</h1>\n </div>\n</div>\n\n<ng-container *ngIf=\"isAuthorized\">\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h2 class=\"govuk-heading-l\">{{tableApprovalHeader}}</h2>\n </div>\n </div>\n <div *ngIf=\"!isApproveTableVisible\">\n <div class=\"govuk-label dropdpwn\" >No records to display</div>\n </div>\n</ng-container>\n \n<ng-container *ngIf=\"isApproveTableVisible\">\n \n <div><ccpay-table [DATASOURCE]=\"submittedRefundList\" [STATUS]=\"approvalStatus\" [errorMessage]=\"errorMessage\"></ccpay-table></div>\n</ng-container>\n\n\n<div class=\"hmcts-page-heading\">\n <div class=\"hmcts-page-heading__title\">\n <h2 class=\"govuk-heading-l\">{{tableRejectedHeader}}</h2>\n </div>\n \n </div>\n <div *ngIf=\"!isRejectTableVisible\">\n <div class=\"govuk-label dropdpwn\">No records to display</div>\n </div>\n<ng-container *ngIf=\"isRejectTableVisible\">\n \n <div><ccpay-table [DATASOURCE]=\"rejectedRefundList\" [STATUS]=\"rejectStatus\" [errorMessage]=\"errorMessage\"></ccpay-table></div>\n</ng-container>\n\n\n",
1750
2107
  styles: [".govuk-heading-xl{font-size:48px;padding-top:1em}.govuk-heading-l{font-size:36px}.govuk-label{font-size:19px}.hmcts-page-heading{width:110%}"]
1751
2108
  }] }
1752
2109
  ];
@@ -1943,7 +2300,7 @@ class StatusHistoryComponent {
1943
2300
  StatusHistoryComponent.decorators = [
1944
2301
  { type: Component, args: [{
1945
2302
  selector: 'ccpay-payment-statuses',
1946
- template: "<div class=\"column\">\n <h2 class=\"heading-medium\">{{ pageTitle }}</h2>\n</div>\n\n\n<div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\" *ngIf=\"errorMessage\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment status history could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n</div>\n\n<div *ngIf=\"!errorMessage && statuses\">\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th *ngIf=\"isTakePayment\">Amount</th>\n <th>Date and time</th>\n </tr>\n </thead> \n <tbody>\n <tr *ngFor=\"let status of statuses.status_histories\">\n <td>{{ status.status }}</td>\n <td *ngIf=\"isTakePayment\">\u00A3{{ statuses.amount | number:'.2' }}</td>\n <td>{{ status.date_created | date:'dd MMM yyyy hh:mm:ss'}}</td>\n </tr>\n </tbody>\n </table>\n</div>\n",
2303
+ template: "<div class=\"column\">\n <h2 class=\"heading-medium\">{{ pageTitle }}</h2>\n</div>\n\n\n<div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\" *ngIf=\"errorMessage\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payment status history could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n</div>\n\n<div *ngIf=\"!errorMessage && statuses\">\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th *ngIf=\"isTakePayment\">Amount</th>\n <th>Date and time</th>\n </tr>\n </thead> \n <tbody>\n <tr *ngFor=\"let status of statuses.status_histories\">\n <td>{{ status.status }}</td>\n <td *ngIf=\"isTakePayment\">\u00A3{{ statuses.amount | number:'.2' }}</td>\n <td>{{ status.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n </tr>\n </tbody>\n </table>\n</div>\n",
1947
2304
  styles: [""]
1948
2305
  }] }
1949
2306
  ];
@@ -1956,6 +2313,285 @@ StatusHistoryComponent.propDecorators = {
1956
2313
  isTakePayment: [{ type: Input }]
1957
2314
  };
1958
2315
 
2316
+ /**
2317
+ * @fileoverview added by tsickle
2318
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2319
+ */
2320
+ class ContactDetailsComponent {
2321
+ /**
2322
+ * @param {?} formBuilder
2323
+ * @param {?} paymentLibComponent
2324
+ */
2325
+ constructor(formBuilder, paymentLibComponent) {
2326
+ this.formBuilder = formBuilder;
2327
+ this.paymentLibComponent = paymentLibComponent;
2328
+ this.assignContactDetails = new EventEmitter();
2329
+ this.redirectToIssueRefund = new EventEmitter();
2330
+ this.pageTitle = 'Payment status history';
2331
+ this.isEmailSAddressClicked = true;
2332
+ this.isPostcodeClicked = false;
2333
+ this.isManualAddressClicked = false;
2334
+ this.isEmailEmpty = false;
2335
+ this.emailHasError = false;
2336
+ this.isPostcodeEmpty = false;
2337
+ this.postcodeHasError = false;
2338
+ this.isaddressLine1Empty = false;
2339
+ this.addressLine1HasError = false;
2340
+ this.addressLine2HasError = false;
2341
+ this.isTownOrCityEmpty = false;
2342
+ this.townOrCityHasError = false;
2343
+ this.isCountyEmpty = false;
2344
+ this.countyHasError = false;
2345
+ this.isMPostcodeEmpty = false;
2346
+ this.mpostcodeHasError = false;
2347
+ this.isCountryEmpty = false;
2348
+ }
2349
+ /**
2350
+ * @return {?}
2351
+ */
2352
+ ngOnInit() {
2353
+ this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
2354
+ this.emailAddressForm = this.formBuilder.group({
2355
+ email: new FormControl('', Validators.compose([
2356
+ Validators.required,
2357
+ Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9-]+\\.[a-z]{2,4}$')
2358
+ ]))
2359
+ });
2360
+ this.postCodeForm = this.formBuilder.group({
2361
+ postcode: new FormControl('', Validators.compose([
2362
+ Validators.required,
2363
+ Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
2364
+ ]))
2365
+ });
2366
+ this.manualAddressForm = this.formBuilder.group({
2367
+ addressl1: new FormControl('', Validators.compose([
2368
+ Validators.required,
2369
+ Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
2370
+ ])),
2371
+ addressl2: new FormControl('', Validators.compose([
2372
+ Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
2373
+ ])),
2374
+ townorcity: new FormControl('', Validators.compose([
2375
+ Validators.required,
2376
+ Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
2377
+ ])),
2378
+ county: new FormControl('', Validators.compose([
2379
+ Validators.required,
2380
+ Validators.pattern('^[a-zA-Z0-9\\s,\'-]*$')
2381
+ ])),
2382
+ mpostcode: new FormControl('', Validators.compose([
2383
+ Validators.required,
2384
+ Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
2385
+ ])),
2386
+ country: new FormControl('', Validators.compose([
2387
+ Validators.required
2388
+ ]))
2389
+ });
2390
+ if (this.addressObj !== undefined && this.addressObj !== '') {
2391
+ this.setEditDetails();
2392
+ }
2393
+ }
2394
+ /**
2395
+ * @return {?}
2396
+ */
2397
+ setEditDetails() {
2398
+ if (this.addressObj.notification_type === 'EMAIL') {
2399
+ this.isEmailSAddressClicked = true;
2400
+ this.isPostcodeClicked = false;
2401
+ this.isManualAddressClicked = false;
2402
+ this.emailAddressForm.setValue({ email: this.addressObj.contact_details.email });
2403
+ }
2404
+ else if (this.addressObj.notification_type === 'LETTER') {
2405
+ this.isEmailSAddressClicked = false;
2406
+ this.isPostcodeClicked = true;
2407
+ this.isManualAddressClicked = true;
2408
+ this.manualAddressForm.patchValue({
2409
+ addressl1: this.addressObj.contact_details.address_line,
2410
+ townorcity: this.addressObj.contact_details.city,
2411
+ county: this.addressObj.contact_details.county,
2412
+ country: this.addressObj.contact_details.country,
2413
+ mpostcode: this.addressObj.contact_details.postal_code
2414
+ });
2415
+ }
2416
+ }
2417
+ /**
2418
+ * @param {?} type
2419
+ * @param {?} isLinkedClied
2420
+ * @return {?}
2421
+ */
2422
+ selectContactOption(type, isLinkedClied) {
2423
+ this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
2424
+ if (type === 'Email' && isLinkedClied === 'false') {
2425
+ this.isEmailSAddressClicked = true;
2426
+ this.isPostcodeClicked = false;
2427
+ this.isManualAddressClicked = false;
2428
+ }
2429
+ else if (type === 'Postcode' && isLinkedClied === 'false') {
2430
+ this.isEmailSAddressClicked = false;
2431
+ this.isPostcodeClicked = true;
2432
+ this.isManualAddressClicked = false;
2433
+ }
2434
+ else if (type === 'Postcode' && isLinkedClied === 'true') {
2435
+ this.isEmailSAddressClicked = false;
2436
+ this.isPostcodeClicked = true;
2437
+ this.isManualAddressClicked = true;
2438
+ }
2439
+ }
2440
+ /**
2441
+ * @return {?}
2442
+ */
2443
+ finalFormSubmit() {
2444
+ this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
2445
+ if (this.isEmailSAddressClicked) {
2446
+ /** @type {?} */
2447
+ const emailField = this.emailAddressForm.controls.email;
2448
+ if (this.emailAddressForm.dirty && this.emailAddressForm.valid) {
2449
+ this.assignContactDetails.emit({
2450
+ email: emailField.value,
2451
+ notification_type: 'EMAIL'
2452
+ });
2453
+ }
2454
+ else {
2455
+ if (emailField.value == '') {
2456
+ this.resetForm([true, false, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
2457
+ }
2458
+ if (emailField.value != '' && emailField.invalid) {
2459
+ this.resetForm([false, true, false, false, false, false, false, false, false, false, false, false, false, false], 'email');
2460
+ }
2461
+ }
2462
+ }
2463
+ else if (this.isPostcodeClicked && !this.isManualAddressClicked) {
2464
+ this.postcodeValidation();
2465
+ }
2466
+ else if (this.isPostcodeClicked && this.isManualAddressClicked) {
2467
+ /** @type {?} */
2468
+ const fieldCtrls = this.manualAddressForm.controls;
2469
+ if (this.manualAddressForm.dirty && this.manualAddressForm.valid) {
2470
+ this.assignContactDetails.emit({
2471
+ address_line: fieldCtrls.addressl1.value + ' ' + fieldCtrls.addressl2.value,
2472
+ city: fieldCtrls.townorcity.value,
2473
+ county: fieldCtrls.county.value,
2474
+ postal_code: fieldCtrls.mpostcode.value,
2475
+ country: fieldCtrls.country.value,
2476
+ notification_type: 'LETTER'
2477
+ });
2478
+ }
2479
+ else {
2480
+ if (fieldCtrls.addressl1.value == '') {
2481
+ this.resetForm([false, false, false, false, true, false, false, false, false, false, false, false, false, false], 'address1');
2482
+ }
2483
+ if (fieldCtrls.addressl1.value != '' && fieldCtrls.addressl1.invalid) {
2484
+ this.resetForm([false, false, false, false, false, true, false, false, false, false, false, false, false, false], 'address1');
2485
+ }
2486
+ if (fieldCtrls.addressl2.value != '' && fieldCtrls.addressl2.invalid) {
2487
+ this.resetForm([false, false, false, false, false, false, true, false, false, false, false, false, false, false], 'address2');
2488
+ }
2489
+ if (fieldCtrls.townorcity.value == '') {
2490
+ this.resetForm([false, false, false, false, false, false, false, true, false, false, false, false, false, false], 'town');
2491
+ }
2492
+ if (fieldCtrls.townorcity.value != '' && fieldCtrls.townorcity.invalid) {
2493
+ this.resetForm([false, false, false, false, false, false, false, false, true, false, false, false, false, false], 'town');
2494
+ }
2495
+ if (fieldCtrls.county.value == '') {
2496
+ this.resetForm([false, false, false, false, false, false, false, false, false, true, false, false, false, false], 'county');
2497
+ }
2498
+ if (fieldCtrls.county.value != '' && fieldCtrls.county.invalid) {
2499
+ this.resetForm([false, false, false, false, false, false, false, false, false, false, true, false, false, false], 'county');
2500
+ }
2501
+ if (fieldCtrls.mpostcode.value == '') {
2502
+ this.resetForm([false, false, false, false, false, false, false, false, false, false, false, true, false, false], 'mpostcode');
2503
+ }
2504
+ if (fieldCtrls.mpostcode.value != '' && fieldCtrls.mpostcode.invalid) {
2505
+ this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, true, false], 'mpostcode');
2506
+ }
2507
+ if (fieldCtrls.country.value == '') {
2508
+ this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, true], 'country');
2509
+ }
2510
+ }
2511
+ }
2512
+ }
2513
+ /**
2514
+ * @return {?}
2515
+ */
2516
+ postcodeValidation() {
2517
+ /** @type {?} */
2518
+ const postcodeField = this.postCodeForm.controls.postcode;
2519
+ if (this.postCodeForm.dirty && this.postCodeForm.valid) {
2520
+ this.assignContactDetails.emit({});
2521
+ }
2522
+ else {
2523
+ if (postcodeField.value == '') {
2524
+ this.resetForm([false, false, true, false, false, false, false, false, false, false, false, false, false], 'postcode');
2525
+ }
2526
+ if (postcodeField.value != '' && postcodeField.invalid) {
2527
+ this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
2528
+ }
2529
+ }
2530
+ }
2531
+ /**
2532
+ * @param {?} event
2533
+ * @return {?}
2534
+ */
2535
+ redirection(event) {
2536
+ this.redirectToIssueRefund.emit(event);
2537
+ }
2538
+ /**
2539
+ * @param {?} val
2540
+ * @param {?} field
2541
+ * @return {?}
2542
+ */
2543
+ resetForm(val, field) {
2544
+ if (field === 'email' || field === 'all') {
2545
+ this.isEmailEmpty = val[0];
2546
+ this.emailHasError = val[1];
2547
+ }
2548
+ if (field === 'postcode' || field === 'all') {
2549
+ this.isPostcodeEmpty = val[2];
2550
+ this.postcodeHasError = val[3];
2551
+ }
2552
+ if (field === 'address1' || field === 'all') {
2553
+ this.isaddressLine1Empty = val[4];
2554
+ this.addressLine1HasError = val[5];
2555
+ }
2556
+ if (field === 'address2' || field === 'all') {
2557
+ this.addressLine2HasError = val[6];
2558
+ }
2559
+ if (field === 'town' || field === 'all') {
2560
+ this.isTownOrCityEmpty = val[7];
2561
+ this.townOrCityHasError = val[8];
2562
+ }
2563
+ if (field === 'county' || field === 'all') {
2564
+ this.isCountyEmpty = val[9];
2565
+ this.countyHasError = val[10];
2566
+ }
2567
+ if (field === 'mpostcode' || field === 'all') {
2568
+ this.isMPostcodeEmpty = val[11];
2569
+ this.mpostcodeHasError = val[12];
2570
+ }
2571
+ if (field === 'country' || field === 'all') {
2572
+ this.isCountryEmpty = val[13];
2573
+ }
2574
+ }
2575
+ }
2576
+ ContactDetailsComponent.decorators = [
2577
+ { type: Component, args: [{
2578
+ selector: 'ccpay-contact-details',
2579
+ template: "<fieldset class=\"govuk-fieldset contact-details--size\">\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\">\n <div class=\"govuk-form-group\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s govuk-font19px\">\n {{ isEditOperation ? 'Edit contact information' : 'Contact information' }}\n </legend>\n <div id=\"contact-hint\" class=\"govuk-hint govuk-font19px\">\n Notifications will be sent via email or post when this refund is issued or rejected. You can only choose one option.\n </div>\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"contact\" name=\"contact\" (click)=\"selectContactOption('Email', 'false')\" type=\"radio\" value=\"email\" [checked]=\"isEmailSAddressClicked\" aria-controls=\"conditional-contact\" aria-expanded=\"true\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"contact\">\n Email\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact-email\" *ngIf=\"isEmailSAddressClicked\">\n <form [formGroup]=\"emailAddressForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label \" for=\"email\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this email address.</span>\n </label>\n\n <div id=\"email-hint\" class=\"govuk-hint\">\n </div>\n <input class=\"govuk-input govuk-font19px\" id=\"email\" name=\"\" type=\"email\" [ngClass]=\"{ 'inline-error-class': isEmailEmpty || emailHasError }\" value=\"{{addressObj?.contact_details?.email}}\" formControlName=\"email\" aria-describedby=\"email-hint\">\n <p class=\"inline-error-message\" *ngIf=\"isEmailEmpty || emailHasError\">\n <span *ngIf=\"isEmailEmpty\">Enter a email address.</span>\n <span *ngIf=\"emailHasError\">Enter a valid email address.</span>\n </p>\n </div>\n </form>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"contact-2\" name=\"contact\" (click)=\"selectContactOption('Postcode', 'false')\" type=\"radio\" [checked]=\"isPostcodeClicked\" value=\"post\" aria-controls=\"conditional-contact-2\" aria-expanded=\"false\">\n <label class=\"govuk-label govuk-radios__label govuk-font19px\" for=\"contact-2\">\n Post\n </label>\n </div>\n <div class=\"govuk-radios__conditional govuk-radios__conditional--hidden\" id=\"conditional-contact-postcode\" *ngIf=\"isPostcodeClicked && !isManualAddressClicked\">\n <form [formGroup]=\"postCodeForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-postcode\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this address.</span>Postcode\n </label>\n <input class=\"govuk-input govuk-input--width-10\" id=\"address-postcode\" name=\"address-postcode\" [ngClass]=\"{ 'inline-error-class': isPostcodeEmpty || postcodeHasError }\" formControlName=\"postcode\" type=\"text\" autocomplete=\"postal-code\">\n <p class=\"inline-error-message\" *ngIf=\"isPostcodeEmpty || postcodeHasError\">\n <span *ngIf=\"isPostcodeEmpty\">Enter a postcode.</span>\n <span *ngIf=\"postcodeHasError\">Enter a valid postcode.</span>\n </p> </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-button--secondary govuk-font19px\" (click)=\"postcodeValidation()\" data-module=\"govuk-button\">\n Find address\n </button>\n </div>\n </form>\n <details class=\"govuk-details\" data-module=\"govuk-details\">\n <summary class=\"govuk-details__summary\">\n <span class=\"govuk-details__summary-text govuk-font19px\">\n <a href=\"Javascript:void(0);\" (click)=\"selectContactOption('Postcode', 'true')\"> Enter address manually</a>\n </span>\n </summary>\n </details>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"conditional-contact-manual\" *ngIf=\"isPostcodeClicked && isManualAddressClicked\">\n <form [formGroup]=\"manualAddressForm\" novalidate>\n\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-line-1\">\n <span class=\"govuk-hint govuk-font19px\">Information about this refund will be sent to this address.</span>Building and street <span class=\"govuk-visually-hidden\">line 1 of 2</span>\n </label>\n <input class=\"govuk-input govuk-font19px\" id=\"address-line-1\" name=\"address-line-1\" [ngClass]=\"{ 'inline-error-class': isaddressLine1Empty || addressLine1HasError }\" value=\"{{addressObj?.contact_details?.address_line}}\" formControlName=\"addressl1\" type=\"text\" autocomplete=\"address-line1\">\n <p class=\"inline-error-message\" *ngIf=\"isaddressLine1Empty || addressLine1HasError\">\n <span *ngIf=\"isaddressLine1Empty\">Enter a Building and street.</span>\n <span *ngIf=\"addressLine1HasError\">Enter a valid Building and street.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"address-line-2\">\n <span class=\"govuk-visually-hidden govuk-font19px\">Building and street line 2 of 2</span>\n </label>\n <input class=\"govuk-input govuk-font19px\" id=\"address-line-2\" name=\"address-line-2\" [ngClass]=\"{ 'inline-error-class': addressLine2HasError}\" formControlName=\"addressl2\" type=\"text\" autocomplete=\"address-line2\">\n <p class=\"inline-error-message\" *ngIf=\"addressLine2HasError\">\n <span *ngIf=\"addressLine2HasError\">Enter a valid Building and street line 2 of 2.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-town\">\n Town or city\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds govuk-font19px\" id=\"address-town\" name=\"address-town\" [ngClass]=\"{ 'inline-error-class': isTownOrCityEmpty || townOrCityHasError}\" value=\"{{addressObj?.contact_details?.city}}\" formControlName=\"townorcity\" type=\"text\" autocomplete=\"address-level2\">\n <p class=\"inline-error-message\" *ngIf=\"isTownOrCityEmpty || townOrCityHasError\">\n <span *ngIf=\"isTownOrCityEmpty\">Enter a town or city.</span>\n <span *ngIf=\"townOrCityHasError\">Enter a town or city.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-county\">\n County\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds govuk-font19px\" id=\"address-county\" [ngClass]=\"{ 'inline-error-class': isCountyEmpty || countyHasError}\" value=\"{{addressObj?.contact_details?.county}}\" formControlName=\"county\" name=\"address-county\" type=\"text\">\n <p class=\"inline-error-message\" *ngIf=\"isCountyEmpty || countyHasError\">\n <span *ngIf=\"isCountyEmpty\">Enter a County.</span>\n <span *ngIf=\"countyHasError\">Enter a valid County.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"address-postcode\">\n Postcode\n </label>\n <input class=\"govuk-input govuk-input--width-10 govuk-font19px\" id=\"address-postcode\" formControlName=\"mpostcode\" name=\"address-postcode\" [ngClass]=\"{ 'inline-error-class': isMPostcodeEmpty || mpostcodeHasError}\" value=\"{{addressObj?.contact_details?.postal_code}}\" type=\"text\" autocomplete=\"postal-code\">\n <p class=\"inline-error-message\" *ngIf=\"isMPostcodeEmpty || mpostcodeHasError\">\n <span *ngIf=\"isMPostcodeEmpty\">Enter a postcode.</span>\n <span *ngIf=\"mpostcodeHasError\">Enter a valid postcode.</span>\n </p> \n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-font19px\" for=\"country\">\n Country\n </label>\n <select class=\"govuk-select govuk-font19px\" id=\"country\" name=\"country\" [ngClass]=\"{ 'inline-error-class': isCountryEmpty}\" formControlName=\"country\">\n <option value=\"\" selected=\"selected\">Please select</option>\n <option value=\"United Kingdom\" selected=\"{{ addressObj?.contact_details?.country ? 'selected' : '' }}\">United Kingdom</option>\n </select>\n <p class=\"inline-error-message\" *ngIf=\"isCountryEmpty\">\n <span *ngIf=\"isCountryEmpty\">Select a Country.</span>\n </p> \n </div>\n </form>\n </div>\n </div>\n </fieldset>\n </div>\n <!---FORM--->\n </div>\n\n<hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\">\n</fieldset>\n<div class=\"govuk-button-group\">\n<button type=\"submit\" class=\"button govuk-button--secondary govuk-font19px\" (click)=\"redirection($event)\"> Previous </button>\n&nbsp;\n<button type=\"submit\" class=\"button govuk-button govuk-font19px\" (click)=\"finalFormSubmit()\">\n Continue\n</button>\n</div>",
2580
+ styles: [".govuk-font19px{font-size:19px}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px}.contact-details--size{width:50%}"]
2581
+ }] }
2582
+ ];
2583
+ /** @nocollapse */
2584
+ ContactDetailsComponent.ctorParameters = () => [
2585
+ { type: FormBuilder },
2586
+ { type: PaymentLibComponent }
2587
+ ];
2588
+ ContactDetailsComponent.propDecorators = {
2589
+ isEditOperation: [{ type: Input, args: ['isEditOperation',] }],
2590
+ addressObj: [{ type: Input, args: ['addressObj',] }],
2591
+ assignContactDetails: [{ type: Output }],
2592
+ redirectToIssueRefund: [{ type: Output }]
2593
+ };
2594
+
1959
2595
  /**
1960
2596
  * @fileoverview added by tsickle
1961
2597
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -2260,12 +2896,12 @@ class CaseTransactionsComponent {
2260
2896
  this.clAmountDue = 0;
2261
2897
  this.isFeeRecordsExist = false;
2262
2898
  this.isGrpOutstandingAmtPositive = false;
2263
- this.lsCcdNumber = get('ccdNumber');
2264
2899
  //Order changes
2265
2900
  this.orderDetail = [];
2266
2901
  this.isAddRemissionEnable = false;
2267
2902
  this.orderRemissionDetails = [];
2268
2903
  this.orderLevelFees = [];
2904
+ this.ispaymentGroupApisuccess = false;
2269
2905
  this.cpoDetails = null;
2270
2906
  this.orderFeesTotal = 0.00;
2271
2907
  this.orderRemissionTotal = 0.00;
@@ -2276,6 +2912,8 @@ class CaseTransactionsComponent {
2276
2912
  this.isAddRemissionBtnEnabled = false;
2277
2913
  this.isRefundRemissionBtnEnable = false;
2278
2914
  this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
2915
+ this.isEligible4PBAPayment = ['pui-finance-manager', 'pui-user-manager', 'pui-organisation-manager', 'pui-case-manager'];
2916
+ this.currentDate = new Date();
2279
2917
  this.check4AllowedRoles2AccessRefund = (/**
2280
2918
  * @return {?}
2281
2919
  */
@@ -2286,6 +2924,16 @@ class CaseTransactionsComponent {
2286
2924
  */
2287
2925
  role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
2288
2926
  });
2927
+ this.check4AllowedRoles2AccessPBApayment = (/**
2928
+ * @return {?}
2929
+ */
2930
+ () => {
2931
+ return this.isEligible4PBAPayment.some((/**
2932
+ * @param {?} role
2933
+ * @return {?}
2934
+ */
2935
+ role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
2936
+ });
2289
2937
  this.allowFurtherAccessAfter4Days = (/**
2290
2938
  * @param {?} payment
2291
2939
  * @return {?}
@@ -2311,6 +2959,13 @@ class CaseTransactionsComponent {
2311
2959
  */
2312
2960
  (data) => this.paymentView = data));
2313
2961
  }
2962
+ if ((this.LOGGEDINUSERROLES === undefined || this.LOGGEDINUSERROLES.length === 0) && this.OrderslistService.getUserRolesList() !== null) {
2963
+ this.OrderslistService.getUserRolesList().subscribe((/**
2964
+ * @param {?} data
2965
+ * @return {?}
2966
+ */
2967
+ (data) => this.LOGGEDINUSERROLES = data));
2968
+ }
2314
2969
  if (this.OrderslistService.getnavigationPageValue() !== null) {
2315
2970
  this.OrderslistService.getnavigationPageValue().subscribe((/**
2316
2971
  * @param {?} data
@@ -2331,10 +2986,10 @@ class CaseTransactionsComponent {
2331
2986
  this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
2332
2987
  this.servicerequest = this.paymentLibComponent.SERVICEREQUEST;
2333
2988
  if (this.paymentLibComponent.SERVICEREQUEST === 'true') {
2334
- this.serviveRequestValue = 'true';
2989
+ this.serviceRequestValue = 'true';
2335
2990
  }
2336
2991
  else {
2337
- this.serviveRequestValue = 'false';
2992
+ this.serviceRequestValue = 'false';
2338
2993
  }
2339
2994
  this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
2340
2995
  this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
@@ -2344,9 +2999,9 @@ class CaseTransactionsComponent {
2344
2999
  this.isOldPcipalOff = this.paymentLibComponent.ISOLDPCIPALOFF;
2345
3000
  this.isStrategicFixEnable = this.paymentLibComponent.ISSFENABLE;
2346
3001
  if (!this.isTurnOff) {
2347
- if (this.lsCcdNumber !== this.ccdCaseNumber) {
2348
- this.router.navigateByUrl(`/ccd-search?takePayment=true`);
2349
- }
3002
+ // if (this.lsCcdNumber !== this.ccdCaseNumber) {
3003
+ // this.router.navigateByUrl(`/ccd-search?takePayment=true`);
3004
+ // }
2350
3005
  this.caseTransactionsService.getPaymentGroups(this.ccdCaseNumber).subscribe((/**
2351
3006
  * @param {?} paymentGroups
2352
3007
  * @return {?}
@@ -2364,22 +3019,23 @@ class CaseTransactionsComponent {
2364
3019
  */
2365
3020
  (data) => this.orderRef = data));
2366
3021
  this.goToOrderViewDetailSection(this.orderRef);
2367
- // this.viewStatus = 'order-full-view';
2368
3022
  }
2369
- this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
2370
- * @param {?} response
2371
- * @return {?}
2372
- */
2373
- response => {
2374
- this.cpoDetails = JSON.parse(response).data.content[0];
2375
- }), (/**
2376
- * @param {?} error
2377
- * @return {?}
2378
- */
2379
- (error) => {
2380
- this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
2381
- this.isCPODown = true;
2382
- }));
3023
+ else {
3024
+ this.paymentViewService.getPartyDetails(this.ccdCaseNumber).subscribe((/**
3025
+ * @param {?} response
3026
+ * @return {?}
3027
+ */
3028
+ response => {
3029
+ this.cpoDetails = JSON.parse(response).content[0];
3030
+ }), (/**
3031
+ * @param {?} error
3032
+ * @return {?}
3033
+ */
3034
+ (error) => {
3035
+ this.errorMessage = (/** @type {?} */ (error.replace(/"/g, "")));
3036
+ this.isCPODown = true;
3037
+ }));
3038
+ }
2383
3039
  }), (/**
2384
3040
  * @param {?} error
2385
3041
  * @return {?}
@@ -2406,7 +3062,7 @@ class CaseTransactionsComponent {
2406
3062
  * @return {?}
2407
3063
  */
2408
3064
  response => {
2409
- this.cpoDetails = JSON.parse(response).data.content[0];
3065
+ this.cpoDetails = JSON.parse(response).content[0];
2410
3066
  }), (/**
2411
3067
  * @param {?} error
2412
3068
  * @return {?}
@@ -2691,16 +3347,6 @@ class CaseTransactionsComponent {
2691
3347
  this.paymentLibComponent.viewName = 'fee-summary';
2692
3348
  }
2693
3349
  }
2694
- /**
2695
- * @param {?} event
2696
- * @return {?}
2697
- */
2698
- goToCaseTransationPage(event) {
2699
- event.preventDefault();
2700
- this.isFromServiceRequestPage = false;
2701
- this.viewStatus = 'main';
2702
- this.paymentLibComponent.viewName = 'case-transactions';
2703
- }
2704
3350
  /**
2705
3351
  * @return {?}
2706
3352
  */
@@ -3178,6 +3824,7 @@ class CaseTransactionsComponent {
3178
3824
  if (this.chkIssueRefundBtnEnable(payment)) {
3179
3825
  this.viewStatus = 'issuerefund';
3180
3826
  this.payment = payment;
3827
+ this.paymentLibComponent.isFromServiceRequestPage = true;
3181
3828
  this.isRefundRemission = true;
3182
3829
  }
3183
3830
  }
@@ -3252,6 +3899,7 @@ class CaseTransactionsComponent {
3252
3899
  */
3253
3900
  chkIsRefundRemissionBtnEnable() {
3254
3901
  if (this.orderDetail !== null && this.orderDetail !== undefined) {
3902
+ this.paymentLibComponent.isFromServiceRequestPage = true;
3255
3903
  this.orderDetail.forEach((/**
3256
3904
  * @param {?} orderDetail
3257
3905
  * @return {?}
@@ -3277,12 +3925,20 @@ class CaseTransactionsComponent {
3277
3925
  }
3278
3926
  }
3279
3927
  }
3928
+ /**
3929
+ * @param {?} orderRef
3930
+ * @return {?}
3931
+ */
3932
+ loadPBAAccountPage(orderRef) {
3933
+ this.paymentLibComponent.pbaPayOrderRef = orderRef;
3934
+ this.paymentLibComponent.viewName = 'pba-payment';
3935
+ }
3280
3936
  }
3281
3937
  CaseTransactionsComponent.decorators = [
3282
3938
  { type: Component, args: [{
3283
3939
  selector: 'ccpay-case-transactions',
3284
- template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n <!-- <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments> -->\n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n <!-- <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Sorry, there is a problem with the service\n </h2>\n <p>Payment requests and payments cannot currently be shown. Try again.</p>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div> -->\n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <!-- <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"8\">No payments recorded</td>\n </tbody> -->\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n \n <div class=\"govuk-grid-row\">\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div class=\"govuk-grid-row\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div>\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\">\n <!-- <div *ngIf=\"errorMessage\">\n <div *ngIf=\"isCPODown && isAnyFeeGroupAvilable\" class=\" error govuk-inset-text govuk-!-margin-top-7\">\n No party information currently available - try again later.\n </div>\n <div *ngIf=\"!isAnyFeeGroupAvilable\" class=\"error\">\n <h3 class=\"govuk-heading-m govuk-!-margin-top-7 govuk-!-margin-bottom-1\">Sorry, there is a problem with the service</h3>\n <p>Payment requests and payments cannot currently be shown. Try again.</p>\n </div>\n </div> -->\n \n <div class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviveRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n <!-- <ng-container *ngIf=\"allPayments?.length === 0\">\n <br/>No payments.\n </ng-container> -->\n </div>\n </div>\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status [ccdCaseNumber]=\"ccdCaseNumber\" ></ccpay-refund-status>\n </div>\n\n \n </div>\n\n \n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div *ngIf=\"takePayment\" class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div> -->\n\n <!-- remissions -->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n </ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n </div>\n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n \n </ng-container>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n\n</main>\n</div>",
3285
- styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}"]
3940
+ template: "<div class=\"govuk-width-container\">\n\n <main class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"viewStatus === 'main1'\">\n <div *ngIf=\"viewStatus === 'main1'&& !isTurnOff && takePayment\">\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\" class=\"govuk-grid-row\">\n <div *ngIf='!isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div *ngIf='isExceptionRecord' class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6 govuk-!-padding-top-6\">\n <h3 class=\"heading-medium\">Exception reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header govuk-table__header--custom\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-two-thirds\" *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"redirectToFeeSearchPage($event)\"\n [disabled]=\"!isAddFeeBtnEnabled\"\n [ngClass]='!isAddFeeBtnEnabled ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button>\n </div>\n\n </div>\n <div class=\"govuk-grid-row\">\n \n </div>\n <div *ngIf=\"takePayment\" class=\" govuk-!-margin-top-9\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h3 class=\"heading-medium\">Fees</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n <td class=\"govuk-table__header\" scope=\"col\">Action</td>\n\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let paymentGroup of paymentGroups;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell\">\t{{fee.code}} </td>\n <td class=\"govuk-table__cell\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}}</td>\n <td class=\"govuk-table__cell\">{{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"paymentGroup.old && i==0\"> {{getGroupOutstandingAmount(paymentGroup)| currency:'GBP':'symbol-narrow':'1.2-2'}}* </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\"> {{calculateAmountDue(fee) | currency:'GBP':'symbol-narrow':'1.2-2'}} </td>\n <td class=\"govuk-table__cell\" *ngIf=\"!paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='!isCheckAmountdueExist(fee.amount_due) || fee.remissions ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n <td class=\"govuk-table__cell\" *ngIf=\"paymentGroup.old\">\n <a (click)=\"confirmRemoveFee(fee.id)\" [ngClass]='paymentGroup.payments?.length > 0 || paymentGroup.remissions?.length > 0 ? \"disable-link\" : \"\"'>Remove</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroups?.length === 0\">\n <tr class=\"govuk-table__row\" >\n <td class=\"govuk-table__cell\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"hmcts-banner\" *ngIf=\"isHistoricGroupAvailable\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n * These fees have already been processed offline. Check the notes in CCD for more information.\n </div>\n </div>\n <div class=\"panel panel-no--style\" *ngIf=\"allPayments?.length > 0 || remissions?.length > 0\">\n <!-- payments -->\n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-28\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header col-15\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Payment status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"7\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <h3 class=\"heading-medium\">Remissions</h3>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment && isTurnOff\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Case transactions</h1>\n </div>\n\n <div class=\"govuk-grid-column-one-third\" align=\"right\" >\n <a [ngClass]=\"{ 'disable': !isAddFeeBtnEnabled} \" (click)=\"redirectToFeeSearchPage($event)\" class=\"button\">Add a new fee</a>\n </div>\n </div> \n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds govuk-!-padding-bottom-6\">\n <h3 class=\"heading-medium\">CCD reference:</h3>\n <span> {{ ccdCaseNumber | ccdHyphens }}</span>\n </div>\n\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount due</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ (totalFees - totalRemissions) - totalPayments | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n\n <!-- No fees start -->\n <div *ngIf=\"paymentGroups?.length === 0\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Existing fees</span>\n </div>\n\n <div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <!-- No fees end -->\n\n <div *ngFor=\"let paymentGroup of paymentGroups\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full govuk-grid-column-full--gr\">\n <span class=\"heading-medium\">Group reference: {{paymentGroup.payment_group_reference}}</span>\n </div>\n </div>\n <div class=\"govuk-grid-row\">\n\n <!--New Code start-->\n\n <div class=\"govuk-grid-column-full\">\n <span class=\"heading-small\">Exisiting fees</span>\n </div>\n <div class=feeclass>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Description</td>\n <td class=\"govuk-table__header\" scope=\"col\">Volume</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Calculated amount</td>\n <td class=\"groupamount govuk-table__header\" scope=\"col\">Group amount outstanding</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of paymentGroup.fees; let i = index;\">\n <td class=\"govuk-table__cell govuk-table__cell--col1\">{{fee.code}}</td>\n <td class=\"govuk-table__cell govuk-table__cell--col2\"> {{fee.description}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col3 align-center\"> {{fee.volume? fee.volume : '-'}} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col4\"> {{ fee.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col5\"> {{fee.calculated_amount | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n <td class=\"govuk-table__cell govuk-table__cell--col6 govuk-table__custom--col6\" [attr.rowspan]=\"paymentGroup.fees.length\" *ngIf=\"i==0\">\n {{getGroupOutstandingAmount(paymentGroup) | currency:'GBP':'symbol-narrow':'1.2-2' }} </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.fees.length==0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n </div>\n </div>\n <div class=\"govuk-inset-text govuk-inset-text__no-border\" *ngIf=\"paymentGroup.payments || paymentGroup.remissions\">\n <details>\n <summary class=\"govuk-hidetext\">\n <span class=\"summary\">Allocated payments and remissions</span>\n </summary>\n\n <div class=\"panel panel-border-narrow\">\n <!-- payments -->\n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Channel</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Allocation status</td>\n <td class=\"govuk-table__header\" scope=\"col\">Status</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of paymentGroup.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(paymentGroup.payment_group_reference, payment.reference, payment.method)\">{{ payment.reference }}</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">{{ payment.channel | lowercase }}</td>\n <td class=\"govuk-table__cell capitalize whitespace-inherit\">{{ payment.method | lowercase}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{getAllocationStatus(payment)}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.payments?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n\n <!-- remissions -->\n <span class=\"heading-medium\">Remissions</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Remission reference</td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission code</td>\n <td class=\"govuk-table__header\" scope=\"col\">Fee applied against</td>\n <td class=\"govuk-table__header\" scope=\"col\">Remission amount</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of paymentGroup.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.date_created | date:'dd MMM' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission.hwf_amount }}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"paymentGroup.remissions?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"5\">No remissions recorded</td>\n </tbody>\n </table>\n </div>\n </details>\n \n\n <div *ngIf=\"takePayment\">\n <button type=\"submit\" (click)=\"loadFeeSummaryPage(paymentGroup)\"\n [disabled]=\"(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected)\"\n [ngClass]='(getGroupOutstandingAmount(paymentGroup) <= 0 || isUnprocessedRecordSelected) ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Add telephone payment\n </button>\n </div>\n </div>\n </div>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"5\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISNEWPCIPALOFF]=\"isNewPcipalOff\"\n [ISOLDPCIPALOFF]=\"isOldPcipalOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n <div class=\"govuk-grid-row govuk-grid__surplus-payments\" *ngIf=\"totalRefundAmount > 0 && takePayment\">\n <div class=\"govuk-grid-column-full govuk-grid__surplus-payments-col1\">\n <h3 class=\"heading-medium\">Surplus payments</h3>\n </div>\n <div class=\"govuk-grid-column-full\">\n Total surplus payments received: {{totalRefundAmount | currency :'GBP':'symbol':'1.2-2'}}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"takePayment\">\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"1\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n\n <div *ngIf=\"!takePayment\" class=\"govuk-grid-row govuk-grid__surplus-payments\">\n \n <div class=\"govuk-grid-column-full\">\n \n <span class=\"heading-medium\">Payments</span>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-13\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-14\" scope=\"col\">Date allocated</td>\n <td class=\"govuk-table__header col-20\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-13 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy HH:mm:ss' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"2\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </div>\n </div>\n </ng-container>\n\n<!--Order Case Transactions Page-->\n <ng-container *ngIf=\"viewStatus === 'main' && !isTurnOff && takePayment\">\n <div>\n \n <div class=\"govuk-grid-row\">\n <h1 class=\"govuk-grid-column-two-thirds govuk-heading-l govuk-!-margin-top-0\">Case transactions</h1>\n <ng-container *ngIf='!isExceptionRecord' class=\" govuk-!-margin-bottom-6 alignself\">\n <b> Case reference: </b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <ng-container *ngIf='isExceptionRecord' class=\"govuk-!-margin-bottom-3 col-55 alignself\" >\n <b> Exception reference:</b>{{ ccdCaseNumber | ccdHyphens }}\n </ng-container>\n <div class=\"govuk-grid-row\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total payments</td>\n <td class=\"govuk-table__header govuk-table__header--custom col-25\" scope=\"col\" *ngIf=\"isBulkScanEnable\">Unallocated payments</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Total remissions</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Amount due</td>\n \n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"totalpayments govuk-table__row\">\n <td class=\"govuk-table__cell summary-table-font\">{{ totalPayments | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell case-transaction__color summary-table-font\" *ngIf=\"isBulkScanEnable\">{{unprocessedRecordCount}}</td>\n \n <td class=\"govuk-table__cell summary-table-font\">{{ totalRemissions | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell summary-table-font\">{{ clAmountDue | currency :'GBP':'symbol':'1.2-2'}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ORDERIDDETAILS'>\n\n <!--Payment Request-->\n <div class=\"paymentrequest\">\n <span class=\"heading-medium\">Service requests</span>\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header col\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td>\n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n <td class=\"alignright\">\n \n <button type=\"submit\" (click)=\"redirectToOrderFeeSearchPage($event,orderRef)\"\n [disabled]=\"!orderRef.orderAddBtnEnable\"\n [ngClass]='!orderRef.orderAddBtnEnable ? \"govuk-button govuk-button--secondary govuk-button--disabled govuk-!-margin-right-1\" : \"govuk-button govuk-button--secondary govuk-!-margin-right-1\"'>\n Take telephony payment\n </button></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body alignleft\" *ngIf=\"orderLevelFees?.length === 0\">\n <td colspan=\"6\">No service requests on this case.</td>\n </tbody>\n </table>\n </ng-container>\n <!-- <ng-container *ngIf=\"orderLevelFees?.length === 0\">\n <br/>No service requests on this case.<br/>\n </ng-container> -->\n <span>\n <br/>\n <a (click)=\"redirectToFeeSearchPage($event)\"\n [class.disabled]=\"!isAddFeeBtnEnabled\">Create service request and pay</a><br/>\n </span>\n </div>\n <div>\n <span class=\"heading-medium\"><br/>Payments</span>\n <ccpay-app-unprocessed-payments\n *ngIf=\"isBulkScanEnable\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"3\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTREF]=\"paymentRef\"\n [FEE_RECORDS_EXISTS]=\"isFeeRecordsExist\" \n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n\n <ng-container>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell col-14 whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell col-10 whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell col-17 whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell col-24 whitespace-inherit\">{{ payment.paymentGroupReference }}</td>\n <td class=\"govuk-table__cell col-13 whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n \n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0 && unprocessedRecordCount <= 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n \n </ng-container>\n \n </div>\n <div *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status\n [ccdCaseNumber]=\"ccdCaseNumber\" \n [isTurnOff]=\"isTurnOff\"\n [orderParty]=\"orderParty\"\n [LOGGEDINUSERROLES]=\"LOGGEDINUSERROLES\" \n [isNewPcipalOff]=\"isNewPcipalOff\"\n [isOldPcipalOff]=\"isOldPcipalOff\"\n ></ccpay-refund-status>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!takePayment && viewStatus === 'main'\"> \n <div class=\"govuk-grid-column-full\">\n <span *ngIf=\"serviceRequestValue !== 'false'\" class=\"heading-medium\">Service requests</span>\n <ng-container *ngIf=\"!(orderLevelFees?.length === 0 && !isAnyFeeGroupAvilable) && serviceRequestValue !== 'false' \">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Party</td>\n <td class=\"govuk-table__header col-21\" scope=\"col\">Request reference\t</td>\n <td class=\"govuk-table__header col-9\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let orderRef of orderLevelFees;let i = index;\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderStatus}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td *ngIf=\"cpoDetails !== null\" class=\"govuk-table__cell whitespace-inherit\">{{cpoDetails['responsibleParty']}}</td> \n <td *ngIf=\"cpoDetails === null\" class=\"govuk-table__cell whitespace-inherit\"></td> \n <td class=\"govuk-table__cell whitespace-inherit\">{{orderRef.orderRefId}}</td> \n <td class=\"govuk-table__cell of-visible\"> <a href=\"javascript:void(0)\" (click)=\"loadPBAAccountPage(orderRef)\" *ngIf=\"serviceRequestValue !== 'false' && check4AllowedRoles2AccessPBApayment() && orderRef.orderStatus === 'Not paid'\"> Pay now</a></td> \n <td class=\"govuk-table__cell\">\t\n <a href=\"javascript:void(0)\" (click)=\"goToOrderViewDetailSection(orderRef)\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue === 'false'\">\n <tr class=\"govuk-table__row\" >\n <td class=\"alignleft\" colspan=\"7\">No service requests on this case.</td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"orderLevelFees?.length === 0 && serviceRequestValue !== 'false' && !isAnyFeeGroupAvilable\">\n <h1 class=\"govuk-heading-l govuk-heading-lw\">If you are expecting to pay and are not able to see a service request,</h1>\n <p>please refresh and try in some time.</p>\n </ng-container>\n\n <!-- </div> -->\n\n </div>\n \n <div class=\"govuk-grid-column-full\">\n <div *ngIf=\"serviceRequestValue === 'false'\">\n <span class=\"heading-medium\"><br/>Payments</span>\n <ng-container >\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-14\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-10\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-17\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-24\" scope=\"col\">Payment reference</td>\n <td class=\"govuk-table__header col-13\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of allPayments\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.status }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.amount | currency :'GBP':'symbol':'1.2-2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"></td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n </tr>\n </tbody>\n\n <tbody class=\"govuk-table__body\" *ngIf=\"allPayments?.length === 0\">\n <td colspan=\"6\">No payments recorded</td>\n </tbody>\n </table>\n <ccpay-app-unprocessed-payments class=\"govuk-table\"\n *ngIf=\"isBulkScanEnable && !takePayment\"\n [IS_BUTTON_ENABLE]=\"takePayment\"\n [LEVEL]=\"4\"\n [ISTURNOFF]=\"isTurnOff\"\n [ISSFENABLE]=\"isStrategicFixEnable\"\n [PAYMENTSLENGTH]=\"allPayments?.length\"\n [PAYMENTREF]=\"paymentRef\"\n (getUnprocessedFeeCount) = \"getUnprocessedFeeCount($event)\"\n [FEE_RECORDS_EXISTS]=\"isAnyFeeGroupAvilable\" \n [IS_OS_AMT_AVAILABLE]=\"isGrpOutstandingAmtPositive\" \n (selectedUnprocessedFeeEvent) = \"selectedUnprocessedFeeEvent($event)\">\n </ccpay-app-unprocessed-payments>\n </ng-container>\n\n </div>\n </div>\n <div class=\"govuk-grid-column-full\" *ngIf=\"!check4AllowedRoles2AccessPBApayment()\">\n <span class=\"heading-medium\"><br/>Refunds</span>\n <ccpay-refund-status \n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderParty] =\"orderParty\"\n ></ccpay-refund-status>\n </div>\n\n </ng-container>\n\n\n<input #myInput type='hidden' id='iFrameDrivenImageValue' value='FEEREMOVALCONFIRMATION_2'>\n\n<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"serviceRequestValue\"\n ></ccpay-service-request>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"></ccpay-add-remission>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n </div>\n <div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n </div>\n</ng-container>\n</main>\n</div>\n\n\n",
3941
+ styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.govuk-heading-lw{width:70%}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.of-visible{overflow:visible!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}.govuk-padding-btm{padding-bottom:50px}"]
3286
3942
  }] }
3287
3943
  ];
3288
3944
  /** @nocollapse */
@@ -3295,7 +3951,8 @@ CaseTransactionsComponent.ctorParameters = () => [
3295
3951
  { type: OrderslistService }
3296
3952
  ];
3297
3953
  CaseTransactionsComponent.propDecorators = {
3298
- LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }]
3954
+ LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
3955
+ isTakePayment: [{ type: Input }]
3299
3956
  };
3300
3957
 
3301
3958
  /**
@@ -5425,12 +6082,20 @@ class AddRetroRemissionRequest {
5425
6082
  */
5426
6083
  class PostRefundRetroRemission {
5427
6084
  /**
6085
+ * @param {?} ccd_case_number
5428
6086
  * @param {?} payment_reference
5429
6087
  * @param {?} refund_reason
6088
+ * @param {?} refund_amount
6089
+ * @param {?} fees
6090
+ * @param {?} contact_details
5430
6091
  */
5431
- constructor(payment_reference, refund_reason) {
6092
+ constructor(ccd_case_number, payment_reference, refund_reason, refund_amount, fees, contact_details) {
6093
+ this.ccd_case_number = ccd_case_number;
5432
6094
  this.payment_reference = payment_reference;
5433
6095
  this.refund_reason = refund_reason;
6096
+ this.refund_amount = refund_amount;
6097
+ this.fees = fees;
6098
+ this.contact_details = contact_details;
5434
6099
  }
5435
6100
  }
5436
6101
 
@@ -5438,21 +6103,6 @@ class PostRefundRetroRemission {
5438
6103
  * @fileoverview added by tsickle
5439
6104
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5440
6105
  */
5441
- class PostIssueRefundRetroRemission {
5442
- /**
5443
- * @param {?} remissionReference
5444
- */
5445
- constructor(remissionReference) {
5446
- this.remissionReference = remissionReference;
5447
- }
5448
- }
5449
-
5450
- /**
5451
- * @fileoverview added by tsickle
5452
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5453
- */
5454
- /** @type {?} */
5455
- const BS_ENABLE_FLAG$3 = 'bulk-scan-enabling-fe';
5456
6106
  class AddRemissionComponent {
5457
6107
  /**
5458
6108
  * @param {?} formBuilder
@@ -5503,11 +6153,15 @@ class AddRemissionComponent {
5503
6153
  this.isRemissionApplied = false;
5504
6154
  // refundReasons: any[] = [];
5505
6155
  this.commonRefundReasons = [];
6156
+ this.class = '';
6157
+ this.errorMsg = new Array();
5506
6158
  }
5507
6159
  /**
5508
6160
  * @return {?}
5509
6161
  */
5510
6162
  ngOnInit() {
6163
+ this.errorMessage = '';
6164
+ this.errorMsg = [];
5511
6165
  this.default = 'Select a different reason';
5512
6166
  this.pattern1 = '^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$';
5513
6167
  this.pattern2 = '^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$';
@@ -5519,6 +6173,7 @@ class AddRemissionComponent {
5519
6173
  this.amount = (this.fee.volume * this.fee.calculated_amount);
5520
6174
  }
5521
6175
  if (this.payment) {
6176
+ this.paymentReference = this.payment.reference;
5522
6177
  this.remessionPayment = this.payment;
5523
6178
  if (this.payment.status === 'Success') {
5524
6179
  this.isPaymentSuccess = true;
@@ -5531,27 +6186,74 @@ class AddRemissionComponent {
5531
6186
  Validators.required,
5532
6187
  Validators.pattern(`(${this.pattern1})|(${this.pattern2})`)
5533
6188
  ])),
5534
- // remissionCode: new FormControl('', Validators.compose([ [A-Za-z]{2}[0-9]{2} [0-9]{6}
5535
- // Validators.required,
5536
- // // Validators.pattern('/(^[a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$/|/^([A-Za-z]{2}[0-9]{2})-([0-9]{6})$/')
5537
- // // Validators.pattern('^([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})$'),
5538
- // Validators.pattern('/^(([A-Za-z]{2}[0-9]{2})-([0-9]{6}))|(([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3})-([a-zA-Z0-9]{3}))$/')
5539
- // ])),
5540
6189
  amount: new FormControl('', Validators.compose([
5541
6190
  Validators.required,
5542
6191
  Validators.pattern('^[0-9]+(\.[0-9]{1,2})?$')
5543
6192
  ])),
5544
6193
  refundReason: new FormControl('', Validators.compose([Validators.required])),
5545
6194
  refundDDReason: new FormControl('', Validators.compose([Validators.required])),
5546
- reason: new FormControl()
6195
+ reason: new FormControl(),
6196
+ feeAmount: new FormControl(),
6197
+ feesList: this.formBuilder.array([])
5547
6198
  });
5548
6199
  /** @type {?} */
5549
6200
  const remissionctrls = this.remissionForm.controls;
5550
6201
  remissionctrls['refundDDReason'].setValue('Select a different reason', { onlySelf: true });
6202
+ if (this.isFromServiceRequestPage) {
6203
+ this.paymentViewService.getApportionPaymentDetails(this.paymentLibComponent.paymentReference).subscribe((/**
6204
+ * @param {?} paymentGroup
6205
+ * @return {?}
6206
+ */
6207
+ paymentGroup => {
6208
+ /** @type {?} */
6209
+ let fees = [];
6210
+ paymentGroup.fees.forEach((/**
6211
+ * @param {?} fee
6212
+ * @return {?}
6213
+ */
6214
+ fee => {
6215
+ this.isRemissionsMatch = false;
6216
+ paymentGroup.remissions.forEach((/**
6217
+ * @param {?} rem
6218
+ * @return {?}
6219
+ */
6220
+ rem => {
6221
+ if (rem.fee_code === fee.code) {
6222
+ this.isRemissionsMatch = true;
6223
+ fee['remissions'] = rem;
6224
+ fees.push(fee);
6225
+ }
6226
+ }));
6227
+ if (!this.isRemissionsMatch) {
6228
+ fees.push(fee);
6229
+ }
6230
+ }));
6231
+ paymentGroup.fees = fees;
6232
+ this.paymentFees = fees;
6233
+ this.fees = fees;
6234
+ this.paymentGroup = paymentGroup;
6235
+ this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
6236
+ * @param {?} paymentGroupObj
6237
+ * @return {?}
6238
+ */
6239
+ paymentGroupObj => paymentGroupObj['reference'].includes(this.paymentLibComponent.paymentReference)));
6240
+ /** @type {?} */
6241
+ const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
6242
+ this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
6243
+ this.refundFeesList();
6244
+ }), (/**
6245
+ * @param {?} error
6246
+ * @return {?}
6247
+ */
6248
+ (error) => this.errorMessage = error));
6249
+ }
6250
+ if (this.fees && this.viewCompStatus === 'issuerefund') {
6251
+ this.refundFeesList();
6252
+ }
5551
6253
  if (this.viewCompStatus === '') {
5552
6254
  this.viewStatus = 'main';
5553
6255
  }
5554
- if (this.viewCompStatus === 'issuerefund') {
6256
+ if (this.viewCompStatus === 'issuerefundpage1') {
5555
6257
  this.refundService.getRefundReasons().subscribe((/**
5556
6258
  * @param {?} refundReasons
5557
6259
  * @return {?}
@@ -5585,25 +6287,103 @@ class AddRemissionComponent {
5585
6287
  if (this.viewCompStatus === 'processretroremissonpage' && this.isFromRefundListPage) {
5586
6288
  this.viewStatus = 'processretroremissonpage';
5587
6289
  }
6290
+ if (this.orderDetail !== undefined) {
6291
+ this.fees = this.orderDetail[0].fees;
6292
+ this.paymentReference = this.orderDetail[0].payments[0].reference;
6293
+ }
5588
6294
  }
5589
6295
  /**
5590
6296
  * @return {?}
5591
6297
  */
5592
- addRemission() {
5593
- this.resetRemissionForm([false, false, false, false, false, false], 'All');
5594
- /** @type {?} */
5595
- const remissionctrls = this.remissionForm.controls;
6298
+ refundFeesList() {
5596
6299
  /** @type {?} */
5597
- const isRemissionLessThanFee = this.fee.calculated_amount > remissionctrls.amount.value;
5598
- this.remissionForm.controls['refundReason'].setErrors(null);
5599
- this.remissionForm.controls['refundDDReason'].setErrors(null);
5600
- //this.remissionForm.controls['amount'].setErrors(null);
5601
- if (this.remissionForm.dirty && this.remissionForm.valid && isRemissionLessThanFee) {
5602
- this.viewStatus = 'confirmation';
6300
+ const creds = (/** @type {?} */ (this.remissionForm.controls.feesList));
6301
+ for (var i = 0; i < this.fees.length; i++) {
6302
+ creds.push(this.formBuilder.group({
6303
+ id: this.fees[i].id,
6304
+ code: this.fees[i].code,
6305
+ volume: this.fees[i].volume,
6306
+ calculated_amount: this.fees[i].calculated_amount,
6307
+ apportion_amount: this.fees[i].apportion_amount,
6308
+ ccd_case_number: this.fees[i].ccd_case_number,
6309
+ description: this.fees[i].description,
6310
+ net_amount: this.fees[i].net_amount,
6311
+ version: this.fees[i].version,
6312
+ amounttorefund: [''],
6313
+ selected: ['']
6314
+ }));
5603
6315
  }
5604
- else {
5605
- if (remissionctrls['remissionCode'].value == '') {
5606
- this.resetRemissionForm([true, false, false, false, false, false], 'remissionCode');
6316
+ this.cd.detectChanges();
6317
+ }
6318
+ /**
6319
+ * @return {?}
6320
+ */
6321
+ get feesList() {
6322
+ /** @type {?} */
6323
+ const dd = (/** @type {?} */ (this.remissionForm.get('feesList')));
6324
+ return (/** @type {?} */ (this.remissionForm.get('feesList')));
6325
+ }
6326
+ /**
6327
+ * @return {?}
6328
+ */
6329
+ noneSelected() {
6330
+ if (!this.feesList.controls.some((/**
6331
+ * @param {?} item
6332
+ * @return {?}
6333
+ */
6334
+ item => item.get('selected').value === true))) {
6335
+ this.errorMsg = [];
6336
+ [].forEach.call(document.querySelectorAll('input'), (/**
6337
+ * @param {?} el
6338
+ * @return {?}
6339
+ */
6340
+ function (el) {
6341
+ el.classList.remove('inline-error-class');
6342
+ }));
6343
+ }
6344
+ return !this.feesList.controls.some((/**
6345
+ * @param {?} item
6346
+ * @return {?}
6347
+ */
6348
+ item => item.get('selected').value === true));
6349
+ }
6350
+ /**
6351
+ * @param {?} v1
6352
+ * @return {?}
6353
+ */
6354
+ check_en(v1) {
6355
+ /** @type {?} */
6356
+ const ele = (/** @type {?} */ (document.getElementById(v1)));
6357
+ if (ele.checked) {
6358
+ document.getElementById('feeAmount_' + v1).removeAttribute("disabled");
6359
+ if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
6360
+ document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
6361
+ }
6362
+ }
6363
+ else {
6364
+ document.getElementById('feeAmount_' + v1).setAttribute("disabled", "true");
6365
+ if (document.getElementById('feeVolumeUpdated_' + v1) !== null) {
6366
+ document.getElementById('feeVolumeUpdated_' + v1).removeAttribute("disabled");
6367
+ }
6368
+ }
6369
+ }
6370
+ /**
6371
+ * @return {?}
6372
+ */
6373
+ addRemission() {
6374
+ this.resetRemissionForm([false, false, false, false, false, false], 'All');
6375
+ /** @type {?} */
6376
+ const remissionctrls = this.remissionForm.controls;
6377
+ /** @type {?} */
6378
+ const isRemissionLessThanFee = this.fee.calculated_amount > remissionctrls.amount.value;
6379
+ this.remissionForm.controls['refundReason'].setErrors(null);
6380
+ this.remissionForm.controls['refundDDReason'].setErrors(null);
6381
+ if (this.remissionForm.dirty && this.remissionForm.valid && isRemissionLessThanFee) {
6382
+ this.viewStatus = 'confirmation';
6383
+ }
6384
+ else {
6385
+ if (remissionctrls['remissionCode'].value == '') {
6386
+ this.resetRemissionForm([true, false, false, false, false, false], 'remissionCode');
5607
6387
  }
5608
6388
  if (remissionctrls['remissionCode'].value != '' && remissionctrls['remissionCode'].invalid) {
5609
6389
  this.resetRemissionForm([false, true, false, false, false, false], 'remissionCode');
@@ -5695,6 +6475,7 @@ class AddRemissionComponent {
5695
6475
  */
5696
6476
  addRemissionCode() {
5697
6477
  this.errorMessage = false;
6478
+ this.errorMsg = [];
5698
6479
  this.viewStatus = '';
5699
6480
  this.isRefundRemission = false;
5700
6481
  this.resetRemissionForm([false, false, false, false, false, false], 'All');
@@ -5736,6 +6517,7 @@ class AddRemissionComponent {
5736
6517
  */
5737
6518
  gotoAddRetroRemissionCodePage() {
5738
6519
  this.errorMessage = false;
6520
+ this.errorMsg = [];
5739
6521
  if (this.isRefundRemission) {
5740
6522
  this.paymentLibComponent.iscancelClicked = true;
5741
6523
  this.refundListAmount.emit();
@@ -5753,6 +6535,7 @@ class AddRemissionComponent {
5753
6535
  this.viewCompStatus = "addremission";
5754
6536
  this.isRefundRemission = true;
5755
6537
  this.errorMessage = '';
6538
+ this.errorMsg = [];
5756
6539
  if (this.isFromPaymentDetailPage) {
5757
6540
  this.paymentLibComponent.viewName = 'payment-view';
5758
6541
  }
@@ -5801,6 +6584,15 @@ class AddRemissionComponent {
5801
6584
  //}
5802
6585
  }
5803
6586
  }
6587
+ /**
6588
+ * @return {?}
6589
+ */
6590
+ gotoAmountRetroRemission() {
6591
+ this.viewStatus = 'processretroremissonpage';
6592
+ this.viewCompStatus = '';
6593
+ this.isRefundRemission = true;
6594
+ this.errorMessage = '';
6595
+ }
5804
6596
  /**
5805
6597
  * @return {?}
5806
6598
  */
@@ -5809,6 +6601,16 @@ class AddRemissionComponent {
5809
6601
  this.viewCompStatus = 'addremission';
5810
6602
  this.isRefundRemission = true;
5811
6603
  this.errorMessage = '';
6604
+ this.errorMsg = [];
6605
+ }
6606
+ /**
6607
+ * @return {?}
6608
+ */
6609
+ gotoProcessRetroRemission() {
6610
+ this.viewStatus = 'remissionAddressPage';
6611
+ this.viewCompStatus = '';
6612
+ this.isRefundRemission = true;
6613
+ this.errorMessage = '';
5812
6614
  }
5813
6615
  /**
5814
6616
  * @return {?}
@@ -5846,6 +6648,7 @@ class AddRemissionComponent {
5846
6648
  */
5847
6649
  processRefund() {
5848
6650
  this.errorMessage = '';
6651
+ this.errorMsg = [];
5849
6652
  this.isConfirmationBtnDisabled = true;
5850
6653
  if (this.isRefundRemission) {
5851
6654
  this.retroRemission = true;
@@ -5854,7 +6657,7 @@ class AddRemissionComponent {
5854
6657
  this.remissionReference = this.remission.remission_reference;
5855
6658
  }
5856
6659
  /** @type {?} */
5857
- const requestBody = new PostIssueRefundRetroRemission(this.remissionReference);
6660
+ const requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
5858
6661
  this.paymentViewService.postRefundRetroRemission(requestBody).subscribe((/**
5859
6662
  * @param {?} response
5860
6663
  * @return {?}
@@ -5885,7 +6688,19 @@ class AddRemissionComponent {
5885
6688
  if (this.paymentLibComponent.REFUNDLIST === "true") {
5886
6689
  this.isFromRefundListPage = true;
5887
6690
  }
6691
+ this.totalRefundAmount = this.remissionForm.value.feesList.reduce((/**
6692
+ * @param {?} a
6693
+ * @param {?} c
6694
+ * @return {?}
6695
+ */
6696
+ (a, c) => a + c.amounttorefund * c.selected), 0);
6697
+ // this.remissionForm.get('feesList').valueChanges.subscribe(values => {
6698
+ // resolvedPromise.then(() => {
6699
+ // this.totalRefundAmount = valuesreduce((a, c) => a + c.amounttorefund * c.selected, 0)
6700
+ // });
6701
+ // });
5888
6702
  this.errorMessage = '';
6703
+ this.errorMsg = [];
5889
6704
  this.refundReason = this.remissionForm.controls['refundReason'].value === null ? this.remissionForm.controls['refundDDReason'].value : this.remissionForm.controls['refundReason'].value;
5890
6705
  if (!this.refundReason || this.refundReason === 'Select a different reason') {
5891
6706
  this.refundHasError = true;
@@ -5896,13 +6711,13 @@ class AddRemissionComponent {
5896
6711
  else if (this.selectedRefundReason.includes('Other') && this.remissionForm.controls['reason'].value !== '') {
5897
6712
  this.refundHasError = false;
5898
6713
  this.refundReason += '-' + this.remissionForm.controls['reason'].value;
5899
- this.displayRefundReason = this.remissionForm.controls['reason'].value;
6714
+ this.displayRefundReason = this.selectedRefundReason + '-' + this.remissionForm.controls['reason'].value;
5900
6715
  if (this.isFromRefundListPage) {
5901
- this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
6716
+ this.refundListReason.emit({ reason: this.displayRefundReason, code: this.refundReason });
5902
6717
  }
5903
6718
  else {
5904
6719
  this.viewCompStatus = '';
5905
- this.viewStatus = 'checkissuerefundpage';
6720
+ this.viewStatus = 'contactDetailsPage';
5906
6721
  }
5907
6722
  }
5908
6723
  else {
@@ -5913,7 +6728,7 @@ class AddRemissionComponent {
5913
6728
  }
5914
6729
  else {
5915
6730
  this.viewCompStatus = '';
5916
- this.viewStatus = 'checkissuerefundpage';
6731
+ this.viewStatus = 'contactDetailsPage';
5917
6732
  }
5918
6733
  }
5919
6734
  }
@@ -5926,15 +6741,152 @@ class AddRemissionComponent {
5926
6741
  this.viewStatus = '';
5927
6742
  this.isRefundRemission = true;
5928
6743
  this.errorMessage = false;
6744
+ this.errorMsg = [];
5929
6745
  this.refundHasError = false;
5930
6746
  this.isReasonEmpty = false;
5931
6747
  }
6748
+ /**
6749
+ * @return {?}
6750
+ */
6751
+ gotoIssuePage() {
6752
+ [].forEach.call(document.querySelectorAll('input'), (/**
6753
+ * @param {?} el
6754
+ * @return {?}
6755
+ */
6756
+ function (el) {
6757
+ el.classList.remove('inline-error-class');
6758
+ }));
6759
+ /** @type {?} */
6760
+ var checkboxs = document.getElementsByTagName('input');
6761
+ this.errorMessage = '';
6762
+ this.errorMsg = [];
6763
+ for (var j = 0; j < checkboxs.length; j++) {
6764
+ if (checkboxs[j].checked) {
6765
+ /** @type {?} */
6766
+ let quantity = +((/** @type {?} */ (document.getElementById('feeVolume_' + checkboxs[j].value)))).value;
6767
+ /** @type {?} */
6768
+ let amountToRefund = +((/** @type {?} */ (document.getElementById('feeAmount_' + checkboxs[j].value)))).value;
6769
+ /** @type {?} */
6770
+ let apportionAmount = +((/** @type {?} */ (document.getElementById('feeApportionAmount_' + checkboxs[j].value)))).value;
6771
+ /** @type {?} */
6772
+ let calculatedAmount = +((/** @type {?} */ (document.getElementById('calculatedAmount_' + checkboxs[j].value)))).value;
6773
+ if (amountToRefund === apportionAmount) {
6774
+ this.fullRefund = true;
6775
+ }
6776
+ if (amountToRefund === 0) {
6777
+ this.elementId = 'feeAmount_' + checkboxs[j].value;
6778
+ this.errorMsg.push('You need to enter a refund amount');
6779
+ this.getErrorClass(this.elementId);
6780
+ }
6781
+ if (this.quantityUpdated === 0) {
6782
+ this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
6783
+ this.errorMsg.push('You need to enter quantity');
6784
+ this.getErrorClass(this.elementId);
6785
+ }
6786
+ if (quantity === 1) {
6787
+ if (amountToRefund > 0 && amountToRefund > apportionAmount) {
6788
+ this.elementId = 'feeAmount_' + checkboxs[j].value;
6789
+ this.errorMsg.push('The amount you want to refund is more than the amount paid');
6790
+ this.getErrorClass(this.elementId);
6791
+ }
6792
+ }
6793
+ if (quantity > 1) {
6794
+ this.quantityUpdated = +((/** @type {?} */ (document.getElementById('feeVolumeUpdated_' + checkboxs[j].value)))).value;
6795
+ if (this.fullRefund && quantity !== this.quantityUpdated) {
6796
+ this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
6797
+ this.errorMsg.push('The quantity you want to refund should be maximun available quantity');
6798
+ this.getErrorClass(this.elementId);
6799
+ }
6800
+ if (!this.fullRefund && this.quantityUpdated > 0 && amountToRefund > 0) {
6801
+ this.allowedRefundAmount = this.quantityUpdated * calculatedAmount;
6802
+ if (this.allowedRefundAmount !== amountToRefund) {
6803
+ this.elementId = 'feeAmount_' + checkboxs[j].value;
6804
+ this.errorMsg.push('The Amount to Refund should be equal to the product of Fee Amount and quantity');
6805
+ this.getErrorClass(this.elementId);
6806
+ }
6807
+ }
6808
+ if (!this.fullRefund && amountToRefund > apportionAmount) {
6809
+ this.elementId = 'feeAmount_' + checkboxs[j].value;
6810
+ this.errorMsg.push('The amount you want to refund is more than the amount paid');
6811
+ this.getErrorClass(this.elementId);
6812
+ }
6813
+ if (!this.fullRefund && this.quantityUpdated > 0 && this.quantityUpdated > quantity) {
6814
+ this.elementId = 'feeVolumeUpdated_' + checkboxs[j].value;
6815
+ this.errorMsg.push('The quantity you want to refund is more than the available quantity');
6816
+ this.getErrorClass(this.elementId);
6817
+ }
6818
+ }
6819
+ }
6820
+ }
6821
+ if (this.errorMsg.length === 0) {
6822
+ this.viewCompStatus = 'issuerefundpage1';
6823
+ this.getRefundReasons();
6824
+ }
6825
+ }
6826
+ /**
6827
+ * @return {?}
6828
+ */
6829
+ gotoContactDetailsPage() {
6830
+ this.errorMessage = '';
6831
+ this.viewCompStatus = '';
6832
+ this.viewStatus = 'contactDetailsPage';
6833
+ this.isRefundRemission = true;
6834
+ this.errorMessage = false;
6835
+ }
6836
+ /**
6837
+ * @return {?}
6838
+ */
6839
+ getRefundReasons() {
6840
+ if (this.viewCompStatus === 'issuerefundpage1') {
6841
+ this.refundService.getRefundReasons().subscribe((/**
6842
+ * @param {?} refundReasons
6843
+ * @return {?}
6844
+ */
6845
+ refundReasons => {
6846
+ this.refundReasons = refundReasons.filter((/**
6847
+ * @param {?} data
6848
+ * @return {?}
6849
+ */
6850
+ (data) => data.recently_used === false));
6851
+ this.refundReasons = this.refundReasons.filter((/**
6852
+ * @param {?} data
6853
+ * @return {?}
6854
+ */
6855
+ (data) => data.name !== 'Retrospective remission'));
6856
+ this.cd.detectChanges();
6857
+ this.commonRefundReasons = refundReasons.filter((/**
6858
+ * @param {?} data
6859
+ * @return {?}
6860
+ */
6861
+ (data) => data.recently_used === true));
6862
+ this.commonRefundReasons.sort((/**
6863
+ * @param {?} a
6864
+ * @param {?} b
6865
+ * @return {?}
6866
+ */
6867
+ (a, b) => a.toString().localeCompare(b)));
6868
+ this.cd.detectChanges();
6869
+ }));
6870
+ }
6871
+ }
6872
+ /**
6873
+ * @param {?} elementId
6874
+ * @return {?}
6875
+ */
6876
+ getErrorClass(elementId) {
6877
+ if (this.errorMsg.length > 0) {
6878
+ /** @type {?} */
6879
+ const ele = document.getElementById(elementId);
6880
+ ele.classList.add('inline-error-class');
6881
+ }
6882
+ }
5932
6883
  /**
5933
6884
  * @return {?}
5934
6885
  */
5935
6886
  changeIssueRefundReason() {
5936
6887
  // this.remissionForm.controls['refundReason'].setValue('Duplicate payment');
5937
6888
  this.errorMessage = '';
6889
+ this.errorMsg = [];
5938
6890
  this.refundHasError = false;
5939
6891
  this.isReasonEmpty = false;
5940
6892
  this.viewCompStatus = 'issuerefund';
@@ -5947,11 +6899,17 @@ class AddRemissionComponent {
5947
6899
  confirmIssueRefund() {
5948
6900
  this.isConfirmationBtnDisabled = true;
5949
6901
  this.errorMessage = '';
6902
+ this.errorMsg = [];
5950
6903
  if (this.isRefundRemission) {
5951
6904
  this.retroRemission = true;
5952
6905
  }
6906
+ this.fees = this.remissionForm.value.feesList.filter((/**
6907
+ * @param {?} value
6908
+ * @return {?}
6909
+ */
6910
+ value => value.selected === true));
5953
6911
  /** @type {?} */
5954
- const requestBody = new PostRefundRetroRemission(this.payment.reference, this.refundReason);
6912
+ const requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
5955
6913
  this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
5956
6914
  * @param {?} response
5957
6915
  * @return {?}
@@ -5976,39 +6934,30 @@ class AddRemissionComponent {
5976
6934
  }));
5977
6935
  }
5978
6936
  // Retro Refund
5979
- /**
5980
- * @return {?}
5981
- */
5982
- confirmRetroRefund() {
5983
- this.isConfirmationBtnDisabled = true;
5984
- this.errorMessage = '';
5985
- if (this.isRefundRemission) {
5986
- this.retroRemission = true;
5987
- }
5988
- /** @type {?} */
5989
- const requestBody = new PostRefundRetroRemission(this.payment.reference, 'RR004-Retrospective remission');
5990
- this.paymentViewService.postRefundsReason(requestBody).subscribe((/**
5991
- * @param {?} response
5992
- * @return {?}
5993
- */
5994
- response => {
5995
- if (JSON.parse(response)) {
5996
- this.viewCompStatus = '';
5997
- this.viewStatus = 'retrorefundconfirmationpage';
5998
- this.refundReference = JSON.parse(response).refund_reference;
5999
- if (JSON.parse(response).refund_amount) {
6000
- this.refundAmount = JSON.parse(response).refund_amount;
6001
- }
6002
- }
6003
- }), (/**
6004
- * @param {?} error
6005
- * @return {?}
6006
- */
6007
- (error) => {
6008
- this.errorMessage = error;
6009
- this.isConfirmationBtnDisabled = false;
6010
- }));
6011
- }
6937
+ // confirmRetroRefund() {
6938
+ // this.isConfirmationBtnDisabled = true;
6939
+ // this.errorMessage = '';
6940
+ // this.errorMsg = [];
6941
+ // if( this.isRefundRemission) {
6942
+ // this.retroRemission = true;
6943
+ // }
6944
+ // const requestBody = new PostRefundRetroRemission(this.payment.reference,'RR004-Retrospective remission', this.contactDetailsObj);
6945
+ // this.paymentViewService.postRefundsReason(requestBody).subscribe(
6946
+ // response => {
6947
+ // if (JSON.parse(response)) {
6948
+ // this.viewCompStatus = '';
6949
+ // this.viewStatus = 'retrorefundconfirmationpage';
6950
+ // this.refundReference =JSON.parse(response).refund_reference;
6951
+ // if(JSON.parse(response).refund_amount) {
6952
+ // this.refundAmount = JSON.parse(response).refund_amount;
6953
+ // }
6954
+ // }
6955
+ // },
6956
+ // (error: any) => {
6957
+ // this.errorMessage = error;
6958
+ // this.isConfirmationBtnDisabled = false;
6959
+ // });
6960
+ // }
6012
6961
  /**
6013
6962
  * @param {?} key
6014
6963
  * @param {?} value
@@ -6022,6 +6971,7 @@ class AddRemissionComponent {
6022
6971
  remissionctrls['reason'].reset();
6023
6972
  this.isRefundReasonsSelected = true;
6024
6973
  this.errorMessage = false;
6974
+ this.errorMsg = [];
6025
6975
  this.isReasonEmpty = false;
6026
6976
  this.showReasonText = false;
6027
6977
  this.refundHasError = false;
@@ -6052,95 +7002,142 @@ class AddRemissionComponent {
6052
7002
  this.refundReason = args.target.options[args.target.options.selectedIndex].id;
6053
7003
  }
6054
7004
  }
7005
+ /**
7006
+ * @param {?} obj
7007
+ * @param {?} type
7008
+ * @return {?}
7009
+ */
7010
+ getContactDetails(obj, type) {
7011
+ this.contactDetailsObj = obj;
7012
+ this.viewCompStatus = '';
7013
+ this.viewStatus = type;
7014
+ }
6055
7015
  /**
6056
7016
  * @param {?} event
6057
7017
  * @return {?}
6058
7018
  */
6059
7019
  gotoServiceRequestPage(event) {
7020
+ this.errorMessage = '';
7021
+ this.errorMsg = [];
6060
7022
  event.preventDefault();
6061
- if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
6062
- this.paymentLibComponent.SERVICEREQUEST = 'false';
6063
- this.paymentLibComponent.TAKEPAYMENT = false;
6064
- }
6065
- if (this.isFromServiceRequestPage) {
6066
- //this.paymentLibComponent.TAKEPAYMENT = false;
6067
- this.paymentLibComponent.isFromRefundStatusPage = false;
6068
- this.viewStatus = 'main';
6069
- this.paymentLibComponent.viewName = 'case-transactions';
6070
- this.OrderslistService.setisFromServiceRequestPage(true);
6071
- this.OrderslistService.setnavigationPage('servicerequestpage');
7023
+ if (this.isFromServiceRequestPage && !this.isFromPaymentDetailPage) {
7024
+ this.viewStatus = 'order-full-view';
7025
+ this.viewCompStatus = '';
6072
7026
  }
6073
- if (this.isFromRefundListPage) {
7027
+ else if (this.isFromRefundListPage) {
6074
7028
  this.paymentLibComponent.iscancelClicked = true;
6075
7029
  this.refundListReason.emit({ reason: this.selectedRefundReason, code: this.refundReason });
6076
7030
  this.paymentLibComponent.isFromRefundStatusPage = true;
6077
7031
  }
6078
- if (!this.paymentLibComponent.isFromRefundStatusPage) {
6079
- if (this.payment) {
6080
- this.OrderslistService.setpaymentPageView({ method: this.payment.method, payment_group_reference: this.paymentGroupRef, reference: this.payment.reference });
6081
- }
6082
- if (this.isFromServiceRequestPage) {
6083
- this.OrderslistService.setnavigationPage('servicerequestpage');
6084
- }
6085
- else {
6086
- this.OrderslistService.setnavigationPage('paymentdetailspage');
6087
- }
6088
- this.errorMessage = '';
6089
- this.paymentLibComponent.viewName = 'case-transactions';
6090
- // this.paymentLibComponent.TAKEPAYMENT = true;
6091
- this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
6092
- this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
6093
- this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
6094
- this.paymentLibComponent.isFromServiceRequestPage = true;
6095
- // this.paymentViewService.getBSfeature().subscribe(
6096
- // features => {
6097
- // let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
6098
- // this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
6099
- // },
6100
- // err => {
6101
- // this.paymentLibComponent.ISBSENABLE = false;
6102
- // }
6103
- // );
6104
- this.paymentLibComponent.ISBSENABLE = true;
6105
- /** @type {?} */
6106
- let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
6107
- partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
6108
- partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
6109
- partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
6110
- partUrl += `&caseType=${this.caseType}`;
6111
- partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
6112
- partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
6113
- if (this.isFromPaymentDetailPage) {
6114
- partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
6115
- }
6116
- if (!this.paymentLibComponent.TAKEPAYMENT) {
6117
- this.paymentLibComponent.TAKEPAYMENT = undefined;
6118
- }
6119
- if (this.paymentLibComponent.SERVICEREQUEST) {
6120
- /** @type {?} */
6121
- const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
6122
- this.router.routeReuseStrategy.shouldReuseRoute = (/**
6123
- * @return {?}
6124
- */
6125
- () => false);
6126
- this.router.onSameUrlNavigation = 'reload';
6127
- this.router.navigateByUrl(url);
6128
- }
6129
- else {
6130
- /** @type {?} */
6131
- const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
6132
- this.router.routeReuseStrategy.shouldReuseRoute = (/**
7032
+ else {
7033
+ this.paymentLibComponent.paymentMethod = this.payment.method;
7034
+ this.paymentLibComponent.paymentGroupReference = this.paymentLibComponent.paymentGroupReference;
7035
+ this.paymentLibComponent.paymentReference = this.payment.reference;
7036
+ this.paymentLibComponent.viewName = 'payment-view';
7037
+ this.OrderslistService.setOrderRef(this.orderRef);
7038
+ this.OrderslistService.setorderCCDEvent(this.orderCCDEvent);
7039
+ this.OrderslistService.setorderCreated(this.orderCreated);
7040
+ this.OrderslistService.setorderDetail(this.orderDetail);
7041
+ this.OrderslistService.setorderParty(this.orderParty);
7042
+ this.OrderslistService.setorderTotalPayments(this.orderTotalPayments);
7043
+ this.OrderslistService.setorderRemissionTotal(this.orderRemissionTotal);
7044
+ this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
7045
+ this.viewStatus = 'payment-view';
7046
+ this.sendOrderDetail = this.orderDetail;
7047
+ this.sendOrderRef = this.orderRef;
7048
+ if (this.LOGGEDINUSERROLES === undefined) {
7049
+ this.OrderslistService.getUserRolesList().subscribe((/**
7050
+ * @param {?} data
6133
7051
  * @return {?}
6134
7052
  */
6135
- () => false);
6136
- this.router.onSameUrlNavigation = 'reload';
6137
- this.router.navigateByUrl(url);
7053
+ (data) => this.LOGGEDINUSERROLES = data));
6138
7054
  }
7055
+ this.viewCompStatus = '';
6139
7056
  }
6140
- else {
6141
- this.paymentLibComponent.viewName === 'refundstatuslist';
6142
- this.paymentLibComponent.isFromRefundStatusPage = true;
6143
- }
7057
+ // if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
7058
+ // this.paymentLibComponent.SERVICEREQUEST = 'false';
7059
+ // this.paymentLibComponent.TAKEPAYMENT = false;
7060
+ // }
7061
+ // if (this.isFromServiceRequestPage) {
7062
+ // //this.paymentLibComponent.TAKEPAYMENT = false;
7063
+ // this.paymentLibComponent.isFromRefundStatusPage = false;
7064
+ // this.viewStatus = 'main'
7065
+ // this.paymentLibComponent.viewName = 'case-transactions';
7066
+ // this.OrderslistService.setisFromServiceRequestPage(true);
7067
+ // this.OrderslistService.setnavigationPage('servicerequestpage');
7068
+ // }
7069
+ // if ( this.isFromRefundListPage ) {
7070
+ // this.paymentLibComponent.iscancelClicked = true;
7071
+ // this.refundListReason.emit({reason: this.selectedRefundReason, code: this.refundReason});
7072
+ // this.paymentLibComponent.isFromRefundStatusPage = true;
7073
+ // }
7074
+ // if(!this.paymentLibComponent.isFromRefundStatusPage) {
7075
+ // if(this.payment) {
7076
+ // this.OrderslistService.setpaymentPageView({method: this.payment.method,payment_group_reference: this.paymentGroupRef, reference:this.payment.reference});
7077
+ // }
7078
+ // if (this.isFromServiceRequestPage) {
7079
+ // this.OrderslistService.setnavigationPage('servicerequestpage');
7080
+ // } else {
7081
+ // this.OrderslistService.setnavigationPage('paymentdetailspage');
7082
+ // }
7083
+ // this.errorMessage = '';
7084
+ // this.paymentLibComponent.viewName = 'case-transactions';
7085
+ // // this.paymentLibComponent.TAKEPAYMENT = true;
7086
+ // this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
7087
+ // this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
7088
+ // this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
7089
+ // this.paymentLibComponent.isFromServiceRequestPage = true;
7090
+ // this.paymentLibComponent.ISBSENABLE = true;
7091
+ // let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
7092
+ // partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
7093
+ // partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
7094
+ // partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
7095
+ // partUrl += `&caseType=${this.caseType}`;
7096
+ // partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
7097
+ // partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
7098
+ // if(this.isFromPaymentDetailPage) {
7099
+ // partUrl += this.paymentLibComponent.isFromPaymentDetailPage
7100
+ // }
7101
+ // if(!this.paymentLibComponent.TAKEPAYMENT) {
7102
+ // this.paymentLibComponent.TAKEPAYMENT = undefined;
7103
+ // }
7104
+ // if ( this.paymentLibComponent.SERVICEREQUEST) {
7105
+ // const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&selectedOption=${this.option}${partUrl}`;
7106
+ // this.router.routeReuseStrategy.shouldReuseRoute = () => false;
7107
+ // this.router.onSameUrlNavigation = 'reload';
7108
+ // this.router.navigateByUrl(url);
7109
+ // } else {
7110
+ // const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
7111
+ // this.router.routeReuseStrategy.shouldReuseRoute = () => false;
7112
+ // this.router.onSameUrlNavigation = 'reload';
7113
+ // this.router.navigateByUrl(url);
7114
+ // }
7115
+ // } else {
7116
+ // this.paymentLibComponent.viewName === 'refundstatuslist';
7117
+ // this.paymentLibComponent.isFromRefundStatusPage = true;
7118
+ // }
7119
+ }
7120
+ /**
7121
+ * @return {?}
7122
+ */
7123
+ gotoAddressPage() {
7124
+ this.errorMessage = '';
7125
+ this.viewCompStatus = 'addrefundforremission';
7126
+ this.viewStatus = '';
7127
+ this.isRefundRemission = true;
7128
+ this.errorMessage = false;
7129
+ }
7130
+ /**
7131
+ * @param {?} event
7132
+ * @return {?}
7133
+ */
7134
+ gotoRemissionSuccess(event) {
7135
+ event.preventDefault();
7136
+ this.errorMessage = '';
7137
+ this.viewCompStatus = '';
7138
+ this.viewStatus = 'retroremissionconfirmationpage';
7139
+ this.isRefundRemission = true;
7140
+ this.errorMessage = false;
6144
7141
  }
6145
7142
  /**
6146
7143
  * @return {?}
@@ -6148,21 +7145,14 @@ class AddRemissionComponent {
6148
7145
  gotoCasetransationPage() {
6149
7146
  this.OrderslistService.setnavigationPage('casetransactions');
6150
7147
  this.errorMessage = '';
7148
+ this.errorMsg = [];
6151
7149
  this.paymentLibComponent.viewName = 'case-transactions';
7150
+ this.paymentLibComponent.VIEW = 'case-transactions';
6152
7151
  this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
6153
7152
  this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
6154
7153
  this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
6155
7154
  this.paymentLibComponent.isFromServiceRequestPage = true;
6156
- // this.paymentViewService.getBSfeature().subscribe(
6157
- // features => {
6158
- // let result = JSON.parse(features).filter(feature => feature.uid === BS_ENABLE_FLAG);
6159
- // this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
6160
- // },
6161
- // err => {
6162
- // this.paymentLibComponent.ISBSENABLE = false;
6163
- // }
6164
- // );
6165
- this.paymentLibComponent.ISBSENABLE = true;
7155
+ this.resetOrderData();
6166
7156
  /** @type {?} */
6167
7157
  let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
6168
7158
  partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
@@ -6171,9 +7161,6 @@ class AddRemissionComponent {
6171
7161
  partUrl += `&caseType=${this.caseType}`;
6172
7162
  partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
6173
7163
  partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
6174
- if (this.isFromPaymentDetailPage) {
6175
- partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
6176
- }
6177
7164
  /** @type {?} */
6178
7165
  const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
6179
7166
  this.router.routeReuseStrategy.shouldReuseRoute = (/**
@@ -6189,74 +7176,96 @@ class AddRemissionComponent {
6189
7176
  */
6190
7177
  gotoCasetransationPageCancelBtnClicked(event) {
6191
7178
  event.preventDefault();
6192
- if (this.paymentLibComponent.REFUNDLIST) {
6193
- this.paymentLibComponent.viewName = 'refund-list';
6194
- return;
6195
- }
6196
- if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
6197
- this.paymentLibComponent.SERVICEREQUEST = 'false';
6198
- }
6199
- this.OrderslistService.setisFromServiceRequestPage(false);
6200
- this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
6201
- this.OrderslistService.setnavigationPage('casetransactions');
6202
- this.errorMessage = '';
6203
- this.paymentLibComponent.viewName = 'case-transactions';
6204
- //this.paymentLibComponent.TAKEPAYMENT = true;
6205
- this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
6206
- this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
6207
- this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
6208
- this.paymentLibComponent.isFromServiceRequestPage = true;
6209
- this.paymentViewService.getBSfeature().subscribe((/**
6210
- * @param {?} features
6211
- * @return {?}
6212
- */
6213
- features => {
6214
- /** @type {?} */
6215
- let result = JSON.parse(features).filter((/**
6216
- * @param {?} feature
6217
- * @return {?}
6218
- */
6219
- feature => feature.uid === BS_ENABLE_FLAG$3));
6220
- this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
6221
- }), (/**
6222
- * @param {?} err
6223
- * @return {?}
6224
- */
6225
- err => {
6226
- this.paymentLibComponent.ISBSENABLE = false;
6227
- }));
6228
- /** @type {?} */
6229
- let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
6230
- partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
6231
- partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
6232
- partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
6233
- partUrl += `&caseType=${this.caseType}`;
6234
- partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
6235
- partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
6236
- if (this.isFromPaymentDetailPage) {
6237
- partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
6238
- }
6239
- if (!this.paymentLibComponent.SERVICEREQUEST) {
6240
- /** @type {?} */
6241
- const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
6242
- this.router.routeReuseStrategy.shouldReuseRoute = (/**
6243
- * @return {?}
6244
- */
6245
- () => false);
6246
- this.router.onSameUrlNavigation = 'reload';
6247
- this.router.navigateByUrl(url);
7179
+ this.errorMsg = [];
7180
+ if (!this.paymentLibComponent.isFromServiceRequestPage) {
7181
+ this.OrderslistService.setnavigationPage('casetransactions');
7182
+ this.OrderslistService.setisFromServiceRequestPage(false);
7183
+ this.paymentLibComponent.VIEW = 'case-transactions';
7184
+ this.paymentLibComponent.viewName = 'case-transactions';
7185
+ this.paymentLibComponent.ISBSENABLE = true;
7186
+ this.paymentLibComponent.isRefundStatusView = false;
7187
+ // this.OrderslistService.setnavigationPage('casetransactions');
7188
+ // this.OrderslistService.setisFromServiceRequestPage(false);
7189
+ // this.paymentLibComponent.VIEW ='case-transactions';
7190
+ // this.paymentLibComponent.viewName = 'case-transactions';
7191
+ // this.paymentLibComponent.ISBSENABLE = true;
7192
+ // this.paymentLibComponent.isRefundStatusView = false;
7193
+ // this.resetOrderData(); let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
7194
+ // partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
7195
+ // partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
7196
+ // partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
7197
+ // partUrl += `&caseType=${this.caseType}`;
7198
+ // partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
7199
+ // partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
7200
+ // const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
7201
+ // this.router.routeReuseStrategy.shouldReuseRoute = () => false;
7202
+ // this.router.onSameUrlNavigation = 'reload';
7203
+ // this.router.navigateByUrl(url);
6248
7204
  }
6249
7205
  else {
7206
+ if (this.paymentLibComponent.REFUNDLIST) {
7207
+ this.paymentLibComponent.viewName = 'refund-list';
7208
+ return;
7209
+ }
7210
+ if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
7211
+ this.paymentLibComponent.SERVICEREQUEST = 'false';
7212
+ }
7213
+ this.OrderslistService.setisFromServiceRequestPage(false);
7214
+ this.OrderslistService.setpaymentPageView({ method: '', payment_group_reference: '', reference: '' });
7215
+ this.OrderslistService.setnavigationPage('casetransactions');
7216
+ this.errorMessage = '';
7217
+ this.paymentLibComponent.viewName = 'case-transactions';
7218
+ this.paymentLibComponent.ISTURNOFF = this.isTurnOff;
7219
+ this.paymentLibComponent.ISNEWPCIPALOFF = this.isNewPcipalOff;
7220
+ this.paymentLibComponent.ISOLDPCIPALOFF = this.isOldPcipalOff;
7221
+ this.paymentLibComponent.isFromServiceRequestPage = true;
7222
+ this.paymentLibComponent.ISBSENABLE = true;
6250
7223
  /** @type {?} */
6251
- const url = `/payment-history/${this.ccdCaseNumber}?selectedOption=${this.option}${partUrl}`;
6252
- this.router.routeReuseStrategy.shouldReuseRoute = (/**
6253
- * @return {?}
6254
- */
6255
- () => false);
6256
- this.router.onSameUrlNavigation = 'reload';
6257
- this.router.navigateByUrl(url);
7224
+ let partUrl = this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
7225
+ partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
7226
+ partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
7227
+ partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
7228
+ partUrl += `&caseType=${this.caseType}`;
7229
+ partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
7230
+ partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
7231
+ if (this.isFromPaymentDetailPage) {
7232
+ partUrl += this.paymentLibComponent.isFromPaymentDetailPage;
7233
+ }
7234
+ if (!this.paymentLibComponent.SERVICEREQUEST) {
7235
+ /** @type {?} */
7236
+ const url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&selectedOption=${this.option}${partUrl}`;
7237
+ this.router.routeReuseStrategy.shouldReuseRoute = (/**
7238
+ * @return {?}
7239
+ */
7240
+ () => false);
7241
+ this.router.onSameUrlNavigation = 'reload';
7242
+ this.router.navigateByUrl(url);
7243
+ }
7244
+ else {
7245
+ /** @type {?} */
7246
+ const url = `/payment-history/${this.ccdCaseNumber}?selectedOption=${this.option}${partUrl}`;
7247
+ this.router.routeReuseStrategy.shouldReuseRoute = (/**
7248
+ * @return {?}
7249
+ */
7250
+ () => false);
7251
+ this.router.onSameUrlNavigation = 'reload';
7252
+ this.router.navigateByUrl(url);
7253
+ }
6258
7254
  }
6259
7255
  }
7256
+ /**
7257
+ * @return {?}
7258
+ */
7259
+ resetOrderData() {
7260
+ this.OrderslistService.setOrderRef(null);
7261
+ this.OrderslistService.setorderCCDEvent(null);
7262
+ this.OrderslistService.setorderCreated(null);
7263
+ this.OrderslistService.setorderDetail(null);
7264
+ this.OrderslistService.setorderParty(null);
7265
+ this.OrderslistService.setorderTotalPayments(null);
7266
+ this.OrderslistService.setorderRemissionTotal(null);
7267
+ this.OrderslistService.setorderFeesTotal(null);
7268
+ }
6260
7269
  /**
6261
7270
  * @param {?} currency
6262
7271
  * @return {?}
@@ -6271,8 +7280,8 @@ class AddRemissionComponent {
6271
7280
  AddRemissionComponent.decorators = [
6272
7281
  { type: Component, args: [{
6273
7282
  selector: 'ccpay-add-remission',
6274
- template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"addRemissionCode()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\">Submit refund </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoIssueRefundPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoServiceRequestPage($event)\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a (click)=\"gotoCasetransationPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n </ng-container>\n\n</div>\n\n\n\n",
6275
- styles: [".add-remission .button{padding:.5em;font-size:19px;font-weight:200;margin:20px 2px}.add-remission td.govuk-table__cell{width:50%}.add-remission .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.add-remission .govuk-label--s,.add-remission .govuk-warning-text__text,.add-remission .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.add-remission .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.add-remission .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.add-remission .govuk-button,.add-remission .govuk-link{margin-right:1em;font-size:19px;font-weight:200}.add-remission .govuk-button-group{padding-top:2em}.add-remission .heading-medium{margin-top:.875em}.add-remission .heading-large{margin-top:.25em}.add-remission .govuk-panel--confirmation{color:#fff;background:#00703c}.add-remission .govuk-panel__title{font-size:5rem}.add-remission .govuk-body,.add-remission .govuk-body-m{font-size:2.1875rem}.add-remission .govuk-radios__item{clear:initial!important;display:inline-block;width:45%!important}.add-remission .govuk-radios__conditional{padding-top:12px!important}.add-remission .radio,.add-remission .right{float:right}.govuk-input{font-size:19px}.govuk-select{font-size:19px;font-weight:400}.govuk-input--width-10{max-width:50ex}.govuk-label--m{font-size:19px;font-weight:400}.govuk-error-summary__body{font-size:19px!important}.govuk-error-summary__title{font-size:24px!important}.white{color:#fff}.pagesize{margin:2em;width:97%}"]
7283
+ template: "<div class=\"add-remission pagesize\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n <div *ngIf=\"errorMsg.length > 0\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div *ngFor=\"let err of errorMsg; let i = index\" class=\"govuk-error-summary__body\">\n \n <li>{{err}}</li>\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"viewStatus === 'main' && !isRefundRemission \">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSION'>\n <h1 class=\"heading-large\">Add remission </h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n Add remission to {{ fee?.code }}: {{ fee?.description }}\n <span class=\"form-hint\">Enter remission for reference. For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"amount\">\n How much does the applicant need to pay?\n </label>\n\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <div class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"text\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">The remission amount must be less than the total fee</span>\n </p>\n </div>\n </div>\n </form>\n <button class=\"button\" type=\"submit\" (click)=\"addRemission()\">\n Submit\n </button>\n </div>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'confirmation'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to add remission to this fee?\n </strong>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission code:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.remissionCode.value }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code:</td>\n <td class=\"govuk-table__cell\">{{ fee.code }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee description:</td>\n <td class=\"govuk-table__cell\">{{ fee.description }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Amount the applicant must pay:</td>\n <td class=\"govuk-table__cell\">{{ remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemission.emit()\">\n Cancel\n </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmRemission()\">\n Confirm\n </button>\n\n </ng-container>\n\n <!-- Add retro remission changes-->\n\n <ng-container *ngIf=\"viewCompStatus === 'addremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSADDRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens}}</h1>\n <h1 class=\"heading-large\">Enter help with fees or remission reference</h1>\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--s\" for=\"remission-code\">\n <span class=\"form-hint\">For example: HWF-A1B-23C OR PA21-123456</span>\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isRemissionCodeEmpty || remissionCodeHasError\">\n <span *ngIf=\"isRemissionCodeEmpty\">Enter a remission code</span>\n <span *ngIf=\"remissionCodeHasError\">Enter a vaild remission code</span>\n </p>\n <input [ngClass]=\"{'inline-error-class': isRemissionCodeEmpty || remissionCodeHasError}\" class=\"govuk-input govuk-input--width-20 govuk-!-margin-right-1\" id=\"remissionCode\" aria-label=\"remissionCode\" name=\"remissionCode\" type=\"text\" formControlName=\"remissionCode\">\n \n </div>\n \n </form>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"addRemissionCode()\" class=\"govuk-button\"> Continue</button>\n </div>\n <p><a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n </div>\n </form>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'processretroremissonpage'\" >\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='PROCESSRETROREMISSIONPAGE'> \n <h1 class=\"heading-large\">Process remission</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\"> \n <h1 *ngIf=\"remessionPayment?.status === 'Success' || isFromRefundListPage\" class=\"heading-medium\">\n Enter the amount to be refunded\n </h1> \n <h1 *ngIf=\"remessionPayment?.status !== 'Success' && !isFromRefundListPage\" class=\"heading-medium\">\n Enter the remission amount\n </h1> \n <h1 *ngIf=\"remessionPayment?.status === 'undefined'\" class=\"heading-medium\">\n Enter the amount\n </h1> \n </legend>\n <div id=\"amount-currency\" class=\"govuk-visually-hidden\">in pounds</div>\n <p class=\"inline-error-message\" *ngIf=\"isAmountEmpty || amountHasError || isRemissionLessThanFeeError\">\n <span *ngIf=\"isAmountEmpty\">Enter a amount</span>\n <span *ngIf=\"amountHasError\">Enter a vaild amount</span>\n <span *ngIf=\"isRemissionLessThanFeeError\">You cannot add a remission that's more than the fee amount.</span>\n </p>\n <div class=\"hmcts-currency-input\">\n \n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isAmountEmpty || amountHasError || isRemissionLessThanFeeError}\" id=\"amount\" aria-label=\"amount\" name=\"amount\" type=\"number\" aria-describedby=\"amount-currency\" formControlName=\"amount\">\n \n \n </div>\n </fieldset>\n </form>\n \n <div class=\"govuk-button-group\">\n <button (click)=\"gotoAddRetroRemissionCodePage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoCheckRetroRemissionPage(payment)\" class=\"govuk-button\"> Continue</button>\n \n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </div>\n \n </form>\n </div>\n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'checkretroremissionpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n <a (click)=\"gotoProcessRetroRemissionPage()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n <a (click)=\"addRemissionCode()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAmountRetroRemission()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"confirmRetroRemission()\"> Add remission </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retroremissionconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Remission added\n </h1>\n <div *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>The amount to be refunded should be {{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}</strong></p>\n \n </div>\n </div>\n <div *ngIf=\"remessionPayment.status === 'Success'\" >\n <button type=\"submit\" [disabled]=\"!isRemissionApplied\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"gotoProcessRetroRemission()\">Continue </button>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n\n <ng-container *ngIf=\"viewStatus === 'remissionAddressPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details \n (assignContactDetails)=\"getContactDetails($event, 'checkaddRefundpage')\"\n (redirectToIssueRefund)=\"gotoRemissionSuccess($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkaddRefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKRETROREMISSIONCONFIRMATION'> \n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.reference: ' '}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">\u00A3{{ remessionPayment ? getFormattedCurrency(remessionPayment.amount): ' ' | currency :'GBP':'symbol':'1.2-2'}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment status</td>\n <td class=\"govuk-table__cell\">{{remessionPayment ? remessionPayment.status: ''}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee</td>\n <td class=\"govuk-table__cell\">{{ fee.code }} - {{ fee.description }} ({{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Help with fees or remission reference</td>\n <td class=\"govuk-table__cell\"> {{ remissionForm.controls.remissionCode.value }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"remessionPayment.status === 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"remessionPayment.status !== 'Success'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Remission amount</td>\n <td class=\"govuk-table__cell\">{{remissionForm.controls.amount.value | currency:'GBP':'symbol-narrow':'1.2-2' }}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}}&nbsp;{{contactDetailsObj?.city}}&nbsp;{{contactDetailsObj?.county}}&nbsp;{{contactDetailsObj?.country}}&nbsp;{{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoProcessRetroRemission()\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoProcessRetroRemission()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isConfirmationBtnDisabled\" [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"' (click)=\"processRefund()\"> Submit refund </button>\n <p> <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\"> Cancel</a> </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'refundconfirmationpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='RETROREMISSIONREFUNDCONFIRMATIONPAGE'> \n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount | currency:'GBP':'symbol-narrow':'1.2-2' }} has been created and will be passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n \n </ng-container>\n\n <!-- Issue Refund Section -->\n <ng-container *ngIf=\"viewCompStatus === 'issuerefund' && isRefundRemission\">\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <h1 class=\"heading-large\">Issue refund</h1>\n <h2 class=\"heading-medium\">Case reference:#{{ccdCaseNumber | ccdHyphens }}</h2>\n <span id=\"how-contacted-conditional-hint\" class=\"form-hint\">\n Payment reference: {{paymentReference}}\n </span>\n <h3 class=\"heading-small\">Select fees to be refunded</h3>\n <!--TABLE-->\n <div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-1\" scope=\"col\">Select</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Fee description</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Fee amount</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Total paid</td>\n <td class=\"govuk-table__header col-6\" scope=\"col\">Quantity</td>\n <td class=\"govuk-table__header col-8\" scope=\"col\">Amount to refund</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" formArrayName=\"feesList\" *ngFor=\"let fee of feesList?.controls; let i = index\">\n <td class=\"govuk-table__cell\">\n <div [formGroupName]=\"i\" class=\"govuk-checkboxes govuk-checkboxes--large\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" (click)=\"check_en(fee.controls['id'].value)\" id=\"{{fee.controls['id'].value}}\" name=\"organisation\" type=\"checkbox\" value=\"{{fee.controls['id'].value}}\" formControlName=\"selected\" >\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{fee.controls['id'].value}}\">\n <span style=\"display:none\">Select</span>\n </label>\n </div>\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{fee.controls['description'].value}} </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >{{fee.controls['calculated_amount'].value}}</td>\n <td class=\"govuk-table__cell whitespace-inherit left\" >({{ fee.controls['volume'].value * fee.controls['net_amount'].value| currency:'GBP':'symbol-narrow':'1.2-2' }}) </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value >1\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" name=\"feeVolumeUpdated_{{fee.controls['id'].value}}\" type=\"text\" value=\"{{fee.controls['volume'].value}}\" >\n \n </td>\n <td class=\"govuk-table__cell whitespace-inherit left\" *ngIf=\"fee.controls['volume'].value ===1\">\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-4 center\" id=\"VolumeUpdated_{{fee.controls['id'].value}}\" name=\"VolumeUpdated_{{fee.controls['id'].value}}\" type=\"text\" value=\"{{fee.controls['volume'].value}}\" >\n </td>\n <td class=\"govuk-table__cell whitespace-inherit center\" scope=\"row\">\n \n <div [formGroupName]=\"i\" class=\"hmcts-currency-input\">\n <div class=\"hmcts-currency-input__symbol\" aria-hidden=\"true\">\u00A3</div>\n <input disabled=\"disabled\" class=\"govuk-input govuk-input--width-10\" id=\"feeAmount_{{fee.controls['id'].value}}\" name=\"feeAmount_{{fee.controls['id'].value}}\" type=\"text\" aria-describedby=\"amount-currency \" pattern=\"[0-9]*\" formControlName=\"amounttorefund\">\n <input id=\"feeVolume_{{fee.controls['id'].value}}\" name=\"feeVolume_{{fee.controls['id'].value}}\" value= \"{{fee.controls['volume'].value}}\" type=\"hidden\" formControlName=\"volume\">\n\t\t\t\t\t <input id=\"feeApportionAmount_{{fee.controls['id'].value}}\" name=\"feeApportionAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['apportion_amount'].value}}\" type=\"hidden\" formControlName=\"apportion_amount\">\n\t\t\t\t\t <input id=\"calculatedAmount_{{fee.controls['id'].value}}\" name=\"calculatedAmount_{{fee.controls['id'].value}}\" value= \"{{fee.controls['calculated_amount'].value}}\" type=\"hidden\" formControlName=\"calculated_amount\">\n </div> \n \n </td>\n </tr>\n </tbody>\n\n <!-- <div formArrayName=\"feesList\" *ngFor=\"let item of feesList?.controls; let i = index\">\n <div [formGroupName]=\"i\">\n <label for=\"\">Your row</label>\n \n <input type=\"checkbox\" formControlName=\"selected\">\n <input formControlName=\"amouttorefund\"> -->\n <!-- <button (click)=\"removeProduct(group.value,i)\">remove</button> -->\n <!-- </div>\n </div> -->\n\n <!-- {{remissionForm?.value|json}} -->\n <tbody class=\"govuk-table__body\" *ngIf=\"fees?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No fees recorded</td>\n </tbody>\n </table>\n </div>\n <div class=\"govuk-button-group\">\n \n \n <a (click)=\"gotoServiceRequestPage($event)\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n \n <button [disabled] = \"noneSelected()\" (click)=\"gotoIssuePage()\" class=\"govuk-button\">\n Continue\n </button>\n \n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a>\n </p>\n </form>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewCompStatus === 'issuerefundpage1' && isRefundRemission\">\n\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ISSUEREFUNDPAGE'> \n <h1 class=\"heading-large\">Process refund</h1>\n <h1 class=\"heading-medium\">#{{ccdCaseNumber | ccdHyphens }}</h1>\n <h1 class=\"heading-large\">Why are you making this refund?\n </h1>\n \n\n <div class=\"govuk-form-group\">\n <form novalidate>\n <div class=\"govuk-form-group\">\n <form [formGroup]=\"remissionForm\" novalidate>\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"how-contacted-conditional-hint\">\n \n <div\n [ngClass]=\"refundHasError ? 'govuk-radios govuk-radios--conditional form-group-error' : 'govuk-radios govuk-radios--conditional'\"\n data-module=\"govuk-radios\" >\n <p class=\"inline-error-message\" *ngIf=\"refundHasError\">\n <span *ngIf=\"refundHasError\">Select a reason why you\u2019re making this refund</span>\n </p>\n\n \n\n <div class = \"container-fluid\">\n <div class=\"row\">\n <div class=\"govuk-radios__item col-md-4\" *ngFor=\"let refund of commonRefundReasons; let i = index;\">\n <!-- <div *ngIf = \"{{refund.name}} !== 'Retrospective remission'\"> -->\n <input class=\"govuk-radios__input\" id=\"{{refund.name}}\" name=\"refundReason\" type=\"radio\"\n formControlName=\"refundReason\" value={{refund.code}}\n (change)=\"selectRadioButton(refund.name, refund.name)\">\n <label class=\"govuk-label--s govuk-radios__label govuk-font__custom\" for=\"how-contacted-conditional\">\n {{refund.name}}\n </label>\n\n <div class=\"govuk-radios__conditional\" *ngIf=\"isRefundReasonsSelected && showReasonText && selectedRefundReason === refund.name \" >\n <label class=\"govuk-label govuk-label--m\" for=\"{{refund.name}}\">\n Enter reason\n </label>\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n \n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"30\" formControlName=\"reason\">\n </div>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <br/>\n <div>\n <select formControlName=\"refundDDReason\" class=\"govuk-select\" id=\"sort\" (change)=\"selectchange($event)\">\n <option selected='selected' [defaultSelected]=true [value]=\"default\" >{{default}}</option> \n <!-- <option value=\"\" selected='selected'>Select a different reason</option> -->\n <option *ngFor=\"let refund of refundReasons;\" id=\"{{refund.name}}\" value=\"{{refund.code}}\">{{refund.name}}</option>\n </select>\n \n </div>\n <br/>\n <div class=\"govuk-radios__conditional\" *ngIf=\"showReasonText && !isRefundReasonsSelected\" >\n <div [ngClass]=\"{'form-group-error': isReasonEmpty}\">\n <label class=\"govuk-label govuk-label--m\" for=\"amount\">\n Enter reason\n </label>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason why you\u2019re making this refund</span>\n </p>\n <input class=\"govuk-input govuk-input--width-10\" [ngClass]=\"{'inline-error-class': isReasonEmpty}\" id=\"reason\" aria-label=\"reason\" name=\"reason\" type=\"text\" aria-describedby=\"reason\" maxlength=\"{{reasonLength}}\" formControlName=\"reason\">\n </div>\n </div>\n\n \n </div>\n </fieldset>\n </form>\n </div>\n </form>\n </div>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoServiceRequestPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"gotoIssueRefundConfirmation(payment)\" class=\"govuk-button\"> Continue</button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n \n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'contactDetailsPage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CAPTUREADDRESSDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details \n (assignContactDetails)=\"getContactDetails($event, 'checkissuerefundpage')\"\n (redirectToIssueRefund)=\"gotoIssueRefundPage()\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'checkissuerefundpage'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='CHECKISSUEREFUNDPAGE'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n \n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\">{{this.payment.amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr>\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ displayRefundReason }} \n <a (click)=\"changeIssueRefundReason()\" class=\"govuk-link right\" >Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{totalRefundAmount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}}&nbsp;{{contactDetailsObj?.city}}&nbsp;{{contactDetailsObj?.county}}&nbsp;{{contactDetailsObj?.country}}&nbsp;{{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoContactDetailsPage()\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoContactDetailsPage()\"> Previous </button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"confirmIssueRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <!--Retro Refund-->\n <ng-container *ngIf=\"viewCompStatus === 'addrefundforremission'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDRESSDETAILSRETROREMISSIONPAGE'> \n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <ccpay-contact-details \n (assignContactDetails)=\"getContactDetails($event, 'addrefundcheckandanswer')\"\n (redirectToIssueRefund)=\"gotoServiceRequestPage($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'addrefundcheckandanswer'\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='ADDREFUNDFORREMISSION'> \n <div class=\"govuk-warning-text\">\n \n <h1 class=\"heading-large\"> Check your answers</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> Retrospective remission </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{this.payment.reference}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td class=\"govuk-table__cell\">{{this.remission.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee code</td>\n <td class=\"govuk-table__cell\">{{this.remission.fee_code}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Fee amount</td>\n <td class=\"govuk-table__cell\">{{feeamount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"contactDetailsObj?.notification_type === 'EMAIL'\" class=\"contactDetails-width\">\n <strong>Email</strong>\n <br/>\n {{contactDetailsObj?.email}}\n </div>\n <div *ngIf=\"contactDetailsObj?.notification_type === 'LETTER'\" class=\"contactDetails-width\">\n <strong>Post</strong>\n <br/>\n {{contactDetailsObj?.address_line}}&nbsp;{{contactDetailsObj?.city}}&nbsp;{{contactDetailsObj?.county}}&nbsp;{{contactDetailsObj?.country}}&nbsp;{{contactDetailsObj?.postal_code}}\n </div>\n <a (click)=\"gotoContactDetailsPage()\" class=\"govuk-link right margin-top--size\" >Change</a>\n </td>\n </table>\n <div class=\"govuk-button-group\">\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"gotoAddressPage()\">Previous</button>\n <button type=\"submit\"\n [disabled]=\"isConfirmationBtnDisabled\"\n [ngClass]='isConfirmationBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"processRefund()\">\n Submit refund\n </button>\n </div>\n <p>\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'retrorefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div >\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n \n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{refundReference}}</strong></p>\n </div>\n \n </div>\n <div *ngIf=\"isPaymentSuccess\">\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{ refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been passed to a team leader to approve.\n </p>\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPageCancelBtnClicked($event)\" class=\"govuk-link\" data-module=\"govuk-button\">\n Return to case\n </a>\n </p>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"takePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\">\n </ccpay-service-request>\n </ng-container>\n\n <ng-container *ngIf=\"viewStatus === 'payment-view'\">\n <ccpay-payment-view \n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [isTurnOff] = \"isTurnOff\" \n [isTakePayment] = \"takePayment\" \n [caseType] = \"caseType\"\n [isOldPcipalOff] = \"isOldPcipalOff\"\n [isNewPcipalOff] = \"isNewPcipalOff\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n >\n </ccpay-payment-view>\n </ng-container>\n\n</div>\n\n\n\n",
7284
+ styles: [".add-remission .button{padding:.5em;font-size:19px;font-weight:200;margin:20px 2px}.add-remission td.govuk-table__cell{width:50%}.add-remission .govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.add-remission .right{cursor:pointer}.add-remission .govuk-label--s,.add-remission .govuk-warning-text__text,.add-remission .hmcts-currency-input__symbol{font-size:19px;font-weight:400}.add-remission .inline-error-class{outline:#a71414 solid 3px;outline-offset:0;border-color:#a71414}.add-remission .inline-error-message{color:#a71414;border-color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.add-remission .govuk-button,.add-remission .govuk-link{margin-right:1em;font-size:19px;font-weight:200}.add-remission .govuk-button-group{padding-top:2em}.add-remission .heading-medium{margin-top:.875em}.add-remission .heading-large{margin-top:.25em}.add-remission .govuk-panel--confirmation{color:#fff;background:#00703c}.add-remission .govuk-panel__title{font-size:5rem}.add-remission .govuk-body,.add-remission .govuk-body-m{font-size:2.1875rem}.add-remission .govuk-radios__item{clear:initial!important;display:inline-block;width:45%!important}.add-remission .govuk-radios__conditional{padding-top:12px!important}.add-remission .radio,.add-remission .right{float:right}.govuk-font19px,.govuk-input{font-size:19px}.govuk-select{font-size:19px;font-weight:400}.govuk-input--width-10{max-width:50ex}.govuk-label--m{font-size:19px;font-weight:400}.govuk-error-summary__body{font-size:19px!important}.govuk-error-summary__title{font-size:24px!important}.white{color:#fff}.pagesize{margin:2em;width:97%}.pointer{cursor:pointer}.form-hint{font-size:19px!important}.col-18{min-width:18em}.col-6{min-width:6em}.col-8{min-width:8em}.col-1{min-width:1em}.col-25{width:25%!important}.col-24{width:24%!important}.left{text-align:left}.center{text-align:center}.col-60{width:60%;text-align:left}.margin-top--size{margin-top:-30px}.contactDetails-width{width:70%}"]
6276
7285
  }] }
6277
7286
  ];
6278
7287
  /** @nocollapse */
@@ -6287,6 +7296,7 @@ AddRemissionComponent.ctorParameters = () => [
6287
7296
  ];
6288
7297
  AddRemissionComponent.propDecorators = {
6289
7298
  fee: [{ type: Input }],
7299
+ fees: [{ type: Input }],
6290
7300
  payment: [{ type: Input }],
6291
7301
  remission: [{ type: Input }],
6292
7302
  ccdCaseNumber: [{ type: Input }],
@@ -6298,12 +7308,22 @@ AddRemissionComponent.propDecorators = {
6298
7308
  isOldPcipalOff: [{ type: Input }],
6299
7309
  isNewPcipalOff: [{ type: Input }],
6300
7310
  isStrategicFixEnable: [{ type: Input }],
6301
- orderStatus: [{ type: Input }],
6302
7311
  paidAmount: [{ type: Input }],
6303
7312
  isFromRefundListPage: [{ type: Input }],
6304
7313
  isFromPaymentDetailPage: [{ type: Input }],
6305
7314
  isFromServiceRequestPage: [{ type: Input }],
6306
7315
  feeamount: [{ type: Input }],
7316
+ LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
7317
+ orderDetail: [{ type: Input, args: ['orderDetail',] }],
7318
+ orderRef: [{ type: Input, args: ['orderRef',] }],
7319
+ orderStatus: [{ type: Input, args: ['orderStatus',] }],
7320
+ orderParty: [{ type: Input, args: ['orderParty',] }],
7321
+ orderCreated: [{ type: Input, args: ['orderCreated',] }],
7322
+ orderCCDEvent: [{ type: Input, args: ['orderCCDEvent',] }],
7323
+ takePayment: [{ type: Input, args: ['takepayment',] }],
7324
+ orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
7325
+ orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
7326
+ orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
6307
7327
  cancelRemission: [{ type: Output }],
6308
7328
  refundListReason: [{ type: Output }],
6309
7329
  refundListAmount: [{ type: Output }]
@@ -6908,11 +7928,15 @@ class TableComponent {
6908
7928
  * @param {?} paymentLibComponent
6909
7929
  * @param {?} cdRef
6910
7930
  * @param {?} OrderslistService
7931
+ * @param {?} router
7932
+ * @param {?} activeRoute
6911
7933
  */
6912
- constructor(paymentLibComponent, cdRef, OrderslistService$$1) {
7934
+ constructor(paymentLibComponent, cdRef, OrderslistService$$1, router, activeRoute) {
6913
7935
  this.paymentLibComponent = paymentLibComponent;
6914
7936
  this.cdRef = cdRef;
6915
7937
  this.OrderslistService = OrderslistService$$1;
7938
+ this.router = router;
7939
+ this.activeRoute = activeRoute;
6916
7940
  // displayedColumns = ['ccdCaseNumber', 'refundReference', 'reason', 'createBy', 'updateDate', 'Action'];
6917
7941
  this.displayedColumns = ['ccd_case_number', 'refund_reference', 'user_full_name', 'date_created', 'date_updated', 'Action'];
6918
7942
  }
@@ -6981,11 +8005,11 @@ class TableComponent {
6981
8005
  }
6982
8006
  /**
6983
8007
  * @param {?} refundReference
6984
- * @param {?} refundDate
8008
+ * @param {?} refundData
6985
8009
  * @return {?}
6986
8010
  */
6987
- goToRefundProcessComponent(refundReference, refundDate) {
6988
- this.paymentLibComponent.refundlistsource = refundDate;
8011
+ goToRefundProcessComponent(refundReference, refundData) {
8012
+ this.paymentLibComponent.refundlistsource = refundData;
6989
8013
  this.paymentLibComponent.refundReference = refundReference;
6990
8014
  this.paymentLibComponent.viewName = 'process-refund';
6991
8015
  }
@@ -7007,21 +8031,23 @@ class TableComponent {
7007
8031
  * @return {?}
7008
8032
  */
7009
8033
  goToCaseReview(ccdCaseNumber, refundData) {
7010
- window.location.href = `/cases/case-details/:${ccdCaseNumber}`;
8034
+ this.router.navigate([`/cases/case-details/${ccdCaseNumber}`], { relativeTo: this.activeRoute });
7011
8035
  }
7012
8036
  }
7013
8037
  TableComponent.decorators = [
7014
8038
  { type: Component, args: [{
7015
8039
  selector: 'ccpay-table',
7016
- template: "<div class=\"add-remission\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n<div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group\" style=\"float: right\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by caseworker:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All caseworkers</option>\n <option *ngFor=\"let name of userLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n </div>\n \n<div *ngIf=\"dataSource.data.length > 0\" class=\"example-container\">\n\n <mat-table [dataSource]=\"dataSource\" matSort>\n\n <ng-container matColumnDef=\"ccd_case_number\">\n <mat-header-cell *matHeaderCellDef >Case ID </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.ccd_case_number | ccdHyphens }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"refund_reference\">\n <mat-header-cell *matHeaderCellDef > Refund reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.refund_reference}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"user_full_name\">\n <mat-header-cell *matHeaderCellDef > Submitted by </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.user_full_name }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_created\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Date created </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.date_created | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_updated\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Date updated </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.date_updated | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container *ngIf=\"isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef> Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" > <a href=\"javascript:void(0)\" (click)=\"goToCaseReview(row.ccd_case_number, row)\">Review case</a>&nbsp;<a href=\"javascript:void(0)\" (click)=\"goToRefundProcessComponent(row.refund_reference, row)\">Process refund</a></mat-cell>\n </ng-container>\n \n <ng-container *ngIf=\"!isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef > Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\"> <a href=\"javascript:void(0)\" (click)=\"goToRefundViewComponent(row.refund_reference, row)\">Review refund</a></mat-cell>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\">\n </mat-row>\n </mat-table>\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 100]\"></mat-paginator>\n</div>\n\n<div class=\"govuk-label dropdpwn\" *ngIf=\"dataSource.data.length === 0\">No records to display</div>\n",
7017
- styles: [".mat-header-row{min-height:27px}.mat-cell{padding:0 10px 0 0;text-align:left;word-wrap:break-word;white-space:inherit!important;font-size:19px;line-height:25px;font-family:nta,Arial,sans-serif;font-weight:400}.mat-table{color:#0b0c0c;display:table;font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;margin-bottom:1px;box-sizing:border-box;text-indent:initial;border-spacing:0;border-collapse:collapse;font-size:1.1875rem;line-height:1.31578947;table-layout:fixed;width:102%}.mat-header-cell{text-align:left;font-weight:700;padding:10px 10px 10px 0;word-wrap:break-word;font-size:19px;line-height:25px;color:#005ea5;cursor:pointer;font-family:inherit}.dropdpwn{display:inline-block;margin-right:10px;font-size:19px}.mat-column-ccdCaseNumber{flex:3em}.mat-column-refundReference{flex:6em}.mat-column-reason{flex:2em}.govuk-select{font-size:19px;font-weight:400}.govuk-error-summary__title{font-size:24px!important}"]
8040
+ template: "<div class=\"add-remission\">\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n<div *ngIf=\"dataSource.data.length > 0\" class=\"govuk-form-group\" style=\"float: right\">\n <label class=\"govuk-label dropdpwn\" for=\"sort\" >\n Filter by caseworker:\n </label>\n <select class=\"govuk-select\" id=\"sort\" name=\"sort\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>All caseworkers</option>\n <option *ngFor=\"let name of userLst;\" value=\"{{name}}\">{{name}}</option>\n </select>\n </div>\n \n<div *ngIf=\"dataSource.data.length > 0\" class=\"example-container\">\n\n <mat-table [dataSource]=\"dataSource\" matSort>\n\n <ng-container matColumnDef=\"ccd_case_number\">\n <mat-header-cell *matHeaderCellDef >Case reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.ccd_case_number | ccdHyphens }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"refund_reference\">\n <mat-header-cell *matHeaderCellDef > Refund reference </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.refund_reference}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"user_full_name\">\n <mat-header-cell *matHeaderCellDef > Submitted by </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.user_full_name }} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_created\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Date created </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" class=\"whitespace-inherit\"> {{row.date_created | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container matColumnDef=\"date_updated\">\n <mat-header-cell *matHeaderCellDef mat-sort-header> Last updated</mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" class=\"whitespace-inherit\"> {{row.date_updated | date:'d MMMM yyyy'}} </mat-cell>\n </ng-container>\n\n <ng-container *ngIf=\"isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef> Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\" > <a href=\"javascript:void(0)\" (click)=\"goToCaseReview(row.ccd_case_number, row)\">Review case</a>&nbsp;<a href=\"javascript:void(0)\" (click)=\"goToRefundProcessComponent(row.refund_reference, row)\">Process refund</a></mat-cell>\n </ng-container>\n \n <ng-container *ngIf=\"!isApprovalFlow\" matColumnDef=\"Action\">\n <mat-header-cell *matHeaderCellDef > Action </mat-header-cell>\n <mat-cell *matCellDef=\"let row\" [style.color]=\"row.color\"> <a href=\"javascript:void(0)\" (click)=\"goToRefundViewComponent(row.refund_reference, row)\">Review refund</a></mat-cell>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\">\n </mat-row>\n </mat-table>\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 100]\"></mat-paginator>\n</div>\n\n<div class=\"govuk-label dropdpwn\" *ngIf=\"dataSource.data.length === 0\">No records to display</div>\n",
8041
+ styles: [".mat-header-row{min-height:27px}.mat-cell{padding:0 10px 0 0;text-align:left;word-wrap:break-word;white-space:inherit!important;font-size:19px;line-height:25px;font-family:nta,Arial,sans-serif;font-weight:400}.mat-table{color:#0b0c0c;display:table;font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;margin-bottom:1px;box-sizing:border-box;text-indent:initial;border-spacing:0;border-collapse:collapse;font-size:1.1875rem;line-height:1.31578947;table-layout:fixed;width:102%}.mat-header-cell{text-align:left;font-weight:700;padding:10px 10px 10px 0;word-wrap:break-word;font-size:19px;line-height:25px;color:#0b0c0c;cursor:pointer;font-family:inherit}.dropdpwn{display:inline-block;margin-right:10px;font-size:19px}.mat-column-ccdCaseNumber{flex:3em}.mat-column-refundReference{flex:6em}.mat-column-reason{flex:2em}.govuk-select{font-size:19px;font-weight:400}.govuk-error-summary__title{font-size:24px!important}"]
7018
8042
  }] }
7019
8043
  ];
7020
8044
  /** @nocollapse */
7021
8045
  TableComponent.ctorParameters = () => [
7022
8046
  { type: PaymentLibComponent },
7023
8047
  { type: ChangeDetectorRef },
7024
- { type: OrderslistService }
8048
+ { type: OrderslistService },
8049
+ { type: Router },
8050
+ { type: ActivatedRoute }
7025
8051
  ];
7026
8052
  TableComponent.propDecorators = {
7027
8053
  DATASOURCE: [{ type: Input, args: ['DATASOURCE',] }],
@@ -7031,6 +8057,77 @@ TableComponent.propDecorators = {
7031
8057
  sort: [{ type: ViewChild, args: [MatSort,] }]
7032
8058
  };
7033
8059
 
8060
+ /**
8061
+ * @fileoverview added by tsickle
8062
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8063
+ */
8064
+ class NotificationService {
8065
+ /**
8066
+ * @param {?} http
8067
+ * @param {?} https
8068
+ * @param {?} errorHandlerService
8069
+ * @param {?} paymentLibService
8070
+ */
8071
+ constructor(http, https, errorHandlerService, paymentLibService) {
8072
+ this.http = http;
8073
+ this.https = https;
8074
+ this.errorHandlerService = errorHandlerService;
8075
+ this.paymentLibService = paymentLibService;
8076
+ }
8077
+ /**
8078
+ * @param {?} reference
8079
+ * @return {?}
8080
+ */
8081
+ getRefundNotification(reference) {
8082
+ return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/notifications/${reference}`, {
8083
+ withCredentials: true
8084
+ })
8085
+ .pipe(catchError(this.errorHandlerService.handleError));
8086
+ }
8087
+ /**
8088
+ * @param {?} postcode
8089
+ * @return {?}
8090
+ */
8091
+ getAddressByPostcode(postcode) {
8092
+ return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/search/places/v1?postcode=${postcode}`, {
8093
+ withCredentials: true
8094
+ })
8095
+ .pipe(catchError(this.errorHandlerService.handleError));
8096
+ }
8097
+ }
8098
+ NotificationService.decorators = [
8099
+ { type: Injectable, args: [{
8100
+ providedIn: 'root'
8101
+ },] }
8102
+ ];
8103
+ /** @nocollapse */
8104
+ NotificationService.ctorParameters = () => [
8105
+ { type: HttpClient },
8106
+ { type: WebComponentHttpClient },
8107
+ { type: ErrorHandlerService },
8108
+ { type: PaymentLibService }
8109
+ ];
8110
+ /** @nocollapse */ NotificationService.ngInjectableDef = defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(inject(HttpClient), inject(WebComponentHttpClient), inject(ErrorHandlerService), inject(PaymentLibService)); }, token: NotificationService, providedIn: "root" });
8111
+
8112
+ /**
8113
+ * @fileoverview added by tsickle
8114
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8115
+ */
8116
+ class IPutNotificationRequest {
8117
+ /**
8118
+ * @param {?} contactDetails
8119
+ * @param {?} notificationType
8120
+ */
8121
+ constructor(contactDetails, notificationType) {
8122
+ if (notificationType === 'EMAIL') {
8123
+ this.recipient_email_address = contactDetails;
8124
+ }
8125
+ else if (notificationType === 'LETTER') {
8126
+ this.recipient_postal_address = contactDetails;
8127
+ }
8128
+ }
8129
+ }
8130
+
7034
8131
  /**
7035
8132
  * @fileoverview added by tsickle
7036
8133
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -7050,31 +8147,24 @@ class IResubmitRefundRequest {
7050
8147
  * @fileoverview added by tsickle
7051
8148
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
7052
8149
  */
7053
- /** @type {?} */
7054
- const BS_ENABLE_FLAG$4 = 'bulk-scan-enabling-fe';
7055
8150
  class RefundStatusComponent {
7056
- // allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
7057
8151
  /**
7058
8152
  * @param {?} formBuilder
7059
8153
  * @param {?} refundService
8154
+ * @param {?} notificationService
7060
8155
  * @param {?} paymentLibComponent
7061
- * @param {?} paymentViewService
7062
- * @param {?} router
7063
8156
  * @param {?} OrderslistService
7064
8157
  */
7065
- constructor(formBuilder, refundService, paymentLibComponent, paymentViewService, router, OrderslistService$$1) {
8158
+ constructor(formBuilder, refundService, notificationService, paymentLibComponent, OrderslistService$$1) {
7066
8159
  this.formBuilder = formBuilder;
7067
8160
  this.refundService = refundService;
8161
+ this.notificationService = notificationService;
7068
8162
  this.paymentLibComponent = paymentLibComponent;
7069
- this.paymentViewService = paymentViewService;
7070
- this.router = router;
7071
8163
  this.OrderslistService = OrderslistService$$1;
7072
8164
  this.LOGGEDINUSERROLES = [];
7073
8165
  this.rejectedRefundList = [];
7074
8166
  this.approvalStatus = 'Sent for approval';
7075
8167
  this.rejectStatus = 'Update required';
7076
- // approvalStatus = 'sent for approval';
7077
- // rejectStatus = 'sent back';
7078
8168
  this.errorMessage = null;
7079
8169
  this.refundButtonState = '';
7080
8170
  this.isAmountEmpty = false;
@@ -7083,21 +8173,31 @@ class RefundStatusComponent {
7083
8173
  this.isRemissionLessThanFeeError = false;
7084
8174
  this.refundHasError = false;
7085
8175
  this.refundReasons = [];
8176
+ this.isResendOperationSuccess = false;
8177
+ this.isEditDetailsClicked = false;
8178
+ this.isEditAddressDeatilsClicked = false;
7086
8179
  this.isRefundBtnDisabled = true;
7087
8180
  this.isLastUpdatedByCurrentUser = true;
7088
8181
  this.isProcessRefund = false;
8182
+ this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
8183
+ this.check4AllowedRoles2AccessRefund = (/**
8184
+ * @return {?}
8185
+ */
8186
+ () => {
8187
+ return this.allowedRolesToAccessRefund.some((/**
8188
+ * @param {?} role
8189
+ * @return {?}
8190
+ */
8191
+ role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
8192
+ });
7089
8193
  }
7090
8194
  /**
7091
8195
  * @return {?}
7092
8196
  */
7093
8197
  ngOnInit() {
7094
- // if (this.check4AllowedRoles2AccessRefund()) {
7095
8198
  this.resetRemissionForm([false, false, false, false], 'All');
7096
8199
  this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
7097
8200
  this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
7098
- // if(this.paymentLibComponent.isFromRefundStatusPage) {
7099
- // this.viewName = 'reviewandsubmitview';
7100
- // }
7101
8201
  if (this.paymentLibComponent.isRefundStatusView) {
7102
8202
  this.viewName = 'refundview';
7103
8203
  this.OrderslistService.getRefundView().subscribe((/**
@@ -7137,6 +8237,7 @@ class RefundStatusComponent {
7137
8237
  reason: new FormControl()
7138
8238
  });
7139
8239
  if (this.refundlist !== undefined) {
8240
+ this.getRefundsNotification();
7140
8241
  this.getRefundsStatusHistoryList();
7141
8242
  if (this.LOGGEDINUSERROLES.some((/**
7142
8243
  * @param {?} i
@@ -7156,13 +8257,7 @@ class RefundStatusComponent {
7156
8257
  this.refundButtonState = this.refundlist.refund_status.name;
7157
8258
  }
7158
8259
  }
7159
- // }
7160
8260
  }
7161
- // check4AllowedRoles2AccessRefund = (): boolean => {
7162
- // return this.allowedRolesToAccessRefund.some(role =>
7163
- // this.LOGGEDINUSERROLES.indexOf(role) !== -1
7164
- // );
7165
- // }
7166
8261
  /**
7167
8262
  * @return {?}
7168
8263
  */
@@ -7185,6 +8280,25 @@ class RefundStatusComponent {
7185
8280
  });
7186
8281
  }
7187
8282
  }
8283
+ /**
8284
+ * @return {?}
8285
+ */
8286
+ getRefundsNotification() {
8287
+ this.notificationService.getRefundNotification(this.refundlist.refund_reference).subscribe((/**
8288
+ * @param {?} refundsNotification
8289
+ * @return {?}
8290
+ */
8291
+ refundsNotification => {
8292
+ this.notificationList = refundsNotification['notifications'];
8293
+ })),
8294
+ (/**
8295
+ * @param {?} error
8296
+ * @return {?}
8297
+ */
8298
+ (error) => {
8299
+ this.errorMessage = error.replace(/"/g, "");
8300
+ });
8301
+ }
7188
8302
  /**
7189
8303
  * @param {?} refundlist
7190
8304
  * @param {?} navigationpage
@@ -7202,40 +8316,11 @@ class RefundStatusComponent {
7202
8316
  * @return {?}
7203
8317
  */
7204
8318
  loadCaseTransactionPage() {
7205
- this.paymentLibComponent.isRefundStatusView = false;
7206
- //this.paymentLibComponent.TAKEPAYMENT = true;
8319
+ this.OrderslistService.setnavigationPage('casetransactions');
8320
+ this.OrderslistService.setisFromServiceRequestPage(false);
7207
8321
  this.paymentLibComponent.viewName = 'case-transactions';
7208
- this.paymentViewService.getBSfeature().subscribe((/**
7209
- * @param {?} features
7210
- * @return {?}
7211
- */
7212
- features => {
7213
- /** @type {?} */
7214
- let result = JSON.parse(features).filter((/**
7215
- * @param {?} feature
7216
- * @return {?}
7217
- */
7218
- feature => feature.uid === BS_ENABLE_FLAG$4));
7219
- this.paymentLibComponent.ISBSENABLE = result[0] ? result[0].enable : false;
7220
- }), (/**
7221
- * @param {?} err
7222
- * @return {?}
7223
- */
7224
- err => {
7225
- this.paymentLibComponent.ISBSENABLE = false;
7226
- }));
7227
- /** @type {?} */
7228
- let partUrl = `selectedOption=${this.paymentLibComponent.SELECTED_OPTION}`;
7229
- partUrl += this.bsPaymentDcnNumber ? `&dcn=${this.bsPaymentDcnNumber}` : '';
7230
- partUrl += this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
7231
- partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
7232
- partUrl += this.paymentLibComponent.ISSFENABLE ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
7233
- partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
7234
- partUrl += this.isNewPcipalOff ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
7235
- partUrl += this.isOldPcipalOff ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
7236
- /** @type {?} */
7237
- let url = `/payment-history/${this.ccdCaseNumber}?view=case-transactions&takePayment=${this.paymentLibComponent.TAKEPAYMENT}&${partUrl}`;
7238
- this.router.navigateByUrl(url);
8322
+ this.paymentLibComponent.ISBSENABLE = true;
8323
+ this.paymentLibComponent.isRefundStatusView = false;
7239
8324
  }
7240
8325
  /**
7241
8326
  * @return {?}
@@ -7262,10 +8347,6 @@ class RefundStatusComponent {
7262
8347
  this.errorMessage = false;
7263
8348
  this.paymentLibComponent.isRefundStatusView = true;
7264
8349
  this.ngOnInit();
7265
- // this.viewName='refundview';
7266
- // this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
7267
- // this.paymentLibComponent.isRefundStatusView = true;
7268
- // this.paymentLibComponent.isCallFromRefundList = true;
7269
8350
  }
7270
8351
  /**
7271
8352
  * @return {?}
@@ -7425,45 +8506,774 @@ class RefundStatusComponent {
7425
8506
  }));
7426
8507
  }
7427
8508
  /**
7428
- * @param {?} refundReference
7429
- * @param {?} refundList
8509
+ * @param {?} note
7430
8510
  * @return {?}
7431
8511
  */
7432
- goToRefundProcessComponent(refundReference, refundList) {
7433
- this.paymentLibComponent.refundlistsource = refundList;
7434
- this.paymentLibComponent.refundReference = refundReference;
7435
- this.paymentLibComponent.viewName = 'process-refund';
8512
+ gotoEditAddressDetails(note) {
8513
+ this.notification = note;
8514
+ this.isEditDetailsClicked = true;
8515
+ this.viewName = 'refundEditView';
7436
8516
  }
7437
- }
7438
- RefundStatusComponent.decorators = [
7439
- { type: Component, args: [{
7440
- selector: 'ccpay-refund-status',
7441
- template: "<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview'\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Resubmit\n refund</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\">\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview'\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Review and resubmit refund</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for rejection</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage()\" *ngIf=\"refundlist?.reason !== 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason === 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage'\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage'\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadCaseTransactionPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>",
7442
- styles: [".right{float:right!important}.button{margin-bottom:3em;font-size:19px}.cancelbtn{font-size:19px;font-weight:400}.btnmargin{margin-bottom:2em}.govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.govuk-label--s,.govuk-warning-text__text,.hmcts-currency-input__symbol{font-size:19px;font-weight:400}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.govuk-button,.govuk-link{margin-right:1em;font-size:19px;font-weight:200}.govuk-button-group{padding-top:2em}.heading-medium{margin-top:.875em}.heading-large{margin-top:.25em}.govuk-panel--confirmation{color:#fff;background:#00703c}.govuk-heading-l{font-size:36px}.govuk-heading-m{font-size:24px}.govuk-panel__title{font-size:5rem}.govuk-body,.govuk-body-m{font-size:2.1875rem}.govuk-input--width-10{max-width:36ex}.col-14{width:14%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-18{width:18%!important}.col-21{width:21%!important}.col-9{width:9%!important}.col-15{width:15%!important}.col-16{width:16%!important}.col-25{width:25%!important}.col-24{width:24%!important}.govuk-error-summary__title{font-size:24px!important}.govuk-error-summary__body{font-size:19px!important}.white{color:#fff}"]
7443
- }] }
7444
- ];
7445
- /** @nocollapse */
7446
- RefundStatusComponent.ctorParameters = () => [
7447
- { type: FormBuilder },
7448
- { type: RefundsService },
7449
- { type: PaymentLibComponent },
7450
- { type: PaymentViewService },
7451
- { type: Router },
7452
- { type: OrderslistService }
7453
- ];
7454
- RefundStatusComponent.propDecorators = {
7455
- LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
7456
- isOldPcipalOff: [{ type: Input }],
7457
- isNewPcipalOff: [{ type: Input }],
7458
- ccdCaseNumber: [{ type: Input }],
7459
- isTurnOff: [{ type: Input }]
8517
+ /**
8518
+ * @param {?} obj
8519
+ * @return {?}
8520
+ */
8521
+ getContactDetails(obj) {
8522
+ this.addressDetails = obj;
8523
+ this.viewName = 'revieweditdetailsconfirmationpage';
8524
+ }
8525
+ /**
8526
+ * @return {?}
8527
+ */
8528
+ gotoEditDetailsPage() {
8529
+ this.isEditDetailsClicked = true;
8530
+ this.viewName = 'refundEditView';
8531
+ }
8532
+ /**
8533
+ * @return {?}
8534
+ */
8535
+ submitEditDetail() {
8536
+ this.isResendOperationSuccess = false;
8537
+ /** @type {?} */
8538
+ const contactDetails = this.addressDetails.notification_type === 'EMAIL' ? this.addressDetails.email :
8539
+ {
8540
+ address_line: this.addressDetails.address_line,
8541
+ city: this.addressDetails.city,
8542
+ county: this.addressDetails.county,
8543
+ country: this.addressDetails.country,
8544
+ postal_code: this.addressDetails.postal_code,
8545
+ };
8546
+ /** @type {?} */
8547
+ const resendRequest = new IPutNotificationRequest(contactDetails, this.addressDetails.notification_type);
8548
+ this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, this.addressDetails.notification_type).subscribe((/**
8549
+ * @param {?} response
8550
+ * @return {?}
8551
+ */
8552
+ (response) => {
8553
+ this.isResendOperationSuccess = response;
8554
+ }), (/**
8555
+ * @param {?} error
8556
+ * @return {?}
8557
+ */
8558
+ (error) => {
8559
+ this.isResendOperationSuccess = false;
8560
+ this.errorMessage = error.replace(/"/g, "");
8561
+ }));
8562
+ }
8563
+ /**
8564
+ * @param {?} notification
8565
+ * @return {?}
8566
+ */
8567
+ putResend(notification) {
8568
+ this.isResendOperationSuccess = false;
8569
+ /** @type {?} */
8570
+ const contactDetails = notification.notification_type === 'EMAIL' ? notification.contact_details.email :
8571
+ {
8572
+ address_line: notification.contact_details.address_line,
8573
+ city: notification.contact_details.city,
8574
+ county: notification.contact_details.county,
8575
+ country: notification.contact_details.country,
8576
+ postal_code: notification.contact_details.postal_code,
8577
+ };
8578
+ /** @type {?} */
8579
+ const resendRequest = new IPutNotificationRequest(contactDetails, notification.notification_type);
8580
+ this.refundService.putResendOrEdit(resendRequest, this.refundlist.refund_reference, notification.notification_type).subscribe((/**
8581
+ * @param {?} response
8582
+ * @return {?}
8583
+ */
8584
+ (response) => {
8585
+ this.isResendOperationSuccess = response;
8586
+ }), (/**
8587
+ * @param {?} error
8588
+ * @return {?}
8589
+ */
8590
+ (error) => {
8591
+ this.isResendOperationSuccess = false;
8592
+ this.errorMessage = error.replace(/"/g, "");
8593
+ }));
8594
+ }
8595
+ /**
8596
+ * @param {?} obj
8597
+ * @return {?}
8598
+ */
8599
+ gotoCasetransationPageCancelBtnClicked(obj) {
8600
+ }
8601
+ /**
8602
+ * @param {?} refundReference
8603
+ * @param {?} refundList
8604
+ * @return {?}
8605
+ */
8606
+ goToRefundProcessComponent(refundReference, refundList) {
8607
+ this.paymentLibComponent.refundlistsource = refundList;
8608
+ this.paymentLibComponent.refundReference = refundReference;
8609
+ this.paymentLibComponent.viewName = 'process-refund';
8610
+ }
8611
+ }
8612
+ RefundStatusComponent.decorators = [
8613
+ { type: Component, args: [{
8614
+ selector: 'ccpay-refund-status',
8615
+ template: "\n<div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Error in processing the request\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"viewName==='refundstatuslist' && rejectedRefundList && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- payments -->\n\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-16\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-11\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header col-18\" scope=\"col\">Date</td>\n <td class=\"govuk-table__header col-25\" scope=\"col\">Refund reference</td>\n <td class=\"govuk-table__header col-24 \" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length > 0\">\n <tr class=\"govuk-table__row\" *ngFor=\"let refundList of rejectedRefundList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_status['name'] }}</td>\n <td class=\"channel govuk-table__cell whitespace-inherit\">\u00A3{{ refundList?.amount | number:'.2' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.date_updated | date:'dd MMM yyyy'}}\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ refundList?.refund_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\"> {{refundList?.reason}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToRefundView(refundList,'casetransactions')\">Review</a>\n </td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"rejectedRefundList?.length === 0\">\n <td class=\"govuk-table__cell\" colspan=\"6\">No refunds recorded</td>\n </tbody>\n </table>\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div>\n <h2 class=\"govuk-heading-l\">Refund details</h2>\n <table>\n \n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Refund reference</td>\n <td>{{ refundlist?.refund_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment to be refunded</td>\n <td>{{refundlist?.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Reason for refund</td>\n <td>{{ refundlist?.reason }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Amount refunded</td>\n <td>\u00A3{{refundlist?.amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n\n\n <!-- Notification sent details -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Notifications sent</h2>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Sent to</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Sent via</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Actions</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngIf=\"notificationList\">\n <tr class=\"govuk-table__row\" *ngFor=\"let notification of notificationList\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{notification.date_created | date:'dd MMMM yyyy hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{orderParty}}</td>\n <td class=\"govuk-table__cell whitespace-inherit col-40\">\n <div *ngIf=\"notification?.notification_type === 'EMAIL'\">\n <strong>Email</strong><br>\n {{notification?.contact_details?.email}}\n </div>\n <div *ngIf=\"notification?.notification_type === 'LETTER'\">\n <strong>Post</strong><br>\n {{notification?.contact_details?.address_line}} {{notification?.contact_details?.city}} {{notification?.contact_details?.county}} {{notification?.contact_details?.country}} {{notification?.contact_details?.postal_code}}\n </div>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\"><a href=\"Javascript:void(0);\" (click)=\"putResend(notification)\">Resend</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"Javascript:void(0);\" (click)=\"gotoEditAddressDetails(notification)\">Edit details</a></td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"!notificationList\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\" colspan=\"4\">No record found ... </td>\n </tr>\n </tbody>\n </table> \n </div>\n <!-- Status history -->\n <div>\n <br />\n <h2 class=\"govuk-heading-m\">Refund status history</h2>\n <div *ngIf=\"refundStatusHistories\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Status</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Date and time</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Users</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Notes</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let refundStatusHistory of refundStatusHistories;\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.status}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.date_created | date:'d MMMM yyyy\n hh:mm:ss'}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.created_by}}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{refundStatusHistory.notes}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n\n <ng-container *ngIf=\"viewName==='refundview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div *ngIf=\"refundButtonState==='Update required'\">\n <!-- <div *ngIf=\"refundButtonState==='sent back'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary btnmargin\"\n (click)=\"gotoReviewAndReSubmitPage()\">Resubmit\n refund</button>\n </div>\n <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='Sent for approval'\" >\n <!-- <div *ngIf=\"isProcessRefund && !isLastUpdatedByCurrentUser && refundButtonState==='sent for approval'\"> -->\n <br />\n <button type=\"submit\" class=\"button govuk-button--secondary\"\n (click)=\"goToRefundProcessComponent(refundlist.refund_reference,refundlist)\">Process refund</button>\n </div>\n </ng-container>\n\n\n</ng-container>\n\n<ng-container *ngIf=\"viewName==='reviewandsubmitview' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <!-- <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-back-link govuk-label\">Back</a>\n </li>\n </ol>\n </div> -->\n <div class=\"govuk-warning-text\">\n <h1 class=\"heading-large\">Review and resubmit refund</h1>\n </div>\n <table class=\"govuk-table\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for rejection</td>\n <td class=\"govuk-table__cell\">{{refundreason}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.refund_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Reason for refund</td>\n <td class=\"govuk-table__cell\"> {{ refundlist?.reason}}\n <a (click)=\"gotoRefundReasonPage()\" *ngIf=\"refundlist?.reason !== 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n <!-- <td class=\"govuk-table__cell\">{{ refundlist?.reason }}</td>\n <a (click)=\"gotoRefundReasonPage()\" class=\"govuk-link right\">Change</a> -->\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment reference</td>\n <td class=\"govuk-table__cell\">{{ refundlist?.payment_reference}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td *ngIf=\"refundlist?.reason === 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Refund amount</td>\n <td *ngIf=\"refundlist?.reason !== 'Retrospective remission'\" class=\"govuk-table__cell govuk-!-font-weight-bold\">Payment amount</td>\n <td class=\"govuk-table__cell\"> \u00A3{{ changedAmount | number:'.2' }}\n <a (click)=\"gotoAmountPage()\" *ngIf=\"refundlist?.reason === 'Retrospective remission'\"\n class=\"govuk-link right\">Change</a>\n </td>\n\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send to</td>\n <td class=\"govuk-table__cell\">{{orderParty}} </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell govuk-!-font-weight-bold\">Send via</td>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{refundlist?.contact_details?.email}}\n </div>\n <div *ngIf=\"refundlist?.contact_details?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{refundlist?.contact_details?.address_line}} {{refundlist?.contact_details?.city}} {{refundlist?.contact_details?.county}} {{refundlist?.contact_details?.country}} {{refundlist?.contact_details?.postal_code}}\n </div> \n </td>\n </tr>\n </table>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoReviewDetailsPage($event)\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n</div>\n<p><a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">Cancel</a></p>\n <!-- <div class=\"govuk-button-group\">\n <button [disabled]=\"isRefundBtnDisabled\" (click)=\"gotoReviewRefundConfirmationPage()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Submit refund\n </button>\n </div> -->\n <!-- <p>\n <a (click)=\"loadRefundListPage()\" href=\"\" class=\"cancelbtn\">Cancel</a>\n </p> -->\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'issuerefund' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListReason)=\"getRefundListReason($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'processretroremissonpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <ccpay-add-remission [isFromRefundListPage]=\"true\" [viewCompStatus]=\"viewName\" [isRefundRemission]=\"true\"\n [ccdCaseNumber]=\"ccdCaseNumber\" (refundListAmount)=\"getRefundAmount($event)\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewName === 'reviewrefundconfirmationpage' && !isResendOperationSuccess && !isEditDetailsClicked\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Refund submitted\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference:{{refundReference}} </strong></p>\n </div>\n\n </div>\n\n <h2 class=\"govuk-heading-l\">What happens next</h2>\n <p class=\"govuk-body\">\n A refund request for {{refundAmount| currency:'GBP':'symbol-narrow':'1.2-2'}} has been created and will be passed to a team leader to approve.\n </p>\n\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isResendOperationSuccess\">\n <div class=\"govuk-grid-row\">\n <div>\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Notification sent\n </h1>\n\n <div class=\"govuk-panel__body\">\n <p class=\"govuk-body white\"><strong>Refund reference: {{ refundlist?.refund_reference}} </strong></p>\n </div>\n\n </div>\n <p class=\"govuk-body\">\n <a href=\"javascript:void(0)\" (click)=\"loadRefundListPage()\" class=\"govuk-link\">Return to case</a>\n </p>\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"viewName === 'refundEditView' && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSPAGE'> \n <h1 class=\"govuk-heading-l\">Edit contact details</h1>\n <h2 class=\"govuk-heading-m govuk-font19px\">Case reference: {{ccdCaseNumber | ccdHyphens }}</h2>\n <span class=\"govuk-hint font-size-19px\">\n Refund reference: {{ refundlist?.refund_reference}}\n </span>\n <ccpay-contact-details\n [isEditOperation] = isEditDetailsClicked\n [addressObj] = notification\n (assignContactDetails)=\"getContactDetails($event)\"\n (redirectToIssueRefund)=\"gotoCasetransationPageCancelBtnClicked($event)\" ></ccpay-contact-details>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n<ng-container *ngIf=\"viewName === 'revieweditdetailsconfirmationpage' && !isResendOperationSuccess && isEditDetailsClicked\">\n <input #myInput type='hidden' id='iFrameDrivenImageValue' value='EDITDETAILSCHECKANDANSWERPAGE'> \n <h1 class=\"govuk-heading-l\">Check your answers</h1>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Refund reference\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{ refundlist?.refund_reference}}\n </dd>\n <span class=\"govuk-summary-list__actions\"></span> \n </div>\n <div class=\"govuk-summary-list__row font-size-19px\">\n <dt class=\"govuk-summary-list__key\">\n Send via\n <br/>\n </dt>\n <dd class=\"govuk-summary-list__value\">\n <div *ngIf=\"addressDetails?.notification_type === 'EMAIL'\" class=\"contactDetails-width font-size-19px\">\n <strong>Email</strong>\n <br/>\n {{addressDetails?.email}}\n </div>\n <div *ngIf=\"addressDetails?.notification_type === 'LETTER'\" class=\"contactDetails-width font-size-19px\">\n <strong>Post</strong>\n <br/>\n {{addressDetails?.address_line}} {{addressDetails?.city}} {{addressDetails?.county}} {{addressDetails?.country}} {{addressDetails?.postal_code}}\n </div> \n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"Javascript:void(0)\" (click)=\"gotoEditDetailsPage()\">\n Change\n </a>\n </dd>\n </div>\n </dl>\n <div class=\"govuk-button-group\">\n <button (click)=\"gotoEditDetailsPage()\" class=\"govuk-button govuk-button--secondary\"> Previous</button>\n <button (click)=\"submitEditDetail()\" class=\"govuk-button button\"\n data-module=\"govuk-button\">\n Send notification\n </button>\n </div>\n <p>\n <a (click)=\"loadRefundListPage()\" class=\"govuk-link\" data-module=\"govuk-button\">\n Cancel\n </a>\n </p>\n\n</ng-container>\n",
8616
+ styles: [".right{float:right!important}.button{margin-bottom:3em;font-size:19px}.cancelbtn{font-size:19px;font-weight:400}.btnmargin{margin-bottom:2em}.govuk-button--secondary{background-color:#dee0e2;box-shadow:0 2px 0 #858688;color:#0b0c0c;margin-right:.5em}.govuk-label--s,.govuk-warning-text__text,.hmcts-currency-input__symbol{font-size:19px;font-weight:400}.inline-error-class{outline:#a71414 solid 3px;outline-offset:0}.inline-error-message{color:#a71414;font-weight:700;margin-top:10px;font-size:20px}.govuk-button,.govuk-link{margin-right:1em;font-size:19px;font-weight:200}.govuk-button-group{padding-top:2em}.heading-medium{margin-top:.875em}.heading-large{margin-top:.25em}.govuk-panel--confirmation{color:#fff;background:#00703c}.govuk-heading-l{font-size:36px}.govuk-heading-m{font-size:24px}.govuk-panel__title{font-size:5rem}.govuk-body,.govuk-body-m{font-size:2.1875rem}.govuk-input--width-10{max-width:36ex}.col-14{width:14%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-18{width:18%!important}.col-21{width:21%!important}.col-9{width:9%!important}.col-40{width:40%!important}.col-15{width:15%!important}.col-16{width:16%!important}.col-25{width:25%!important}.col-24{width:24%!important}.govuk-error-summary__title{font-size:24px!important}.govuk-error-summary__body{font-size:19px!important}.font-size-19px{font-size:19px}.white{color:#fff}.pagesize{margin:2em;width:97%}.govuk-link{cursor:pointer}"]
8617
+ }] }
8618
+ ];
8619
+ /** @nocollapse */
8620
+ RefundStatusComponent.ctorParameters = () => [
8621
+ { type: FormBuilder },
8622
+ { type: RefundsService },
8623
+ { type: NotificationService },
8624
+ { type: PaymentLibComponent },
8625
+ { type: OrderslistService }
8626
+ ];
8627
+ RefundStatusComponent.propDecorators = {
8628
+ LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
8629
+ isOldPcipalOff: [{ type: Input }],
8630
+ isNewPcipalOff: [{ type: Input }],
8631
+ ccdCaseNumber: [{ type: Input }],
8632
+ isTurnOff: [{ type: Input }],
8633
+ orderParty: [{ type: Input }]
8634
+ };
8635
+
8636
+ /**
8637
+ * @fileoverview added by tsickle
8638
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8639
+ */
8640
+ class ServiceRequestComponent {
8641
+ /**
8642
+ * @param {?} paymentLibComponent
8643
+ * @param {?} paymentViewService
8644
+ * @param {?} OrderslistService
8645
+ * @param {?} router
8646
+ */
8647
+ constructor(paymentLibComponent, paymentViewService, OrderslistService$$1, router) {
8648
+ this.paymentLibComponent = paymentLibComponent;
8649
+ this.paymentViewService = paymentViewService;
8650
+ this.OrderslistService = OrderslistService$$1;
8651
+ this.router = router;
8652
+ this.paymentGroups = [];
8653
+ this.payments = [];
8654
+ this.nonPayments = [];
8655
+ this.allPayments = [];
8656
+ this.remissions = [];
8657
+ this.fees = [];
8658
+ this.isRefundRemission = true;
8659
+ this.isAddFeeBtnEnabled = true;
8660
+ this.isExceptionRecord = false;
8661
+ this.isUnprocessedRecordSelected = false;
8662
+ this.isAnyFeeGroupAvilable = true;
8663
+ this.isHistoricGroupAvailable = false;
8664
+ this.isRemoveBtnDisabled = false;
8665
+ this.clAmountDue = 0;
8666
+ this.isFeeRecordsExist = false;
8667
+ this.isGrpOutstandingAmtPositive = false;
8668
+ this.isAddRemissionEnable = false;
8669
+ this.orderRemissionDetails = [];
8670
+ this.orderLevelFees = [];
8671
+ this.cpoDetails = null;
8672
+ this.isPBA = false;
8673
+ this.isIssueRefunfBtnEnable = false;
8674
+ this.isAddRemissionBtnEnabled = false;
8675
+ this.isRefundRemissionBtnEnable = false;
8676
+ this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
8677
+ this.check4AllowedRoles2AccessRefund = (/**
8678
+ * @return {?}
8679
+ */
8680
+ () => {
8681
+ return this.allowedRolesToAccessRefund.some((/**
8682
+ * @param {?} role
8683
+ * @return {?}
8684
+ */
8685
+ role => this.LOGGEDINUSERROLES.indexOf(role) !== -1));
8686
+ });
8687
+ this.allowFurtherAccessAfter4Days = (/**
8688
+ * @param {?} payment
8689
+ * @return {?}
8690
+ */
8691
+ (payment) => {
8692
+ if (payment !== null && payment !== undefined) {
8693
+ /** @type {?} */
8694
+ let tmp4DayAgo = new Date();
8695
+ tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
8696
+ return tmp4DayAgo >= new Date(payment.date_created);
8697
+ }
8698
+ });
8699
+ }
8700
+ /**
8701
+ * @return {?}
8702
+ */
8703
+ ngOnInit() {
8704
+ if (this.viewStatus === undefined) {
8705
+ this.viewStatus = this.paymentLibComponent.viewName;
8706
+ }
8707
+ if (this.paymentLibComponent.isFromServiceRequestPage && this.paymentLibComponent.isFromPaymentDetailPage) {
8708
+ if (this.paymentLibComponent.isFromPaymentDetailPage && this.paymentLibComponent.isFromServiceRequestPage) {
8709
+ this.OrderslistService.getorderRefs().subscribe((/**
8710
+ * @param {?} data
8711
+ * @return {?}
8712
+ */
8713
+ (data) => this.orderRef = data));
8714
+ this.OrderslistService.getorderCCDEvents().subscribe((/**
8715
+ * @param {?} data
8716
+ * @return {?}
8717
+ */
8718
+ (data) => this.orderCCDEvent = data));
8719
+ this.OrderslistService.getorderCreateds().subscribe((/**
8720
+ * @param {?} data
8721
+ * @return {?}
8722
+ */
8723
+ (data) => this.orderCreated = data));
8724
+ this.OrderslistService.getorderDetail().subscribe((/**
8725
+ * @param {?} data
8726
+ * @return {?}
8727
+ */
8728
+ (data) => this.orderDetail = data));
8729
+ this.OrderslistService.getorderPartys().subscribe((/**
8730
+ * @param {?} data
8731
+ * @return {?}
8732
+ */
8733
+ (data) => this.orderParty = data));
8734
+ this.OrderslistService.getorderRemissionTotals().subscribe((/**
8735
+ * @param {?} data
8736
+ * @return {?}
8737
+ */
8738
+ (data) => this.orderRemissionTotal = data));
8739
+ this.OrderslistService.getorderFeesTotals().subscribe((/**
8740
+ * @param {?} data
8741
+ * @return {?}
8742
+ */
8743
+ (data) => this.orderFeesTotal = data));
8744
+ this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
8745
+ * @param {?} data
8746
+ * @return {?}
8747
+ */
8748
+ (data) => this.orderTotalPayments = data));
8749
+ }
8750
+ }
8751
+ // if (this.takePayment) {
8752
+ // this.paymentLibComponent.TAKEPAYMENT = this.takePayment;
8753
+ // }
8754
+ }
8755
+ /**
8756
+ * @param {?} event
8757
+ * @return {?}
8758
+ */
8759
+ goToCaseTransationPage(event) {
8760
+ event.preventDefault();
8761
+ this.OrderslistService.setnavigationPage('servicerequestpage');
8762
+ this.OrderslistService.setisFromServiceRequestPage(false);
8763
+ this.paymentLibComponent.viewName = 'case-transactions';
8764
+ this.paymentLibComponent.ISBSENABLE = true;
8765
+ this.paymentLibComponent.isTakePayment = this.paymentLibComponent.TAKEPAYMENT;
8766
+ if (this.takePayment) {
8767
+ this.paymentLibComponent.isTakePayment = this.takePayment;
8768
+ }
8769
+ this.paymentLibComponent.SERVICEREQUEST = "true";
8770
+ this.paymentLibComponent.isFromServiceRequestPage = false;
8771
+ if (this.isServiceRequest !== 'false') {
8772
+ this.paymentLibComponent.isFromServiceRequestPage = true;
8773
+ }
8774
+ this.paymentLibComponent.isFromRefundStatusPage = false;
8775
+ this.paymentLibComponent.viewName = 'case-transactions';
8776
+ this.resetOrderData();
8777
+ /** @type {?} */
8778
+ let partUrl = this.paymentLibComponent.ISBSENABLE ? '&isBulkScanning=Enable' : '&isBulkScanning=Disable';
8779
+ partUrl += this.paymentLibComponent.ISTURNOFF ? '&isTurnOff=Enable' : '&isTurnOff=Disable';
8780
+ if (this.isServiceRequest === 'false') {
8781
+ partUrl += this.paymentLibComponent.TAKEPAYMENT ? '&takePayment=true' : '&takePayment=false';
8782
+ }
8783
+ partUrl += this.isStrategicFixEnable ? '&isStFixEnable=Enable' : '&isStFixEnable=Disable';
8784
+ partUrl += this.isServiceRequest !== 'false' ? '&servicerequest=true' : '&servicerequest=false';
8785
+ partUrl += `&caseType=${this.paymentLibComponent.CASETYPE}`;
8786
+ partUrl += this.paymentLibComponent.ISNEWPCIPALOFF ? '&isNewPcipalOff=Enable' : '&isNewPcipalOff=Disable';
8787
+ partUrl += this.paymentLibComponent.ISOLDPCIPALOFF ? '&isOldPcipalOff=Enable' : '&isOldPcipalOff=Disable';
8788
+ /** @type {?} */
8789
+ const url = `/payment-history/${this.paymentLibComponent.CCD_CASE_NUMBER}?view=case-transactions&selectedOption=${this.paymentLibComponent.SELECTED_OPTION}${partUrl}`;
8790
+ this.router.routeReuseStrategy.shouldReuseRoute = (/**
8791
+ * @return {?}
8792
+ */
8793
+ () => false);
8794
+ this.router.onSameUrlNavigation = 'reload';
8795
+ this.router.navigateByUrl(url);
8796
+ }
8797
+ /**
8798
+ * @param {?} feeCode
8799
+ * @return {?}
8800
+ */
8801
+ chkForAddRemission(feeCode) {
8802
+ if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund()) {
8803
+ if (this.orderDetail[0]['remissions'].length > 0) {
8804
+ for (const remission of this.orderDetail[0]['remissions']) {
8805
+ if (remission.fee_code === feeCode) {
8806
+ return false;
8807
+ }
8808
+ }
8809
+ }
8810
+ return true;
8811
+ }
8812
+ else {
8813
+ return false;
8814
+ }
8815
+ }
8816
+ /**
8817
+ * @return {?}
8818
+ */
8819
+ chkForPBAPayment() {
8820
+ if (this.orderDetail !== null && this.orderDetail !== undefined) {
8821
+ this.orderDetail.forEach((/**
8822
+ * @param {?} orderDetail
8823
+ * @return {?}
8824
+ */
8825
+ orderDetail => {
8826
+ if (orderDetail.payments) {
8827
+ orderDetail.payments.forEach((/**
8828
+ * @param {?} payment
8829
+ * @return {?}
8830
+ */
8831
+ payment => {
8832
+ if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
8833
+ this.paymentLibComponent.paymentReference = payment.reference;
8834
+ this.isPBA = true;
8835
+ }
8836
+ }));
8837
+ }
8838
+ }));
8839
+ if (this.isPBA) {
8840
+ return true;
8841
+ }
8842
+ else {
8843
+ return false;
8844
+ }
8845
+ }
8846
+ }
8847
+ /**
8848
+ * @param {?} fee
8849
+ * @return {?}
8850
+ */
8851
+ addRemission(fee) {
8852
+ if (this.chkForAddRemission(fee.code)) {
8853
+ this.feeId = fee;
8854
+ this.viewStatus = 'addremission';
8855
+ this.payment = this.orderDetail[0].payments[0];
8856
+ this.paymentViewService.getApportionPaymentDetails(this.orderDetail[0].payments[0].reference).subscribe((/**
8857
+ * @param {?} paymentGroup
8858
+ * @return {?}
8859
+ */
8860
+ paymentGroup => {
8861
+ this.paymentGroup = paymentGroup;
8862
+ this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
8863
+ * @param {?} paymentGroupObj
8864
+ * @return {?}
8865
+ */
8866
+ paymentGroupObj => paymentGroupObj['reference'].includes(this.paymentLibComponent.paymentReference)));
8867
+ this.payment = this.paymentGroup.payments[0];
8868
+ // const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
8869
+ // this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
8870
+ }), (/**
8871
+ * @param {?} error
8872
+ * @return {?}
8873
+ */
8874
+ (error) => this.errorMessage = error.replace(/"/g, "")));
8875
+ }
8876
+ }
8877
+ /**
8878
+ * @param {?} payment
8879
+ * @param {?} remission
8880
+ * @param {?} fees
8881
+ * @return {?}
8882
+ */
8883
+ addRefundForRemission(payment, remission, fees) {
8884
+ this.viewStatus = 'addrefundforremission';
8885
+ this.payment = payment;
8886
+ this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
8887
+ * @param {?} paymentGroup
8888
+ * @return {?}
8889
+ */
8890
+ paymentGroup => {
8891
+ this.paymentGroup = paymentGroup;
8892
+ this.paymentGroup.payments = this.paymentGroup.payments.filter((/**
8893
+ * @param {?} paymentGroupObj
8894
+ * @return {?}
8895
+ */
8896
+ paymentGroupObj => paymentGroupObj['reference'].includes(this.payment.reference)));
8897
+ this.payment = this.paymentGroup.payments[0];
8898
+ this.remissions = remission;
8899
+ this.remissionFeeAmt = fees.filter((/**
8900
+ * @param {?} data
8901
+ * @return {?}
8902
+ */
8903
+ data => data.code === this.remissions['fee_code']))[0].net_amount;
8904
+ // const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
8905
+ // this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
8906
+ }), (/**
8907
+ * @param {?} error
8908
+ * @return {?}
8909
+ */
8910
+ (error) => this.errorMessage = error));
8911
+ }
8912
+ /**
8913
+ * @return {?}
8914
+ */
8915
+ cancelRemoval() {
8916
+ this.viewStatus = 'main';
8917
+ }
8918
+ /**
8919
+ * @param {?} fee
8920
+ * @return {?}
8921
+ */
8922
+ removeFee(fee) {
8923
+ this.isRemoveBtnDisabled = true;
8924
+ this.paymentViewService.deleteFeeFromPaymentGroup(fee).subscribe((/**
8925
+ * @param {?} success
8926
+ * @return {?}
8927
+ */
8928
+ (success) => {
8929
+ window.location.reload();
8930
+ }), (/**
8931
+ * @param {?} error
8932
+ * @return {?}
8933
+ */
8934
+ (error) => {
8935
+ this.errorMessage = error;
8936
+ this.isRemoveBtnDisabled = false;
8937
+ }));
8938
+ }
8939
+ /**
8940
+ * @param {?} payment
8941
+ * @return {?}
8942
+ */
8943
+ chkIssueRefundBtnEnable(payment) {
8944
+ if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
8945
+ payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
8946
+ this.isIssueRefunfBtnEnable = true;
8947
+ }
8948
+ if (this.isIssueRefunfBtnEnable) {
8949
+ return true;
8950
+ }
8951
+ else {
8952
+ return false;
8953
+ }
8954
+ }
8955
+ /**
8956
+ * @return {?}
8957
+ */
8958
+ chkIsRefundRemissionBtnEnable() {
8959
+ if (this.orderDetail !== null && this.orderDetail !== undefined) {
8960
+ this.paymentLibComponent.isFromServiceRequestPage = true;
8961
+ this.orderDetail.forEach((/**
8962
+ * @param {?} orderDetail
8963
+ * @return {?}
8964
+ */
8965
+ orderDetail => {
8966
+ if (orderDetail.payments) {
8967
+ orderDetail.payments.forEach((/**
8968
+ * @param {?} payment
8969
+ * @return {?}
8970
+ */
8971
+ payment => {
8972
+ if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && this.allowFurtherAccessAfter4Days(payment)) {
8973
+ this.isRefundRemissionBtnEnable = true;
8974
+ }
8975
+ }));
8976
+ }
8977
+ }));
8978
+ if (this.isRefundRemissionBtnEnable) {
8979
+ return true;
8980
+ }
8981
+ else {
8982
+ return false;
8983
+ }
8984
+ }
8985
+ }
8986
+ /**
8987
+ * @param {?} payment
8988
+ * @return {?}
8989
+ */
8990
+ issueRefund(payment) {
8991
+ if (payment !== null && payment !== undefined) {
8992
+ if (this.chkIssueRefundBtnEnable(payment)) {
8993
+ this.viewStatus = 'issuerefund';
8994
+ this.payment = payment;
8995
+ this.paymentLibComponent.isFromServiceRequestPage = true;
8996
+ this.isRefundRemission = true;
8997
+ }
8998
+ }
8999
+ }
9000
+ /**
9001
+ * @param {?} event
9002
+ * @return {?}
9003
+ */
9004
+ goToServiceRequestPage(event) {
9005
+ event.preventDefault();
9006
+ this.isFromServiceRequestPage = true;
9007
+ this.viewStatus = 'main';
9008
+ this.paymentLibComponent.viewName = 'case-transactions';
9009
+ this.router.routeReuseStrategy.shouldReuseRoute = (/**
9010
+ * @return {?}
9011
+ */
9012
+ () => false);
9013
+ this.router.onSameUrlNavigation = 'reload';
9014
+ }
9015
+ /**
9016
+ * @param {?} paymentGroupReference
9017
+ * @param {?} paymentReference
9018
+ * @param {?} paymentMethod
9019
+ * @return {?}
9020
+ */
9021
+ goToPayementView(paymentGroupReference, paymentReference, paymentMethod) {
9022
+ this.goToPaymentViewComponent({ paymentGroupReference, paymentReference, paymentMethod });
9023
+ }
9024
+ /**
9025
+ * @param {?} paymentGroup
9026
+ * @return {?}
9027
+ */
9028
+ goToPaymentViewComponent(paymentGroup) {
9029
+ this.paymentLibComponent.paymentMethod = paymentGroup.paymentMethod;
9030
+ this.paymentLibComponent.isFromServiceRequestPage = true;
9031
+ this.paymentLibComponent.paymentGroupReference = paymentGroup.paymentGroupReference;
9032
+ this.paymentLibComponent.paymentReference = paymentGroup.paymentReference;
9033
+ this.OrderslistService.setOrderRef(this.orderRef);
9034
+ this.OrderslistService.setorderCCDEvent(this.orderCCDEvent);
9035
+ this.OrderslistService.setorderCreated(this.orderCreated);
9036
+ this.OrderslistService.setorderDetail(this.orderDetail);
9037
+ this.OrderslistService.setorderParty(this.orderParty);
9038
+ this.OrderslistService.setorderTotalPayments(this.orderTotalPayments);
9039
+ this.OrderslistService.setorderRemissionTotal(this.orderRemissionTotal);
9040
+ this.OrderslistService.setorderFeesTotal(this.orderFeesTotal);
9041
+ this.viewStatus = 'payment-view';
9042
+ }
9043
+ /**
9044
+ * @return {?}
9045
+ */
9046
+ resetOrderData() {
9047
+ this.OrderslistService.setOrderRef(null);
9048
+ this.OrderslistService.setorderCCDEvent(null);
9049
+ this.OrderslistService.setorderCreated(null);
9050
+ this.OrderslistService.setorderDetail(null);
9051
+ this.OrderslistService.setorderParty(null);
9052
+ this.OrderslistService.setorderTotalPayments(null);
9053
+ this.OrderslistService.setorderRemissionTotal(null);
9054
+ this.OrderslistService.setorderFeesTotal(null);
9055
+ }
9056
+ }
9057
+ ServiceRequestComponent.decorators = [
9058
+ { type: Component, args: [{
9059
+ selector: 'ccpay-service-request',
9060
+ template: "<!-- Order Full View Details-->\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-column-full\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Service request</h1>\n </div>\n <table >\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{orderStatus}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Party</td>\n <td>{{orderParty}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td>{{orderRef}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Date created</td>\n <td>{{orderCreated | date:'dd MMMM yyyy'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">CCD event</td>\n <td>{{orderCCDEvent}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n <div class=\"govuk-grid-column-full order-class\">\n <div class=\"column\">\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-51\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\">Fee</td>\n <td class=\"govuk-table__header col-51\" scope=\"col\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">Fee</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Total</td>\n <td class=\"govuk-table__header\" scope=\"col\" *ngIf=\"isServiceRequest === 'false'\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngFor=\"let fee of order.fees; let i = index;\">\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" *ngIf=\"isServiceRequest === 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell col-60 whitespace-inherit\" colspan=\"2\" *ngIf=\"isServiceRequest !== 'false'\">{{fee.description}}</td>\n <td class=\"govuk-table__cell\">{{fee.volume? fee.volume : '-'}} X {{ fee.calculated_amount/fee.volume| currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell\">{{ fee?.net_amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\" *ngIf=\"isServiceRequest === 'false'\">\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </td>\n \n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngFor=\"let order of orderDetail;\">\n <tr class=\"govuk-table__row\" *ngIf=\"order.fees?.length === 0\" >\n <td class=\"govuk-table__cell alignleft\" colspan=\"7\">No fees recorded</td>\n </tr>\n </tbody>\n </table>\n\n </div>\n <div class=\"maxwidth\"> \n <p class=\"totalfees\">Total fees: {{orderFeesTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n <!-- remissions -->\n<ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full order-class\" *ngIf=\"order.remissions\"> \n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.remissions?.length > 0\" class=\"govuk-table__body\" >\n <tr class=\"govuk-table__row\" *ngFor=\"let remission of order.remissions\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(order.payments[0],remission,order.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n <!-- <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n \n </td> -->\n </tr>\n </tbody>\n \n\n </table>\n <div *ngIf=\"order.remissions?.length === 0\">\n <span >No help with fees or remissions.</span>\n </div>\n <div class=\"summarypagealign\">\n <p>Total reductions: {{orderRemissionTotal | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n <div class=\"summarypagealign\">\n <p class=\"summarypage\">Total fees to pay: {{(orderFeesTotal - orderRemissionTotal) | currency:'GBP':'symbol-narrow':'1.2-2' }}</p>\n </div>\n </div>\n \n \n</ng-container>\n \n \n <!--Payments-->\n <ng-container *ngFor=\"let order of orderDetail;\" >\n <div class=\"govuk-grid-column-full\" *ngIf=\"order.payments\"> \n <h3 class=\"heading-medium\">Payments</h3>\n <table class=\"govuk-table \">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-25\" scope=\"col\"></td>\n <td class=\"govuk-table__header\" scope=\"col\">Date created</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody *ngIf=\"order.payments?.length > 0\" class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let payment of order.payments\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <a href=\"javascript:void(0)\" (click)=\"goToPayementView(payment.paymentGroupReference, payment.reference, payment.method)\">Review</a>\n </td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ payment?.amount | currency:'GBP':'symbol-narrow':'1.2-2' }}</td>\n <td class=\"govuk-table__cell alignright\">\n <button [disabled] = \"!chkIssueRefundBtnEnable(payment)\" (click)=\"issueRefund(payment)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </td>\n <!-- <td *ngIf=\"!chkIssueRefundBtnEnable(payment)\" class=\"govuk-table__cell\" style=\"text-align: right;\">\n </td> -->\n </tr>\n </tbody>\n </table>\n \n <div *ngIf=\"order.payments === undefined || order.payments === null\">\n <!-- <h3 class=\"heading-medium mar-17\">Payments</h3> -->\n <span class=\"mar-17\" >No Payments recorded</span>\n </div>\n</div>\n</ng-container>\n<div *ngIf=\"isServiceRequest === 'false'\">\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) > 0\" >\n <p class=\"totalPay\">Total left to pay: <b>{{((orderFeesTotal - orderRemissionTotal)- orderTotalPayments )| currency:'GBP':'symbol-narrow':'1.2-2' }}</b> </p>\n </div>\n <div *ngIf=\"((orderFeesTotal - orderRemissionTotal)- orderTotalPayments) < 0\" >\n <p class=\"totalPay\">Total left to pay: <b>0</b> </p>\n </div>\n</div>\n \n</ng-container>\n<ccpay-add-remission *ngIf=\"viewStatus === 'addremission' && feeId\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[fee]=\"feeId\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[isFromServiceRequestPage] = \"true\"\n[payment] = \"payment\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'issuerefund' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[isFromServiceRequestPage] = \"true\"\n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[paymentGroupRef]=\"orderRef\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-add-remission *ngIf=\"viewStatus === 'addrefundforremission' && payment\"\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\" \n[isOldPcipalOff]=\"isOldPcipalOff\" \n[viewCompStatus]= \"viewStatus\"\n[isNewPcipalOff]=\"isNewPcipalOff\" \n[payment]=\"payment\" \n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\" \n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"true\" \n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[takepayment] = \"takePayment\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"></ccpay-add-remission>\n\n<ccpay-payment-view *ngIf=\"viewStatus === 'payment-view'\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n[isTurnOff] = \"isTurnOff\" \n[isTakePayment] = \"takePayment\" \n[caseType] = \"caseType\"\n[orderRef] = \"orderRef\"\n[orderStatus] = \"orderStatus\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[isOldPcipalOff] = \"isOldPcipalOff\"\n[isNewPcipalOff] = \"isNewPcipalOff\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\">\n</ccpay-payment-view>\n\n<ng-container *ngIf=\"viewStatus === 'feeRemovalConfirmation'\">\n<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to delete this fee?\n </strong>\n</div>\n<div class=\"govuk-button-grb\">\n <form novalidate>\n <button type=\"submit\" class=\"button govuk-button--secondary\" (click)=\"cancelRemoval()\">\n Cancel\n </button>\n <button type=\"submit\" class=\"button\"\n [disabled]=\"isRemoveBtnDisabled\"\n [ngClass]='isRemoveBtnDisabled ? \"button button--disabled govuk-!-margin-right-1\" : \"button govuk-!-margin-right-1\"'\n (click)=\"removeFee(feeId)\">\n Remove\n </button>\n </form>\n</div>\n</ng-container>",
9061
+ styles: [".govuk-grid-column-full--gr{position:relative;margin-bottom:10px}.disable{text-decoration:none;cursor:default;color:#fff;background-color:grey;pointer-events:none}.govuk-grid__surplus-payments{margin:20px 0}.govuk-grid__surplus-payments>.govuk-grid-column-full{padding:0}.govuk-grid__surplus-payments-col1{margin-bottom:10px}.govuk-inset-text__no-border{border-left:0}.govuk-hidetext{font-size:22px;padding-bottom:10px}.lowercase{text-transform:lowercase}.channel::first-letter{text-transform:uppercase}.govuk-heading-xl{font-size:48px;margin-bottom:1px}.govuk-section-break--visible{border-bottom:2px solid #000}.totalpayments.govuk-table__row{border-bottom:2px solid #000!important}.govuk-inset-text{margin-left:1em}.govuk-button{font-size:19px;margin-bottom:0!important}.govuk-table__cell.govuk-table__cell--col6.govuk-table__custom--col6,.groupamount.govuk-table__header{text-align:right}.feeclass{padding-left:.7em}.align-center{text-align:center}details summary{display:list-item}.case-transaction__color{color:#a71414;font-weight:700;text-align:center}.capitalize::first-letter{text-transform:uppercase}.govuk-inset-text__no-left-margin{margin-left:0;padding-left:0}.whitespace-inherit{white-space:inherit!important}.govuk-section-records-break{margin:10px;border-bottom:2px solid #000!important}.exisitng-fees{margin-left:12px}.add-telephony-payment{margin-top:-2em;margin-left:-2em}.govuk-table__header--custom{text-align:center}.disable-link{cursor:default;pointer-events:none;color:#8e8c8c}.panel-no--style{border-left-style:none}.col-28{width:28%!important}.col-8{width:8%!important}.col-60{width:60%!important}.col-32{width:32%!important}.col-34{width:34%!important}.col-15{width:15%!important;padding-right:0!important;padding-left:0!important}.col-16{width:16%!important}.col-14{width:14%!important}.col-17{width:17%!important}.col-12{width:12%!important}.col-9{width:9%!important}.col-10{width:10%!important}.col-11{width:11%!important}.col-13{width:13%!important}.col-21{width:21%!important}.col-20{width:20%!important}.col-24{width:24%!important}.govuk-table__cell,.govuk-table__header{padding:10px 10px 10px 0}.col-27{width:27%!important}td{white-space:nowrap;overflow:hidden!important}.col-19{width:19%!important;padding-left:0!important}.col-18{width:18%!important;padding-left:0!important;padding-right:0!important}.col-37{width:37%!important}.col-55{width:55%!important}.govuk-table{margin-bottom:1px}.hmcts-banner>.hmcts-banner__message{font-size:19px;line-height:1.25}.summary-table-font{font-size:36px}.order-class{padding-top:3em}.govuk-table__cell:last-child,.govuk-table__header:last-child{text-align:right}.govuk-grid-column-two-thirds{width:64%!important;padding:0!important}.govuk-heading-l{font-size:36px;margin-bottom:10px}.paymentrequest{margin-top:1em}.mar-17{margin-left:17px}.col-61{width:61px!important;padding:0!important}.error{width:960px;margin:auto}.summarypage{padding-left:36em;margin-top:2em}.summarypagealign{width:100%;text-align:right;margin-top:2em}.govuk-inset-text{font-size:2.1875rem}table{table-layout:fixed;width:100%}td,th{word-wrap:break-word}.totalPay{padding-right:14px;float:right;margin-top:2em}.govuk-back-link{font-size:1.5rem!important}.totalfees{float:right;margin-top:2em}.refundBtn{text-align:right;width:18%}.col-25{width:25%!important}.col-51{width:51%!important}.alignright{text-align:right}.alignleft{text-align:left}.alignself{align-self:flex-end}.maxwidth{width:100%}"]
9062
+ }] }
9063
+ ];
9064
+ /** @nocollapse */
9065
+ ServiceRequestComponent.ctorParameters = () => [
9066
+ { type: PaymentLibComponent },
9067
+ { type: PaymentViewService },
9068
+ { type: OrderslistService },
9069
+ { type: Router }
9070
+ ];
9071
+ ServiceRequestComponent.propDecorators = {
9072
+ LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
9073
+ viewStatus: [{ type: Input, args: ['viewStatus',] }],
9074
+ orderDetail: [{ type: Input, args: ['orderDetail',] }],
9075
+ orderRef: [{ type: Input, args: ['orderRef',] }],
9076
+ orderStatus: [{ type: Input, args: ['orderStatus',] }],
9077
+ orderParty: [{ type: Input, args: ['orderParty',] }],
9078
+ orderCreated: [{ type: Input, args: ['orderCreated',] }],
9079
+ orderCCDEvent: [{ type: Input, args: ['orderCCDEvent',] }],
9080
+ orderFeesTotal: [{ type: Input, args: ['orderFeesTotal',] }],
9081
+ orderTotalPayments: [{ type: Input, args: ['orderTotalPayments',] }],
9082
+ orderRemissionTotal: [{ type: Input, args: ['orderRemissionTotal',] }],
9083
+ takePayment: [{ type: Input, args: ['takePayment',] }],
9084
+ ccdCaseNumber: [{ type: Input, args: ['ccdCaseNumber',] }],
9085
+ isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }]
9086
+ };
9087
+
9088
+ /**
9089
+ * @fileoverview added by tsickle
9090
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9091
+ */
9092
+ class IserviceRequestCardPayment {
9093
+ /**
9094
+ * @param {?} amount
9095
+ */
9096
+ constructor(amount) {
9097
+ this.amount = amount;
9098
+ this.currency = 'GBP';
9099
+ this.language = 'string';
9100
+ }
9101
+ }
9102
+
9103
+ /**
9104
+ * @fileoverview added by tsickle
9105
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9106
+ */
9107
+ class IserviceRequestPbaPayment {
9108
+ /**
9109
+ * @param {?} account_number
9110
+ * @param {?} amount
9111
+ * @param {?} customer_reference
9112
+ */
9113
+ constructor(account_number, amount, customer_reference) {
9114
+ this.account_number = account_number;
9115
+ this.amount = amount;
9116
+ this.currency = 'GBP';
9117
+ this.customer_reference = customer_reference;
9118
+ }
9119
+ }
9120
+
9121
+ /**
9122
+ * @fileoverview added by tsickle
9123
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9124
+ */
9125
+ class PbaPaymentComponent {
9126
+ /**
9127
+ * @param {?} paymentLibComponent
9128
+ * @param {?} paymentViewService
9129
+ */
9130
+ constructor(paymentLibComponent, paymentViewService) {
9131
+ this.paymentLibComponent = paymentLibComponent;
9132
+ this.paymentViewService = paymentViewService;
9133
+ this.isCardPaymentSuccess = true;
9134
+ this.isInSufficiantFund = false;
9135
+ this.isPBAAccountNotExist = false;
9136
+ this.isPBAServerError = false;
9137
+ this.isGetPBAAccountSucceed = false;
9138
+ this.selectedPbaAccount = '';
9139
+ this.pbaAccountRef = '';
9140
+ this.isContinueButtondisabled = true;
9141
+ this.isPBAAccountPaymentSuccess = false;
9142
+ }
9143
+ /**
9144
+ * @return {?}
9145
+ */
9146
+ ngOnInit() {
9147
+ this.pbaPayOrderRef = this.paymentLibComponent.pbaPayOrderRef;
9148
+ this.viewStatus = 'pba-payment';
9149
+ this.errorMsg = null;
9150
+ this.paymentViewService.getPBAaccountDetails()
9151
+ .subscribe((/**
9152
+ * @param {?} result
9153
+ * @return {?}
9154
+ */
9155
+ result => {
9156
+ this.isGetPBAAccountSucceed = true;
9157
+ this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
9158
+ }), (/**
9159
+ * @param {?} error
9160
+ * @return {?}
9161
+ */
9162
+ error => {
9163
+ this.errorMsg = error;
9164
+ }));
9165
+ }
9166
+ /**
9167
+ * @param {?} args
9168
+ * @return {?}
9169
+ */
9170
+ selectpbaaccount(args) {
9171
+ if (args.currentTarget.id === 'pbaAccountNumber') {
9172
+ this.selectedPbaAccount = args.target.value;
9173
+ }
9174
+ if (args.currentTarget.id === 'pbaAccountRef') {
9175
+ this.pbaAccountRef = args.target.value;
9176
+ }
9177
+ if (this.selectedPbaAccount !== '' && this.pbaAccountRef !== "") {
9178
+ this.isContinueButtondisabled = false;
9179
+ }
9180
+ else {
9181
+ this.isContinueButtondisabled = true;
9182
+ }
9183
+ }
9184
+ /**
9185
+ * @return {?}
9186
+ */
9187
+ saveAndContinue() {
9188
+ this.isInSufficiantFund = false;
9189
+ this.isPBAAccountNotExist = false;
9190
+ this.isPBAServerError = false;
9191
+ this.isPBAAccountPaymentSuccess = false;
9192
+ if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
9193
+ /** @type {?} */
9194
+ const requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
9195
+ this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
9196
+ .subscribe((/**
9197
+ * @param {?} r
9198
+ * @return {?}
9199
+ */
9200
+ r => {
9201
+ this.pbaAccountrPaymentResult = JSON.parse(r).data;
9202
+ this.isPBAAccountPaymentSuccess = true;
9203
+ }), (/**
9204
+ * @param {?} e
9205
+ * @return {?}
9206
+ */
9207
+ e => {
9208
+ if (e.status == '402') {
9209
+ this.isInSufficiantFund = true;
9210
+ }
9211
+ else if (e.status == '410' || e.status == '412') {
9212
+ this.isPBAAccountNotExist = true;
9213
+ }
9214
+ else {
9215
+ this.isPBAServerError = true;
9216
+ }
9217
+ }));
9218
+ }
9219
+ else {
9220
+ this.isPBAServerError = true;
9221
+ }
9222
+ }
9223
+ /**
9224
+ * @return {?}
9225
+ */
9226
+ cardPayment() {
9227
+ this.isCardPaymentSuccess = true;
9228
+ /** @type {?} */
9229
+ const requestBody = new IserviceRequestCardPayment(this.pbaPayOrderRef.orderTotalFees);
9230
+ this.paymentViewService.postWays2PayCardPayment(this.pbaPayOrderRef.orderRefId, requestBody)
9231
+ .subscribe((/**
9232
+ * @param {?} result
9233
+ * @return {?}
9234
+ */
9235
+ result => {
9236
+ /** @type {?} */
9237
+ const paymentUrl = JSON.parse(result).next_url;
9238
+ window.location.href = paymentUrl;
9239
+ }), (/**
9240
+ * @param {?} error
9241
+ * @return {?}
9242
+ */
9243
+ error => {
9244
+ this.isCardPaymentSuccess = false;
9245
+ }));
9246
+ }
9247
+ /**
9248
+ * @return {?}
9249
+ */
9250
+ gotoCasetransationPage() {
9251
+ this.paymentLibComponent.viewName = 'case-transactions';
9252
+ this.paymentLibComponent.TAKEPAYMENT = false;
9253
+ this.paymentLibComponent.ISBSENABLE = true;
9254
+ this.paymentLibComponent.isFromServiceRequestPage = true;
9255
+ }
9256
+ }
9257
+ PbaPaymentComponent.decorators = [
9258
+ { type: Component, args: [{
9259
+ selector: 'ccpay-pba-payment',
9260
+ template: "<ng-container *ngIf=\"viewStatus === 'pba-payment'\">\n\n <div class=\"govuk-breadcrumbs\" *ngIf=\"!errorMsg && !isPBAAccountPaymentSuccess && !isCardPaymentSuccess\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\" class=\"govuk-back-link pba-payments-16-font\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"pba-payment\" *ngIf=\"(pbaAccountList?.length > 0 || errorMsg) && !isInSufficiantFund && !isPBAAccountNotExist && !isPBAServerError && !isPBAAccountPaymentSuccess && isCardPaymentSuccess\">\n \n <div *ngIf=\"errorMsg\" class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\" >\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account cannot be found.\n </li>\n <li class=\"pba-payments-error-16-font\">\n If you know your organisation has a PBA, try again.\n </li>\n <li class=\"pba-payments-error-16-font\">\n You can also pay by credit or debit card.\n </li>\n </ul>\n </div>\n </div>\n <h1 class=\"heading-medium margin-top-10-px\">Pay fee using Payment by Account (PBA)</h1>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-19-font\">\n Amount to pay \n </label>\n <span class=\"pba-payments-19-font\">{{pbaPayOrderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</span>\n </div>\n\n <div class=\"govuk-form-group pba-payments-select-box--size\" *ngIf=\"!errorMsg\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-19-font\" for=\"pbaAccountNumber\">\n Select a PBA \n </label>\n <select class=\"form-control short-input\" id=\"pbaAccountNumber\" (change)=\"selectpbaaccount($event)\">\n <option value=\"\" selected='selected'>Select option</option>\n <option *ngFor=\"let pbaAccount of pbaAccountList;\" value=\"{{pbaAccount}}\">{{pbaAccount}}</option>\n </select>\n </div>\n <div class=\"govuk-form-group\" *ngIf=\"!errorMsg && selectedPbaAccount\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-24-font\" for=\"pbaAccountNumber\">\n Enter a reference for your PBA account statements \n </label>\n <div id=\"event-name-hint\" class=\"govuk-hint pba-payments-19-font pba-payment-width\">\n This should be your own unique reference to identify the case. It will appear on your statements.\n </div>\n <input class=\"govuk-input pba-payments-ref-box--size pba-payments-19-font\" id=\"pbaAccountRef\" (change)=\"selectpbaaccount($event)\" name=\"pbaAccountRef\" type=\"text\" aria-describedby=\"pbaAccountRef-hint\">\n </div>\n <div class=\"govuk-button--group\" *ngIf=\"errorMsg\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n <div class=\"govuk-button--group\" *ngIf=\"!errorMsg\">\n <button type=\"submit\" [disabled]=\"isContinueButtondisabled\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"saveAndContinue()\">\n Continue\n </button>\n </div>\n </div>\n<ng-container *ngIf=\"pbaAccountList?.length <= 0 && !errorMsg && isGetPBAAccountSucceed && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n <h2 class=\"warning-heading-m\">You don\u2019t have a registered PBA.</h2>\n </strong>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Pay by credit or debit card</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n We recommend that you apply to get a new PBA to pay for fees.\n </p>\n <p class=\"govuk-bod ypba-payments-19-font\">\n you can also pay by credit or debit card if you need to pay now\n </p>\n <p class=\"govuk-body\">\n <button type=\"submit\" (click)=\"cardPayment()\" class=\"button pba-payments-19-font pba-payments-20-margin\">\n Pay by card\n </button>\n </p>\n \n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Register an existing PBA with MyHMCTS</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n You may find it easier in future to pay by PBA, your organisation administrator will need to \n email <a href=\"mailto: MyHMCTSsupport@justice.gov.uk\">MyHMCTSsupport@justice.gov.uk</a> to ask for your PBA to be registered with your \n MyHMCTS account. You should include your organisation name and PBA number.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n It can then take up to 3 days for your account to be updated. You\u2019ll need to start your claim \n again to pay the fee.\n </p>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Apply to get a new PBA </h2>\n <p class=\"govuk-body pba-payments-19-font\">\n You\u2019ll need to provide details for you and your organisation, including the required credit\n limit for your account.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n Once your account has been registered, you\u2019ll need to start your claim again to pay the fee.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n Read more information on <a target=\"_blank\" href=\"https://www.gov.uk/guidance/hmcts-payment-by-account-for-online-services\">registering for PBA</a>.\n </p>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isInSufficiantFund && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n You don't have enough funds in your PBA account to pay for this fee.\n </li>\n <li class=\"pba-payments-error-16-font\">\n If you have already topped up your PBA account, wait up to 24 hours for the new balance to become available.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a>or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAAccountNotExist && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account ({{selectedPbaAccount}}) no longer exists.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font govuk-body-width\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a>or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAServerError && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"pba-payments-heading-lg\">Sorry, there is a problem with the service</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Try again later.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isPBAAccountPaymentSuccess && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel--confirmation pba-payments--confirmation\">\n <h1 class=\"govuk-panel__title pba-payments--title\">\n Payment successful\n </h1>\n <div class=\"govuk-panel__body pba-payments__body\">\n Your payment reference is <br><strong>{{pbaAccountrPaymentResult.payment_reference}}</strong>\n </div>\n </div>\n <p class=\"govuk-body pba-payments-19-font\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\">View service requests</a>\n </p>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"pba-payments-heading-lg\">Sorry, there is a problem with the service</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Try again later.\n </p>\n <!-- <p class=\"govuk-body pba-payments-19-font\">\n you can also <a href=\"javascript:void(0)\" (click)=\"cardPayment()\" >pay by credit or debit card</a>.\n </p> -->\n <p class=\"govuk-body pba-payments-19-font\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\">View service requests</a>\n </p>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n</ng-container>\n\n\n\n",
9261
+ styles: [".pba-payments-govuk__label{font-weight:700;line-height:1.31578947}.pba-payments-19-font{font-size:19px}.pba-payments-16-font{font-size:16px}.pba-payments-24-font{font-size:24px}.pba-payments-20-margin{margin-bottom:20px}.pba-payments-select-box--size{width:40%}.pba-payments-error-box--size{width:80%}.pba-payments-ref-box--size{width:60%}.pba-payments-error-16-font{font-size:16px;line-height:34px}.pba-payments-margin-10{margin-right:10px}.pba-payments-margin-top-10{margin-top:15px}.pba-payments-heading-lg{font-size:40px;font-weight:700;line-height:72px}.pba-payments--confirmation{background:#00703c!important}.pba-payments__body{font-size:36px!important}.pba-payments--title{font-size:48px!important}.warning-heading-m{font-size:29px;font-weight:700}.pba-payment-width{width:75%}.margin-top-10-px{margin-top:10px}.govuk-error-summary:focus{outline:#fd0 solid 3px}.govuk-body-width{width:650px}"]
9262
+ }] }
9263
+ ];
9264
+ /** @nocollapse */
9265
+ PbaPaymentComponent.ctorParameters = () => [
9266
+ { type: PaymentLibComponent },
9267
+ { type: PaymentViewService }
9268
+ ];
9269
+ PbaPaymentComponent.propDecorators = {
9270
+ pbaPayOrderRef: [{ type: Input }]
7460
9271
  };
7461
9272
 
7462
9273
  /**
7463
9274
  * @fileoverview added by tsickle
7464
9275
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
7465
9276
  */
7466
- // import { PbaPaymentComponent } from './components/pba-payment/pba-payment.component';
7467
9277
  class PaymentLibModule {
7468
9278
  }
7469
9279
  PaymentLibModule.decorators = [
@@ -7483,7 +9293,8 @@ PaymentLibModule.decorators = [
7483
9293
  PaymentLibComponent,
7484
9294
  PaymentListComponent,
7485
9295
  PaymentViewComponent,
7486
- // PbaPaymentComponent,
9296
+ PbaPaymentComponent,
9297
+ ContactDetailsComponent,
7487
9298
  ProcessRefundComponent,
7488
9299
  RefundListComponent,
7489
9300
  CardDetailsComponent,
@@ -7505,7 +9316,8 @@ PaymentLibModule.decorators = [
7505
9316
  ReportsComponent,
7506
9317
  ErrorBannerComponent,
7507
9318
  TableComponent,
7508
- RefundStatusComponent
9319
+ RefundStatusComponent,
9320
+ ServiceRequestComponent
7509
9321
  ],
7510
9322
  exports: [PaymentLibComponent],
7511
9323
  providers: [
@@ -7526,6 +9338,6 @@ PaymentLibModule.decorators = [
7526
9338
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
7527
9339
  */
7528
9340
 
7529
- export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as ɵba, AllocatePaymentsComponent as ɵv, CardDetailsComponent as ɵl, CaseTransactionsComponent as ɵy, ErrorBannerComponent as ɵbh, FeeSummaryComponent as ɵz, MarkUnidentifiedPaymentComponent as ɵq, MarkUnsolicitedPaymentComponent as ɵs, PageNotFoundComponent as ɵn, PaymentListComponent as ɵa, PaymentViewComponent as ɵe, PbaDetailsComponent as ɵx, ProcessRefundComponent as ɵi, ProcessedPaymentsComponent as ɵu, RefundListComponent as ɵk, RefundStatusComponent as ɵbj, ReportsComponent as ɵbf, StatusHistoryComponent as ɵo, TableComponent as ɵbi, UnprocessedPaymentsComponent as ɵt, CapitalizePipe as ɵbc, CcdHyphensPipe as ɵbb, keyValuePipe as ɵbd, SanitizeHtmlPipe as ɵbe, BulkScaningPaymentService as ɵr, CardDetailsService as ɵm, CaseTransactionsService as ɵw, OrderslistService as ɵh, PaymentListService as ɵb, PaymentViewService as ɵf, RefundsService as ɵj, ErrorHandlerService as ɵd, WebComponentHttpClient as ɵg, ConsoleLoggerService as ɵbk, LoggerService as ɵc, StatusHistoryService as ɵp, XlFileService as ɵbg };
9341
+ export { PaymentLibService, PaymentLibComponent, PaymentLibModule, AddRemissionComponent as ɵbc, AllocatePaymentsComponent as ɵx, CardDetailsComponent as ɵn, CaseTransactionsComponent as ɵba, ContactDetailsComponent as ɵj, ErrorBannerComponent as ɵbj, FeeSummaryComponent as ɵbb, MarkUnidentifiedPaymentComponent as ɵs, MarkUnsolicitedPaymentComponent as ɵu, PageNotFoundComponent as ɵp, PaymentListComponent as ɵb, PaymentViewComponent as ɵf, PbaDetailsComponent as ɵz, PbaPaymentComponent as ɵi, ProcessRefundComponent as ɵk, ProcessedPaymentsComponent as ɵw, RefundListComponent as ɵm, RefundStatusComponent as ɵbl, ReportsComponent as ɵbh, ServiceRequestComponent as ɵbn, StatusHistoryComponent as ɵq, TableComponent as ɵbk, UnprocessedPaymentsComponent as ɵv, CapitalizePipe as ɵbe, CcdHyphensPipe as ɵbd, keyValuePipe as ɵbf, SanitizeHtmlPipe as ɵbg, BulkScaningPaymentService as ɵt, CardDetailsService as ɵo, CaseTransactionsService as ɵy, NotificationService as ɵbm, OrderslistService as ɵa, PaymentListService as ɵc, PaymentViewService as ɵg, RefundsService as ɵl, ErrorHandlerService as ɵe, WebComponentHttpClient as ɵh, ConsoleLoggerService as ɵbo, LoggerService as ɵd, StatusHistoryService as ɵr, XlFileService as ɵbi };
7530
9342
 
7531
9343
  //# sourceMappingURL=hmcts-ccpay-web-component.js.map