@justifi/webcomponents 5.5.0 → 5.6.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 (497) hide show
  1. package/dist/cjs/{Refund-DpKGhW3o.js → Refund-CpurRc4w.js} +79 -0
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  3. package/dist/cjs/{badge-BXpCpcer.js → badge-DwSZ83Bm.js} +1 -1
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
  5. package/dist/cjs/bank-account-form_9.cjs.entry.js +6 -6
  6. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  7. package/dist/cjs/{button-KWTLx2LP.js → button-Cp4u5YgP.js} +1 -1
  8. package/dist/cjs/{check-pkg-version-CLsX6cK5.js → check-pkg-version-C4d9pl8G.js} +1 -1
  9. package/dist/cjs/{checkout.service-r90INf2g.js → checkout.service-DP9FnXBx.js} +1 -1
  10. package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -9
  11. package/dist/cjs/{payouts-list-params-state-Cmfy_CND.js → checkouts-list-params-state-DX4jg37H.js} +1 -1
  12. package/dist/cjs/{checkouts-table-5jU4JUcM.js → checkouts-table-nsXjlcI1.js} +2 -2
  13. package/dist/cjs/custom-popper_4.cjs.entry.js +8 -8
  14. package/dist/cjs/{dispute.service-CGgfmGU-.js → dispute.service-F-M8EJxq.js} +1 -1
  15. package/dist/cjs/{event-types-CJapDsYA.js → event-types-CjInBN20.js} +2 -2
  16. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  17. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  18. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  19. package/dist/cjs/{form-control-error-text-D19AMaOO.js → form-control-error-text-NbHDc1JL.js} +1 -1
  20. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  21. package/dist/cjs/{form-control-help-text-CbrDvt9D.js → form-control-help-text-bc3qGHAG.js} +1 -1
  22. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  23. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  24. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  25. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  26. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  27. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  28. package/dist/cjs/{get-payment-details-CKg1Lb3_.js → get-payment-details-DQyJtwTw.js} +1 -1
  29. package/dist/cjs/get-payout-csv-Jr_0DmmY.js +24 -0
  30. package/dist/cjs/{get-subaccounts-YlFT-fBr.js → get-subaccounts-zwxhG-O3.js} +1 -1
  31. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  32. package/dist/cjs/{header-1-ZNnpq6yT.js → header-1-kwWMtg3s.js} +1 -1
  33. package/dist/cjs/{header-3-D6LxdW_A.js → header-3-CNWIH9ZU.js} +1 -1
  34. package/dist/cjs/{iframe-input-styles-state-CQL59u0d.js → iframe-input-styles-state-jHHRvqzM.js} +1 -1
  35. package/dist/cjs/iframe-input.cjs.entry.js +8 -8
  36. package/dist/cjs/{index-DtkhH7sB.js → index-BRQfozbS.js} +1 -1
  37. package/dist/cjs/{index-DhcqPIbT.js → index-DzQdh5ij.js} +1 -1
  38. package/dist/cjs/{insurance-state-q5eNmjIK.js → insurance-state-DbXkNYds.js} +2 -2
  39. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -4
  40. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +3 -3
  41. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
  43. package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
  44. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  45. package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -7
  46. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  47. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  48. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
  49. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  50. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  51. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
  52. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +11 -11
  53. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  54. package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -8
  55. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -7
  57. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  58. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +195 -0
  60. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  61. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  62. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -8
  63. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +203 -0
  64. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  65. package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -12
  66. package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
  67. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +5 -5
  68. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  69. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +7 -7
  70. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +8 -8
  71. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +6 -6
  72. package/dist/cjs/justifi-terminals-list.cjs.entry.js +10 -10
  73. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +7 -7
  74. package/dist/cjs/loader.cjs.js +2 -2
  75. package/dist/cjs/{package-5B4P3NpD.js → package-S6wVKDKx.js} +1 -1
  76. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  77. package/dist/cjs/payment-details-core.cjs.entry.js +13 -13
  78. package/dist/cjs/{payment.service-BrHUGHYs.js → payment.service-BstXaxH5.js} +5 -1
  79. package/dist/cjs/payments-list-core.cjs.entry.js +10 -10
  80. package/dist/cjs/{terminal-orders-list-params-state-Cmfy_CND.js → payments-list-params-state-DX4jg37H.js} +1 -1
  81. package/dist/cjs/{payments-status-DAzq_Z13.js → payments-status-CQq7KrHL.js} +2 -2
  82. package/dist/cjs/{payments-table-BEpL6oJQ.js → payments-table-ClOxMnZ8.js} +2 -2
  83. package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
  84. package/dist/cjs/{get-payout-csv-DD9C5yMw.js → payout.service-DWOtnFdn.js} +7 -22
  85. package/dist/cjs/payouts-list-core.cjs.entry.js +10 -10
  86. package/dist/cjs/{payments-list-params-state-Cmfy_CND.js → payouts-list-params-state-DX4jg37H.js} +1 -1
  87. package/dist/cjs/{payouts-status-CYrKPRld.js → payouts-status-BdfV3jvX.js} +2 -2
  88. package/dist/cjs/{payouts-table-Bbi23U5v.js → payouts-table-Bo3pLf4Z.js} +2 -2
  89. package/dist/cjs/{skeleton-C59M0QK2.js → skeleton-BXVndBVC.js} +1 -1
  90. package/dist/cjs/{spinner-736baCoH.js → spinner-CSH2OUiV.js} +1 -1
  91. package/dist/cjs/{styled-host-JifnTMIV.js → styled-host-CzJ8Ux1t.js} +1 -1
  92. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  93. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +9 -9
  94. package/dist/cjs/{checkouts-list-params-state-Cmfy_CND.js → terminal-orders-list-params-state-DX4jg37H.js} +1 -1
  95. package/dist/cjs/{terminal-orders-table-w4Yaf83b.js → terminal-orders-table-CXmVc7uU.js} +3 -3
  96. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  97. package/dist/cjs/{terminal.service-BjSo5Cm4.js → terminal.service-ghxwDinY.js} +1 -1
  98. package/dist/cjs/terminals-list-core.cjs.entry.js +9 -9
  99. package/dist/cjs/terminals-list-params-state-DX4jg37H.js +22 -0
  100. package/dist/cjs/{terminals-table-F6pkR97i.js → terminals-table-vYbTPOpy.js} +2 -2
  101. package/dist/cjs/{utils-D3seTk2e.js → utils-DxbncJhj.js} +1 -1
  102. package/dist/cjs/webcomponents.cjs.js +3 -3
  103. package/dist/collection/actions/payment/get-payment-transactions.js +34 -0
  104. package/dist/collection/actions/payout/get-payout-transactions.js +34 -0
  105. package/dist/collection/api/PaymentBalanceTransaction.js +45 -0
  106. package/dist/collection/api/PayoutBalanceTransaction.js +35 -0
  107. package/dist/collection/api/index.js +2 -0
  108. package/dist/collection/api/services/payment.service.js +4 -0
  109. package/dist/collection/api/services/payout.service.js +5 -0
  110. package/dist/collection/collection-manifest.json +3 -1
  111. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  112. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  113. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  114. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  115. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  116. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  117. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  118. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  119. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  120. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  121. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  122. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  124. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  127. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  128. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  129. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  130. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  131. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  132. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +248 -0
  133. package/dist/collection/components/payment-transactions-list/payment-transactions-table.js +45 -0
  134. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  135. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  136. package/dist/collection/components/payments-list/payments-list.js +1 -1
  137. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  138. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +250 -0
  139. package/dist/collection/components/payout-transactions-list/payout-transactions-table.js +47 -0
  140. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  141. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  142. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  143. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  144. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  145. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  146. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  147. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  148. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  149. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  150. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  151. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  152. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  153. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  154. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  155. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  156. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  158. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  160. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  163. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  164. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  165. package/dist/docs.json +335 -5
  166. package/dist/esm/{Refund-t_P1yy9d.js → Refund-DOvd7RJp.js} +78 -1
  167. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  168. package/dist/esm/{badge-C4TzL9CB.js → badge-D5PvLnZT.js} +2 -2
  169. package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
  170. package/dist/esm/bank-account-form_9.entry.js +7 -7
  171. package/dist/esm/business-details-core.entry.js +5 -5
  172. package/dist/esm/{button-CI85Rqy5.js → button-wgHJf7hN.js} +2 -2
  173. package/dist/esm/{check-pkg-version-Wd4E_Njt.js → check-pkg-version-iIBw3nCc.js} +1 -1
  174. package/dist/esm/{checkout.service-4tnXBKGq.js → checkout.service-92ld4w-G.js} +1 -1
  175. package/dist/esm/checkouts-list-core.entry.js +10 -10
  176. package/dist/esm/{checkouts-list-params-state-Gbxdxjoi.js → checkouts-list-params-state-qgJxi6iW.js} +1 -1
  177. package/dist/esm/{checkouts-table-CHM4YCCZ.js → checkouts-table-DQfjKgR-.js} +3 -3
  178. package/dist/esm/custom-popper_4.entry.js +9 -9
  179. package/dist/esm/{dispute.service-Bwh8pBe9.js → dispute.service-H2Oaq2af.js} +1 -1
  180. package/dist/esm/{event-types-CooIFpFI.js → event-types-Dv-I6YqZ.js} +3 -3
  181. package/dist/esm/form-alert_5.entry.js +2 -2
  182. package/dist/esm/form-control-checkbox.entry.js +6 -6
  183. package/dist/esm/form-control-date.entry.js +5 -5
  184. package/dist/esm/{form-control-error-text-3q5yVuMQ.js → form-control-error-text-nyeinPVQ.js} +2 -2
  185. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  186. package/dist/esm/{form-control-help-text-BplkZkPF.js → form-control-help-text-QhxeQeTV.js} +2 -2
  187. package/dist/esm/form-control-help-text.entry.js +1 -1
  188. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
  189. package/dist/esm/form-control-monetary.entry.js +6 -6
  190. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  191. package/dist/esm/form-control-number.entry.js +6 -6
  192. package/dist/esm/form-control-radio.entry.js +4 -4
  193. package/dist/esm/{get-payment-details-BbZmEGge.js → get-payment-details-Bzh5t6A8.js} +1 -1
  194. package/dist/esm/get-payout-csv-bM3pZLKB.js +22 -0
  195. package/dist/esm/{get-subaccounts-58LQOtEI.js → get-subaccounts-BB3Sqb3H.js} +1 -1
  196. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  197. package/dist/esm/{header-1-BX6i3__G.js → header-1-DNg4xuR6.js} +2 -2
  198. package/dist/esm/{header-3-D0Sy-7DJ.js → header-3-BD_mh7vB.js} +2 -2
  199. package/dist/esm/{iframe-input-styles-state-DyXIZw1A.js → iframe-input-styles-state-DeH54Fkx.js} +1 -1
  200. package/dist/esm/iframe-input.entry.js +9 -9
  201. package/dist/esm/{index-Cuk6aIda.js → index-4sfb1rKO.js} +1 -1
  202. package/dist/esm/{index-BUM1DfV9.js → index-D4-FKsCU.js} +1 -1
  203. package/dist/esm/{insurance-state-BhklYgGK.js → insurance-state-CXUWRQQk.js} +3 -3
  204. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +5 -5
  205. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +4 -4
  206. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  207. package/dist/esm/justifi-business-details.entry.js +5 -5
  208. package/dist/esm/justifi-business-form.entry.js +9 -9
  209. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  210. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  211. package/dist/esm/justifi-checkout.entry.js +5 -5
  212. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  213. package/dist/esm/justifi-checkouts-list.entry.js +11 -11
  214. package/dist/esm/justifi-details.entry.js +3 -3
  215. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  216. package/dist/esm/justifi-dispute-management.entry.js +6 -6
  217. package/dist/esm/justifi-dispute-notification_3.entry.js +12 -12
  218. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  219. package/dist/esm/justifi-order-terminals.entry.js +9 -9
  220. package/dist/esm/justifi-owner-form_3.entry.js +3 -3
  221. package/dist/esm/justifi-payment-details.entry.js +8 -8
  222. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  223. package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
  224. package/dist/esm/justifi-payment-transactions-list.entry.js +193 -0
  225. package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
  226. package/dist/esm/justifi-payments-list.entry.js +11 -11
  227. package/dist/esm/justifi-payout-details.entry.js +8 -7
  228. package/dist/esm/justifi-payout-transactions-list.entry.js +201 -0
  229. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
  230. package/dist/esm/justifi-payouts-list.entry.js +13 -12
  231. package/dist/esm/justifi-refund-payment.entry.js +10 -10
  232. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -6
  233. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  234. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  235. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -9
  236. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
  237. package/dist/esm/justifi-terminals-list.entry.js +11 -11
  238. package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -8
  239. package/dist/esm/loader.js +3 -3
  240. package/dist/esm/{package-gAO-RwrF.js → package-DGWLSvML.js} +1 -1
  241. package/dist/esm/pagination-menu.entry.js +2 -2
  242. package/dist/esm/{parts-CB88j97I.js → parts-6ctk_bhj.js} +1 -1
  243. package/dist/esm/payment-details-core.entry.js +14 -14
  244. package/dist/esm/{payment.service-Co_fPTvK.js → payment.service-CeGn-K_X.js} +5 -1
  245. package/dist/esm/payments-list-core.entry.js +11 -11
  246. package/dist/esm/{payments-list-params-state-Gbxdxjoi.js → payments-list-params-state-qgJxi6iW.js} +1 -1
  247. package/dist/esm/{payments-status-BLhcMfnC.js → payments-status-nKLMqTrO.js} +2 -2
  248. package/dist/esm/{payments-table-VcaC77NC.js → payments-table-BrvZHeak.js} +3 -3
  249. package/dist/esm/payout-details-core.entry.js +9 -9
  250. package/dist/esm/{get-payout-csv-BKq22mOI.js → payout.service-dukCI9Kl.js} +8 -22
  251. package/dist/esm/payouts-list-core.entry.js +11 -11
  252. package/dist/esm/{payouts-list-params-state-Gbxdxjoi.js → payouts-list-params-state-qgJxi6iW.js} +1 -1
  253. package/dist/esm/{payouts-status-B9SSljnL.js → payouts-status-tVJFGPCs.js} +2 -2
  254. package/dist/esm/{payouts-table-DWBaNPmV.js → payouts-table-CgfTp9tE.js} +3 -3
  255. package/dist/esm/{skeleton-B-oFGeeG.js → skeleton-D8dsThNX.js} +2 -2
  256. package/dist/esm/{spinner-ptEcaLdc.js → spinner-BVJ-upD0.js} +2 -2
  257. package/dist/esm/{styled-host-BHVh70Zk.js → styled-host-D594Ui4d.js} +1 -1
  258. package/dist/esm/table-filters-menu.entry.js +4 -4
  259. package/dist/esm/terminal-orders-list-core.entry.js +10 -10
  260. package/dist/esm/{terminal-orders-list-params-state-Gbxdxjoi.js → terminal-orders-list-params-state-qgJxi6iW.js} +1 -1
  261. package/dist/esm/{terminal-orders-table-fuxIpfJ2.js → terminal-orders-table-CgioW1d8.js} +4 -4
  262. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  263. package/dist/esm/{terminal.service-BLOZ-ZlR.js → terminal.service-L0EoPXUE.js} +1 -1
  264. package/dist/esm/terminals-list-core.entry.js +10 -10
  265. package/dist/esm/terminals-list-params-state-qgJxi6iW.js +16 -0
  266. package/dist/esm/{terminals-table-Dn71oQMb.js → terminals-table-D7LKwR85.js} +3 -3
  267. package/dist/esm/{utils-B4pV3GWr.js → utils-1z8cNzLu.js} +2 -2
  268. package/dist/esm/webcomponents.js +4 -4
  269. package/dist/module/Refund.js +78 -1
  270. package/dist/module/additional-statement.js +1 -1
  271. package/dist/module/cancellation-policy.js +1 -1
  272. package/dist/module/checkouts-list-core2.js +1 -1
  273. package/dist/module/custom-popper2.js +2 -2
  274. package/dist/module/customer-details.js +1 -1
  275. package/dist/module/dispute-management-core.js +1 -1
  276. package/dist/module/dispute-notification.js +1 -1
  277. package/dist/module/dispute-response-core.js +1 -1
  278. package/dist/module/dispute-response.js +1 -1
  279. package/dist/module/duplicate-charge.js +1 -1
  280. package/dist/module/electronic-evidence.js +1 -1
  281. package/dist/module/form-control-checkbox2.js +2 -2
  282. package/dist/module/form-control-date2.js +2 -2
  283. package/dist/module/form-control-file-v22.js +1 -1
  284. package/dist/module/form-control-file2.js +2 -2
  285. package/dist/module/form-control-monetary2.js +2 -2
  286. package/dist/module/form-control-number-masked2.js +2 -2
  287. package/dist/module/form-control-number.js +2 -2
  288. package/dist/module/form-control-radio2.js +2 -2
  289. package/dist/module/form-control-select2.js +2 -2
  290. package/dist/module/form-control-text2.js +2 -2
  291. package/dist/module/form-control-textarea2.js +2 -2
  292. package/dist/module/get-payout-csv.js +1 -25
  293. package/dist/module/gross-payment-chart-core2.js +1 -1
  294. package/dist/module/hidden-input2.js +1 -1
  295. package/dist/module/iframe-input2.js +3 -3
  296. package/dist/module/index.js +1 -1
  297. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  298. package/dist/module/justifi-checkouts-list.js +1 -1
  299. package/dist/module/justifi-dispute-management.js +1 -1
  300. package/dist/module/justifi-order-terminals.js +2 -2
  301. package/dist/module/justifi-payment-transactions-list.d.ts +11 -0
  302. package/dist/module/justifi-payment-transactions-list.js +229 -0
  303. package/dist/module/justifi-payments-list-filters.js +2 -2
  304. package/dist/module/justifi-payments-list.js +1 -1
  305. package/dist/module/justifi-payout-details.js +2 -1
  306. package/dist/module/justifi-payout-transactions-list.d.ts +11 -0
  307. package/dist/module/justifi-payout-transactions-list.js +237 -0
  308. package/dist/module/justifi-payouts-list-filters.js +2 -2
  309. package/dist/module/justifi-payouts-list.js +3 -2
  310. package/dist/module/justifi-refund-payment.js +1 -1
  311. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  312. package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
  313. package/dist/module/justifi-terminal-orders-list.js +2 -2
  314. package/dist/module/justifi-terminals-list-filters.js +1 -1
  315. package/dist/module/justifi-terminals-list.js +1 -1
  316. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  317. package/dist/module/package.js +1 -1
  318. package/dist/module/payment-details-core2.js +7 -7
  319. package/dist/module/payment.service.js +4 -0
  320. package/dist/module/payments-list-core2.js +1 -1
  321. package/dist/module/payout-details-core2.js +1 -1
  322. package/dist/module/payout.service.js +32 -0
  323. package/dist/module/payouts-list-core2.js +1 -1
  324. package/dist/module/product-or-service.js +1 -1
  325. package/dist/module/refund-policy.js +1 -1
  326. package/dist/module/shipping-details.js +1 -1
  327. package/dist/module/table-filters-menu2.js +1 -1
  328. package/dist/module/terminal-orders-list-core2.js +1 -1
  329. package/dist/module/terminal-quantity-selector2.js +1 -1
  330. package/dist/module/terminals-list-core2.js +1 -1
  331. package/dist/types/actions/payment/get-payment-transactions.d.ts +11 -0
  332. package/dist/types/actions/payout/get-payout-transactions.d.ts +10 -0
  333. package/dist/types/api/PaymentBalanceTransaction.d.ts +42 -0
  334. package/dist/types/api/PayoutBalanceTransaction.d.ts +46 -0
  335. package/dist/types/api/index.d.ts +2 -0
  336. package/dist/types/api/services/payment.service.d.ts +2 -0
  337. package/dist/types/api/services/payout.service.d.ts +3 -1
  338. package/dist/types/components/payment-transactions-list/payment-transactions-list.d.ts +32 -0
  339. package/dist/types/components/payment-transactions-list/payment-transactions-table.d.ts +43 -0
  340. package/dist/types/components/payout-transactions-list/payout-transactions-list.d.ts +33 -0
  341. package/dist/types/components/payout-transactions-list/payout-transactions-table.d.ts +45 -0
  342. package/dist/types/components.d.ts +78 -0
  343. package/dist/types/stencil-public-runtime.d.ts +19 -0
  344. package/dist/webcomponents/p-009c6766.entry.js +1 -0
  345. package/dist/webcomponents/{p-456f8c0a.entry.js → p-048ed3f0.entry.js} +1 -1
  346. package/dist/webcomponents/p-0764cfde.entry.js +1 -0
  347. package/dist/webcomponents/p-08dcbb41.entry.js +1 -0
  348. package/dist/webcomponents/{p-65345bd4.entry.js → p-0b0e44c4.entry.js} +1 -1
  349. package/dist/webcomponents/{p-2fe9576b.entry.js → p-0b1bbf91.entry.js} +1 -1
  350. package/dist/webcomponents/{p-3147bfe2.entry.js → p-0c9c8d6f.entry.js} +1 -1
  351. package/dist/webcomponents/p-103692ef.entry.js +1 -0
  352. package/dist/webcomponents/p-103deee0.entry.js +1 -0
  353. package/dist/webcomponents/{p-063dd981.entry.js → p-10ad134d.entry.js} +1 -1
  354. package/dist/webcomponents/{p-cf8f69de.entry.js → p-175a913f.entry.js} +1 -1
  355. package/dist/webcomponents/p-1c2bedfe.entry.js +1 -0
  356. package/dist/webcomponents/p-36656ed1.entry.js +1 -0
  357. package/dist/webcomponents/p-3678f5fb.entry.js +1 -0
  358. package/dist/webcomponents/p-3b1f69fd.entry.js +1 -0
  359. package/dist/webcomponents/p-405f135e.entry.js +1 -0
  360. package/dist/webcomponents/{p-9a9bb294.entry.js → p-40614f67.entry.js} +1 -1
  361. package/dist/webcomponents/{p-08d5b491.entry.js → p-41a0b83c.entry.js} +1 -1
  362. package/dist/webcomponents/p-4361ae88.entry.js +1 -0
  363. package/dist/webcomponents/{p-6d2a48f5.entry.js → p-487514c2.entry.js} +1 -1
  364. package/dist/webcomponents/p-4994c980.entry.js +1 -0
  365. package/dist/webcomponents/{p-7ddd7122.entry.js → p-4c4cc0ad.entry.js} +3 -3
  366. package/dist/webcomponents/p-4d5b8876.entry.js +1 -0
  367. package/dist/webcomponents/{p-4addd069.entry.js → p-529bf046.entry.js} +1 -1
  368. package/dist/webcomponents/p-5321c7d5.entry.js +1 -0
  369. package/dist/webcomponents/{p-34cfafed.entry.js → p-54aa7e86.entry.js} +1 -1
  370. package/dist/webcomponents/p-5aeOUdhX.js +1 -0
  371. package/dist/webcomponents/{p-2d80f427.entry.js → p-601669bb.entry.js} +1 -1
  372. package/dist/webcomponents/p-63c835b9.entry.js +1 -0
  373. package/dist/webcomponents/p-656ec7b6.entry.js +1 -0
  374. package/dist/webcomponents/{p-CB88j97I.js → p-6ctk_bhj.js} +1 -1
  375. package/dist/webcomponents/{p-c558725e.entry.js → p-6d36d6a7.entry.js} +1 -1
  376. package/dist/webcomponents/p-76e7c283.entry.js +1 -0
  377. package/dist/webcomponents/{p-5dc3a795.entry.js → p-81a1be23.entry.js} +1 -1
  378. package/dist/webcomponents/p-81d682ba.entry.js +1 -0
  379. package/dist/webcomponents/p-85681d97.entry.js +1 -0
  380. package/dist/webcomponents/p-88539215.entry.js +1 -0
  381. package/dist/webcomponents/{p-6c4927e7.entry.js → p-896e4fb2.entry.js} +1 -1
  382. package/dist/webcomponents/{p-dfcf19f2.entry.js → p-8bc32c27.entry.js} +1 -1
  383. package/dist/webcomponents/{p-f0301d11.entry.js → p-8d4d2ac3.entry.js} +1 -1
  384. package/dist/webcomponents/{p-b7053613.entry.js → p-9349d32e.entry.js} +1 -1
  385. package/dist/webcomponents/p-938e0dbc.entry.js +1 -0
  386. package/dist/webcomponents/p-94d81903.entry.js +1 -0
  387. package/dist/webcomponents/{p-4ee6482d.entry.js → p-9767500b.entry.js} +1 -1
  388. package/dist/webcomponents/{p-d5675bf5.entry.js → p-9cf5ed80.entry.js} +1 -1
  389. package/dist/webcomponents/p-AVaenhw9.js +1 -0
  390. package/dist/webcomponents/p-B2H14Naw.js +1 -0
  391. package/dist/webcomponents/{p-D9t-X0IY.js → p-B4iBNBBM.js} +1 -1
  392. package/dist/webcomponents/p-BAXE_ZfF.js +1 -0
  393. package/dist/webcomponents/{p-BVwkHwTc.js → p-BLdGqrQH.js} +1 -1
  394. package/dist/webcomponents/p-BupmNfQ5.js +1 -0
  395. package/dist/webcomponents/p-BvWS8buZ.js +1 -0
  396. package/dist/webcomponents/{p-D89x2FYg.js → p-BwgcVN7d.js} +1 -1
  397. package/dist/webcomponents/{p-eYaGyUvS.js → p-BxGoUIgN.js} +1 -1
  398. package/dist/webcomponents/{p-sXe3gn-5.js → p-C3uv9u0l.js} +1 -1
  399. package/dist/webcomponents/{p-BWFriesi.js → p-CCN8wTYX.js} +1 -1
  400. package/dist/webcomponents/{p-CwHcfOV7.js → p-CG9te8PM.js} +1 -1
  401. package/dist/webcomponents/p-CRgzzPY4.js +1 -0
  402. package/dist/webcomponents/p-CZLIteZz.js +1 -0
  403. package/dist/webcomponents/{p-DhEfW-kS.js → p-C_9TcvwA.js} +1 -1
  404. package/dist/webcomponents/p-CbZjB3qJ.js +1 -0
  405. package/dist/webcomponents/p-CfbB7agn.js +1 -0
  406. package/dist/webcomponents/{p-CTBH4Lj9.js → p-CgS6VBEy.js} +1 -1
  407. package/dist/webcomponents/{p-CnyMKcfC.js → p-D5q9gEvl.js} +1 -1
  408. package/dist/webcomponents/{p-QYQ4VLoz.js → p-D5wGYrfz.js} +1 -1
  409. package/dist/webcomponents/{p-01wziNa9.js → p-D6mhG0dV.js} +1 -1
  410. package/dist/webcomponents/p-DArbkdtn.js +1 -0
  411. package/dist/webcomponents/{p-BuYnqWwT.js → p-DBfKxfCX.js} +1 -1
  412. package/dist/webcomponents/p-DEa8EbZW.js +1 -0
  413. package/dist/webcomponents/p-DGWLSvML.js +1 -0
  414. package/dist/webcomponents/p-DPC4A7AZ.js +1 -0
  415. package/dist/webcomponents/{p-DhQ2XlhY.js → p-DavDfnxI.js} +1 -1
  416. package/dist/webcomponents/{p-0czqizJW.js → p-DgQyL5KO.js} +1 -1
  417. package/dist/webcomponents/{p-DoH48u6u.js → p-DmBEzYCU.js} +1 -1
  418. package/dist/webcomponents/p-EbYREopN.js +1 -0
  419. package/dist/webcomponents/p-NI7Keg2H.js +1 -0
  420. package/dist/webcomponents/p-XazJ9qLe.js +1 -0
  421. package/dist/webcomponents/p-Xql8Xhsx.js +1 -0
  422. package/dist/webcomponents/{p-a9eff0f2.entry.js → p-a4e7d24f.entry.js} +1 -1
  423. package/dist/webcomponents/{p-ab99e4c6.entry.js → p-a78bf0f7.entry.js} +1 -1
  424. package/dist/webcomponents/{p-c6534f5f.entry.js → p-a83bf2c0.entry.js} +1 -1
  425. package/dist/webcomponents/p-b15d6c77.entry.js +1 -0
  426. package/dist/webcomponents/{p-eb31e5c7.entry.js → p-b5dd55b1.entry.js} +1 -1
  427. package/dist/webcomponents/{p-80dca817.entry.js → p-b8096d2b.entry.js} +1 -1
  428. package/dist/webcomponents/p-bbc56c17.entry.js +1 -0
  429. package/dist/webcomponents/p-bc3d56a7.entry.js +1 -0
  430. package/dist/webcomponents/{p-50aa4e4d.entry.js → p-bf83ba04.entry.js} +1 -1
  431. package/dist/webcomponents/p-c5b66da3.entry.js +1 -0
  432. package/dist/webcomponents/p-c7dc7184.entry.js +1 -0
  433. package/dist/webcomponents/{p-f51e4213.entry.js → p-cb8b91ea.entry.js} +1 -1
  434. package/dist/webcomponents/p-d7ea4db7.entry.js +1 -0
  435. package/dist/webcomponents/{p-332ce001.entry.js → p-dadb97e1.entry.js} +1 -1
  436. package/dist/webcomponents/p-dafac427.entry.js +1 -0
  437. package/dist/webcomponents/p-dca205de.entry.js +1 -0
  438. package/dist/webcomponents/p-df3fb523.entry.js +1 -0
  439. package/dist/webcomponents/p-f-9W4QBD.js +1 -0
  440. package/dist/webcomponents/p-f604d6ea.entry.js +1 -0
  441. package/dist/webcomponents/p-ffbf35a4.entry.js +1 -0
  442. package/dist/webcomponents/{p-C3nDCvFQ.js → p-lvlr3zXn.js} +1 -1
  443. package/dist/webcomponents/{p-y-Ys7Rd-.js → p-obi7kkCX.js} +1 -1
  444. package/dist/webcomponents/webcomponents.esm.js +1 -1
  445. package/package.json +1 -1
  446. package/dist/cjs/terminals-list-params-state-Cmfy_CND.js +0 -22
  447. package/dist/esm/terminals-list-params-state-Gbxdxjoi.js +0 -16
  448. package/dist/webcomponents/p-1049c0c5.entry.js +0 -1
  449. package/dist/webcomponents/p-2c2f6743.entry.js +0 -1
  450. package/dist/webcomponents/p-2f6c0a07.entry.js +0 -1
  451. package/dist/webcomponents/p-307a0db6.entry.js +0 -1
  452. package/dist/webcomponents/p-3995c8b8.entry.js +0 -1
  453. package/dist/webcomponents/p-3e084a0e.entry.js +0 -1
  454. package/dist/webcomponents/p-43c1c278.entry.js +0 -1
  455. package/dist/webcomponents/p-507f7a31.entry.js +0 -1
  456. package/dist/webcomponents/p-5a07a84c.entry.js +0 -1
  457. package/dist/webcomponents/p-62bdcca1.entry.js +0 -1
  458. package/dist/webcomponents/p-6a54d69b.entry.js +0 -1
  459. package/dist/webcomponents/p-7414b942.entry.js +0 -1
  460. package/dist/webcomponents/p-815937bb.entry.js +0 -1
  461. package/dist/webcomponents/p-86fdc0a1.entry.js +0 -1
  462. package/dist/webcomponents/p-98111d03.entry.js +0 -1
  463. package/dist/webcomponents/p-9bbfde16.entry.js +0 -1
  464. package/dist/webcomponents/p-B7ErpLYA.js +0 -1
  465. package/dist/webcomponents/p-BHHWVg32.js +0 -1
  466. package/dist/webcomponents/p-BM61p7vG.js +0 -1
  467. package/dist/webcomponents/p-Bo92MHrs.js +0 -1
  468. package/dist/webcomponents/p-BxPlB-C5.js +0 -1
  469. package/dist/webcomponents/p-CLBRsaLx.js +0 -1
  470. package/dist/webcomponents/p-CYsU0lEI.js +0 -1
  471. package/dist/webcomponents/p-CjunQqer.js +0 -1
  472. package/dist/webcomponents/p-D7s2671S.js +0 -1
  473. package/dist/webcomponents/p-DLpKiPxJ.js +0 -1
  474. package/dist/webcomponents/p-Dna7whFY.js +0 -1
  475. package/dist/webcomponents/p-DzPbgN8M.js +0 -1
  476. package/dist/webcomponents/p-JcczGkik.js +0 -1
  477. package/dist/webcomponents/p-ZUQEru6m.js +0 -1
  478. package/dist/webcomponents/p-a22974fd.entry.js +0 -1
  479. package/dist/webcomponents/p-a2bf5919.entry.js +0 -1
  480. package/dist/webcomponents/p-bb8f7062.entry.js +0 -1
  481. package/dist/webcomponents/p-be04a09c.entry.js +0 -1
  482. package/dist/webcomponents/p-c38c742e.entry.js +0 -1
  483. package/dist/webcomponents/p-c6cf707c.entry.js +0 -1
  484. package/dist/webcomponents/p-c70dcec1.entry.js +0 -1
  485. package/dist/webcomponents/p-c8d608a1.entry.js +0 -1
  486. package/dist/webcomponents/p-ce20d709.entry.js +0 -1
  487. package/dist/webcomponents/p-def42fc7.entry.js +0 -1
  488. package/dist/webcomponents/p-e0896deb.entry.js +0 -1
  489. package/dist/webcomponents/p-e3962860.entry.js +0 -1
  490. package/dist/webcomponents/p-e3cd72ad.entry.js +0 -1
  491. package/dist/webcomponents/p-e52d5ead.entry.js +0 -1
  492. package/dist/webcomponents/p-eb677eb2.entry.js +0 -1
  493. package/dist/webcomponents/p-gAO-RwrF.js +0 -1
  494. package/dist/webcomponents/p-hkXaxw9l.js +0 -1
  495. package/dist/webcomponents/p-p7aAf5_m.js +0 -1
  496. package/dist/webcomponents/p-z1GJDdMW.js +0 -1
  497. /package/dist/webcomponents/{p-BUM1DfV9.js → p-D4-FKsCU.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BUM1DfV9.js';
2
- import { P as PaymentService } from './payment.service-Co_fPTvK.js';
3
- import { m as makeGetPaymentDetails } from './get-payment-details-BbZmEGge.js';
4
- import { E as ErrorState } from './utils-B4pV3GWr.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-D4-FKsCU.js';
2
+ import { P as PaymentService } from './payment.service-CeGn-K_X.js';
3
+ import { m as makeGetPaymentDetails } from './get-payment-details-Bzh5t6A8.js';
4
+ import { E as ErrorState } from './utils-1z8cNzLu.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
6
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-Wd4E_Njt.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-iIBw3nCc.js';
7
7
  import './Api-C9CDE-UM.js';
8
8
  import './utils-BWcTxbSg.js';
9
9
  import './_commonjsHelpers-BFTU3MAI.js';
@@ -11,11 +11,11 @@ import './Checkout-Dfpql997.js';
11
11
  import './Pagination-CLHwhyvu.js';
12
12
  import './Payment-BADkZFaz.js';
13
13
  import './Dispute-7MWRbTXI.js';
14
- import './Refund-t_P1yy9d.js';
14
+ import './Refund-DOvd7RJp.js';
15
15
  import './Document-Ct-uNz2r.js';
16
16
  import './utils-Dccsn9BY.js';
17
- import './parts-CB88j97I.js';
18
- import './package-gAO-RwrF.js';
17
+ import './parts-6ctk_bhj.js';
18
+ import './package-DGWLSvML.js';
19
19
 
20
20
  const PaymentDetails = class {
21
21
  constructor(hostRef) {
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BUM1DfV9.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-D4-FKsCU.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
3
3
  import { c as checkProvisioningStatus } from './helpers-Mu7LQT-w.js';
4
- import { E as text } from './parts-CB88j97I.js';
5
- import { S as StyledHost } from './styled-host-BHVh70Zk.js';
6
- import { H as Header1 } from './header-1-BX6i3__G.js';
4
+ import { E as text } from './parts-6ctk_bhj.js';
5
+ import { S as StyledHost } from './styled-host-D594Ui4d.js';
6
+ import { H as Header1 } from './header-1-DNg4xuR6.js';
7
7
  import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
8
8
  import './state-options-BX8GieXu.js';
9
9
 
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BUM1DfV9.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-Wd4E_Njt.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-D4-FKsCU.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-iIBw3nCc.js';
3
3
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
4
4
  import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-CZYFFdTf.js';
5
5
  import { B as BusinessService } from './business.service-B136meVo.js';
6
6
  import { A as Api } from './Api-C9CDE-UM.js';
7
- import './package-gAO-RwrF.js';
7
+ import './package-DGWLSvML.js';
8
8
  import './utils-Dccsn9BY.js';
9
9
  import './utils-BWcTxbSg.js';
10
10
  import './_commonjsHelpers-BFTU3MAI.js';
@@ -0,0 +1,193 @@
1
+ import { h, r as registerInstance, c as createEvent } from './index-D4-FKsCU.js';
2
+ import { a as convertToLocal } from './utils-BWcTxbSg.js';
3
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
4
+ import './Checkout-Dfpql997.js';
5
+ import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
6
+ import './Payment-BADkZFaz.js';
7
+ import { c as PaymentBalanceTransaction } from './Refund-DOvd7RJp.js';
8
+ import './Document-Ct-uNz2r.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-iIBw3nCc.js';
10
+ import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
11
+ import { P as PaymentService } from './payment.service-CeGn-K_X.js';
12
+ import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types-Dv-I6YqZ.js';
13
+ import { T as tableHeadCell, U as getAlternateTableCellPart, A as table, B as tableCell } from './parts-6ctk_bhj.js';
14
+ import { S as StyledHost } from './styled-host-D594Ui4d.js';
15
+ import './_commonjsHelpers-BFTU3MAI.js';
16
+ import './Dispute-7MWRbTXI.js';
17
+ import './package-DGWLSvML.js';
18
+ import './Api-C9CDE-UM.js';
19
+ import './spinner-BVJ-upD0.js';
20
+
21
+ const makeGetPaymentTransactions = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError, final }) => {
22
+ var _a;
23
+ try {
24
+ const response = await service.fetchPaymentTransactions(id, authToken, params, apiOrigin);
25
+ if (!response.error) {
26
+ const balanceTransactions = response.data.map((dataItem) => new PaymentBalanceTransaction(dataItem));
27
+ const pagingInfo = Object.assign({}, response.page_info);
28
+ onSuccess({ balanceTransactions, pagingInfo });
29
+ }
30
+ else {
31
+ const responseError = getErrorMessage(response.error);
32
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
33
+ onError({
34
+ error: responseError,
35
+ code,
36
+ severity: ComponentErrorSeverity.ERROR,
37
+ });
38
+ }
39
+ }
40
+ catch (error) {
41
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
42
+ onError({
43
+ error: getErrorMessage(error),
44
+ code,
45
+ severity: ComponentErrorSeverity.ERROR,
46
+ });
47
+ }
48
+ finally {
49
+ final();
50
+ }
51
+ };
52
+
53
+ const defaultColumnsKeys = 'created_at,type,id,amount,balance';
54
+ const paymentTransactionTableColumns = {
55
+ created_at: () => (h("th", { part: tableHeadCell, scope: "col", title: "The date and time each transaction was made" }, "Processed On")),
56
+ type: () => (h("th", { part: tableHeadCell, scope: "col", title: "The type of each transaction" }, "Type")),
57
+ id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of each transaction" }, "ID")),
58
+ amount: () => (h("th", { part: tableHeadCell, scope: "col", title: "The dollar amount of each transaction", class: "text-end" }, "Amount")),
59
+ balance: () => (h("th", { part: tableHeadCell, scope: "col", title: "The running total amount of this payment that belongs to you", class: "text-end" }, "Balance")),
60
+ currency: () => (h("th", { part: tableHeadCell, scope: "col", title: "The currency of each transaction" }, "Currency")),
61
+ financial_transaction_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of the financial transaction associated with the payment balance transaction" }, "Financial Transaction ID")),
62
+ payment_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of the payment associated with the payment balance transaction" }, "Payment ID")),
63
+ payment_balance_txn_type: () => (h("th", { part: tableHeadCell, scope: "col", title: "The type of the payment balance transaction" }, "Transaction Type")),
64
+ source_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of the source object associated with the payment balance transaction" }, "Source ID")),
65
+ source_type: () => (h("th", { part: tableHeadCell, scope: "col", title: "The type of the source object associated with the payment balance transaction" }, "Source Type")),
66
+ };
67
+ const paymentTransactionTypes = {
68
+ ach_return: "ACH Return",
69
+ ach_return_fee: "ACH Return Fee",
70
+ dispute: "Dispute",
71
+ dispute_fee: "Dispute Fee",
72
+ dispute_fee_refund: "Dispute Fee Refund",
73
+ dispute_refund: "Dispute Refund",
74
+ payment: "Payment",
75
+ payment_fee: "Fee",
76
+ refund: "Refund",
77
+ fee_refund: "Fee Refund",
78
+ application_fee_returned: "Application Fee Returned",
79
+ refund_failure: "Refund Failure",
80
+ void: "Void",
81
+ };
82
+ const paymentTransactionTableCells = {
83
+ created_at: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) },
84
+ h("div", { class: "fw-bold" }, convertToLocal(balanceTransaction.created_at, { showDisplayDate: true })),
85
+ h("div", { class: "fw-bold" }, convertToLocal(balanceTransaction.created_at, { showTime: true })))),
86
+ type: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) }, paymentTransactionTypes[balanceTransaction.payment_balance_txn_type])),
87
+ id: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) }, balanceTransaction.id)),
88
+ amount: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index), class: "text-end" }, balanceTransaction.formattedPaymentAmount(balanceTransaction.amount))),
89
+ balance: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index), class: "text-end" }, balanceTransaction.formattedPaymentAmount(balanceTransaction.balance))),
90
+ currency: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) }, balanceTransaction.currency)),
91
+ financial_transaction_id: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) }, balanceTransaction.financial_transaction_id)),
92
+ payment_id: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) }, balanceTransaction.payment_id)),
93
+ payment_balance_txn_type: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) }, balanceTransaction.payment_balance_txn_type)),
94
+ source_id: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) }, balanceTransaction.source_id)),
95
+ source_type: (balanceTransaction, index) => (h("td", { part: getAlternateTableCellPart(index) }, balanceTransaction.source_type)),
96
+ };
97
+
98
+ const PaymentTransactionsList = class {
99
+ constructor(hostRef) {
100
+ registerInstance(this, hostRef);
101
+ this.clickEvent = createEvent(this, "click-event");
102
+ this.errorEvent = createEvent(this, "error-event");
103
+ this.balanceTransactions = [];
104
+ this.isLoading = true;
105
+ this.errorMessage = null;
106
+ this.paging = pagingDefaults;
107
+ this.pagingParams = {};
108
+ this.apiOrigin = "https://wc-proxy.justifi.ai";
109
+ this.columns = defaultColumnsKeys;
110
+ this.handleClickPrevious = (beforeCursor) => {
111
+ this.pagingParams = { before_cursor: beforeCursor };
112
+ this.clickEvent.emit({ name: TableClickActions.previous });
113
+ };
114
+ this.handleClickNext = (afterCursor) => {
115
+ this.pagingParams = { after_cursor: afterCursor };
116
+ this.clickEvent.emit({ name: TableClickActions.next });
117
+ };
118
+ this.rowClickHandler = (e) => {
119
+ const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
120
+ if (!clickedPaymentID)
121
+ return;
122
+ const transactionData = this.balanceTransactions.find((payment) => payment.id === clickedPaymentID);
123
+ this.clickEvent.emit({ name: TableClickActions.row, data: transactionData });
124
+ };
125
+ }
126
+ componentWillLoad() {
127
+ this.transactionsTable = new Table(this.balanceTransactions, this.columns, paymentTransactionTableColumns, paymentTransactionTableCells);
128
+ checkPkgVersion();
129
+ this.analytics = new JustifiAnalytics(this);
130
+ this.initializeApi();
131
+ }
132
+ disconnectedCallback() {
133
+ this.analytics.cleanup();
134
+ }
135
+ propChanged() {
136
+ this.initializeApi();
137
+ }
138
+ handleError(code, errorMessage, severity) {
139
+ this.isLoading = false;
140
+ this.errorEvent.emit({ errorCode: code, message: errorMessage, severity });
141
+ }
142
+ initializeApi() {
143
+ if (this.paymentId && this.authToken) {
144
+ const getPaymentTransactions = makeGetPaymentTransactions({
145
+ id: this.paymentId,
146
+ authToken: this.authToken,
147
+ service: new PaymentService(),
148
+ apiOrigin: this.apiOrigin
149
+ });
150
+ getPaymentTransactions({
151
+ params: this.pagingParams,
152
+ onSuccess: ({ balanceTransactions, pagingInfo }) => {
153
+ this.balanceTransactions = balanceTransactions;
154
+ this.paging = pagingInfo;
155
+ this.transactionsTable.collectionData = this.balanceTransactions;
156
+ },
157
+ onError: ({ error, code, severity }) => {
158
+ this.errorMessage = error.message;
159
+ this.handleError(error, code, severity);
160
+ },
161
+ final: () => {
162
+ this.isLoading = false;
163
+ }
164
+ });
165
+ }
166
+ else {
167
+ this.errorMessage = 'payment-id and auth-token props are required';
168
+ this.handleError(ComponentErrorCodes.MISSING_PROPS, this.errorMessage, ComponentErrorSeverity.ERROR);
169
+ }
170
+ }
171
+ get entityId() {
172
+ return this.balanceTransactions.map((transaction) => transaction.id);
173
+ }
174
+ get showEmptyState() {
175
+ return !this.isLoading && !this.errorMessage && this.transactionsTable.rowData.length < 1;
176
+ }
177
+ get showErrorState() {
178
+ return !this.isLoading && !!this.errorMessage;
179
+ }
180
+ get showRowData() {
181
+ return !this.showEmptyState && !this.showErrorState && !this.isLoading;
182
+ }
183
+ render() {
184
+ return (h(StyledHost, { key: 'b011961e9c9b01720fa7964186e477784a7deddd' }, h("div", { key: '074eb86caf8be83e6cdc51ab496564358dafdeb5', class: "table-wrapper" }, h("table", { key: 'cc1453bcba758c6847d593a545918c449219eac4', class: "table table-hover", part: table }, h("thead", { key: '08bbac43b6484ed2f96061153a3d40a2d9f4da7d', class: "table-head sticky-top" }, h("tr", { key: '424dadd8f7686d62fcf3d3222a77c707d6e69985', class: "table-light text-nowrap" }, this.transactionsTable.columnData.map((column) => column))), h("tbody", { key: '3ef6863f785ff73b467f2c48fa91ed1bac57c7e2', class: "table-body" }, h(TableLoadingState, { key: '69da7b5801f492787ec6ce3b10fbd25e9580c0e1', columnSpan: this.transactionsTable.columnData.length, isLoading: this.isLoading }), h(TableEmptyState, { key: 'e6ff1509d0a54aaca9fbaa2e5ebd3e83a62ef17c', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnData.length }), h(TableErrorState, { key: '5cd693d69c7dc34807767d18ad97cc1f5fce52fe', columnSpan: this.transactionsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'c8e1ff59e7db5aeb4db84884360e3d9cf71a1552', class: "sticky-bottom" }, h("tr", { key: 'fd0b29ddeb0ed6114904ce4b875618c469349578', class: "table-light align-middle" }, h("td", { key: '340ae8d8132eb66a8c0cae500d708c4174ed5dc7', part: tableCell, colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: 'a2ea49ba4478b3e22a4587eed3262bc482cfd9b8', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
185
+ }
186
+ static get watchers() { return {
187
+ "pagingParams": ["propChanged"],
188
+ "paymentId": ["propChanged"],
189
+ "authToken": ["propChanged"]
190
+ }; }
191
+ };
192
+
193
+ export { PaymentTransactionsList as justifi_payment_transactions_list };
@@ -1,11 +1,11 @@
1
- import { r as registerInstance, h } from './index-BUM1DfV9.js';
1
+ import { r as registerInstance, h } from './index-D4-FKsCU.js';
2
2
  import { l as lodashExports } from './lodash-BqWxUrkh.js';
3
- import { f as filterParams, p as propsParams, c as clearParams } from './payments-list-params-state-Gbxdxjoi.js';
4
- import { e as paymentsListFilterMenu, f as paymentIdPaymentsListFilterParam, t as terminalIdPaymentsListFilterParam, g as paymentStatusPaymentsListFilterParam, h as createdAfterPaymentsListFilterParam, j as createdBeforePaymentsListFilterParam } from './parts-CB88j97I.js';
5
- import { S as StyledHost } from './styled-host-BHVh70Zk.js';
3
+ import { f as filterParams, p as propsParams, c as clearParams } from './payments-list-params-state-qgJxi6iW.js';
4
+ import { e as paymentsListFilterMenu, f as paymentIdPaymentsListFilterParam, t as terminalIdPaymentsListFilterParam, g as paymentStatusPaymentsListFilterParam, h as createdAfterPaymentsListFilterParam, j as createdBeforePaymentsListFilterParam } from './parts-6ctk_bhj.js';
5
+ import { S as StyledHost } from './styled-host-D594Ui4d.js';
6
6
  import { c as convertToUTC, a as convertToLocal } from './utils-BWcTxbSg.js';
7
7
  import './_commonjsHelpers-BFTU3MAI.js';
8
- import './index-Cuk6aIda.js';
8
+ import './index-4sfb1rKO.js';
9
9
 
10
10
  const PaymentsListFilters = class {
11
11
  constructor(hostRef) {
@@ -47,8 +47,8 @@ const PaymentsListFilters = class {
47
47
  }
48
48
  render() {
49
49
  const filterMenuParams = Object.assign({}, filterParams);
50
- return (h(StyledHost, { key: '0f60343035418f02bfb4c5a334281035cc572957' }, h("table-filters-menu", { key: 'f3fbf51df04aab4de27aec6c16b1154a9c68cf89', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: 'f16d287033fcd5738a248c46f055ca880afa100d', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'c732920f08adcc06e730bc37989dfab19ab1ca70', class: "p-2" }, h("form-control-text", { key: 'd627c54541b7ef5d18047eeeb1d123974903a7b4', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '9d0808c36388cd9e6d44ad911ce2b35c8ef3d481', class: "p-2" }, h("form-control-text", { key: '75bd80ea108dfd17260a494fb616c4b59c9a6d17', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: '67d9241d539eb9dbde85b36d2b46c03557988aac', class: "p-2" }, h("form-control-select", { key: '6cc1f7f8d660d6d7dd71231c0fadcd487dec598d', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: '286c868036528e6c0d8d57eba384a1cbf7e9fe46', class: "p-2" }, h("form-control-date", { key: '74507753f003841539d9b6c4e233428d8cdef85e', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
51
- convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: 'd028a802f375b553e7504dfaec3232af5b3d7849', class: "p-2" }, h("form-control-date", { key: '3f4f89061c6f50b38aaab0d950b8bd6ed53e1290', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
50
+ return (h(StyledHost, { key: '10829c1f0fc63fa2f7d051d0cfecf99cfa7d5d53' }, h("table-filters-menu", { key: 'c59be37898d0eb1b6b6d19c4b338a527efcb6cc6', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: '716e807db90c39aa977e9b5daf6a411d3086ca63', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'a6f176d96dc459cc78135bdb2eab080876883c9e', class: "p-2" }, h("form-control-text", { key: '08acfb9b4d70e641a33482abfb20085ef1dfe193', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: 'bb19e9f99e3365163701450b28e008decd59596a', class: "p-2" }, h("form-control-text", { key: 'bbeec69309d93ac6dc519369fea831a37e09cff1', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: 'c4a260634c01d93cffe4106dc2d39b74ee74d1bb', class: "p-2" }, h("form-control-select", { key: 'f9bf9bea0a8de4387523379494a2ef6da763a532', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: 'b9f48f0df0007629e0046a9c001b4ed92e29e229', class: "p-2" }, h("form-control-date", { key: 'c997c468c94710e8f16bd5125092390d6444b247', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
51
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '792715eec40293f7877377b06d97402a9befe6c9', class: "p-2" }, h("form-control-date", { key: '5a175d01c307a5273a9d41dc8c319554dc32e2e0', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
52
52
  convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
53
53
  }
54
54
  };
@@ -1,23 +1,23 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BUM1DfV9.js';
2
- import { P as PaymentService } from './payment.service-Co_fPTvK.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-D4-FKsCU.js';
2
+ import { P as PaymentService } from './payment.service-CeGn-K_X.js';
3
3
  import './utils-BWcTxbSg.js';
4
4
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
5
5
  import './Checkout-Dfpql997.js';
6
6
  import './Pagination-CLHwhyvu.js';
7
7
  import { P as Payment } from './Payment-BADkZFaz.js';
8
- import './Refund-t_P1yy9d.js';
8
+ import './Refund-DOvd7RJp.js';
9
9
  import './Document-Ct-uNz2r.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
11
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-Wd4E_Njt.js';
12
- import { S as StyledHost } from './styled-host-BHVh70Zk.js';
13
- import { d as defaultColumnsKeys } from './payments-table-VcaC77NC.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-iIBw3nCc.js';
12
+ import { S as StyledHost } from './styled-host-D594Ui4d.js';
13
+ import { d as defaultColumnsKeys } from './payments-table-BrvZHeak.js';
14
14
  import './Api-C9CDE-UM.js';
15
15
  import './_commonjsHelpers-BFTU3MAI.js';
16
16
  import './Dispute-7MWRbTXI.js';
17
- import './package-gAO-RwrF.js';
18
- import './payments-status-BLhcMfnC.js';
19
- import './badge-C4TzL9CB.js';
20
- import './parts-CB88j97I.js';
17
+ import './package-DGWLSvML.js';
18
+ import './payments-status-nKLMqTrO.js';
19
+ import './badge-D5PvLnZT.js';
20
+ import './parts-6ctk_bhj.js';
21
21
 
22
22
  const makeGetPayments = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError, final }) => {
23
23
  var _a, _b;
@@ -93,7 +93,7 @@ const PaymentsList = class {
93
93
  }
94
94
  }
95
95
  render() {
96
- return (h(StyledHost, { key: '9abf2a388255fc2f1dd326e6c3fc3e59284a5d0e' }, h("payments-list-core", { key: '280aa7cc66e89c376f5e3169ce6bd7cda8404f70', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
96
+ return (h(StyledHost, { key: '97f98385d5b9f4664776f920183901136b1e3d1a' }, h("payments-list-core", { key: 'be6558d801908c60c8c0c0f66741d2ee7049d5e3', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
97
97
  }
98
98
  static get watchers() { return {
99
99
  "accountId": ["propChanged"],
@@ -1,20 +1,21 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BUM1DfV9.js';
2
- import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-BKq22mOI.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-D4-FKsCU.js';
2
+ import { P as PayoutService } from './payout.service-dukCI9Kl.js';
3
3
  import './utils-BWcTxbSg.js';
4
4
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
5
5
  import './Checkout-Dfpql997.js';
6
6
  import './Pagination-CLHwhyvu.js';
7
7
  import './Payment-BADkZFaz.js';
8
- import { P as Payout } from './Refund-t_P1yy9d.js';
8
+ import { P as Payout } from './Refund-DOvd7RJp.js';
9
9
  import './Document-Ct-uNz2r.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
11
- import { E as ErrorState } from './utils-B4pV3GWr.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-Wd4E_Njt.js';
11
+ import { E as ErrorState } from './utils-1z8cNzLu.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-iIBw3nCc.js';
13
+ import { m as makeGetPayoutCSV } from './get-payout-csv-bM3pZLKB.js';
13
14
  import './Api-C9CDE-UM.js';
14
15
  import './_commonjsHelpers-BFTU3MAI.js';
15
16
  import './Dispute-7MWRbTXI.js';
16
- import './parts-CB88j97I.js';
17
- import './package-gAO-RwrF.js';
17
+ import './parts-6ctk_bhj.js';
18
+ import './package-DGWLSvML.js';
18
19
 
19
20
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
20
21
  var _a;
@@ -0,0 +1,201 @@
1
+ import { h, r as registerInstance, c as createEvent } from './index-D4-FKsCU.js';
2
+ import { a as convertToLocal } from './utils-BWcTxbSg.js';
3
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
4
+ import './Checkout-Dfpql997.js';
5
+ import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
6
+ import './Payment-BADkZFaz.js';
7
+ import { d as PayoutBalanceTransaction } from './Refund-DOvd7RJp.js';
8
+ import './Document-Ct-uNz2r.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-iIBw3nCc.js';
10
+ import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
11
+ import { P as PayoutService } from './payout.service-dukCI9Kl.js';
12
+ import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types-Dv-I6YqZ.js';
13
+ import { T as tableHeadCell, U as getAlternateTableCellPart, A as table, B as tableCell } from './parts-6ctk_bhj.js';
14
+ import { S as StyledHost } from './styled-host-D594Ui4d.js';
15
+ import './_commonjsHelpers-BFTU3MAI.js';
16
+ import './Dispute-7MWRbTXI.js';
17
+ import './package-DGWLSvML.js';
18
+ import './Api-C9CDE-UM.js';
19
+ import './spinner-BVJ-upD0.js';
20
+
21
+ const makeGetPayoutTransactions = ({ authToken, service, apiOrigin }) => async ({ params, onSuccess, onError, final }) => {
22
+ var _a;
23
+ try {
24
+ const response = await service.fetchPayoutTransactions(authToken, params, apiOrigin);
25
+ if (!response.error) {
26
+ const balanceTransactions = response.data.map((dataItem) => new PayoutBalanceTransaction(dataItem));
27
+ const pagingInfo = Object.assign({}, response.page_info);
28
+ onSuccess({ balanceTransactions, pagingInfo });
29
+ }
30
+ else {
31
+ const responseError = getErrorMessage(response.error);
32
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
33
+ onError({
34
+ error: responseError,
35
+ code,
36
+ severity: ComponentErrorSeverity.ERROR,
37
+ });
38
+ }
39
+ }
40
+ catch (error) {
41
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
42
+ onError({
43
+ error: getErrorMessage(error),
44
+ code,
45
+ severity: ComponentErrorSeverity.ERROR,
46
+ });
47
+ }
48
+ finally {
49
+ final();
50
+ }
51
+ };
52
+
53
+ const defaultColumnsKeys = 'created_at,txn_type,description,amount,fee,net';
54
+ const payoutTransactionTableColumns = {
55
+ id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of each transaction" }, "ID")),
56
+ account_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of the account associated with each transaction" }, "Account ID")),
57
+ payout_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of the payout associated with each transaction" }, "Payout ID")),
58
+ financial_transaction_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of the financial transaction associated with the payment balance transaction" }, "Financial Transaction ID")),
59
+ amount: () => (h("th", { part: tableHeadCell, scope: "col", title: "The dollar amount of each transaction" }, "Amount")),
60
+ fee: () => (h("th", { part: tableHeadCell, scope: "col", title: "The fee associated with each transaction" }, "Fee")),
61
+ net: () => (h("th", { part: tableHeadCell, scope: "col", title: "The net amount of each transaction" }, "Net")),
62
+ currency: () => (h("th", { part: tableHeadCell, scope: "col", title: "The currency of each transaction" }, "Currency")),
63
+ description: () => (h("th", { part: tableHeadCell, scope: "col", title: "The description of each transaction" }, "Description")),
64
+ source_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The unique identifier of the source object associated with the payment balance transaction" }, "Source ID")),
65
+ txn_type: () => (h("th", { part: tableHeadCell, scope: "col", title: "The type of each transaction" }, "Type")),
66
+ created_at: () => (h("th", { part: tableHeadCell, scope: "col", title: "The date and time each transaction was made" }, "Processed On")),
67
+ available_on: () => (h("th", { part: tableHeadCell, scope: "col", title: "The date and time each transaction will be available" }, "Available On")),
68
+ updated_at: () => (h("th", { part: tableHeadCell, scope: "col", title: "The date and time each transaction was last updated" }, "Updated On")),
69
+ };
70
+ const payoutTransactionTypes = {
71
+ fee: "Fee",
72
+ payment: "Payment",
73
+ payout: "Payout",
74
+ seller_payment_refund: "Seller Payment Refund",
75
+ dispute_amount_collected: "Dispute Amount Collected",
76
+ dispute_fee_collected: "Dispute Fee Collected",
77
+ seller_payment: "Seller Payment",
78
+ transfer: "Transfer",
79
+ partner_platform_proceeds_credit: "Partner Platform Proceeds Credit"
80
+ };
81
+ const payoutTransactionTableCells = {
82
+ id: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.id) }, transaction.id)),
83
+ account_id: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.account_id) }, transaction.account_id)),
84
+ payout_id: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.payout_id) }, transaction.payout_id)),
85
+ financial_transaction_id: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.financial_transaction_id) }, transaction.financial_transaction_id)),
86
+ amount: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.amount) }, transaction.formattedPaymentAmount(transaction.amount))),
87
+ fee: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.fee) }, transaction.formattedPaymentAmount(transaction.fee))),
88
+ net: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.net) }, transaction.formattedPaymentAmount(transaction.net))),
89
+ currency: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.currency) }, transaction.currency)),
90
+ description: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.description) }, transaction.description)),
91
+ source_id: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.source_id) }, transaction.source_id)),
92
+ txn_type: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.txn_type) }, payoutTransactionTypes[transaction.txn_type])),
93
+ created_at: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.created_at) },
94
+ h("div", { class: "fw-bold" }, convertToLocal(transaction.created_at, { showDisplayDate: true })),
95
+ h("div", { class: "fw-bold" }, convertToLocal(transaction.created_at, { showTime: true })))),
96
+ available_on: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.available_on) },
97
+ h("div", { class: "fw-bold" }, convertToLocal(transaction.available_on, { showDisplayDate: true })),
98
+ h("div", { class: "fw-bold" }, convertToLocal(transaction.available_on, { showTime: true })))),
99
+ updated_at: (transaction) => (h("td", { part: getAlternateTableCellPart(transaction.updated_at) },
100
+ h("div", { class: "fw-bold" }, convertToLocal(transaction.updated_at, { showDisplayDate: true })),
101
+ h("div", { class: "fw-bold" }, convertToLocal(transaction.updated_at, { showTime: true })))),
102
+ };
103
+
104
+ const PayoutTransactionsList = class {
105
+ constructor(hostRef) {
106
+ registerInstance(this, hostRef);
107
+ this.clickEvent = createEvent(this, "click-event");
108
+ this.errorEvent = createEvent(this, "error-event");
109
+ this.balanceTransactions = [];
110
+ this.isLoading = true;
111
+ this.errorMessage = null;
112
+ this.paging = pagingDefaults;
113
+ this.pagingParams = {};
114
+ this.apiOrigin = "https://wc-proxy.justifi.ai";
115
+ this.columns = defaultColumnsKeys;
116
+ this.handleClickPrevious = (beforeCursor) => {
117
+ this.pagingParams = { before_cursor: beforeCursor };
118
+ this.clickEvent.emit({ name: TableClickActions.previous });
119
+ };
120
+ this.handleClickNext = (afterCursor) => {
121
+ this.pagingParams = { after_cursor: afterCursor };
122
+ this.clickEvent.emit({ name: TableClickActions.next });
123
+ };
124
+ this.rowClickHandler = (e) => {
125
+ const clickedPayoutId = e.target.closest('tr').dataset.rowEntityId;
126
+ if (!clickedPayoutId)
127
+ return;
128
+ const transactionData = this.balanceTransactions.find((payout) => payout.id === clickedPayoutId);
129
+ this.clickEvent.emit({ name: TableClickActions.row, data: transactionData });
130
+ };
131
+ }
132
+ componentWillLoad() {
133
+ this.transactionsTable = new Table(this.balanceTransactions, this.columns, payoutTransactionTableColumns, payoutTransactionTableCells);
134
+ checkPkgVersion();
135
+ this.analytics = new JustifiAnalytics(this);
136
+ this.initializeApi();
137
+ }
138
+ disconnectedCallback() {
139
+ this.analytics.cleanup();
140
+ }
141
+ propChanged() {
142
+ this.initializeApi();
143
+ }
144
+ handleError(code, errorMessage, severity) {
145
+ this.isLoading = false;
146
+ this.errorEvent.emit({ errorCode: code, message: errorMessage, severity });
147
+ }
148
+ initializeApi() {
149
+ if (this.payoutId && this.authToken) {
150
+ const getPayoutTransactions = makeGetPayoutTransactions({
151
+ authToken: this.authToken,
152
+ service: new PayoutService(),
153
+ apiOrigin: this.apiOrigin
154
+ });
155
+ getPayoutTransactions({
156
+ params: this.requestParams,
157
+ onSuccess: ({ balanceTransactions, pagingInfo }) => {
158
+ this.balanceTransactions = balanceTransactions;
159
+ this.paging = pagingInfo;
160
+ this.transactionsTable.collectionData = this.balanceTransactions;
161
+ },
162
+ onError: ({ error, code, severity }) => {
163
+ this.errorMessage = error.message;
164
+ this.handleError(error, code, severity);
165
+ },
166
+ final: () => {
167
+ this.isLoading = false;
168
+ }
169
+ });
170
+ }
171
+ else {
172
+ this.errorMessage = 'payout-id and auth-token props are required';
173
+ this.handleError(ComponentErrorCodes.MISSING_PROPS, this.errorMessage, ComponentErrorSeverity.ERROR);
174
+ }
175
+ }
176
+ get entityId() {
177
+ return this.balanceTransactions.map((transaction) => transaction.id);
178
+ }
179
+ get showEmptyState() {
180
+ return !this.isLoading && !this.errorMessage && this.transactionsTable.rowData.length < 1;
181
+ }
182
+ get showErrorState() {
183
+ return !this.isLoading && !!this.errorMessage;
184
+ }
185
+ get showRowData() {
186
+ return !this.showEmptyState && !this.showErrorState && !this.isLoading;
187
+ }
188
+ get requestParams() {
189
+ return Object.assign({ payout_id: this.payoutId, limit: '15' }, this.pagingParams);
190
+ }
191
+ render() {
192
+ return (h(StyledHost, { key: '90a9bdb7acbaabba3e2d99936ab8ff4af752b89f' }, h("div", { key: '546c52c26422482ebc03c363e1b7251b00628612', class: "table-wrapper" }, h("table", { key: '8cafebb253b276b747be56ffdde3430eebd8165b', class: "table table-hover", part: table }, h("thead", { key: '1b701619c17d926a95ddfb7fbb84fe3a6fd7c9b9', class: "table-head sticky-top" }, h("tr", { key: '94b5d386d8eed15eb54761c450603e3edba05e28', class: "table-light text-nowrap" }, this.transactionsTable.columnData.map((column) => column))), h("tbody", { key: 'cf4057bac5a7b9b49448bc0cc6fe60b031e71428', class: "table-body" }, h(TableLoadingState, { key: '0336b83d2842ba8cc450e6169161c5a32b65d5ca', columnSpan: this.transactionsTable.columnData.length, isLoading: this.isLoading }), h(TableEmptyState, { key: 'ecb336f7cf73ae652eafa2068e916055c908b351', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnData.length }), h(TableErrorState, { key: 'fa99aae26090ced86423af1c1458b51880299260', columnSpan: this.transactionsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'e1232dddefdbfaad0616841797235afd61422ec6', class: "sticky-bottom" }, h("tr", { key: 'f399c65e0d5c25206d2194841ba98e88d3fd7ebd', class: "table-light align-middle" }, h("td", { key: 'cb2e12c7d397c5c9be12ff2f3ad53bfba072f814', part: tableCell, colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: 'b485f5ba2817f9781f53d67b22ea3836caca448a', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
193
+ }
194
+ static get watchers() { return {
195
+ "pagingParams": ["propChanged"],
196
+ "payoutId": ["propChanged"],
197
+ "authToken": ["propChanged"]
198
+ }; }
199
+ };
200
+
201
+ export { PayoutTransactionsList as justifi_payout_transactions_list };
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h } from './index-BUM1DfV9.js';
2
- import { f as filterParams, p as propsParams, c as clearParams } from './payouts-list-params-state-Gbxdxjoi.js';
3
- import { k as payoutsListFilterMenu, m as createdAfterPayoutsListFilterParam, n as createdBeforePayoutsListFilterParam } from './parts-CB88j97I.js';
4
- import { S as StyledHost } from './styled-host-BHVh70Zk.js';
1
+ import { r as registerInstance, h } from './index-D4-FKsCU.js';
2
+ import { f as filterParams, p as propsParams, c as clearParams } from './payouts-list-params-state-qgJxi6iW.js';
3
+ import { k as payoutsListFilterMenu, m as createdAfterPayoutsListFilterParam, n as createdBeforePayoutsListFilterParam } from './parts-6ctk_bhj.js';
4
+ import { S as StyledHost } from './styled-host-D594Ui4d.js';
5
5
  import { c as convertToUTC, a as convertToLocal } from './utils-BWcTxbSg.js';
6
- import './index-Cuk6aIda.js';
6
+ import './index-4sfb1rKO.js';
7
7
  import './_commonjsHelpers-BFTU3MAI.js';
8
8
 
9
9
  const PayoutsListFilters = class {
@@ -30,8 +30,8 @@ const PayoutsListFilters = class {
30
30
  }
31
31
  render() {
32
32
  const filterMenuParams = Object.assign({}, filterParams);
33
- return (h(StyledHost, { key: 'a02b73ab10133c56f31f99b55573fb20e0e86347' }, h("table-filters-menu", { key: 'b59a8bd778d74f92683b379b1496ac08c2caa261', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: '8ff8564e37ed565b4efdab9a2ae10caa400968ad', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '7506e9a888dbee516cdd52d504ff6dbe4b09ac11', class: "p-2" }, h("form-control-date", { key: '8ecdb74398e9375250bee9a89c649b4049d22a93', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
34
- convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '89767b23bfa33b5df07067815205091d808b5656', class: "p-2" }, h("form-control-date", { key: '8c58ded3c3597f3d7a01a06f11a480fa998ed658', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
33
+ return (h(StyledHost, { key: 'e6670cb708b28330f79512d01d582f7a1930fd3c' }, h("table-filters-menu", { key: '366dd0925c68feb2c8482bc27f63c7591ec38882', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: 'd5de9412726c9c3f51675eeba8ba258094632b99', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '3f693842e14574eb3a056db221dc6521d02c0ba4', class: "p-2" }, h("form-control-date", { key: 'ca0697ab9b42ff0bed8aa0cd6747cde11fdf3ab1', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
34
+ convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'cc8a71a7de29c82644773d356ef063cbf7f97f2a', class: "p-2" }, h("form-control-date", { key: 'f878e0acedced0ed813a7410243f414ba12c6898', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
35
35
  convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
36
36
  }
37
37
  };