@hmcts/ccpay-web-component 6.0.0-beta9 → 6.0.0

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 (317) hide show
  1. package/esm2022/hmcts-ccpay-web-component.mjs +5 -0
  2. package/esm2022/lib/components/add-remission/add-remission.component.mjs +1189 -0
  3. package/esm2022/lib/components/allocate-payments/allocate-payments.component.mjs +407 -0
  4. package/esm2022/lib/components/card-details/card-details.component.mjs +32 -0
  5. package/esm2022/lib/components/case-transactions/case-transactions.component.mjs +798 -0
  6. package/esm2022/lib/components/contact-details/contact-details.component.mjs +338 -0
  7. package/esm2022/lib/components/error-banner/error-banner.component.mjs +18 -0
  8. package/esm2022/lib/components/fee-summary/fee-summary.component.mjs +247 -0
  9. package/esm2022/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.mjs +195 -0
  10. package/esm2022/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.mjs +255 -0
  11. package/esm2022/lib/components/notification-preview/notification-preview.component.mjs +79 -0
  12. package/esm2022/lib/components/page-not-found.component.mjs +17 -0
  13. package/esm2022/lib/components/payment-list/payment-list.component.mjs +36 -0
  14. package/esm2022/lib/components/payment-view/payment-view.component.mjs +416 -0
  15. package/esm2022/lib/components/pba-details/pba-details.component.mjs +18 -0
  16. package/esm2022/lib/components/pba-payment/pba-payment.component.mjs +151 -0
  17. package/esm2022/lib/components/process-refund/process-refund.component.mjs +417 -0
  18. package/esm2022/lib/components/processed-payments/processed-payments.component.mjs +37 -0
  19. package/esm2022/lib/components/refund-list/refund-list.component.mjs +73 -0
  20. package/esm2022/lib/components/refund-status/refund-status.component.mjs +453 -0
  21. package/esm2022/lib/components/reports/reports.component.mjs +291 -0
  22. package/esm2022/lib/components/service-request/service-request.component.mjs +456 -0
  23. package/esm2022/lib/components/status-history/status-history.component.mjs +33 -0
  24. package/esm2022/lib/components/table/table.component.mjs +128 -0
  25. package/esm2022/lib/components/unprocessed-payments/unprocessed-payments.component.mjs +236 -0
  26. package/esm2022/lib/interfaces/AddRemissionRequest.mjs +17 -0
  27. package/esm2022/lib/interfaces/AddRetroRemissionRequest.mjs +9 -0
  28. package/esm2022/lib/interfaces/AllocatePaymentRequest.mjs +41 -0
  29. package/esm2022/lib/interfaces/IAllocationPaymentsRequest.mjs +20 -0
  30. package/esm2022/lib/interfaces/IBSPayments.mjs +2 -0
  31. package/esm2022/lib/interfaces/ICardDetails.mjs +2 -0
  32. package/esm2022/lib/interfaces/IFee.mjs +2 -0
  33. package/esm2022/lib/interfaces/INotificationPreview.mjs +2 -0
  34. package/esm2022/lib/interfaces/IOrderReferenceFee.mjs +2 -0
  35. package/esm2022/lib/interfaces/IPatchRefundAction.mjs +2 -0
  36. package/esm2022/lib/interfaces/IPayment.mjs +2 -0
  37. package/esm2022/lib/interfaces/IPaymentFailure.mjs +2 -0
  38. package/esm2022/lib/interfaces/IPaymentGroup.mjs +2 -0
  39. package/esm2022/lib/interfaces/IPaymentStatus.mjs +12 -0
  40. package/esm2022/lib/interfaces/IPaymentView.mjs +2 -0
  41. package/esm2022/lib/interfaces/IPayments.mjs +2 -0
  42. package/esm2022/lib/interfaces/IPutNotificationRequest.mjs +13 -0
  43. package/esm2022/lib/interfaces/IRefundAction.mjs +2 -0
  44. package/esm2022/lib/interfaces/IRefundContactDetails.mjs +2 -0
  45. package/esm2022/lib/interfaces/IRefundFee.mjs +2 -0
  46. package/esm2022/lib/interfaces/IRefundList.mjs +2 -0
  47. package/esm2022/lib/interfaces/IRefundReasons.mjs +2 -0
  48. package/esm2022/lib/interfaces/IRefundRejectReason.mjs +2 -0
  49. package/esm2022/lib/interfaces/IRefundStatus.mjs +2 -0
  50. package/esm2022/lib/interfaces/IRefundStatusHistory.mjs +2 -0
  51. package/esm2022/lib/interfaces/IRefundsNotifications.mjs +2 -0
  52. package/esm2022/lib/interfaces/IRemission.mjs +2 -0
  53. package/esm2022/lib/interfaces/IResubmitRefundRequest.mjs +13 -0
  54. package/esm2022/lib/interfaces/IStatusHistories.mjs +2 -0
  55. package/esm2022/lib/interfaces/IStatusHistory.mjs +2 -0
  56. package/esm2022/lib/interfaces/IserviceRequestCardPayment.mjs +11 -0
  57. package/esm2022/lib/interfaces/IserviceRequestPbaPayment.mjs +15 -0
  58. package/esm2022/lib/interfaces/IssueRefundRequest.mjs +11 -0
  59. package/esm2022/lib/interfaces/NotificationPreviewRequest.mjs +45 -0
  60. package/esm2022/lib/interfaces/PayhubAntennaRequest.mjs +12 -0
  61. package/esm2022/lib/interfaces/PaymentToPayhubRequest.mjs +15 -0
  62. package/esm2022/lib/interfaces/PostIssueRefundRetroRemission.mjs +9 -0
  63. package/esm2022/lib/interfaces/PostRefundRetroRemission.mjs +18 -0
  64. package/esm2022/lib/interfaces/RefundsRequest.mjs +9 -0
  65. package/esm2022/lib/interfaces/UnidentifiedPaymentsRequest.mjs +16 -0
  66. package/esm2022/lib/interfaces/UnsolicitedPaymentsRequest.mjs +22 -0
  67. package/esm2022/lib/payment-lib.component.mjs +288 -0
  68. package/esm2022/lib/payment-lib.module.mjs +187 -0
  69. package/esm2022/lib/payment-lib.service.mjs +49 -0
  70. package/esm2022/lib/pipes/capitalize.pipe.mjs +18 -0
  71. package/esm2022/lib/pipes/ccd-hyphens.pipe.mjs +22 -0
  72. package/esm2022/lib/pipes/key-value.pipe.mjs +23 -0
  73. package/esm2022/lib/pipes/sanitize-html.pipe.mjs +20 -0
  74. package/esm2022/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.mjs +87 -0
  75. package/esm2022/lib/services/card-details/card-details.service.mjs +39 -0
  76. package/esm2022/lib/services/case-transactions/case-transactions.service.mjs +39 -0
  77. package/esm2022/lib/services/notification/notification.service.mjs +70 -0
  78. package/esm2022/lib/services/orderslist.service.mjs +154 -0
  79. package/esm2022/lib/services/payment-list/payment-list.service.mjs +40 -0
  80. package/esm2022/lib/services/payment-view/payment-view.service.mjs +152 -0
  81. package/esm2022/lib/services/refunds/refunds.service.mjs +117 -0
  82. package/esm2022/lib/services/shared/error-handler.service.mjs +96 -0
  83. package/esm2022/lib/services/shared/httpclient/webcomponent.http.client.mjs +64 -0
  84. package/esm2022/lib/services/shared/logger/console-logger.service.mjs +43 -0
  85. package/esm2022/lib/services/shared/logger/logger.service.mjs +23 -0
  86. package/{esm2015/lib/services/status-history/status-history.service.js → esm2022/lib/services/status-history/status-history.service.mjs} +13 -51
  87. package/esm2022/lib/services/xl-file/xl-file.service.mjs +153 -0
  88. package/esm2022/public_api.mjs +7 -0
  89. package/fesm2022/hmcts-ccpay-web-component.mjs +7874 -0
  90. package/fesm2022/hmcts-ccpay-web-component.mjs.map +1 -0
  91. package/index.d.ts +5 -0
  92. package/lib/components/add-remission/add-remission.component.d.ts +59 -7
  93. package/lib/components/allocate-payments/allocate-payments.component.d.ts +5 -6
  94. package/lib/components/card-details/card-details.component.d.ts +4 -1
  95. package/lib/components/case-transactions/case-transactions.component.d.ts +9 -7
  96. package/lib/components/contact-details/contact-details.component.d.ts +52 -0
  97. package/lib/components/error-banner/error-banner.component.d.ts +3 -0
  98. package/lib/components/fee-summary/fee-summary.component.d.ts +4 -3
  99. package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.d.ts +4 -1
  100. package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.d.ts +4 -1
  101. package/lib/components/notification-preview/notification-preview.component.d.ts +30 -0
  102. package/lib/components/page-not-found.component.d.ts +3 -0
  103. package/lib/components/payment-list/payment-list.component.d.ts +4 -1
  104. package/lib/components/payment-view/payment-view.component.d.ts +46 -12
  105. package/lib/components/pba-details/pba-details.component.d.ts +3 -0
  106. package/lib/components/pba-payment/pba-payment.component.d.ts +9 -1
  107. package/lib/components/process-refund/process-refund.component.d.ts +22 -2
  108. package/lib/components/processed-payments/processed-payments.component.d.ts +3 -0
  109. package/lib/components/refund-list/refund-list.component.d.ts +3 -0
  110. package/lib/components/refund-status/refund-status.component.d.ts +50 -10
  111. package/lib/components/reports/reports.component.d.ts +10 -5
  112. package/lib/components/service-request/service-request.component.d.ts +42 -14
  113. package/lib/components/status-history/status-history.component.d.ts +4 -1
  114. package/lib/components/table/table.component.d.ts +5 -1
  115. package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts +4 -5
  116. package/lib/interfaces/IFee.d.ts +6 -0
  117. package/lib/interfaces/INotificationPreview.d.ts +27 -0
  118. package/lib/interfaces/IPayment.d.ts +3 -0
  119. package/lib/interfaces/IPaymentFailure.d.ts +13 -0
  120. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  121. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  122. package/lib/interfaces/IRefundFee.d.ts +7 -0
  123. package/lib/interfaces/IRefundList.d.ts +5 -0
  124. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  125. package/lib/interfaces/IRemission.d.ts +3 -0
  126. package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
  127. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +2 -1
  128. package/lib/interfaces/NotificationPreviewRequest.d.ts +24 -0
  129. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  130. package/lib/interfaces/PostRefundRetroRemission.d.ts +7 -1
  131. package/lib/payment-lib.component.d.ts +7 -5
  132. package/lib/payment-lib.module.d.ts +40 -0
  133. package/lib/payment-lib.service.d.ts +9 -3
  134. package/lib/pipes/capitalize.pipe.d.ts +3 -0
  135. package/lib/pipes/ccd-hyphens.pipe.d.ts +3 -0
  136. package/lib/pipes/key-value.pipe.d.ts +3 -0
  137. package/lib/pipes/sanitize-html.pipe.d.ts +3 -0
  138. package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.d.ts +4 -1
  139. package/lib/services/card-details/card-details.service.d.ts +3 -0
  140. package/lib/services/case-transactions/case-transactions.service.d.ts +4 -1
  141. package/lib/services/notification/notification.service.d.ts +21 -0
  142. package/lib/services/orderslist.service.d.ts +3 -0
  143. package/lib/services/payment-list/payment-list.service.d.ts +3 -0
  144. package/lib/services/payment-view/payment-view.service.d.ts +6 -1
  145. package/lib/services/refunds/refunds.service.d.ts +6 -1
  146. package/lib/services/shared/error-handler.service.d.ts +5 -2
  147. package/lib/services/shared/httpclient/webcomponent.http.client.d.ts +3 -0
  148. package/lib/services/shared/logger/console-logger.service.d.ts +6 -3
  149. package/lib/services/shared/logger/logger.service.d.ts +3 -0
  150. package/lib/services/status-history/status-history.service.d.ts +3 -0
  151. package/lib/services/xl-file/xl-file.service.d.ts +4 -0
  152. package/package.json +18 -14
  153. package/bundles/hmcts-ccpay-web-component.umd.js +0 -9664
  154. package/bundles/hmcts-ccpay-web-component.umd.js.map +0 -1
  155. package/bundles/hmcts-ccpay-web-component.umd.min.js +0 -2
  156. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +0 -1
  157. package/esm2015/hmcts-ccpay-web-component.js +0 -48
  158. package/esm2015/lib/components/add-remission/add-remission.component.js +0 -1083
  159. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +0 -692
  160. package/esm2015/lib/components/card-details/card-details.component.js +0 -71
  161. package/esm2015/lib/components/case-transactions/case-transactions.component.js +0 -1298
  162. package/esm2015/lib/components/error-banner/error-banner.component.js +0 -30
  163. package/esm2015/lib/components/fee-summary/fee-summary.component.js +0 -482
  164. package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +0 -342
  165. package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +0 -436
  166. package/esm2015/lib/components/page-not-found.component.js +0 -15
  167. package/esm2015/lib/components/payment-list/payment-list.component.js +0 -75
  168. package/esm2015/lib/components/payment-view/payment-view.component.js +0 -514
  169. package/esm2015/lib/components/pba-details/pba-details.component.js +0 -30
  170. package/esm2015/lib/components/pba-payment/pba-payment.component.js +0 -205
  171. package/esm2015/lib/components/process-refund/process-refund.component.js +0 -455
  172. package/esm2015/lib/components/processed-payments/processed-payments.component.js +0 -72
  173. package/esm2015/lib/components/refund-list/refund-list.component.js +0 -127
  174. package/esm2015/lib/components/refund-status/refund-status.component.js +0 -497
  175. package/esm2015/lib/components/reports/reports.component.js +0 -357
  176. package/esm2015/lib/components/service-request/service-request.component.js +0 -626
  177. package/esm2015/lib/components/status-history/status-history.component.js +0 -68
  178. package/esm2015/lib/components/table/table.component.js +0 -196
  179. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +0 -385
  180. package/esm2015/lib/interfaces/AddRemissionRequest.js +0 -37
  181. package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +0 -21
  182. package/esm2015/lib/interfaces/AllocatePaymentRequest.js +0 -68
  183. package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +0 -39
  184. package/esm2015/lib/interfaces/IBSPayments.js +0 -45
  185. package/esm2015/lib/interfaces/ICardDetails.js +0 -21
  186. package/esm2015/lib/interfaces/IFee.js +0 -53
  187. package/esm2015/lib/interfaces/IOrderReferenceFee.js +0 -25
  188. package/esm2015/lib/interfaces/IPatchRefundAction.js +0 -15
  189. package/esm2015/lib/interfaces/IPayment.js +0 -65
  190. package/esm2015/lib/interfaces/IPaymentGroup.js +0 -19
  191. package/esm2015/lib/interfaces/IPaymentStatus.js +0 -27
  192. package/esm2015/lib/interfaces/IPaymentView.js +0 -17
  193. package/esm2015/lib/interfaces/IPayments.js +0 -13
  194. package/esm2015/lib/interfaces/IRefundAction.js +0 -15
  195. package/esm2015/lib/interfaces/IRefundList.js +0 -29
  196. package/esm2015/lib/interfaces/IRefundReasons.js +0 -19
  197. package/esm2015/lib/interfaces/IRefundRejectReason.js +0 -15
  198. package/esm2015/lib/interfaces/IRefundStatus.js +0 -23
  199. package/esm2015/lib/interfaces/IRefundStatusHistory.js +0 -15
  200. package/esm2015/lib/interfaces/IRemission.js +0 -25
  201. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +0 -21
  202. package/esm2015/lib/interfaces/IStatusHistories.js +0 -19
  203. package/esm2015/lib/interfaces/IStatusHistory.js +0 -21
  204. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +0 -23
  205. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +0 -28
  206. package/esm2015/lib/interfaces/IssueRefundRequest.js +0 -25
  207. package/esm2015/lib/interfaces/PayhubAntennaRequest.js +0 -28
  208. package/esm2015/lib/interfaces/PaymentToPayhubRequest.js +0 -37
  209. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +0 -17
  210. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +0 -21
  211. package/esm2015/lib/interfaces/RefundsRequest.js +0 -21
  212. package/esm2015/lib/interfaces/UnidentifiedPaymentsRequest.js +0 -31
  213. package/esm2015/lib/interfaces/UnsolicitedPaymentsRequest.js +0 -43
  214. package/esm2015/lib/payment-lib.component.js +0 -275
  215. package/esm2015/lib/payment-lib.module.js +0 -99
  216. package/esm2015/lib/payment-lib.service.js +0 -80
  217. package/esm2015/lib/pipes/capitalize.pipe.js +0 -24
  218. package/esm2015/lib/pipes/ccd-hyphens.pipe.js +0 -29
  219. package/esm2015/lib/pipes/key-value.pipe.js +0 -30
  220. package/esm2015/lib/pipes/sanitize-html.pipe.js +0 -36
  221. package/esm2015/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +0 -180
  222. package/esm2015/lib/services/card-details/card-details.service.js +0 -76
  223. package/esm2015/lib/services/case-transactions/case-transactions.service.js +0 -76
  224. package/esm2015/lib/services/orderslist.service.js +0 -403
  225. package/esm2015/lib/services/payment-list/payment-list.service.js +0 -79
  226. package/esm2015/lib/services/payment-view/payment-view.service.js +0 -285
  227. package/esm2015/lib/services/refunds/refunds.service.js +0 -203
  228. package/esm2015/lib/services/shared/error-handler.service.js +0 -108
  229. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +0 -124
  230. package/esm2015/lib/services/shared/logger/console-logger.service.js +0 -67
  231. package/esm2015/lib/services/shared/logger/logger.service.js +0 -49
  232. package/esm2015/lib/services/xl-file/xl-file.service.js +0 -181
  233. package/esm2015/public_api.js +0 -11
  234. package/esm5/hmcts-ccpay-web-component.js +0 -48
  235. package/esm5/lib/components/add-remission/add-remission.component.js +0 -1168
  236. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +0 -745
  237. package/esm5/lib/components/card-details/card-details.component.js +0 -77
  238. package/esm5/lib/components/case-transactions/case-transactions.component.js +0 -1443
  239. package/esm5/lib/components/error-banner/error-banner.component.js +0 -36
  240. package/esm5/lib/components/fee-summary/fee-summary.component.js +0 -542
  241. package/esm5/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +0 -371
  242. package/esm5/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +0 -474
  243. package/esm5/lib/components/page-not-found.component.js +0 -17
  244. package/esm5/lib/components/payment-list/payment-list.component.js +0 -83
  245. package/esm5/lib/components/payment-view/payment-view.component.js +0 -602
  246. package/esm5/lib/components/pba-details/pba-details.component.js +0 -36
  247. package/esm5/lib/components/pba-payment/pba-payment.component.js +0 -222
  248. package/esm5/lib/components/process-refund/process-refund.component.js +0 -536
  249. package/esm5/lib/components/processed-payments/processed-payments.component.js +0 -83
  250. package/esm5/lib/components/refund-list/refund-list.component.js +0 -130
  251. package/esm5/lib/components/refund-status/refund-status.component.js +0 -558
  252. package/esm5/lib/components/reports/reports.component.js +0 -398
  253. package/esm5/lib/components/service-request/service-request.component.js +0 -702
  254. package/esm5/lib/components/status-history/status-history.component.js +0 -70
  255. package/esm5/lib/components/table/table.component.js +0 -229
  256. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +0 -434
  257. package/esm5/lib/interfaces/AddRemissionRequest.js +0 -32
  258. package/esm5/lib/interfaces/AddRetroRemissionRequest.js +0 -19
  259. package/esm5/lib/interfaces/AllocatePaymentRequest.js +0 -63
  260. package/esm5/lib/interfaces/IAllocationPaymentsRequest.js +0 -34
  261. package/esm5/lib/interfaces/IBSPayments.js +0 -45
  262. package/esm5/lib/interfaces/ICardDetails.js +0 -21
  263. package/esm5/lib/interfaces/IFee.js +0 -53
  264. package/esm5/lib/interfaces/IOrderReferenceFee.js +0 -25
  265. package/esm5/lib/interfaces/IPatchRefundAction.js +0 -15
  266. package/esm5/lib/interfaces/IPayment.js +0 -65
  267. package/esm5/lib/interfaces/IPaymentGroup.js +0 -19
  268. package/esm5/lib/interfaces/IPaymentStatus.js +0 -31
  269. package/esm5/lib/interfaces/IPaymentView.js +0 -17
  270. package/esm5/lib/interfaces/IPayments.js +0 -13
  271. package/esm5/lib/interfaces/IRefundAction.js +0 -15
  272. package/esm5/lib/interfaces/IRefundList.js +0 -29
  273. package/esm5/lib/interfaces/IRefundReasons.js +0 -19
  274. package/esm5/lib/interfaces/IRefundRejectReason.js +0 -15
  275. package/esm5/lib/interfaces/IRefundStatus.js +0 -23
  276. package/esm5/lib/interfaces/IRefundStatusHistory.js +0 -15
  277. package/esm5/lib/interfaces/IRemission.js +0 -25
  278. package/esm5/lib/interfaces/IResubmitRefundRequest.js +0 -19
  279. package/esm5/lib/interfaces/IStatusHistories.js +0 -19
  280. package/esm5/lib/interfaces/IStatusHistory.js +0 -21
  281. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +0 -22
  282. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +0 -25
  283. package/esm5/lib/interfaces/IssueRefundRequest.js +0 -22
  284. package/esm5/lib/interfaces/PayhubAntennaRequest.js +0 -25
  285. package/esm5/lib/interfaces/PaymentToPayhubRequest.js +0 -34
  286. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +0 -16
  287. package/esm5/lib/interfaces/PostRefundRetroRemission.js +0 -19
  288. package/esm5/lib/interfaces/RefundsRequest.js +0 -19
  289. package/esm5/lib/interfaces/UnidentifiedPaymentsRequest.js +0 -28
  290. package/esm5/lib/interfaces/UnsolicitedPaymentsRequest.js +0 -37
  291. package/esm5/lib/payment-lib.component.js +0 -244
  292. package/esm5/lib/payment-lib.module.js +0 -103
  293. package/esm5/lib/payment-lib.service.js +0 -111
  294. package/esm5/lib/pipes/capitalize.pipe.js +0 -32
  295. package/esm5/lib/pipes/ccd-hyphens.pipe.js +0 -37
  296. package/esm5/lib/pipes/key-value.pipe.js +0 -37
  297. package/esm5/lib/pipes/sanitize-html.pipe.js +0 -39
  298. package/esm5/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +0 -218
  299. package/esm5/lib/services/card-details/card-details.service.js +0 -76
  300. package/esm5/lib/services/case-transactions/case-transactions.service.js +0 -76
  301. package/esm5/lib/services/orderslist.service.js +0 -531
  302. package/esm5/lib/services/payment-list/payment-list.service.js +0 -80
  303. package/esm5/lib/services/payment-view/payment-view.service.js +0 -385
  304. package/esm5/lib/services/refunds/refunds.service.js +0 -243
  305. package/esm5/lib/services/shared/error-handler.service.js +0 -119
  306. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +0 -154
  307. package/esm5/lib/services/shared/logger/console-logger.service.js +0 -88
  308. package/esm5/lib/services/shared/logger/logger.service.js +0 -68
  309. package/esm5/lib/services/status-history/status-history.service.js +0 -80
  310. package/esm5/lib/services/xl-file/xl-file.service.js +0 -221
  311. package/esm5/public_api.js +0 -11
  312. package/fesm2015/hmcts-ccpay-web-component.js +0 -8525
  313. package/fesm2015/hmcts-ccpay-web-component.js.map +0 -1
  314. package/fesm5/hmcts-ccpay-web-component.js +0 -9773
  315. package/fesm5/hmcts-ccpay-web-component.js.map +0 -1
  316. package/hmcts-ccpay-web-component.d.ts +0 -43
  317. package/hmcts-ccpay-web-component.metadata.json +0 -1
@@ -1,558 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Component, Input } from '@angular/core';
6
- import { RefundsService } from '../../services/refunds/refunds.service';
7
- import { FormBuilder, Validators, FormControl } from '@angular/forms';
8
- import { PaymentViewService } from '../../services/payment-view/payment-view.service';
9
- import { Router } from '@angular/router';
10
- import { OrderslistService } from '../../services/orderslist.service';
11
- import { IResubmitRefundRequest } from '../../interfaces/IResubmitRefundRequest';
12
- import { PaymentLibComponent } from '../../payment-lib.component';
13
- /** @type {?} */
14
- var BS_ENABLE_FLAG = 'bulk-scan-enabling-fe';
15
- var RefundStatusComponent = /** @class */ (function () {
16
- function RefundStatusComponent(formBuilder, refundService, paymentLibComponent, paymentViewService, router, OrderslistService) {
17
- var _this = this;
18
- this.formBuilder = formBuilder;
19
- this.refundService = refundService;
20
- this.paymentLibComponent = paymentLibComponent;
21
- this.paymentViewService = paymentViewService;
22
- this.router = router;
23
- this.OrderslistService = OrderslistService;
24
- this.LOGGEDINUSERROLES = [];
25
- this.rejectedRefundList = [];
26
- this.approvalStatus = 'Sent for approval';
27
- this.rejectStatus = 'Update required';
28
- // approvalStatus = 'sent for approval';
29
- // rejectStatus = 'sent back';
30
- this.errorMessage = null;
31
- this.refundButtonState = '';
32
- this.isAmountEmpty = false;
33
- this.isReasonEmpty = false;
34
- this.amountHasError = false;
35
- this.isRemissionLessThanFeeError = false;
36
- this.refundHasError = false;
37
- this.refundReasons = [];
38
- this.isRefundBtnDisabled = true;
39
- this.isLastUpdatedByCurrentUser = true;
40
- this.isProcessRefund = false;
41
- this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
42
- this.check4AllowedRoles2AccessRefund = (/**
43
- * @return {?}
44
- */
45
- function () {
46
- return _this.allowedRolesToAccessRefund.some((/**
47
- * @param {?} role
48
- * @return {?}
49
- */
50
- function (role) {
51
- return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
52
- }));
53
- });
54
- }
55
- /**
56
- * @return {?}
57
- */
58
- RefundStatusComponent.prototype.ngOnInit = /**
59
- * @return {?}
60
- */
61
- function () {
62
- var _this = this;
63
- // if (this.check4AllowedRoles2AccessRefund()) {
64
- this.resetRemissionForm([false, false, false, false], 'All');
65
- this.bsPaymentDcnNumber = this.paymentLibComponent.bspaymentdcn;
66
- this.isCallFromRefundList = this.paymentLibComponent.isCallFromRefundList;
67
- // if(this.paymentLibComponent.isFromRefundStatusPage) {
68
- // this.viewName = 'reviewandsubmitview';
69
- // }
70
- if (this.paymentLibComponent.isRefundStatusView) {
71
- this.viewName = 'refundview';
72
- this.OrderslistService.getRefundView().subscribe((/**
73
- * @param {?} data
74
- * @return {?}
75
- */
76
- function (data) { return _this.refundlist = data; }));
77
- this.OrderslistService.getCCDCaseNumberforRefund.subscribe((/**
78
- * @param {?} data
79
- * @return {?}
80
- */
81
- function (data) { return _this.ccdCaseNumber = data; }));
82
- }
83
- else {
84
- this.viewName = 'refundstatuslist';
85
- this.refundService.getRefundStatusList(this.ccdCaseNumber).subscribe((/**
86
- * @param {?} refundList
87
- * @return {?}
88
- */
89
- function (refundList) {
90
- _this.rejectedRefundList = refundList['refund_list'];
91
- })),
92
- (/**
93
- * @param {?} error
94
- * @return {?}
95
- */
96
- function (error) {
97
- _this.errorMessage = error.replace(/"/g, "");
98
- });
99
- }
100
- this.refundStatusForm = this.formBuilder.group({
101
- amount: new FormControl('', Validators.compose([
102
- Validators.required,
103
- Validators.pattern('^[0-9]+(\.[0-9]{1,2})?$')
104
- ])),
105
- refundReason: new FormControl('', Validators.compose([Validators.required])),
106
- reason: new FormControl()
107
- });
108
- if (this.refundlist !== undefined) {
109
- this.getRefundsStatusHistoryList();
110
- if (this.LOGGEDINUSERROLES.some((/**
111
- * @param {?} i
112
- * @return {?}
113
- */
114
- function (i) { return i.includes('payments-refund-approver'); }))) {
115
- this.isProcessRefund = true;
116
- this.refundButtonState = this.refundlist.refund_status.name;
117
- return;
118
- }
119
- if (this.LOGGEDINUSERROLES.some((/**
120
- * @param {?} i
121
- * @return {?}
122
- */
123
- function (i) { return i.includes('payments-refund'); }))) {
124
- this.isProcessRefund = false;
125
- this.refundButtonState = this.refundlist.refund_status.name;
126
- }
127
- }
128
- //}
129
- };
130
- /**
131
- * @return {?}
132
- */
133
- RefundStatusComponent.prototype.getRefundsStatusHistoryList = /**
134
- * @return {?}
135
- */
136
- function () {
137
- var _this = this;
138
- if (this.refundlist !== undefined) {
139
- this.refundService.getRefundStatusHistory(this.refundlist.refund_reference).subscribe((/**
140
- * @param {?} statusHistoryList
141
- * @return {?}
142
- */
143
- function (statusHistoryList) {
144
- _this.refundStatusHistories = statusHistoryList.status_history_dto_list;
145
- _this.isLastUpdatedByCurrentUser = statusHistoryList.last_updated_by_current_user;
146
- })),
147
- (/**
148
- * @param {?} error
149
- * @return {?}
150
- */
151
- function (error) {
152
- _this.errorMessage = error.replace(/"/g, "");
153
- });
154
- }
155
- };
156
- /**
157
- * @param {?} refundlist
158
- * @param {?} navigationpage
159
- * @return {?}
160
- */
161
- RefundStatusComponent.prototype.goToRefundView = /**
162
- * @param {?} refundlist
163
- * @param {?} navigationpage
164
- * @return {?}
165
- */
166
- function (refundlist, navigationpage) {
167
- this.OrderslistService.setRefundView(refundlist);
168
- this.OrderslistService.setCCDCaseNumber(this.ccdCaseNumber);
169
- this.paymentLibComponent.viewName = 'refundstatuslist';
170
- this.paymentLibComponent.isRefundStatusView = true;
171
- this.refundlist = refundlist;
172
- this.OrderslistService.setnavigationPage(navigationpage);
173
- };
174
- /**
175
- * @return {?}
176
- */
177
- RefundStatusComponent.prototype.loadCaseTransactionPage = /**
178
- * @return {?}
179
- */
180
- function () {
181
- this.OrderslistService.setnavigationPage('casetransactions');
182
- this.OrderslistService.setisFromServiceRequestPage(false);
183
- this.paymentLibComponent.viewName = 'case-transactions';
184
- this.paymentLibComponent.ISBSENABLE = true;
185
- this.paymentLibComponent.isRefundStatusView = false;
186
- };
187
- /**
188
- * @return {?}
189
- */
190
- RefundStatusComponent.prototype.loadRefundListPage = /**
191
- * @return {?}
192
- */
193
- function () {
194
- var _this = this;
195
- this.OrderslistService.getnavigationPageValue().subscribe((/**
196
- * @param {?} data
197
- * @return {?}
198
- */
199
- function (data) { return _this.navigationpage = data; }));
200
- if (this.navigationpage === 'casetransactions') {
201
- this.loadCaseTransactionPage();
202
- }
203
- else {
204
- this.paymentLibComponent.viewName = 'refund-list';
205
- }
206
- };
207
- /**
208
- * @param {?} event
209
- * @return {?}
210
- */
211
- RefundStatusComponent.prototype.gotoReviewDetailsPage = /**
212
- * @param {?} event
213
- * @return {?}
214
- */
215
- function (event) {
216
- // event.preventDefault();
217
- this.errorMessage = false;
218
- this.paymentLibComponent.isRefundStatusView = true;
219
- this.ngOnInit();
220
- };
221
- /**
222
- * @return {?}
223
- */
224
- RefundStatusComponent.prototype.gotoReviewAndReSubmitPage = /**
225
- * @return {?}
226
- */
227
- function () {
228
- var _this = this;
229
- this.viewName = 'reviewandsubmitview';
230
- this.oldRefundReason = this.refundlist.reason;
231
- this.changedAmount = this.refundlist.amount;
232
- this.refundreason = this.refundStatusHistories.filter((/**
233
- * @param {?} data
234
- * @return {?}
235
- */
236
- function (data) { return data.status.toLowerCase() === 'update required'; }))[0].notes;
237
- this.refundService.getRefundReasons().subscribe((/**
238
- * @param {?} refundReasons
239
- * @return {?}
240
- */
241
- function (refundReasons) {
242
- _this.refundReasons = refundReasons;
243
- }));
244
- };
245
- /**
246
- * @return {?}
247
- */
248
- RefundStatusComponent.prototype.gotoRefundReasonPage = /**
249
- * @return {?}
250
- */
251
- function () {
252
- this.isRefundBtnDisabled = false;
253
- this.paymentLibComponent.REFUNDLIST = "true";
254
- this.paymentLibComponent.isFromRefundStatusPage = true;
255
- this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
256
- this.errorMessage = false;
257
- this.viewName = 'issuerefund';
258
- };
259
- /**
260
- * @return {?}
261
- */
262
- RefundStatusComponent.prototype.gotoAmountPage = /**
263
- * @return {?}
264
- */
265
- function () {
266
- this.errorMessage = false;
267
- this.paymentLibComponent.REFUNDLIST = "true";
268
- this.isRefundBtnDisabled = false;
269
- this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
270
- this.paymentLibComponent.isFromRefundStatusPage = true;
271
- this.viewName = 'processretroremissonpage';
272
- };
273
- /**
274
- * @return {?}
275
- */
276
- RefundStatusComponent.prototype.goToReviewAndSubmitView = /**
277
- * @return {?}
278
- */
279
- function () {
280
- /** @type {?} */
281
- var remissionctrls = this.refundStatusForm.controls;
282
- if (this.refundStatusForm.dirty) {
283
- if (remissionctrls['amount'].value == '') {
284
- this.resetRemissionForm([true, false, false, false], 'amount');
285
- }
286
- else if (remissionctrls['amount'].value != '' && remissionctrls['amount'].invalid) {
287
- this.resetRemissionForm([false, true, false, false], 'amount');
288
- }
289
- else if (remissionctrls['reason'].value == '') {
290
- this.resetRemissionForm([false, false, false, true], 'reason');
291
- }
292
- else {
293
- this.refundlist.reason = remissionctrls['reason'].value;
294
- this.viewName = 'reviewandsubmitview';
295
- }
296
- }
297
- };
298
- /**
299
- * @param {?} val
300
- * @param {?} field
301
- * @return {?}
302
- */
303
- RefundStatusComponent.prototype.resetRemissionForm = /**
304
- * @param {?} val
305
- * @param {?} field
306
- * @return {?}
307
- */
308
- function (val, field) {
309
- if (field === 'All') {
310
- this.isAmountEmpty = val[0];
311
- this.amountHasError = val[1];
312
- this.isRemissionLessThanFeeError = val[2];
313
- this.isReasonEmpty = val[3];
314
- }
315
- else if (field === 'amount' || field === 'All') {
316
- this.isAmountEmpty = val[0];
317
- this.amountHasError = val[1];
318
- this.isRemissionLessThanFeeError = val[2];
319
- }
320
- else if (field === 'reason' || field === 'All') {
321
- this.isReasonEmpty = val[3];
322
- }
323
- };
324
- /**
325
- * @param {?} key
326
- * @param {?} value
327
- * @return {?}
328
- */
329
- RefundStatusComponent.prototype.selectRadioButton = /**
330
- * @param {?} key
331
- * @param {?} value
332
- * @return {?}
333
- */
334
- function (key, value) {
335
- this.refundHasError = false;
336
- this.selectedRefundReason = key;
337
- if (key === 'Other') {
338
- this.refundHasError = false;
339
- this.refundReason = key;
340
- }
341
- };
342
- /**
343
- * @param {?} refundListReason
344
- * @return {?}
345
- */
346
- RefundStatusComponent.prototype.getRefundListReason = /**
347
- * @param {?} refundListReason
348
- * @return {?}
349
- */
350
- function (refundListReason) {
351
- if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
352
- this.refundlist.reason = refundListReason.reason;
353
- this.refundCode = refundListReason.code;
354
- }
355
- else {
356
- this.isRefundBtnDisabled = true;
357
- }
358
- this.viewName = 'reviewandsubmitview';
359
- this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
360
- };
361
- /**
362
- * @param {?} amount
363
- * @return {?}
364
- */
365
- RefundStatusComponent.prototype.getRefundAmount = /**
366
- * @param {?} amount
367
- * @return {?}
368
- */
369
- function (amount) {
370
- if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
371
- if (amount > 0) {
372
- this.changedAmount = amount;
373
- // this.refundlist.amount = amount;
374
- }
375
- }
376
- else {
377
- this.isRefundBtnDisabled = true;
378
- }
379
- this.viewName = 'reviewandsubmitview';
380
- this.paymentLibComponent.CCD_CASE_NUMBER = this.ccdCaseNumber;
381
- };
382
- /**
383
- * @return {?}
384
- */
385
- RefundStatusComponent.prototype.gotoReviewRefundConfirmationPage = /**
386
- * @return {?}
387
- */
388
- function () {
389
- var _this = this;
390
- if (this.oldRefundReason === this.refundlist.reason) {
391
- this.refundCode = '';
392
- }
393
- /** @type {?} */
394
- var resubmitRequest = new IResubmitRefundRequest(this.refundCode, this.changedAmount);
395
- this.refundService.patchResubmitRefund(resubmitRequest, this.refundlist.refund_reference).subscribe((/**
396
- * @param {?} response
397
- * @return {?}
398
- */
399
- function (response) {
400
- if (JSON.parse(response)) {
401
- _this.refundReference = JSON.parse(response).refund_reference;
402
- _this.refundAmount = JSON.parse(response).refund_amount;
403
- _this.viewName = 'reviewrefundconfirmationpage';
404
- }
405
- }), (/**
406
- * @param {?} error
407
- * @return {?}
408
- */
409
- function (error) {
410
- _this.errorMessage = error.replace(/"/g, "");
411
- }));
412
- };
413
- /**
414
- * @param {?} refundReference
415
- * @param {?} refundList
416
- * @return {?}
417
- */
418
- RefundStatusComponent.prototype.goToRefundProcessComponent = /**
419
- * @param {?} refundReference
420
- * @param {?} refundList
421
- * @return {?}
422
- */
423
- function (refundReference, refundList) {
424
- this.paymentLibComponent.refundlistsource = refundList;
425
- this.paymentLibComponent.refundReference = refundReference;
426
- this.paymentLibComponent.viewName = 'process-refund';
427
- };
428
- RefundStatusComponent.decorators = [
429
- { type: Component, args: [{
430
- selector: 'ccpay-refund-status',
431
- 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\">\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 pagesize\">\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",
432
- 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}.pagesize{margin:2em;width:97%}.govuk-link{cursor:pointer}"]
433
- }] }
434
- ];
435
- /** @nocollapse */
436
- RefundStatusComponent.ctorParameters = function () { return [
437
- { type: FormBuilder },
438
- { type: RefundsService },
439
- { type: PaymentLibComponent },
440
- { type: PaymentViewService },
441
- { type: Router },
442
- { type: OrderslistService }
443
- ]; };
444
- RefundStatusComponent.propDecorators = {
445
- LOGGEDINUSERROLES: [{ type: Input, args: ['LOGGEDINUSERROLES',] }],
446
- isOldPcipalOff: [{ type: Input }],
447
- isNewPcipalOff: [{ type: Input }],
448
- ccdCaseNumber: [{ type: Input }],
449
- isTurnOff: [{ type: Input }]
450
- };
451
- return RefundStatusComponent;
452
- }());
453
- export { RefundStatusComponent };
454
- if (false) {
455
- /** @type {?} */
456
- RefundStatusComponent.prototype.LOGGEDINUSERROLES;
457
- /** @type {?} */
458
- RefundStatusComponent.prototype.isOldPcipalOff;
459
- /** @type {?} */
460
- RefundStatusComponent.prototype.isNewPcipalOff;
461
- /** @type {?} */
462
- RefundStatusComponent.prototype.ccdCaseNumber;
463
- /** @type {?} */
464
- RefundStatusComponent.prototype.isTurnOff;
465
- /** @type {?} */
466
- RefundStatusComponent.prototype.refundStatusForm;
467
- /** @type {?} */
468
- RefundStatusComponent.prototype.selectedRefundReason;
469
- /** @type {?} */
470
- RefundStatusComponent.prototype.rejectedRefundList;
471
- /** @type {?} */
472
- RefundStatusComponent.prototype.approvalStatus;
473
- /** @type {?} */
474
- RefundStatusComponent.prototype.rejectStatus;
475
- /** @type {?} */
476
- RefundStatusComponent.prototype.errorMessage;
477
- /** @type {?} */
478
- RefundStatusComponent.prototype.viewName;
479
- /** @type {?} */
480
- RefundStatusComponent.prototype.refundReason;
481
- /** @type {?} */
482
- RefundStatusComponent.prototype.refundlist;
483
- /** @type {?} */
484
- RefundStatusComponent.prototype.bsPaymentDcnNumber;
485
- /** @type {?} */
486
- RefundStatusComponent.prototype.isCallFromRefundList;
487
- /** @type {?} */
488
- RefundStatusComponent.prototype.refundButtonState;
489
- /** @type {?} */
490
- RefundStatusComponent.prototype.isAmountEmpty;
491
- /** @type {?} */
492
- RefundStatusComponent.prototype.isReasonEmpty;
493
- /** @type {?} */
494
- RefundStatusComponent.prototype.amountHasError;
495
- /** @type {?} */
496
- RefundStatusComponent.prototype.isRemissionLessThanFeeError;
497
- /** @type {?} */
498
- RefundStatusComponent.prototype.refundHasError;
499
- /** @type {?} */
500
- RefundStatusComponent.prototype.refundReasons;
501
- /** @type {?} */
502
- RefundStatusComponent.prototype.refundStatusHistories;
503
- /** @type {?} */
504
- RefundStatusComponent.prototype.refundReference;
505
- /** @type {?} */
506
- RefundStatusComponent.prototype.refundAmount;
507
- /** @type {?} */
508
- RefundStatusComponent.prototype.refundCode;
509
- /** @type {?} */
510
- RefundStatusComponent.prototype.isRefundBtnDisabled;
511
- /** @type {?} */
512
- RefundStatusComponent.prototype.oldRefundReason;
513
- /** @type {?} */
514
- RefundStatusComponent.prototype.refundreason;
515
- /** @type {?} */
516
- RefundStatusComponent.prototype.navigationpage;
517
- /** @type {?} */
518
- RefundStatusComponent.prototype.isLastUpdatedByCurrentUser;
519
- /** @type {?} */
520
- RefundStatusComponent.prototype.isProcessRefund;
521
- /** @type {?} */
522
- RefundStatusComponent.prototype.changedAmount;
523
- /** @type {?} */
524
- RefundStatusComponent.prototype.allowedRolesToAccessRefund;
525
- /** @type {?} */
526
- RefundStatusComponent.prototype.check4AllowedRoles2AccessRefund;
527
- /**
528
- * @type {?}
529
- * @private
530
- */
531
- RefundStatusComponent.prototype.formBuilder;
532
- /**
533
- * @type {?}
534
- * @private
535
- */
536
- RefundStatusComponent.prototype.refundService;
537
- /**
538
- * @type {?}
539
- * @private
540
- */
541
- RefundStatusComponent.prototype.paymentLibComponent;
542
- /**
543
- * @type {?}
544
- * @private
545
- */
546
- RefundStatusComponent.prototype.paymentViewService;
547
- /**
548
- * @type {?}
549
- * @private
550
- */
551
- RefundStatusComponent.prototype.router;
552
- /**
553
- * @type {?}
554
- * @private
555
- */
556
- RefundStatusComponent.prototype.OrderslistService;
557
- }
558
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmdW5kLXN0YXR1cy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3JlZnVuZC1zdGF0dXMvcmVmdW5kLXN0YXR1cy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUN4RSxPQUFPLEVBQUUsV0FBVyxFQUFhLFVBQVUsRUFBRSxXQUFXLEVBQXFCLE1BQU0sZ0JBQWdCLENBQUM7QUFFcEcsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sa0RBQWtELENBQUM7QUFDdEYsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGlCQUFpQixDQUFDO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