@justifi/webcomponents 5.6.0 → 5.6.1

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 (521) hide show
  1. package/dist/cjs/ApiNew-DG13rvk6.js +86 -0
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  3. package/dist/cjs/{badge-DwSZ83Bm.js → badge-ByWVHNyJ.js} +2 -2
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +4 -4
  5. package/dist/cjs/bank-account-form_9.cjs.entry.js +6 -6
  6. package/dist/cjs/{business-additional-questions-schema-mzZ2gYHQ.js → business-additional-questions-schema-gVepoR4V.js} +1 -1
  7. package/dist/cjs/business-details-core.cjs.entry.js +5 -5
  8. package/dist/cjs/{business.service-Crmkeulk.js → business.service-Vcq4kPU8.js} +4 -2
  9. package/dist/cjs/{button-Cp4u5YgP.js → button-Bn9jOYbx.js} +2 -2
  10. package/dist/cjs/{check-pkg-version-C4d9pl8G.js → check-pkg-version-7gGchZzS.js} +1 -1
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -8
  12. package/dist/cjs/{payouts-list-params-state-DX4jg37H.js → checkouts-list-params-state-BvG5Ysrg.js} +1 -1
  13. package/dist/cjs/{checkouts-table-nsXjlcI1.js → checkouts-table-C_cpZa-i.js} +3 -3
  14. package/dist/cjs/config-state-Bm8-EuFE.js +42 -0
  15. package/dist/cjs/custom-popper_4.cjs.entry.js +3 -3
  16. package/dist/cjs/{event-types-CjInBN20.js → event-types-cB_-SsYZ.js} +3 -3
  17. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-checkbox.cjs.entry.js +4 -4
  19. package/dist/cjs/form-control-date.cjs.entry.js +3 -3
  20. package/dist/cjs/{form-control-error-text-NbHDc1JL.js → form-control-error-text-CBAVQoZ3.js} +2 -2
  21. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  22. package/dist/cjs/{form-control-help-text-bc3qGHAG.js → form-control-help-text-DQz5O3wX.js} +2 -2
  23. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  24. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +4 -4
  25. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
  26. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
  27. package/dist/cjs/form-control-number.cjs.entry.js +4 -4
  28. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  29. package/dist/cjs/{get-business-BBzGEPBG.js → get-business-DHg5rpse.js} +2 -2
  30. package/dist/cjs/{get-payment-details-DQyJtwTw.js → get-payment-details-DqvDYbnK.js} +2 -2
  31. package/dist/cjs/{get-payout-csv-Jr_0DmmY.js → get-payout-csv-CXEQkjDm.js} +2 -2
  32. package/dist/cjs/{get-subaccounts-zwxhG-O3.js → get-subaccounts-CasN5tDA.js} +8 -8
  33. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  34. package/dist/cjs/{header-1-kwWMtg3s.js → header-1-Bl1S9jV8.js} +2 -2
  35. package/dist/cjs/{header-3-CNWIH9ZU.js → header-3-DYzIjFIZ.js} +2 -2
  36. package/dist/cjs/{iframe-input-styles-state-jHHRvqzM.js → iframe-input-styles-state-D9vhHzZQ.js} +1 -1
  37. package/dist/cjs/iframe-input.cjs.entry.js +6 -6
  38. package/dist/cjs/{index-DzQdh5ij.js → index-B8ljHEN1.js} +1 -1
  39. package/dist/cjs/{index-BRQfozbS.js → index-BYd8IvAa.js} +1 -1
  40. package/dist/cjs/{insurance-state-DbXkNYds.js → insurance-state-BbmHHQl0.js} +3 -3
  41. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +6 -6
  42. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +7 -4
  43. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +2 -2
  44. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -7
  45. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
  46. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  47. package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
  48. package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
  49. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -5
  50. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -11
  51. package/dist/cjs/justifi-config-provider.cjs.entry.js +26 -0
  52. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  53. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  54. package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -7
  56. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  57. package/dist/cjs/justifi-order-terminals.cjs.entry.js +18 -19
  58. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -4
  59. package/dist/cjs/justifi-payment-details.cjs.entry.js +12 -11
  60. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  61. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -4
  62. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +15 -14
  63. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +5 -5
  64. package/dist/cjs/justifi-payments-list.cjs.entry.js +17 -16
  65. package/dist/cjs/justifi-payout-details.cjs.entry.js +12 -11
  66. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -14
  67. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +5 -5
  68. package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -19
  69. package/dist/cjs/justifi-refund-payment.cjs.entry.js +21 -20
  70. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +6 -6
  71. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
  72. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  73. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +19 -22
  74. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
  75. package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
  76. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +6 -6
  77. package/dist/cjs/loader.cjs.js +2 -2
  78. package/dist/cjs/{package-S6wVKDKx.js → package-CseQI95t.js} +1 -1
  79. package/dist/cjs/pagination-menu.cjs.entry.js +5 -5
  80. package/dist/cjs/{parts-D_uKOPFe.js → parts-Du1T2dvF.js} +12 -3
  81. package/dist/cjs/payment-details-core.cjs.entry.js +7 -7
  82. package/dist/cjs/payment.service-CAJSEb2x.js +21 -0
  83. package/dist/cjs/payments-list-core.cjs.entry.js +10 -10
  84. package/dist/cjs/{checkouts-list-params-state-DX4jg37H.js → payments-list-params-state-BvG5Ysrg.js} +1 -1
  85. package/dist/cjs/{payments-status-CQq7KrHL.js → payments-status-hksfHuBH.js} +2 -2
  86. package/dist/cjs/{payments-table-ClOxMnZ8.js → payments-table-CmvP6owu.js} +3 -3
  87. package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
  88. package/dist/cjs/payout.service-wOnSu52a.js +26 -0
  89. package/dist/cjs/payouts-list-core.cjs.entry.js +9 -9
  90. package/dist/cjs/{terminal-orders-list-params-state-DX4jg37H.js → payouts-list-params-state-BvG5Ysrg.js} +1 -1
  91. package/dist/cjs/{payouts-status-BdfV3jvX.js → payouts-status-DfNhfSsm.js} +2 -2
  92. package/dist/cjs/{payouts-table-Bo3pLf4Z.js → payouts-table-CpgWxl8A.js} +3 -3
  93. package/dist/cjs/{skeleton-BXVndBVC.js → skeleton-BFtuPBwQ.js} +2 -2
  94. package/dist/cjs/{spinner-CSH2OUiV.js → spinner-C9z2tkh2.js} +2 -2
  95. package/dist/cjs/{styled-host-CzJ8Ux1t.js → styled-host-udkBJV5h.js} +1 -1
  96. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  97. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +8 -8
  98. package/dist/cjs/{payments-list-params-state-DX4jg37H.js → terminal-orders-list-params-state-BvG5Ysrg.js} +1 -1
  99. package/dist/cjs/{terminal-orders-table-CXmVc7uU.js → terminal-orders-table-CpVY3VsQ.js} +3 -3
  100. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  101. package/dist/cjs/terminal.service-cGQB3xiL.js +29 -0
  102. package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
  103. package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +22 -0
  104. package/dist/cjs/{terminals-table-vYbTPOpy.js → terminals-table-DRQQjYAE.js} +3 -3
  105. package/dist/cjs/{utils-DxbncJhj.js → utils-B_Ol6YlL.js} +2 -2
  106. package/dist/cjs/webcomponents.cjs.js +3 -3
  107. package/dist/collection/actions/business/get-business.js +2 -2
  108. package/dist/collection/actions/payment/get-payment-details.js +2 -2
  109. package/dist/collection/actions/payment/get-payment-transactions.js +2 -2
  110. package/dist/collection/actions/payment/get-payments.js +2 -2
  111. package/dist/collection/actions/payout/get-payout-transactions.js +2 -2
  112. package/dist/collection/actions/payout/get-payouts.js +2 -2
  113. package/dist/collection/actions/refund/refund-actions.js +2 -2
  114. package/dist/collection/actions/sub-account/get-subaccounts.js +2 -2
  115. package/dist/collection/actions/terminal/get-terminal-models.js +2 -2
  116. package/dist/collection/actions/terminal/get-terminal-orders.js +2 -2
  117. package/dist/collection/actions/terminal/get-terminals.js +2 -2
  118. package/dist/collection/api/ApiNew.js +82 -0
  119. package/dist/collection/api/services/business.service.js +4 -2
  120. package/dist/collection/api/services/payment.service.js +8 -8
  121. package/dist/collection/api/services/payout.service.js +11 -13
  122. package/dist/collection/api/services/refund.service.js +5 -4
  123. package/dist/collection/api/services/subaccounts.service.js +5 -5
  124. package/dist/collection/api/services/terminal.service.js +14 -15
  125. package/dist/collection/api/services/terminal_orders.service.js +5 -9
  126. package/dist/collection/collection-manifest.json +2 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +1 -1
  128. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  129. package/dist/collection/components/checkouts-list/checkouts-list.js +2 -3
  130. package/dist/collection/components/config-provider/config-provider.js +83 -0
  131. package/dist/collection/components/config-provider/config-state.js +36 -0
  132. package/dist/collection/components/order-terminals/order-terminals.js +4 -28
  133. package/dist/collection/components/payment-details/payment-details.js +1 -23
  134. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +2 -24
  135. package/dist/collection/components/payments-list/payments-list-core.js +2 -2
  136. package/dist/collection/components/payments-list/payments-list.js +2 -24
  137. package/dist/collection/components/payout-details/get-payout-csv.js +2 -2
  138. package/dist/collection/components/payout-details/payout-details.js +1 -23
  139. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +4 -24
  140. package/dist/collection/components/payouts-list/payouts-list.js +3 -26
  141. package/dist/collection/components/refund-payment/refund-payment.js +2 -25
  142. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +2 -24
  143. package/dist/collection/components/terminals-list/terminals-list.js +3 -26
  144. package/dist/collection/styles/parts.js +10 -3
  145. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +4 -4
  146. package/dist/docs.json +94 -242
  147. package/dist/esm/ApiNew-UOnmIWcv.js +84 -0
  148. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  149. package/dist/esm/{badge-D5PvLnZT.js → badge-B191hCAo.js} +2 -2
  150. package/dist/esm/bank-account-document-form-inputs_4.entry.js +4 -4
  151. package/dist/esm/bank-account-form_9.entry.js +6 -6
  152. package/dist/esm/{business-additional-questions-schema-W6okG5Xu.js → business-additional-questions-schema-DWnZs60Z.js} +1 -1
  153. package/dist/esm/business-details-core.entry.js +5 -5
  154. package/dist/esm/{business.service-B136meVo.js → business.service-B1VD22Tz.js} +11 -9
  155. package/dist/esm/{button-wgHJf7hN.js → button-BRFA5syj.js} +2 -2
  156. package/dist/esm/{check-pkg-version-iIBw3nCc.js → check-pkg-version-DpVT68Qo.js} +1 -1
  157. package/dist/esm/checkouts-list-core.entry.js +8 -8
  158. package/dist/esm/{checkouts-list-params-state-qgJxi6iW.js → checkouts-list-params-state-Bn7pL-8x.js} +1 -1
  159. package/dist/esm/{checkouts-table-DQfjKgR-.js → checkouts-table-BIO5rpvV.js} +3 -3
  160. package/dist/esm/config-state-Bl6vWekp.js +38 -0
  161. package/dist/esm/custom-popper_4.entry.js +3 -3
  162. package/dist/esm/{event-types-Dv-I6YqZ.js → event-types-BIryDMGV.js} +3 -3
  163. package/dist/esm/form-alert_5.entry.js +2 -2
  164. package/dist/esm/form-control-checkbox.entry.js +4 -4
  165. package/dist/esm/form-control-date.entry.js +3 -3
  166. package/dist/esm/{form-control-error-text-nyeinPVQ.js → form-control-error-text-CVPFeRt0.js} +2 -2
  167. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  168. package/dist/esm/{form-control-help-text-QhxeQeTV.js → form-control-help-text-D-ReDn6e.js} +2 -2
  169. package/dist/esm/form-control-help-text.entry.js +1 -1
  170. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
  171. package/dist/esm/form-control-monetary.entry.js +4 -4
  172. package/dist/esm/form-control-number-masked_2.entry.js +3 -3
  173. package/dist/esm/form-control-number.entry.js +4 -4
  174. package/dist/esm/form-control-radio.entry.js +2 -2
  175. package/dist/esm/{get-business-B3c5gg1D.js → get-business-CIKToQur.js} +2 -2
  176. package/dist/esm/{get-payment-details-Bzh5t6A8.js → get-payment-details-CXiGG9cO.js} +2 -2
  177. package/dist/esm/{get-payout-csv-bM3pZLKB.js → get-payout-csv-D7IYYqVL.js} +2 -2
  178. package/dist/esm/{get-subaccounts-BB3Sqb3H.js → get-subaccounts-COe5GtaY.js} +8 -8
  179. package/dist/esm/gross-payment-chart-core.entry.js +4 -4
  180. package/dist/esm/{header-1-DNg4xuR6.js → header-1-ClU-iUGF.js} +2 -2
  181. package/dist/esm/{header-3-BD_mh7vB.js → header-3-jLYjhsUb.js} +2 -2
  182. package/dist/esm/{iframe-input-styles-state-DeH54Fkx.js → iframe-input-styles-state-ibYqbF--.js} +1 -1
  183. package/dist/esm/iframe-input.entry.js +6 -6
  184. package/dist/esm/{index-4sfb1rKO.js → index-Cc3u0uDC.js} +1 -1
  185. package/dist/esm/{index-D4-FKsCU.js → index-D6FDxSyt.js} +1 -1
  186. package/dist/esm/{insurance-state-CXUWRQQk.js → insurance-state-5MPrBdwI.js} +3 -3
  187. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +6 -6
  188. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +7 -4
  189. package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
  190. package/dist/esm/justifi-business-details.entry.js +10 -7
  191. package/dist/esm/justifi-business-form.entry.js +9 -9
  192. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  193. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  194. package/dist/esm/justifi-checkout.entry.js +3 -3
  195. package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
  196. package/dist/esm/justifi-checkouts-list.entry.js +13 -11
  197. package/dist/esm/justifi-config-provider.entry.js +24 -0
  198. package/dist/esm/justifi-details.entry.js +3 -3
  199. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  200. package/dist/esm/justifi-dispute-management.entry.js +3 -3
  201. package/dist/esm/justifi-dispute-notification_3.entry.js +7 -7
  202. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  203. package/dist/esm/justifi-order-terminals.entry.js +18 -19
  204. package/dist/esm/justifi-owner-form_3.entry.js +7 -4
  205. package/dist/esm/justifi-payment-details.entry.js +12 -11
  206. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  207. package/dist/esm/justifi-payment-provisioning.entry.js +7 -4
  208. package/dist/esm/justifi-payment-transactions-list.entry.js +15 -14
  209. package/dist/esm/justifi-payments-list-filters.entry.js +5 -5
  210. package/dist/esm/justifi-payments-list.entry.js +17 -16
  211. package/dist/esm/justifi-payout-details.entry.js +12 -11
  212. package/dist/esm/justifi-payout-transactions-list.entry.js +16 -14
  213. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
  214. package/dist/esm/justifi-payouts-list.entry.js +19 -19
  215. package/dist/esm/justifi-refund-payment.entry.js +21 -20
  216. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -6
  217. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
  218. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  219. package/dist/esm/justifi-terminal-orders-list.entry.js +19 -22
  220. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
  221. package/dist/esm/justifi-terminals-list.entry.js +17 -17
  222. package/dist/esm/justifi-tokenize-payment-method.entry.js +6 -6
  223. package/dist/esm/loader.js +3 -3
  224. package/dist/esm/{package-DGWLSvML.js → package-D2EbqwBe.js} +1 -1
  225. package/dist/esm/pagination-menu.entry.js +5 -5
  226. package/dist/esm/{parts-6ctk_bhj.js → parts-CjO1GttX.js} +9 -4
  227. package/dist/esm/payment-details-core.entry.js +7 -7
  228. package/dist/esm/payment.service-B9_zvpM_.js +19 -0
  229. package/dist/esm/payments-list-core.entry.js +10 -10
  230. package/dist/esm/{payments-list-params-state-qgJxi6iW.js → payments-list-params-state-Bn7pL-8x.js} +1 -1
  231. package/dist/esm/{payments-status-nKLMqTrO.js → payments-status-CQQH_5oM.js} +2 -2
  232. package/dist/esm/{payments-table-BrvZHeak.js → payments-table-BdQtWUO-.js} +3 -3
  233. package/dist/esm/payout-details-core.entry.js +8 -8
  234. package/dist/esm/payout.service-BGSaI-j9.js +24 -0
  235. package/dist/esm/payouts-list-core.entry.js +9 -9
  236. package/dist/esm/{payouts-list-params-state-qgJxi6iW.js → payouts-list-params-state-Bn7pL-8x.js} +1 -1
  237. package/dist/esm/{payouts-status-tVJFGPCs.js → payouts-status-Cz9DL-Ph.js} +2 -2
  238. package/dist/esm/{payouts-table-CgfTp9tE.js → payouts-table-bOrdlN_0.js} +3 -3
  239. package/dist/esm/{skeleton-D8dsThNX.js → skeleton-t69TLGP9.js} +2 -2
  240. package/dist/esm/{spinner-BVJ-upD0.js → spinner-Bo1Ff3L8.js} +2 -2
  241. package/dist/esm/{styled-host-D594Ui4d.js → styled-host-C7vaWLiB.js} +1 -1
  242. package/dist/esm/table-filters-menu.entry.js +3 -3
  243. package/dist/esm/terminal-orders-list-core.entry.js +8 -8
  244. package/dist/esm/{terminal-orders-list-params-state-qgJxi6iW.js → terminal-orders-list-params-state-Bn7pL-8x.js} +1 -1
  245. package/dist/esm/{terminal-orders-table-CgioW1d8.js → terminal-orders-table-5gemV24y.js} +3 -3
  246. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  247. package/dist/esm/terminal.service-B0Rc9vED.js +27 -0
  248. package/dist/esm/terminals-list-core.entry.js +8 -8
  249. package/dist/esm/terminals-list-params-state-Bn7pL-8x.js +16 -0
  250. package/dist/esm/{terminals-table-D7LKwR85.js → terminals-table-DFxuyQM-.js} +3 -3
  251. package/dist/esm/{utils-1z8cNzLu.js → utils-CK8L6CE7.js} +2 -2
  252. package/dist/esm/webcomponents.js +4 -4
  253. package/dist/module/ApiNew.js +84 -0
  254. package/dist/module/additional-statement.js +1 -1
  255. package/dist/module/badge.js +1 -1
  256. package/dist/module/billing-form.js +1 -1
  257. package/dist/module/business-core-info-form-step-core.js +1 -1
  258. package/dist/module/business-core-info-schema.js +1 -1
  259. package/dist/module/business.service.js +11 -9
  260. package/dist/module/button.js +1 -1
  261. package/dist/module/cancellation-policy.js +1 -1
  262. package/dist/module/checkout-core.js +1 -1
  263. package/dist/module/checkouts-list-core2.js +1 -1
  264. package/dist/module/config-state.js +38 -0
  265. package/dist/module/customer-details.js +1 -1
  266. package/dist/module/dispute-notification.js +1 -1
  267. package/dist/module/dispute-response-core.js +1 -1
  268. package/dist/module/duplicate-charge.js +1 -1
  269. package/dist/module/electronic-evidence.js +1 -1
  270. package/dist/module/event-types3.js +1 -1
  271. package/dist/module/form-alert2.js +1 -1
  272. package/dist/module/form-control-checkbox2.js +1 -1
  273. package/dist/module/form-control-monetary-provisioning2.js +1 -1
  274. package/dist/module/form-control-monetary2.js +1 -1
  275. package/dist/module/form-control-number.js +1 -1
  276. package/dist/module/form-control-radio2.js +1 -1
  277. package/dist/module/form-control-textarea2.js +1 -1
  278. package/dist/module/get-business.js +2 -2
  279. package/dist/module/get-payment-details.js +2 -2
  280. package/dist/module/get-payout-csv.js +2 -2
  281. package/dist/module/get-subaccounts.js +8 -8
  282. package/dist/module/hidden-input2.js +1 -1
  283. package/dist/module/iframe-input2.js +1 -1
  284. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  285. package/dist/module/justifi-checkouts-list.js +2 -3
  286. package/dist/module/justifi-config-provider.d.ts +11 -0
  287. package/dist/module/justifi-config-provider.js +45 -0
  288. package/dist/module/justifi-order-terminals.js +7 -12
  289. package/dist/module/justifi-payment-details.js +1 -4
  290. package/dist/module/justifi-payment-transactions-list.js +5 -8
  291. package/dist/module/justifi-payments-list-filters.js +1 -1
  292. package/dist/module/justifi-payments-list.js +4 -7
  293. package/dist/module/justifi-payout-details.js +1 -4
  294. package/dist/module/justifi-payout-transactions-list.js +7 -8
  295. package/dist/module/justifi-payouts-list-filters.js +1 -1
  296. package/dist/module/justifi-payouts-list.js +5 -9
  297. package/dist/module/justifi-refund-payment.js +9 -12
  298. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  299. package/dist/module/justifi-terminal-orders-list.js +9 -16
  300. package/dist/module/justifi-terminals-list-filters.js +1 -1
  301. package/dist/module/justifi-terminals-list.js +5 -9
  302. package/dist/module/new-payment-method.js +1 -1
  303. package/dist/module/owner-form-core2.js +1 -1
  304. package/dist/module/package.js +1 -1
  305. package/dist/module/pagination-menu2.js +4 -4
  306. package/dist/module/parts.js +9 -4
  307. package/dist/module/payment.service.js +8 -14
  308. package/dist/module/payments-list-core2.js +2 -2
  309. package/dist/module/payout.service.js +11 -19
  310. package/dist/module/payouts-list-core2.js +1 -1
  311. package/dist/module/product-or-service.js +1 -1
  312. package/dist/module/refund-policy.js +1 -1
  313. package/dist/module/saved-payment-method.js +1 -1
  314. package/dist/module/sezzle-payment-method.js +1 -1
  315. package/dist/module/shipping-details.js +1 -1
  316. package/dist/module/spinner.js +1 -1
  317. package/dist/module/table-filters-menu2.js +1 -1
  318. package/dist/module/terminal-orders-list-core2.js +1 -1
  319. package/dist/module/terminal-quantity-selector2.js +1 -1
  320. package/dist/module/terminal.service.js +14 -21
  321. package/dist/module/terminals-list-core2.js +1 -1
  322. package/dist/types/actions/business/get-business.d.ts +1 -2
  323. package/dist/types/actions/payment/get-payment-details.d.ts +1 -2
  324. package/dist/types/actions/payment/get-payment-transactions.d.ts +1 -2
  325. package/dist/types/actions/payment/get-payments.d.ts +1 -2
  326. package/dist/types/actions/payout/get-payout-transactions.d.ts +2 -2
  327. package/dist/types/actions/payout/get-payouts.d.ts +1 -2
  328. package/dist/types/actions/refund/refund-actions.d.ts +1 -2
  329. package/dist/types/actions/sub-account/get-subaccounts.d.ts +1 -2
  330. package/dist/types/actions/terminal/get-terminal-models.d.ts +1 -2
  331. package/dist/types/actions/terminal/get-terminal-orders.d.ts +1 -2
  332. package/dist/types/actions/terminal/get-terminals.d.ts +1 -2
  333. package/dist/types/api/ApiNew.d.ts +61 -0
  334. package/dist/types/api/services/business.service.d.ts +1 -1
  335. package/dist/types/api/services/payment.service.d.ts +7 -7
  336. package/dist/types/api/services/payout.service.d.ts +10 -9
  337. package/dist/types/api/services/refund.service.d.ts +2 -2
  338. package/dist/types/api/services/subaccounts.service.d.ts +4 -3
  339. package/dist/types/api/services/terminal.service.d.ts +8 -8
  340. package/dist/types/api/services/terminal_orders.service.d.ts +2 -2
  341. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -2
  342. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +1 -1
  343. package/dist/types/components/config-provider/config-provider.d.ts +7 -0
  344. package/dist/types/components/config-provider/config-state.d.ts +13 -0
  345. package/dist/types/components/order-terminals/order-terminals.d.ts +0 -1
  346. package/dist/types/components/payment-details/payment-details.d.ts +0 -1
  347. package/dist/types/components/payment-transactions-list/payment-transactions-list.d.ts +0 -1
  348. package/dist/types/components/payments-list/payments-list.d.ts +0 -1
  349. package/dist/types/components/payout-details/get-payout-csv.d.ts +1 -2
  350. package/dist/types/components/payout-details/payout-details.d.ts +0 -1
  351. package/dist/types/components/payout-transactions-list/payout-transactions-list.d.ts +0 -1
  352. package/dist/types/components/payouts-list/payouts-list.d.ts +0 -1
  353. package/dist/types/components/refund-payment/refund-payment.d.ts +0 -1
  354. package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +0 -1
  355. package/dist/types/components/terminals-list/terminals-list.d.ts +0 -1
  356. package/dist/types/components.d.ts +19 -20
  357. package/dist/types/styles/parts.d.ts +10 -4
  358. package/dist/webcomponents/{p-103692ef.entry.js → p-00eb2bc9.entry.js} +1 -1
  359. package/dist/webcomponents/p-0c2f2ea9.entry.js +1 -0
  360. package/dist/webcomponents/{p-bbc56c17.entry.js → p-11344996.entry.js} +1 -1
  361. package/dist/webcomponents/{p-3b1f69fd.entry.js → p-12674a89.entry.js} +1 -1
  362. package/dist/webcomponents/p-19581139.entry.js +1 -0
  363. package/dist/webcomponents/p-19d21f35.entry.js +1 -0
  364. package/dist/webcomponents/{p-76e7c283.entry.js → p-2294e63b.entry.js} +1 -1
  365. package/dist/webcomponents/{p-1c2bedfe.entry.js → p-24e04f78.entry.js} +1 -1
  366. package/dist/webcomponents/p-2P4kwjNi.js +1 -0
  367. package/dist/webcomponents/{p-a4e7d24f.entry.js → p-30466d27.entry.js} +1 -1
  368. package/dist/webcomponents/{p-c5b66da3.entry.js → p-32c156c6.entry.js} +1 -1
  369. package/dist/webcomponents/p-32ff6641.entry.js +1 -0
  370. package/dist/webcomponents/{p-10ad134d.entry.js → p-38d6c034.entry.js} +1 -1
  371. package/dist/webcomponents/{p-0c9c8d6f.entry.js → p-3add8d1b.entry.js} +1 -1
  372. package/dist/webcomponents/{p-175a913f.entry.js → p-3c01edb0.entry.js} +1 -1
  373. package/dist/webcomponents/{p-b5dd55b1.entry.js → p-3cd9d9d8.entry.js} +1 -1
  374. package/dist/webcomponents/{p-405f135e.entry.js → p-4028ccb0.entry.js} +1 -1
  375. package/dist/webcomponents/p-43140695.entry.js +1 -0
  376. package/dist/webcomponents/{p-487514c2.entry.js → p-493c9bd9.entry.js} +1 -1
  377. package/dist/webcomponents/{p-103deee0.entry.js → p-4ac754e7.entry.js} +1 -1
  378. package/dist/webcomponents/p-4afcb015.entry.js +1 -0
  379. package/dist/webcomponents/p-4c64b1e9.entry.js +1 -0
  380. package/dist/webcomponents/{p-8d4d2ac3.entry.js → p-4e3aca7a.entry.js} +1 -1
  381. package/dist/webcomponents/{p-938e0dbc.entry.js → p-4e489cf9.entry.js} +1 -1
  382. package/dist/webcomponents/{p-656ec7b6.entry.js → p-4e61f480.entry.js} +1 -1
  383. package/dist/webcomponents/{p-40614f67.entry.js → p-4f98895d.entry.js} +1 -1
  384. package/dist/webcomponents/p-4fc851c0.entry.js +1 -0
  385. package/dist/webcomponents/p-526be31d.entry.js +1 -0
  386. package/dist/webcomponents/p-575fc637.entry.js +1 -0
  387. package/dist/webcomponents/p-581ca781.entry.js +1 -0
  388. package/dist/webcomponents/{p-4c4cc0ad.entry.js → p-5a1238a1.entry.js} +1 -1
  389. package/dist/webcomponents/p-5b4cbfd4.entry.js +1 -0
  390. package/dist/webcomponents/{p-d7ea4db7.entry.js → p-5d8d1818.entry.js} +1 -1
  391. package/dist/webcomponents/{p-a78bf0f7.entry.js → p-5eb85754.entry.js} +1 -1
  392. package/dist/webcomponents/{p-dadb97e1.entry.js → p-5f02ec20.entry.js} +1 -1
  393. package/dist/webcomponents/p-6567b171.entry.js +1 -0
  394. package/dist/webcomponents/p-6d701784.entry.js +1 -0
  395. package/dist/webcomponents/p-6n7viK-J.js +1 -0
  396. package/dist/webcomponents/{p-529bf046.entry.js → p-78511d66.entry.js} +1 -1
  397. package/dist/webcomponents/{p-94d81903.entry.js → p-7b649051.entry.js} +1 -1
  398. package/dist/webcomponents/{p-54aa7e86.entry.js → p-805269fd.entry.js} +1 -1
  399. package/dist/webcomponents/p-9d354918.entry.js +1 -0
  400. package/dist/webcomponents/p-B4Bi1JkP.js +1 -0
  401. package/dist/webcomponents/p-BMDJA9xX.js +1 -0
  402. package/dist/webcomponents/{p-CG9te8PM.js → p-BQEAUdoy.js} +1 -1
  403. package/dist/webcomponents/p-BS-e1gnL.js +1 -0
  404. package/dist/webcomponents/{p-DmBEzYCU.js → p-BXey6mVj.js} +1 -1
  405. package/dist/webcomponents/{p-D6mhG0dV.js → p-BdNmdBIx.js} +1 -1
  406. package/dist/webcomponents/p-Bl3qFMoN.js +1 -0
  407. package/dist/webcomponents/p-Bl79NorO.js +1 -0
  408. package/dist/webcomponents/p-CN_YheWL.js +1 -0
  409. package/dist/webcomponents/p-CPXN4Ths.js +1 -0
  410. package/dist/webcomponents/p-CSwEbNEl.js +1 -0
  411. package/dist/webcomponents/p-CWpAvtGa.js +1 -0
  412. package/dist/webcomponents/{p-CCN8wTYX.js → p-Cd06j2SL.js} +1 -1
  413. package/dist/webcomponents/p-CegkOiUz.js +1 -0
  414. package/dist/webcomponents/p-CiKdTI9h.js +1 -0
  415. package/dist/webcomponents/{p-DgQyL5KO.js → p-Cixn6QDS.js} +1 -1
  416. package/dist/webcomponents/p-CjO1GttX.js +1 -0
  417. package/dist/webcomponents/p-D2EbqwBe.js +1 -0
  418. package/dist/webcomponents/p-D5Sh88BE.js +1 -0
  419. package/dist/webcomponents/{p-DBfKxfCX.js → p-D9q8WsW5.js} +1 -1
  420. package/dist/webcomponents/p-DD14E0K0.js +1 -0
  421. package/dist/webcomponents/{p-CgS6VBEy.js → p-DDEz7_ad.js} +1 -1
  422. package/dist/webcomponents/p-DJzjeg3x.js +1 -0
  423. package/dist/webcomponents/p-DjGTAHJM.js +1 -0
  424. package/dist/webcomponents/p-DmIOVniD.js +1 -0
  425. package/dist/webcomponents/p-DniQ6yo6.js +1 -0
  426. package/dist/webcomponents/{p-BxGoUIgN.js → p-Dss1xCBW.js} +1 -1
  427. package/dist/webcomponents/{p-lvlr3zXn.js → p-DuYlA4lj.js} +1 -1
  428. package/dist/webcomponents/p-Dumd8fMw.js +1 -0
  429. package/dist/webcomponents/{p-BwgcVN7d.js → p-DyIEclkx.js} +1 -1
  430. package/dist/webcomponents/p-ERVEQjR2.js +1 -0
  431. package/dist/webcomponents/{p-C3uv9u0l.js → p-GTA6l_sT.js} +1 -1
  432. package/dist/webcomponents/p-KLQjERL5.js +1 -0
  433. package/dist/webcomponents/{p-D5wGYrfz.js → p-OjYukdAC.js} +1 -1
  434. package/dist/webcomponents/p-_bsEVFir.js +1 -0
  435. package/dist/webcomponents/{p-9cf5ed80.entry.js → p-a2f77373.entry.js} +1 -1
  436. package/dist/webcomponents/{p-5321c7d5.entry.js → p-a4c08055.entry.js} +1 -1
  437. package/dist/webcomponents/{p-b15d6c77.entry.js → p-a93cceca.entry.js} +1 -1
  438. package/dist/webcomponents/p-ab5cde61.entry.js +1 -0
  439. package/dist/webcomponents/p-ac98a15e.entry.js +1 -0
  440. package/dist/webcomponents/p-b0430518.entry.js +1 -0
  441. package/dist/webcomponents/{p-0b0e44c4.entry.js → p-b05693c6.entry.js} +1 -1
  442. package/dist/webcomponents/{p-0b1bbf91.entry.js → p-b182796a.entry.js} +1 -1
  443. package/dist/webcomponents/{p-048ed3f0.entry.js → p-b25b8534.entry.js} +1 -1
  444. package/dist/webcomponents/{p-bc3d56a7.entry.js → p-b2db4fae.entry.js} +1 -1
  445. package/dist/webcomponents/p-b40108c0.entry.js +1 -0
  446. package/dist/webcomponents/{p-6d36d6a7.entry.js → p-bb5c9475.entry.js} +1 -1
  447. package/dist/webcomponents/p-bb97192f.entry.js +1 -0
  448. package/dist/webcomponents/{p-9767500b.entry.js → p-c77481fe.entry.js} +1 -1
  449. package/dist/webcomponents/p-c899df50.entry.js +1 -0
  450. package/dist/webcomponents/{p-ffbf35a4.entry.js → p-ca11ad58.entry.js} +1 -1
  451. package/dist/webcomponents/p-d06f7faf.entry.js +1 -0
  452. package/dist/webcomponents/{p-4d5b8876.entry.js → p-d2fbf7ea.entry.js} +1 -1
  453. package/dist/webcomponents/p-d7a04fdd.entry.js +1 -0
  454. package/dist/webcomponents/p-d8f7a73b.entry.js +1 -0
  455. package/dist/webcomponents/{p-009c6766.entry.js → p-d90b8cc2.entry.js} +1 -1
  456. package/dist/webcomponents/p-e558eab8.entry.js +1 -0
  457. package/dist/webcomponents/{p-896e4fb2.entry.js → p-f2dc1405.entry.js} +1 -1
  458. package/dist/webcomponents/p-oPo_KSwO.js +1 -0
  459. package/dist/webcomponents/p-um3YdOwW.js +1 -0
  460. package/dist/webcomponents/p-wqUvt1PB.js +1 -0
  461. package/dist/webcomponents/webcomponents.esm.js +1 -1
  462. package/package.json +1 -1
  463. package/dist/cjs/payment.service-BstXaxH5.js +0 -27
  464. package/dist/cjs/payout.service-DWOtnFdn.js +0 -34
  465. package/dist/cjs/terminal.service-ghxwDinY.js +0 -36
  466. package/dist/cjs/terminals-list-params-state-DX4jg37H.js +0 -22
  467. package/dist/esm/payment.service-CeGn-K_X.js +0 -25
  468. package/dist/esm/payout.service-dukCI9Kl.js +0 -32
  469. package/dist/esm/terminal.service-L0EoPXUE.js +0 -34
  470. package/dist/esm/terminals-list-params-state-qgJxi6iW.js +0 -16
  471. package/dist/webcomponents/p-0764cfde.entry.js +0 -1
  472. package/dist/webcomponents/p-08dcbb41.entry.js +0 -1
  473. package/dist/webcomponents/p-36656ed1.entry.js +0 -1
  474. package/dist/webcomponents/p-3678f5fb.entry.js +0 -1
  475. package/dist/webcomponents/p-41a0b83c.entry.js +0 -1
  476. package/dist/webcomponents/p-4361ae88.entry.js +0 -1
  477. package/dist/webcomponents/p-4994c980.entry.js +0 -1
  478. package/dist/webcomponents/p-5aeOUdhX.js +0 -1
  479. package/dist/webcomponents/p-601669bb.entry.js +0 -1
  480. package/dist/webcomponents/p-63c835b9.entry.js +0 -1
  481. package/dist/webcomponents/p-6ctk_bhj.js +0 -1
  482. package/dist/webcomponents/p-81a1be23.entry.js +0 -1
  483. package/dist/webcomponents/p-81d682ba.entry.js +0 -1
  484. package/dist/webcomponents/p-85681d97.entry.js +0 -1
  485. package/dist/webcomponents/p-88539215.entry.js +0 -1
  486. package/dist/webcomponents/p-8bc32c27.entry.js +0 -1
  487. package/dist/webcomponents/p-9349d32e.entry.js +0 -1
  488. package/dist/webcomponents/p-B2H14Naw.js +0 -1
  489. package/dist/webcomponents/p-B4iBNBBM.js +0 -1
  490. package/dist/webcomponents/p-BAXE_ZfF.js +0 -1
  491. package/dist/webcomponents/p-BLdGqrQH.js +0 -1
  492. package/dist/webcomponents/p-BODr6HXb.js +0 -1
  493. package/dist/webcomponents/p-BoPxMyJA.js +0 -1
  494. package/dist/webcomponents/p-BupmNfQ5.js +0 -1
  495. package/dist/webcomponents/p-BvWS8buZ.js +0 -1
  496. package/dist/webcomponents/p-CGz3XHQc.js +0 -1
  497. package/dist/webcomponents/p-CRgzzPY4.js +0 -1
  498. package/dist/webcomponents/p-CZLIteZz.js +0 -1
  499. package/dist/webcomponents/p-CbZjB3qJ.js +0 -1
  500. package/dist/webcomponents/p-CfbB7agn.js +0 -1
  501. package/dist/webcomponents/p-D5q9gEvl.js +0 -1
  502. package/dist/webcomponents/p-DArbkdtn.js +0 -1
  503. package/dist/webcomponents/p-DEa8EbZW.js +0 -1
  504. package/dist/webcomponents/p-DGWLSvML.js +0 -1
  505. package/dist/webcomponents/p-DPC4A7AZ.js +0 -1
  506. package/dist/webcomponents/p-EbYREopN.js +0 -1
  507. package/dist/webcomponents/p-NI7Keg2H.js +0 -1
  508. package/dist/webcomponents/p-XazJ9qLe.js +0 -1
  509. package/dist/webcomponents/p-Xql8Xhsx.js +0 -1
  510. package/dist/webcomponents/p-a83bf2c0.entry.js +0 -1
  511. package/dist/webcomponents/p-b8096d2b.entry.js +0 -1
  512. package/dist/webcomponents/p-bf83ba04.entry.js +0 -1
  513. package/dist/webcomponents/p-c7dc7184.entry.js +0 -1
  514. package/dist/webcomponents/p-cb8b91ea.entry.js +0 -1
  515. package/dist/webcomponents/p-dafac427.entry.js +0 -1
  516. package/dist/webcomponents/p-dca205de.entry.js +0 -1
  517. package/dist/webcomponents/p-df3fb523.entry.js +0 -1
  518. package/dist/webcomponents/p-f-9W4QBD.js +0 -1
  519. package/dist/webcomponents/p-f604d6ea.entry.js +0 -1
  520. package/dist/webcomponents/p-obi7kkCX.js +0 -1
  521. /package/dist/webcomponents/{p-D4-FKsCU.js → p-D6FDxSyt.js} +0 -0
@@ -0,0 +1,82 @@
1
+ import { waitForConfig, configState } from "../components/config-provider/config-state";
2
+ import { generateId } from "../utils/utils";
3
+ const Api = () => {
4
+ async function getAuthorizationHeader(authToken) {
5
+ if (!authToken) {
6
+ return {
7
+ 'Content-Type': 'application/json',
8
+ };
9
+ }
10
+ return {
11
+ Authorization: `Bearer ${authToken}`,
12
+ 'Idempotency-Key': generateId(),
13
+ 'Content-Type': 'application/json',
14
+ };
15
+ }
16
+ async function makeRequest(props) {
17
+ const { authToken, endpoint, method, params, body, signal, headers } = props;
18
+ await waitForConfig();
19
+ const apiOrigin = configState.apiOrigin;
20
+ const url = `${apiOrigin}/v1/${endpoint}`;
21
+ const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;
22
+ const defaultHeaders = await getAuthorizationHeader(authToken);
23
+ const mergedHeaders = Object.assign(Object.assign({}, defaultHeaders), headers);
24
+ const response = await fetch(requestUrl, {
25
+ method: method,
26
+ headers: mergedHeaders,
27
+ body: body,
28
+ signal: signal,
29
+ });
30
+ if (response) {
31
+ return response.status === 204 ? {} : response.json();
32
+ }
33
+ handleError(requestUrl);
34
+ }
35
+ async function get(props) {
36
+ const { authToken, endpoint, params, signal, headers } = props;
37
+ return makeRequest({ authToken, endpoint, method: 'GET', params, signal, headers });
38
+ }
39
+ async function post(props) {
40
+ const { authToken, endpoint, body, params, signal, headers } = props;
41
+ return makeRequest({
42
+ authToken,
43
+ endpoint,
44
+ method: 'POST',
45
+ params,
46
+ body: JSON.stringify(body),
47
+ signal,
48
+ headers,
49
+ });
50
+ }
51
+ async function put(props) {
52
+ const { authToken, endpoint, body, params, signal } = props;
53
+ return makeRequest({
54
+ authToken,
55
+ endpoint,
56
+ method: 'PUT',
57
+ params,
58
+ body: JSON.stringify(body),
59
+ signal,
60
+ });
61
+ }
62
+ async function patch(props) {
63
+ const { authToken, endpoint, body, params, signal } = props;
64
+ return makeRequest({
65
+ authToken,
66
+ endpoint,
67
+ method: 'PATCH',
68
+ params,
69
+ body: JSON.stringify(body),
70
+ signal,
71
+ });
72
+ }
73
+ async function destroy(props) {
74
+ const { authToken, endpoint, params, signal } = props;
75
+ return makeRequest({ authToken, endpoint, method: 'DELETE', params, signal });
76
+ }
77
+ return { get, post, put, patch, destroy };
78
+ };
79
+ function handleError(requestUrl) {
80
+ console.error(`Error fetching from ${requestUrl}`);
81
+ }
82
+ export default Api;
@@ -1,8 +1,10 @@
1
1
  import Api from "../Api";
2
+ import NewApi from "../ApiNew";
2
3
  export class BusinessService {
3
- async fetchBusiness(businessId, authToken, apiOrigin = PROXY_API_ORIGIN) {
4
+ async fetchBusiness(businessId, authToken) {
5
+ const api = NewApi();
4
6
  const endpoint = `entities/business/${businessId}`;
5
- return Api({ authToken, apiOrigin }).get({ endpoint });
7
+ return api.get({ endpoint, authToken });
6
8
  }
7
9
  async patchBusiness(authToken, businessId, payload) {
8
10
  const endpoint = `entities/business/${businessId}`;
@@ -1,16 +1,16 @@
1
- import { Api } from "..";
1
+ import Api from "../ApiNew";
2
+ const api = Api();
2
3
  export class PaymentService {
3
- async fetchPayments(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
4
- const api = Api({ authToken, apiOrigin: apiOrigin });
4
+ async fetchPayments(accountId, authToken, params) {
5
5
  const endpoint = `account/${accountId}/payments`;
6
- return api.get({ endpoint, params });
6
+ return api.get({ endpoint, params, authToken });
7
7
  }
8
- async fetchPayment(paymentId, authToken, apiOrigin = PROXY_API_ORIGIN) {
8
+ async fetchPayment(paymentId, authToken) {
9
9
  const endpoint = `payments/${paymentId}`;
10
- return Api({ authToken, apiOrigin }).get({ endpoint });
10
+ return api.get({ endpoint, authToken });
11
11
  }
12
- async fetchPaymentTransactions(paymentId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
12
+ async fetchPaymentTransactions(paymentId, authToken, params) {
13
13
  const endpoint = `payments/${paymentId}/payment_balance_transactions`;
14
- return Api({ authToken, apiOrigin }).get({ endpoint, params });
14
+ return api.get({ endpoint, params, authToken });
15
15
  }
16
16
  }
@@ -1,23 +1,21 @@
1
- import { Api } from "..";
1
+ import Api from "../ApiNew";
2
+ const api = Api();
2
3
  export class PayoutService {
3
- async fetchPayouts(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
4
- const api = Api({ authToken, apiOrigin });
4
+ async fetchPayouts(accountId, authToken, params) {
5
5
  const endpoint = `account/${accountId}/payouts`;
6
- return api.get({ endpoint, params });
6
+ return api.get({ authToken, endpoint, params });
7
7
  }
8
- async fetchPayout(payoutId, authToken, apiOrigin = PROXY_API_ORIGIN) {
9
- const api = Api({ authToken, apiOrigin });
8
+ async fetchPayout(payoutId, authToken) {
10
9
  const endpoint = `payouts/${payoutId}`;
11
- return api.get({ endpoint });
10
+ return api.get({ authToken, endpoint });
12
11
  }
13
- async fetchCSV(payoutId, authToken, apiOrigin = PROXY_API_ORIGIN) {
14
- const api = Api({ authToken, apiOrigin });
12
+ async fetchCSV(payoutId, authToken) {
15
13
  const endpoint = `reports/payouts/${payoutId}`;
16
- return api.get({ endpoint });
14
+ return api.get({ authToken, endpoint });
17
15
  }
18
- async fetchPayoutTransactions(authToken, params, apiOrigin = PROXY_API_ORIGIN) {
19
- const api = Api({ authToken, apiOrigin });
16
+ async fetchPayoutTransactions(accountId, authToken, params) {
20
17
  const endpoint = `balance_transactions`;
21
- return api.get({ endpoint, params });
18
+ const headers = { 'sub-account': accountId };
19
+ return api.get({ authToken, endpoint, params, headers });
22
20
  }
23
21
  }
@@ -1,10 +1,11 @@
1
- import { Api } from "..";
1
+ import Api from "../ApiNew";
2
+ const api = Api();
2
3
  ;
3
4
  export class RefundService {
4
- async postRefund(paymentId, accountId, authToken, refundBody, apiOrigin = PROXY_API_ORIGIN) {
5
- const api = Api({ authToken, apiOrigin });
5
+ async postRefund(paymentId, accountId, authToken, refundBody) {
6
6
  const endpoint = `payments/${paymentId}/refunds`;
7
7
  const headers = { 'Sub-Account': accountId };
8
- return api.post({ endpoint, headers, body: refundBody });
8
+ const body = refundBody;
9
+ return api.post({ endpoint, headers, body, authToken });
9
10
  }
10
11
  }
@@ -1,9 +1,9 @@
1
- import { Api } from "..";
1
+ import Api from "../ApiNew";
2
+ const api = Api();
2
3
  export class SubAccountService {
3
- async fetchSubAccounts(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
4
- const headers = { Account: accountId };
5
- const api = Api({ authToken, apiOrigin: apiOrigin });
4
+ async fetchSubAccounts(accountId, authToken, params) {
6
5
  const endpoint = 'sub_accounts';
7
- return api.get({ endpoint, params, headers });
6
+ const headers = { Account: accountId };
7
+ return api.get({ authToken, endpoint, params, headers });
8
8
  }
9
9
  }
@@ -1,25 +1,24 @@
1
- import { Api } from "..";
1
+ import Api from "../ApiNew";
2
+ const api = Api();
2
3
  export class TerminalService {
3
- async fetchTerminals(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
4
- const headers = { Account: accountId };
5
- const api = Api({ authToken, apiOrigin });
4
+ async fetchTerminals(accountId, authToken, params) {
6
5
  const endpoint = 'terminals';
7
- return api.get({ endpoint, params, headers });
6
+ const headers = { Account: accountId };
7
+ return api.get({ endpoint, params, headers, authToken });
8
8
  }
9
- async fetchTerminal(terminalId, authToken, apiOrigin = PROXY_API_ORIGIN) {
9
+ async fetchTerminal(terminalId, authToken) {
10
10
  const endpoint = `terminals/${terminalId}`;
11
- return Api({ authToken, apiOrigin: apiOrigin }).get({ endpoint });
11
+ return api.get({ endpoint, authToken });
12
12
  }
13
- async fetchTerminalModels(accountId, authToken, apiOrigin = API_ORIGIN) {
14
- const headers = { 'sub-account': accountId };
15
- const api = Api({ authToken, apiOrigin });
13
+ async fetchTerminalModels(accountId, authToken) {
16
14
  const endpoint = 'terminals/order_models';
17
- return api.get({ endpoint, headers });
15
+ const headers = { 'sub-account': accountId };
16
+ return api.get({ endpoint, headers, authToken });
18
17
  }
19
- async orderTerminals(authToken, terminalOrder, apiOrigin = API_ORIGIN) {
20
- const headers = { 'sub-account': terminalOrder.sub_account_id };
21
- const api = Api({ authToken, apiOrigin });
18
+ async orderTerminals(authToken, terminalOrder) {
22
19
  const endpoint = 'terminals/orders';
23
- return api.post({ endpoint, body: terminalOrder, headers });
20
+ const body = terminalOrder;
21
+ const headers = { 'sub-account': terminalOrder.sub_account_id };
22
+ return api.post({ endpoint, body, headers, authToken });
24
23
  }
25
24
  }
@@ -1,13 +1,9 @@
1
- import { Api } from "..";
1
+ import Api from "../ApiNew";
2
+ const api = Api();
2
3
  export class TerminalOrderService {
3
- async fetchTerminalOrders(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
4
- const headers = { account: accountId };
5
- const api = Api({ authToken, apiOrigin });
4
+ async fetchTerminalOrders(accountId, authToken, params) {
6
5
  const endpoint = 'terminals/orders';
7
- return api.get({
8
- endpoint,
9
- params,
10
- headers,
11
- });
6
+ const headers = { account: accountId };
7
+ return api.get({ endpoint, params, headers, authToken });
12
8
  }
13
9
  }
@@ -55,6 +55,7 @@
55
55
  "components/checkouts-list/checkouts-list.js",
56
56
  "ui-components/filters/table-filters-menu.js",
57
57
  "ui-components/form/form-control-select.js",
58
+ "components/config-provider/config-provider.js",
58
59
  "components/dispute-management/dispute-management-core.js",
59
60
  "components/dispute-management/dispute-management.js",
60
61
  "components/dispute-management/dispute-notification.js",
@@ -113,7 +114,7 @@
113
114
  ],
114
115
  "compiler": {
115
116
  "name": "@stencil/core",
116
- "version": "4.30.0",
117
+ "version": "4.31.0",
117
118
  "typescriptVersion": "5.5.4"
118
119
  },
119
120
  "collections": [],
@@ -82,7 +82,7 @@ export class BusinessCoreInfoFormStepCore {
82
82
  if (this.isLoading) {
83
83
  return h(PaymentProvisioningLoading, null);
84
84
  }
85
- return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "tax_id", label: "Tax ID (EIN or SSN)", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9, helpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns." })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Business Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler, helpText: "Don't have a live website? You can use your social media business page, app store link, or staging site URL." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Business Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Business Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
85
+ return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "tax_id", label: "Tax ID (EIN or SSN)", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9, helpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes." })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Business Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler, helpText: "Don't have a live website? You can use your social media business page, app store link, or staging site URL." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Business Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Business Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
86
86
  }
87
87
  static get is() { return "justifi-business-core-info-form-step-core"; }
88
88
  static get properties() {
@@ -9,7 +9,7 @@ export const businessCoreInfoSchema = (allowOptionalFields) => {
9
9
  doing_business_as: doingBusinessAsValidation.nullable(),
10
10
  classification: businessClassificationValidation.required('Select business classification'),
11
11
  industry: industryValidation.required('Enter a business industry'),
12
- tax_id: taxIdValidation.required('Enter tax id, SSN, or EIN'),
12
+ tax_id: taxIdValidation.required('Enter valid tax ID (SSN or EIN) without dashes'),
13
13
  date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
14
14
  });
15
15
  const easySchema = object({
@@ -56,13 +56,12 @@ export class CheckoutsList {
56
56
  this.getSubAccounts = makeGetSubAccounts({
57
57
  accountId: this.accountId,
58
58
  authToken: this.authToken,
59
- service: new SubAccountService(),
60
- apiOrigin: this.apiOrigin
59
+ service: new SubAccountService()
61
60
  });
62
61
  }
63
62
  }
64
63
  render() {
65
- return (h(StyledHost, { key: 'ae2a18885c69808bd589848ae1b33f4a4a3085e9' }, h("checkouts-list-core", { key: '86201976540a348eb800ee07e9c50f68a1f1a1cf', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
64
+ return (h(StyledHost, { key: '4cf97b877324bc48ec5bcdae0f342d2b1fb0daca' }, h("checkouts-list-core", { key: '395f0b1ad4a6bdcaaaa8dc095fae6cad164bbdad', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
66
65
  }
67
66
  static get is() { return "justifi-checkouts-list"; }
68
67
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,83 @@
1
+ import { setConfigState } from "./config-state";
2
+ export class ConfigProvider {
3
+ constructor() {
4
+ this.apiOrigin = PROXY_API_ORIGIN;
5
+ this.iFrameOrigin = IFRAME_ORIGIN;
6
+ this.accountId = '';
7
+ }
8
+ componentWillLoad() {
9
+ setConfigState({
10
+ apiOrigin: this.apiOrigin,
11
+ iFrameOrigin: this.iFrameOrigin,
12
+ accountId: this.accountId
13
+ });
14
+ }
15
+ render() {
16
+ return null;
17
+ }
18
+ static get is() { return "justifi-config-provider"; }
19
+ static get properties() {
20
+ return {
21
+ "apiOrigin": {
22
+ "type": "string",
23
+ "attribute": "api-origin",
24
+ "mutable": false,
25
+ "complexType": {
26
+ "original": "string",
27
+ "resolved": "string",
28
+ "references": {}
29
+ },
30
+ "required": false,
31
+ "optional": true,
32
+ "docs": {
33
+ "tags": [],
34
+ "text": ""
35
+ },
36
+ "getter": false,
37
+ "setter": false,
38
+ "reflect": false,
39
+ "defaultValue": "PROXY_API_ORIGIN"
40
+ },
41
+ "iFrameOrigin": {
42
+ "type": "string",
43
+ "attribute": "i-frame-origin",
44
+ "mutable": false,
45
+ "complexType": {
46
+ "original": "string",
47
+ "resolved": "string",
48
+ "references": {}
49
+ },
50
+ "required": false,
51
+ "optional": true,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": ""
55
+ },
56
+ "getter": false,
57
+ "setter": false,
58
+ "reflect": false,
59
+ "defaultValue": "IFRAME_ORIGIN"
60
+ },
61
+ "accountId": {
62
+ "type": "string",
63
+ "attribute": "account-id",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "string",
67
+ "resolved": "string",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": true,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": ""
75
+ },
76
+ "getter": false,
77
+ "setter": false,
78
+ "reflect": false,
79
+ "defaultValue": "''"
80
+ }
81
+ };
82
+ }
83
+ }
@@ -0,0 +1,36 @@
1
+ import { createStore } from "@stencil/store";
2
+ const initialState = {
3
+ apiOrigin: PROXY_API_ORIGIN,
4
+ iFrameOrigin: IFRAME_ORIGIN,
5
+ accountId: '',
6
+ };
7
+ const configStore = createStore(() => initialState);
8
+ const { state: configState, on: onConfigChange } = configStore;
9
+ // resolver for the “ready” promise
10
+ let resolveConfigReady;
11
+ // initial “handshake” promise
12
+ const configReady = new Promise(r => {
13
+ resolveConfigReady = r;
14
+ });
15
+ // called by <justifi-config-provider>
16
+ const setConfigState = (vals) => {
17
+ Object.assign(configState, vals);
18
+ resolveConfigReady();
19
+ };
20
+ /**
21
+ * Wait for configProvider to run, but safe guard against never mounting.
22
+ * @param timeoutMs max time to wait before resolving with default values
23
+ */
24
+ const waitForConfig = (timeoutMs = 200) => {
25
+ return new Promise(resolve => {
26
+ const timer = setTimeout(() => {
27
+ // timeout expired, proceed with default config state values
28
+ resolve();
29
+ }, timeoutMs);
30
+ configReady.then(() => {
31
+ clearTimeout(timer);
32
+ resolve();
33
+ });
34
+ });
35
+ };
36
+ export { configState, onConfigChange, setConfigState, waitForConfig };
@@ -17,7 +17,6 @@ import { formatPhoneNumber } from "../../utils/utils";
17
17
  export class OrderTerminals {
18
18
  constructor() {
19
19
  this.shipping = false;
20
- this.apiOrigin = PROXY_API_ORIGIN;
21
20
  this.submitButtonText = 'Submit Order';
22
21
  this.loading = {
23
22
  business: true,
@@ -53,8 +52,7 @@ export class OrderTerminals {
53
52
  makeGetBusiness({
54
53
  id: this.businessId,
55
54
  authToken: this.authToken,
56
- service: new BusinessService(),
57
- apiOrigin: this.apiOrigin,
55
+ service: new BusinessService()
58
56
  })({
59
57
  onSuccess: ({ business }) => {
60
58
  this.business = new Business(business);
@@ -70,8 +68,7 @@ export class OrderTerminals {
70
68
  makeGetTerminalModels({
71
69
  id: this.accountId,
72
70
  authToken: this.authToken,
73
- service: new TerminalService(),
74
- apiOrigin: this.apiOrigin,
71
+ service: new TerminalService()
75
72
  })({
76
73
  onSuccess: ({ terminals, orderLimit }) => {
77
74
  this.terminalModels = terminals;
@@ -87,8 +84,7 @@ export class OrderTerminals {
87
84
  submitOrder() {
88
85
  const orderTerminals = makeOrderTerminals({
89
86
  authToken: this.authToken,
90
- service: new TerminalService(),
91
- apiOrigin: this.apiOrigin,
87
+ service: new TerminalService()
92
88
  });
93
89
  this.submitting = true;
94
90
  orderTerminals({
@@ -125,7 +121,7 @@ export class OrderTerminals {
125
121
  return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
126
122
  }
127
123
  render() {
128
- return (h(StyledHost, { key: '0a63280f2a9b41e5d2493131d8150c5d124e78bb' }, h("div", { key: 'ec3e1d2c3a90377dd622982de1435989d81f60e8', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
124
+ return (h(StyledHost, { key: '47251af3261d16cfc067bca3b3810805d93ba36d' }, h("div", { key: '13c73bb09cdbad48ee7b15089daf1b6bf56cf256', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
129
125
  }
130
126
  static get is() { return "justifi-order-terminals"; }
131
127
  static get encapsulation() { return "shadow"; }
@@ -208,26 +204,6 @@ export class OrderTerminals {
208
204
  "reflect": false,
209
205
  "defaultValue": "false"
210
206
  },
211
- "apiOrigin": {
212
- "type": "string",
213
- "attribute": "api-origin",
214
- "mutable": false,
215
- "complexType": {
216
- "original": "string",
217
- "resolved": "string",
218
- "references": {}
219
- },
220
- "required": false,
221
- "optional": true,
222
- "docs": {
223
- "tags": [],
224
- "text": ""
225
- },
226
- "getter": false,
227
- "setter": false,
228
- "reflect": false,
229
- "defaultValue": "PROXY_API_ORIGIN"
230
- },
231
207
  "submitButtonText": {
232
208
  "type": "string",
233
209
  "attribute": "submit-button-text",
@@ -7,7 +7,6 @@ import JustifiAnalytics from "../../api/Analytics";
7
7
  import { checkPkgVersion } from "../../utils/check-pkg-version";
8
8
  export class PaymentDetails {
9
9
  constructor() {
10
- this.apiOrigin = PROXY_API_ORIGIN;
11
10
  this.errorMessage = null;
12
11
  this.paymentService = new PaymentService();
13
12
  this.handleErrorEvent = event => {
@@ -32,8 +31,7 @@ export class PaymentDetails {
32
31
  this.getPaymentDetails = makeGetPaymentDetails({
33
32
  id: this.paymentId,
34
33
  authToken: this.authToken,
35
- service: new PaymentService(),
36
- apiOrigin: this.apiOrigin
34
+ service: new PaymentService()
37
35
  });
38
36
  }
39
37
  else {
@@ -92,26 +90,6 @@ export class PaymentDetails {
92
90
  "getter": false,
93
91
  "setter": false,
94
92
  "reflect": false
95
- },
96
- "apiOrigin": {
97
- "type": "string",
98
- "attribute": "api-origin",
99
- "mutable": false,
100
- "complexType": {
101
- "original": "string",
102
- "resolved": "string",
103
- "references": {}
104
- },
105
- "required": false,
106
- "optional": true,
107
- "docs": {
108
- "tags": [],
109
- "text": ""
110
- },
111
- "getter": false,
112
- "setter": false,
113
- "reflect": false,
114
- "defaultValue": "PROXY_API_ORIGIN"
115
93
  }
116
94
  };
117
95
  }
@@ -16,7 +16,6 @@ export class PaymentTransactionsList {
16
16
  this.errorMessage = null;
17
17
  this.paging = pagingDefaults;
18
18
  this.pagingParams = {};
19
- this.apiOrigin = PROXY_API_ORIGIN;
20
19
  this.columns = defaultColumnsKeys;
21
20
  this.handleClickPrevious = (beforeCursor) => {
22
21
  this.pagingParams = { before_cursor: beforeCursor };
@@ -55,8 +54,7 @@ export class PaymentTransactionsList {
55
54
  const getPaymentTransactions = makeGetPaymentTransactions({
56
55
  id: this.paymentId,
57
56
  authToken: this.authToken,
58
- service: new PaymentService(),
59
- apiOrigin: this.apiOrigin
57
+ service: new PaymentService()
60
58
  });
61
59
  getPaymentTransactions({
62
60
  params: this.pagingParams,
@@ -92,7 +90,7 @@ export class PaymentTransactionsList {
92
90
  return !this.showEmptyState && !this.showErrorState && !this.isLoading;
93
91
  }
94
92
  render() {
95
- 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 }) })))))))));
93
+ return (h(StyledHost, { key: 'c35e2e5941204aa9ccdfe2be612f98c5a230852a' }, h("div", { key: 'bcf166a44ba15828edcc888ee96b1633853286a2', class: "table-wrapper" }, h("table", { key: '8ae29b54461e6f2eeefc1da4f659e86db774b913', class: "table table-hover", part: table }, h("thead", { key: '4a7983d92e9bc30e63c18c223996d8251e99438c', class: "table-head sticky-top" }, h("tr", { key: '797a5512b07112c04fe37b8898610091b3fbcb74', class: "table-light text-nowrap" }, this.transactionsTable.columnData.map((column) => column))), h("tbody", { key: '09d90ccec9a0dbf5a2b5caffa7715a96fd98097d', class: "table-body" }, h(TableLoadingState, { key: '2d350db554deb86c9122cded434c8947f4028042', columnSpan: this.transactionsTable.columnData.length, isLoading: this.isLoading }), h(TableEmptyState, { key: 'd2f8bd08c44fe66712b167b430b6e08b2dc989c7', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnData.length }), h(TableErrorState, { key: '2cb1f0c85805c77d445bd7da333761dc11a982c4', 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: '76b887121f8e8c48b59f4657a9353d32b3f60511', class: "sticky-bottom" }, h("tr", { key: '99670a6602b8145d2208a29333c358ae2da91153', class: "table-light align-middle" }, h("td", { key: 'c2cfed937f3e34bd4fed9a258b1158827b7d04b7', part: tableCell, colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: '65659d1f4c5893cc427fb05e4b9255d3c54fb41d', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
96
94
  }
97
95
  static get is() { return "justifi-payment-transactions-list"; }
98
96
  static get encapsulation() { return "shadow"; }
@@ -136,26 +134,6 @@ export class PaymentTransactionsList {
136
134
  "setter": false,
137
135
  "reflect": false
138
136
  },
139
- "apiOrigin": {
140
- "type": "string",
141
- "attribute": "api-origin",
142
- "mutable": false,
143
- "complexType": {
144
- "original": "string",
145
- "resolved": "string",
146
- "references": {}
147
- },
148
- "required": false,
149
- "optional": true,
150
- "docs": {
151
- "tags": [],
152
- "text": ""
153
- },
154
- "getter": false,
155
- "setter": false,
156
- "reflect": false,
157
- "defaultValue": "PROXY_API_ORIGIN"
158
- },
159
137
  "columns": {
160
138
  "type": "string",
161
139
  "attribute": "columns",
@@ -4,7 +4,7 @@ import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-co
4
4
  import { paymentTableCells, paymentTableColumns } from "./payments-table";
5
5
  import { Table } from "../../utils/table";
6
6
  import { getRequestParams, onQueryParamsChange } from "./payments-list-params-state";
7
- import { table, tableCell } from "../../styles/parts";
7
+ import { table, tableCell, tableRow } from "../../styles/parts";
8
8
  import { TableClickActions } from "../../ui-components/table/event-types";
9
9
  export class PaymentsListCore {
10
10
  constructor() {
@@ -84,7 +84,7 @@ export class PaymentsListCore {
84
84
  return !this.showEmptyState && !this.showErrorState && !this.loading;
85
85
  }
86
86
  render() {
87
- return (h("div", { key: '83f0460f5b465e1414e4a88dc113fc7155d4decb', class: "table-wrapper" }, h("table", { key: '2a42ee9579d589a667172ea9f97e510029b87bdf', class: "table table-hover", part: table }, h("thead", { key: 'bd4bfb3c9d022f8187925d040316020426efdc18', class: "table-head sticky-top" }, h("tr", { key: '7bc4c05aa456cef8fdf9cec435937a6ee447cf2e', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'c09c5a55310da7506b183914d16dd76d5336c275', class: "table-body" }, h(TableLoadingState, { key: '410e7e5b13049436d24a3d4c830c174264b4d802', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '4461a05a8812955cc9673699b9f26decbfbe3197', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: 'c49e3e5fadc0b889908e7420a0c3547879cc5af8', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.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: 'f6266d84bc0ff50ed9ce7bf0af7016f48e1d57dc', class: "sticky-bottom" }, h("tr", { key: '496fe22cdbaa38becf40402425e9f507625d52b3', class: "table-light align-middle" }, h("td", { key: 'bdd620cd38377ffdcace7b7b810e0379cd089d0b', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: '5dab0663b6cf408b88c43177822b01969fd0b2d5', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
87
+ return (h("div", { key: 'c5059d5f79a3f7ee8e4f767b6e0ea995b9310ed8', class: "table-wrapper" }, h("table", { key: '70c674711138bfbcea97eeef623cc5fe74b01f10', class: "table table-hover", part: table }, h("thead", { key: 'd9c0f2d115f3606043a09c3b9a9bb07ef65cf653', class: "table-head sticky-top" }, h("tr", { key: 'd353ca63c91658b7e20a1fd0a6c5114342b555cb', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'b308dae6d730f9e8867740a1a5cc189a1e8d5751', class: "table-body" }, h(TableLoadingState, { key: 'ee4f0145a926360889a879681fc80c3214b692d4', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '692e612e61e6ec6e564c58545c7074fe8af102e1', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: 'cdf875aec8002d601982af282e03fabb3c615eca', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: tableRow }, data)))), this.paging && (h("tfoot", { key: '27d3953bdc88315c2c6ab1ec859ca5e9472c4c80', class: "sticky-bottom" }, h("tr", { key: 'dc56e6376491035fd17f25b09fd0af872ba1bc47', class: "table-light align-middle" }, h("td", { key: 'b8d133f8ab2f4494ef0f3f3f531f14e742ac1b47', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: 'b38882f42b1d517d5755510142fd6030803030c2', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
88
88
  }
89
89
  static get is() { return "payments-list-core"; }
90
90
  static get properties() {