@justifi/webcomponents 4.6.4 → 4.7.0-rc.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 (688) hide show
  1. package/dist/cjs/{Api-f76b337f.js → Api-548eaa62.js} +3 -17
  2. package/dist/cjs/Api-548eaa62.js.map +1 -0
  3. package/dist/cjs/Pagination-cae1dcbd.js +15 -0
  4. package/dist/cjs/Pagination-cae1dcbd.js.map +1 -0
  5. package/dist/cjs/{Payout-4906a445.js → Payout-68a99ee3.js} +22 -1
  6. package/dist/cjs/Payout-68a99ee3.js.map +1 -0
  7. package/dist/cjs/SubAccount-f47c8522.js +109 -0
  8. package/dist/cjs/SubAccount-f47c8522.js.map +1 -0
  9. package/dist/cjs/additional-questions-details_5.cjs.entry.js +84 -0
  10. package/dist/cjs/additional-questions-details_5.cjs.entry.js.map +1 -0
  11. package/dist/cjs/{business-form-schema-725ec6f5.js → business-form-schema-fe831c30.js} +2 -2
  12. package/dist/cjs/business-form-schema-fe831c30.js.map +1 -0
  13. package/dist/cjs/config-70f62990.js +19 -0
  14. package/dist/cjs/config-70f62990.js.map +1 -0
  15. package/dist/cjs/form-1e732a9d.js +731 -0
  16. package/dist/cjs/form-1e732a9d.js.map +1 -0
  17. package/dist/cjs/form-control-datepart_2.cjs.entry.js +44 -20
  18. package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -1
  19. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  20. package/dist/cjs/form-control-number_3.cjs.entry.js +17 -32
  21. package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -1
  22. package/dist/cjs/helpers-c505d861.js +28 -0
  23. package/dist/cjs/helpers-c505d861.js.map +1 -0
  24. package/dist/cjs/{index-3533152c.js → index-c5ace247.js} +8 -1
  25. package/dist/cjs/index-c5ace247.js.map +1 -0
  26. package/dist/cjs/{index.esm-84a0a7a8.js → index.esm-91ec051e.js} +123 -1
  27. package/dist/cjs/index.esm-91ec051e.js.map +1 -0
  28. package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_6.cjs.entry.js} +41 -16
  29. package/dist/cjs/justifi-additional-questions_6.cjs.entry.js.map +1 -0
  30. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
  31. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  32. package/dist/cjs/justifi-business-details.cjs.entry.js +77 -0
  33. package/dist/cjs/justifi-business-details.cjs.entry.js.map +1 -0
  34. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +131 -0
  35. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js.map +1 -0
  36. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -756
  37. package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -1
  38. package/dist/cjs/justifi-business-list.cjs.entry.js +38 -67
  39. package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -1
  40. package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
  41. package/dist/cjs/justifi-details.cjs.entry.js +4 -8
  42. package/dist/cjs/justifi-details.cjs.entry.js.map +1 -1
  43. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11029 -0
  44. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js.map +1 -0
  45. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +88 -0
  46. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js.map +1 -0
  47. package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
  48. package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -1
  49. package/dist/cjs/justifi-payment-form.cjs.entry.js +4 -3
  50. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
  51. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +12 -10
  52. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
  53. package/dist/cjs/justifi-payments-list.cjs.entry.js +23 -17
  54. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
  55. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -7
  56. package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -1
  57. package/dist/cjs/justifi-payouts-list.cjs.entry.js +24 -18
  58. package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -1
  59. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +24 -18
  60. package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -1
  61. package/dist/cjs/justifi-refund-form.cjs.entry.js +105 -0
  62. package/dist/cjs/justifi-refund-form.cjs.entry.js.map +1 -0
  63. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +82 -0
  64. package/dist/cjs/justifi-subaccount-details.cjs.entry.js.map +1 -0
  65. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +105 -0
  66. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js.map +1 -0
  67. package/dist/cjs/justifi-table_2.cjs.entry.js +80 -0
  68. package/dist/cjs/justifi-table_2.cjs.entry.js.map +1 -0
  69. package/dist/cjs/loader.cjs.js +2 -2
  70. package/dist/cjs/select-input_2.cjs.entry.js +1 -1
  71. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +72 -0
  72. package/dist/cjs/subaccount-account-details_4.cjs.entry.js.map +1 -0
  73. package/dist/cjs/subaccount-bank-details.cjs.entry.js +24 -0
  74. package/dist/cjs/subaccount-bank-details.cjs.entry.js.map +1 -0
  75. package/dist/cjs/subaccount-terms-details.cjs.entry.js +24 -0
  76. package/dist/cjs/subaccount-terms-details.cjs.entry.js.map +1 -0
  77. package/dist/cjs/{utils-0fd61dbd.js → utils-13d069be.js} +96 -18
  78. package/dist/cjs/utils-13d069be.js.map +1 -0
  79. package/dist/cjs/utils-4622829d.js +37 -0
  80. package/dist/cjs/utils-4622829d.js.map +1 -0
  81. package/dist/cjs/webcomponents.cjs.js +2 -2
  82. package/dist/collection/api/Api.js +2 -16
  83. package/dist/collection/api/Api.js.map +1 -1
  84. package/dist/collection/api/Business.js +0 -2
  85. package/dist/collection/api/Business.js.map +1 -1
  86. package/dist/collection/api/GrossVolume.js +2 -0
  87. package/dist/collection/api/GrossVolume.js.map +1 -0
  88. package/dist/collection/api/Pagination.js +8 -8
  89. package/dist/collection/api/Pagination.js.map +1 -1
  90. package/dist/collection/api/Payment.js +20 -0
  91. package/dist/collection/api/Payment.js.map +1 -1
  92. package/dist/collection/api/SubAccount.js +104 -0
  93. package/dist/collection/api/SubAccount.js.map +1 -0
  94. package/dist/collection/api/mockData/MockOnboardingData.js +118 -0
  95. package/dist/collection/api/mockData/MockOnboardingData.js.map +1 -0
  96. package/dist/collection/api/mockData/MockSubAccount.js +103 -0
  97. package/dist/collection/api/mockData/MockSubAccount.js.map +1 -0
  98. package/dist/collection/api/mockData/mockGrossVolumeReport.js +126 -0
  99. package/dist/collection/api/mockData/mockGrossVolumeReport.js.map +1 -0
  100. package/dist/collection/assets/info-icon.svg +5 -0
  101. package/dist/collection/collection-manifest.json +20 -1
  102. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -9
  103. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
  104. package/dist/collection/components/billing-form/billing-form.stories.js +1 -1
  105. package/dist/collection/components/billing-form/billing-form.stories.js.map +1 -1
  106. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +7341 -0
  107. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +57 -0
  108. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js.map +1 -0
  109. package/dist/collection/components/business-details/business-details.css +6439 -0
  110. package/dist/collection/components/business-details/business-details.js +128 -0
  111. package/dist/collection/components/business-details/business-details.js.map +1 -0
  112. package/dist/collection/components/business-details/business-details.stories.js +24 -0
  113. package/dist/collection/components/business-details/business-details.stories.js.map +1 -0
  114. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +7341 -0
  115. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +50 -0
  116. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js.map +1 -0
  117. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +7341 -0
  118. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +49 -0
  119. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js.map +1 -0
  120. package/dist/collection/components/business-details/owner-details/owner-details.css +7341 -0
  121. package/dist/collection/components/business-details/owner-details/owner-details.js +57 -0
  122. package/dist/collection/components/business-details/owner-details/owner-details.js.map +1 -0
  123. package/dist/collection/components/business-details/representative-details/representative-details.css +7341 -0
  124. package/dist/collection/components/business-details/representative-details/representative-details.js +58 -0
  125. package/dist/collection/components/business-details/representative-details/representative-details.js.map +1 -0
  126. package/dist/collection/components/business-form/additional-questions/additional-questions.js +1 -1
  127. package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -1
  128. package/dist/collection/components/business-form/business-form-schema.js +1 -1
  129. package/dist/collection/components/business-form/business-form-schema.js.map +1 -1
  130. package/dist/collection/components/business-form/business-form-stepped.css +7929 -0
  131. package/dist/collection/components/business-form/business-form-stepped.js +195 -0
  132. package/dist/collection/components/business-form/business-form-stepped.js.map +1 -0
  133. package/dist/collection/components/business-form/business-form-stepped.stories.js +132 -0
  134. package/dist/collection/components/business-form/business-form-stepped.stories.js.map +1 -0
  135. package/dist/collection/components/business-form/business-form.js +5 -24
  136. package/dist/collection/components/business-form/business-form.js.map +1 -1
  137. package/dist/collection/components/business-form/business-form.stories.js +21 -8
  138. package/dist/collection/components/business-form/business-form.stories.js.map +1 -1
  139. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +7 -5
  140. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -1
  141. package/dist/collection/components/business-form/business-owners/business-owners.js +4 -5
  142. package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -1
  143. package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -1
  144. package/dist/collection/components/business-form/business-representative/business-representative.js +1 -1
  145. package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -1
  146. package/dist/collection/components/business-form/helpers.js +23 -0
  147. package/dist/collection/components/business-form/helpers.js.map +1 -0
  148. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js.map +1 -0
  149. package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.js +3 -21
  150. package/dist/collection/components/business-form/legal-address-form/legal-address-form.js.map +1 -0
  151. package/dist/collection/components/business-list/business-list.js +72 -84
  152. package/dist/collection/components/business-list/business-list.js.map +1 -1
  153. package/dist/collection/components/business-list/business-list.stories.js +3 -2
  154. package/dist/collection/components/business-list/business-list.stories.js.map +1 -1
  155. package/dist/collection/components/card-form/card-form.stories.js +2 -9
  156. package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
  157. package/dist/collection/components/details/details.js +2 -21
  158. package/dist/collection/components/details/details.js.map +1 -1
  159. package/dist/collection/components/details/utils.js +7 -8
  160. package/dist/collection/components/details/utils.js.map +1 -1
  161. package/dist/collection/components/form/form-control-number-masked.js +1 -1
  162. package/dist/collection/components/form/form-control-number-masked.js.map +1 -1
  163. package/dist/collection/components/form/form.js +4 -4
  164. package/dist/collection/components/form/form.js.map +1 -1
  165. package/dist/collection/components/gross-payment-chart/chart-utils.js +59 -0
  166. package/dist/collection/components/gross-payment-chart/chart-utils.js.map +1 -0
  167. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +572 -0
  168. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +127 -0
  169. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js.map +1 -0
  170. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +22 -0
  171. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js.map +1 -0
  172. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +15 -0
  173. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js.map +1 -0
  174. package/dist/collection/components/pagination-menu/pagination-menu.js +78 -0
  175. package/dist/collection/components/pagination-menu/pagination-menu.js.map +1 -0
  176. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
  177. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +153 -0
  178. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js.map +1 -0
  179. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +32 -0
  180. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js.map +1 -0
  181. package/dist/collection/components/payment-details/payment-details.js +12 -6
  182. package/dist/collection/components/payment-details/payment-details.js.map +1 -1
  183. package/dist/collection/components/payment-details/payment-details.stories.js +4 -4
  184. package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -1
  185. package/dist/collection/components/payment-form/payment-form.stories.js +3 -11
  186. package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
  187. package/dist/collection/components/payment-method-form/payment-method-form.js +7 -6
  188. package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
  189. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +15 -14
  190. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +1 -1
  191. package/dist/collection/components/payments-list/payments-list.js +21 -13
  192. package/dist/collection/components/payments-list/payments-list.js.map +1 -1
  193. package/dist/collection/components/payments-list/payments-list.stories.js +4 -4
  194. package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -1
  195. package/dist/collection/components/payout-details/payout-details.js +12 -3
  196. package/dist/collection/components/payout-details/payout-details.js.map +1 -1
  197. package/dist/collection/components/payout-details/payout-details.stories.js +4 -4
  198. package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -1
  199. package/dist/collection/components/payouts-list/payouts-list.js +22 -14
  200. package/dist/collection/components/payouts-list/payouts-list.js.map +1 -1
  201. package/dist/collection/components/payouts-list/payouts-list.stories.js +4 -4
  202. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -1
  203. package/dist/collection/components/proceeds-list/proceeds-list.js +22 -14
  204. package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -1
  205. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +3 -2
  206. package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -1
  207. package/dist/collection/components/refund-form/refund-form-schema.js +14 -0
  208. package/dist/collection/components/refund-form/refund-form-schema.js.map +1 -0
  209. package/dist/collection/components/refund-form/refund-form.css +7785 -0
  210. package/dist/collection/components/refund-form/refund-form.js +229 -0
  211. package/dist/collection/components/refund-form/refund-form.js.map +1 -0
  212. package/dist/collection/components/refund-form/refund-form.stories.js +169 -0
  213. package/dist/collection/components/refund-form/refund-form.stories.js.map +1 -0
  214. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +7345 -0
  215. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +71 -0
  216. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js.map +1 -0
  217. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +7345 -0
  218. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +49 -0
  219. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js.map +1 -0
  220. package/dist/collection/components/subaccount-details/subaccount-details.css +7983 -0
  221. package/dist/collection/components/subaccount-details/subaccount-details.js +148 -0
  222. package/dist/collection/components/subaccount-details/subaccount-details.js.map +1 -0
  223. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +26 -0
  224. package/dist/collection/components/subaccount-details/subaccount-details.stories.js.map +1 -0
  225. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +7345 -0
  226. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +51 -0
  227. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js.map +1 -0
  228. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +7345 -0
  229. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +49 -0
  230. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js.map +1 -0
  231. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +7345 -0
  232. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +50 -0
  233. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js.map +1 -0
  234. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +7345 -0
  235. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +49 -0
  236. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js.map +1 -0
  237. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +22 -0
  238. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js.map +1 -0
  239. package/dist/collection/components/subaccounts-list/subaccounts-list.css +3 -0
  240. package/dist/collection/components/subaccounts-list/subaccounts-list.js +180 -0
  241. package/dist/collection/components/subaccounts-list/subaccounts-list.js.map +1 -0
  242. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +70 -0
  243. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js.map +1 -0
  244. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +10 -0
  245. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js.map +1 -0
  246. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +34 -0
  247. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js.map +1 -0
  248. package/dist/collection/components/table/table.js +27 -12
  249. package/dist/collection/components/table/table.js.map +1 -1
  250. package/dist/collection/components/table/test/table.spec.js +2 -2
  251. package/dist/collection/components/table/test/table.spec.js.map +1 -1
  252. package/dist/collection/utils/utils.js +95 -17
  253. package/dist/collection/utils/utils.js.map +1 -1
  254. package/dist/components/Api.js +2 -16
  255. package/dist/components/Api.js.map +1 -1
  256. package/dist/components/Pagination.js +12 -0
  257. package/dist/components/Pagination.js.map +1 -0
  258. package/dist/components/Payout.js +21 -1
  259. package/dist/components/Payout.js.map +1 -1
  260. package/dist/components/SubAccount.js +107 -0
  261. package/dist/components/SubAccount.js.map +1 -0
  262. package/dist/components/additional-questions-details.d.ts +11 -0
  263. package/dist/components/additional-questions-details.js +8 -0
  264. package/dist/components/additional-questions-details.js.map +1 -0
  265. package/dist/{cjs/justifi-table.cjs.entry.js → components/additional-questions-details2.js} +30 -61
  266. package/dist/components/additional-questions-details2.js.map +1 -0
  267. package/dist/components/additional-questions.js +1 -1
  268. package/dist/components/additional-questions.js.map +1 -1
  269. package/dist/components/business-generic-info.js +2 -5
  270. package/dist/components/business-generic-info.js.map +1 -1
  271. package/dist/components/business-owners.js +4 -5
  272. package/dist/components/business-owners.js.map +1 -1
  273. package/dist/components/business-representative.js +1 -1
  274. package/dist/components/business-representative.js.map +1 -1
  275. package/dist/components/config.js +17 -0
  276. package/dist/components/config.js.map +1 -0
  277. package/dist/components/details.js +6 -33
  278. package/dist/components/details.js.map +1 -1
  279. package/dist/components/form-control-number-masked2.js +1 -1
  280. package/dist/components/form-control-number-masked2.js.map +1 -1
  281. package/dist/components/form.js +729 -0
  282. package/dist/components/form.js.map +1 -0
  283. package/dist/components/generic-info-details.d.ts +11 -0
  284. package/dist/components/generic-info-details.js +8 -0
  285. package/dist/components/generic-info-details.js.map +1 -0
  286. package/dist/components/generic-info-details2.js +38 -0
  287. package/dist/components/generic-info-details2.js.map +1 -0
  288. package/dist/components/helpers.js +26 -0
  289. package/dist/components/helpers.js.map +1 -0
  290. package/dist/components/index.esm.js +122 -1
  291. package/dist/components/index.esm.js.map +1 -1
  292. package/dist/components/justifi-business-details.d.ts +11 -0
  293. package/dist/components/justifi-business-details.js +127 -0
  294. package/dist/components/justifi-business-details.js.map +1 -0
  295. package/dist/components/justifi-business-form-stepped.d.ts +11 -0
  296. package/dist/components/justifi-business-form-stepped.js +222 -0
  297. package/dist/components/justifi-business-form-stepped.js.map +1 -0
  298. package/dist/components/justifi-business-form.js +7 -750
  299. package/dist/components/justifi-business-form.js.map +1 -1
  300. package/dist/components/justifi-business-list.js +44 -65
  301. package/dist/components/justifi-business-list.js.map +1 -1
  302. package/dist/components/justifi-gross-payment-chart.d.ts +11 -0
  303. package/dist/components/justifi-gross-payment-chart.js +11052 -0
  304. package/dist/components/justifi-gross-payment-chart.js.map +1 -0
  305. package/dist/components/justifi-payment-balance-transactions.d.ts +11 -0
  306. package/dist/components/justifi-payment-balance-transactions.js +123 -0
  307. package/dist/components/justifi-payment-balance-transactions.js.map +1 -0
  308. package/dist/components/justifi-payment-details.js +7 -6
  309. package/dist/components/justifi-payment-details.js.map +1 -1
  310. package/dist/components/justifi-payment-form.js +3 -2
  311. package/dist/components/justifi-payment-form.js.map +1 -1
  312. package/dist/components/justifi-payments-list.js +30 -16
  313. package/dist/components/justifi-payments-list.js.map +1 -1
  314. package/dist/components/justifi-payout-details.js +7 -4
  315. package/dist/components/justifi-payout-details.js.map +1 -1
  316. package/dist/components/justifi-payouts-list.js +31 -17
  317. package/dist/components/justifi-payouts-list.js.map +1 -1
  318. package/dist/components/justifi-proceeds-list.js +30 -16
  319. package/dist/components/justifi-proceeds-list.js.map +1 -1
  320. package/dist/components/justifi-refund-form.d.ts +11 -0
  321. package/dist/components/justifi-refund-form.js +140 -0
  322. package/dist/components/justifi-refund-form.js.map +1 -0
  323. package/dist/components/justifi-subaccount-details.d.ts +11 -0
  324. package/dist/components/justifi-subaccount-details.js +134 -0
  325. package/dist/components/justifi-subaccount-details.js.map +1 -0
  326. package/dist/components/justifi-subaccounts-list.d.ts +11 -0
  327. package/dist/components/justifi-subaccounts-list.js +139 -0
  328. package/dist/components/justifi-subaccounts-list.js.map +1 -0
  329. package/dist/components/legal-address-details.d.ts +11 -0
  330. package/dist/components/legal-address-details.js +8 -0
  331. package/dist/components/legal-address-details.js.map +1 -0
  332. package/dist/components/legal-address-details2.js +37 -0
  333. package/dist/components/legal-address-details2.js.map +1 -0
  334. package/dist/components/legal-address-form.js +1 -3
  335. package/dist/components/legal-address-form.js.map +1 -1
  336. package/dist/components/owner-details.d.ts +11 -0
  337. package/dist/components/owner-details.js +8 -0
  338. package/dist/components/owner-details.js.map +1 -0
  339. package/dist/components/owner-details2.js +37 -0
  340. package/dist/components/owner-details2.js.map +1 -0
  341. package/dist/components/pagination-menu.d.ts +11 -0
  342. package/dist/components/pagination-menu.js +8 -0
  343. package/dist/components/pagination-menu.js.map +1 -0
  344. package/dist/{esm/justifi-table.entry.js → components/pagination-menu2.js} +35 -55
  345. package/dist/components/pagination-menu2.js.map +1 -0
  346. package/dist/components/payment-method-form.js +11 -9
  347. package/dist/components/payment-method-form.js.map +1 -1
  348. package/dist/components/representative-details.d.ts +11 -0
  349. package/dist/components/representative-details.js +8 -0
  350. package/dist/components/representative-details.js.map +1 -0
  351. package/dist/components/representative-details2.js +38 -0
  352. package/dist/components/representative-details2.js.map +1 -0
  353. package/dist/components/subaccount-account-details.d.ts +11 -0
  354. package/dist/components/subaccount-account-details.js +8 -0
  355. package/dist/components/subaccount-account-details.js.map +1 -0
  356. package/dist/components/subaccount-account-details2.js +39 -0
  357. package/dist/components/subaccount-account-details2.js.map +1 -0
  358. package/dist/components/subaccount-bank-details.d.ts +11 -0
  359. package/dist/components/subaccount-bank-details.js +40 -0
  360. package/dist/components/subaccount-bank-details.js.map +1 -0
  361. package/dist/components/subaccount-merchant-details.d.ts +11 -0
  362. package/dist/components/subaccount-merchant-details.js +8 -0
  363. package/dist/components/subaccount-merchant-details.js.map +1 -0
  364. package/dist/components/subaccount-merchant-details2.js +38 -0
  365. package/dist/components/subaccount-merchant-details2.js.map +1 -0
  366. package/dist/components/subaccount-owners-details.d.ts +11 -0
  367. package/dist/components/subaccount-owners-details.js +8 -0
  368. package/dist/components/subaccount-owners-details.js.map +1 -0
  369. package/dist/components/subaccount-owners-details2.js +38 -0
  370. package/dist/components/subaccount-owners-details2.js.map +1 -0
  371. package/dist/components/subaccount-representative-details.d.ts +11 -0
  372. package/dist/components/subaccount-representative-details.js +8 -0
  373. package/dist/components/subaccount-representative-details.js.map +1 -0
  374. package/dist/components/subaccount-representative-details2.js +38 -0
  375. package/dist/components/subaccount-representative-details2.js.map +1 -0
  376. package/dist/components/subaccount-terms-details.d.ts +11 -0
  377. package/dist/components/subaccount-terms-details.js +40 -0
  378. package/dist/components/subaccount-terms-details.js.map +1 -0
  379. package/dist/components/table.js +12 -21
  380. package/dist/components/table.js.map +1 -1
  381. package/dist/components/utils.js +27 -3909
  382. package/dist/components/utils.js.map +1 -1
  383. package/dist/components/utils2.js +3983 -0
  384. package/dist/components/utils2.js.map +1 -0
  385. package/dist/config.js +12 -4
  386. package/dist/config.js.map +1 -1
  387. package/dist/esm/{Api-cca120a8.js → Api-c65d3ed8.js} +3 -17
  388. package/dist/esm/Api-c65d3ed8.js.map +1 -0
  389. package/dist/esm/Pagination-31f770d6.js +12 -0
  390. package/dist/esm/Pagination-31f770d6.js.map +1 -0
  391. package/dist/esm/{Payout-9a1f2859.js → Payout-fcf16887.js} +22 -2
  392. package/dist/esm/Payout-fcf16887.js.map +1 -0
  393. package/dist/esm/SubAccount-128190e9.js +107 -0
  394. package/dist/esm/SubAccount-128190e9.js.map +1 -0
  395. package/dist/esm/additional-questions-details_5.entry.js +76 -0
  396. package/dist/esm/additional-questions-details_5.entry.js.map +1 -0
  397. package/dist/esm/{business-form-schema-5885d3d6.js → business-form-schema-30a3eadd.js} +2 -2
  398. package/dist/esm/business-form-schema-30a3eadd.js.map +1 -0
  399. package/dist/esm/config-b1976dbd.js +17 -0
  400. package/dist/esm/config-b1976dbd.js.map +1 -0
  401. package/dist/esm/form-32cf3d1e.js +729 -0
  402. package/dist/esm/form-32cf3d1e.js.map +1 -0
  403. package/dist/esm/form-control-datepart_2.entry.js +44 -20
  404. package/dist/esm/form-control-datepart_2.entry.js.map +1 -1
  405. package/dist/esm/form-control-monetary.entry.js +1 -1
  406. package/dist/esm/form-control-number_3.entry.js +17 -32
  407. package/dist/esm/form-control-number_3.entry.js.map +1 -1
  408. package/dist/esm/helpers-1d5ecdc8.js +26 -0
  409. package/dist/esm/helpers-1d5ecdc8.js.map +1 -0
  410. package/dist/esm/{index-fe877d03.js → index-7471ed60.js} +8 -1
  411. package/dist/esm/index-7471ed60.js.map +1 -0
  412. package/dist/esm/{index.esm-89fe6af9.js → index.esm-9397ffa0.js} +123 -2
  413. package/dist/esm/index.esm-9397ffa0.js.map +1 -0
  414. package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_6.entry.js} +41 -17
  415. package/dist/esm/justifi-additional-questions_6.entry.js.map +1 -0
  416. package/dist/esm/justifi-bank-account-form.entry.js +1 -1
  417. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  418. package/dist/esm/justifi-business-details.entry.js +73 -0
  419. package/dist/esm/justifi-business-details.entry.js.map +1 -0
  420. package/dist/esm/justifi-business-form-stepped.entry.js +127 -0
  421. package/dist/esm/justifi-business-form-stepped.entry.js.map +1 -0
  422. package/dist/esm/justifi-business-form.entry.js +12 -755
  423. package/dist/esm/justifi-business-form.entry.js.map +1 -1
  424. package/dist/esm/justifi-business-list.entry.js +37 -66
  425. package/dist/esm/justifi-business-list.entry.js.map +1 -1
  426. package/dist/esm/justifi-card-form.entry.js +1 -1
  427. package/dist/esm/justifi-details.entry.js +4 -8
  428. package/dist/esm/justifi-details.entry.js.map +1 -1
  429. package/dist/esm/justifi-gross-payment-chart.entry.js +11025 -0
  430. package/dist/esm/justifi-gross-payment-chart.entry.js.map +1 -0
  431. package/dist/esm/justifi-payment-balance-transactions.entry.js +84 -0
  432. package/dist/esm/justifi-payment-balance-transactions.entry.js.map +1 -0
  433. package/dist/esm/justifi-payment-details.entry.js +9 -9
  434. package/dist/esm/justifi-payment-details.entry.js.map +1 -1
  435. package/dist/esm/justifi-payment-form.entry.js +4 -3
  436. package/dist/esm/justifi-payment-form.entry.js.map +1 -1
  437. package/dist/esm/justifi-payment-method-form.entry.js +12 -10
  438. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
  439. package/dist/esm/justifi-payments-list.entry.js +22 -16
  440. package/dist/esm/justifi-payments-list.entry.js.map +1 -1
  441. package/dist/esm/justifi-payout-details.entry.js +9 -7
  442. package/dist/esm/justifi-payout-details.entry.js.map +1 -1
  443. package/dist/esm/justifi-payouts-list.entry.js +23 -17
  444. package/dist/esm/justifi-payouts-list.entry.js.map +1 -1
  445. package/dist/esm/justifi-proceeds-list.entry.js +23 -17
  446. package/dist/esm/justifi-proceeds-list.entry.js.map +1 -1
  447. package/dist/esm/justifi-refund-form.entry.js +101 -0
  448. package/dist/esm/justifi-refund-form.entry.js.map +1 -0
  449. package/dist/esm/justifi-subaccount-details.entry.js +78 -0
  450. package/dist/esm/justifi-subaccount-details.entry.js.map +1 -0
  451. package/dist/esm/justifi-subaccounts-list.entry.js +101 -0
  452. package/dist/esm/justifi-subaccounts-list.entry.js.map +1 -0
  453. package/dist/esm/justifi-table_2.entry.js +75 -0
  454. package/dist/esm/justifi-table_2.entry.js.map +1 -0
  455. package/dist/esm/loader.js +3 -3
  456. package/dist/esm/select-input_2.entry.js +1 -1
  457. package/dist/esm/subaccount-account-details_4.entry.js +65 -0
  458. package/dist/esm/subaccount-account-details_4.entry.js.map +1 -0
  459. package/dist/esm/subaccount-bank-details.entry.js +20 -0
  460. package/dist/esm/subaccount-bank-details.entry.js.map +1 -0
  461. package/dist/esm/subaccount-terms-details.entry.js +20 -0
  462. package/dist/esm/subaccount-terms-details.entry.js.map +1 -0
  463. package/dist/esm/{utils-ad0bbe03.js → utils-40b7002c.js} +91 -19
  464. package/dist/esm/utils-40b7002c.js.map +1 -0
  465. package/dist/esm/utils-6352c002.js +29 -0
  466. package/dist/esm/utils-6352c002.js.map +1 -0
  467. package/dist/esm/webcomponents.js +3 -3
  468. package/dist/types/api/Api.d.ts +4 -4
  469. package/dist/types/api/Business.d.ts +12 -4
  470. package/dist/types/api/GrossVolume.d.ts +8 -0
  471. package/dist/types/api/Pagination.d.ts +12 -6
  472. package/dist/types/api/Payment.d.ts +28 -0
  473. package/dist/types/api/SubAccount.d.ts +165 -0
  474. package/dist/types/api/mockData/MockOnboardingData.d.ts +8 -0
  475. package/dist/types/api/mockData/MockSubAccount.d.ts +3 -0
  476. package/dist/types/api/mockData/mockGrossVolumeReport.d.ts +7 -0
  477. package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -7
  478. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +13 -0
  479. package/dist/types/components/business-details/business-details.d.ts +28 -0
  480. package/dist/types/components/business-details/business-details.stories.d.ts +7 -0
  481. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +5 -0
  482. package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +5 -0
  483. package/dist/types/components/business-details/owner-details/owner-details.d.ts +13 -0
  484. package/dist/types/components/business-details/representative-details/representative-details.d.ts +13 -0
  485. package/dist/types/components/business-form/business-form-stepped.d.ts +29 -0
  486. package/dist/types/components/business-form/business-form-stepped.stories.d.ts +27 -0
  487. package/dist/types/components/business-form/business-form.d.ts +0 -1
  488. package/dist/types/components/business-form/business-form.stories.d.ts +6 -0
  489. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +5 -1
  490. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +2 -0
  491. package/dist/types/components/business-form/helpers.d.ts +1 -0
  492. package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.d.ts +1 -2
  493. package/dist/types/components/business-list/business-list.d.ts +34 -21
  494. package/dist/types/components/card-form/card-form.stories.d.ts +0 -7
  495. package/dist/types/components/details/details.d.ts +0 -3
  496. package/dist/types/components/details/utils.d.ts +5 -2
  497. package/dist/types/components/form/form.d.ts +1 -1
  498. package/dist/types/components/gross-payment-chart/chart-utils.d.ts +45 -0
  499. package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +20 -0
  500. package/dist/types/components/gross-payment-chart/gross-payment-chart.stories.d.ts +7 -0
  501. package/dist/types/components/pagination-menu/pagination-menu.d.ts +10 -0
  502. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +17 -0
  503. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +8 -0
  504. package/dist/types/components/payment-details/payment-details.d.ts +8 -0
  505. package/dist/types/components/payment-form/payment-form.stories.d.ts +1 -9
  506. package/dist/types/components/payments-list/payments-list.d.ts +5 -4
  507. package/dist/types/components/payout-details/payout-details.d.ts +8 -0
  508. package/dist/types/components/payouts-list/payouts-list.d.ts +5 -4
  509. package/dist/types/components/proceeds-list/proceeds-list.d.ts +5 -3
  510. package/dist/types/components/refund-form/refund-form-schema.d.ts +11 -0
  511. package/dist/types/components/refund-form/refund-form.d.ts +58 -0
  512. package/dist/types/components/refund-form/refund-form.stories.d.ts +27 -0
  513. package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +6 -0
  514. package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +5 -0
  515. package/dist/types/components/subaccount-details/subaccount-details.d.ts +16 -0
  516. package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +7 -0
  517. package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +5 -0
  518. package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +5 -0
  519. package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +5 -0
  520. package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +5 -0
  521. package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +19 -0
  522. package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +9 -0
  523. package/dist/types/components/table/table.d.ts +3 -7
  524. package/dist/types/components.d.ts +619 -7
  525. package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +12 -4
  526. package/dist/types/utils/utils.d.ts +19 -0
  527. package/dist/webcomponents/p-0d5d02d7.js +2 -0
  528. package/dist/webcomponents/p-0d5d02d7.js.map +1 -0
  529. package/dist/webcomponents/p-0e9a7fa7.entry.js +2 -0
  530. package/dist/webcomponents/p-0e9a7fa7.entry.js.map +1 -0
  531. package/dist/webcomponents/p-1920e118.entry.js +2 -0
  532. package/dist/webcomponents/p-1920e118.entry.js.map +1 -0
  533. package/dist/webcomponents/p-215b4c87.entry.js +2 -0
  534. package/dist/webcomponents/{p-f6cc37a6.entry.js.map → p-215b4c87.entry.js.map} +1 -1
  535. package/dist/webcomponents/p-222d357c.entry.js +20 -0
  536. package/dist/webcomponents/p-222d357c.entry.js.map +1 -0
  537. package/dist/webcomponents/{p-d92116e6.entry.js → p-2cd29187.entry.js} +2 -2
  538. package/dist/webcomponents/p-301a23aa.js +2 -0
  539. package/dist/webcomponents/p-301a23aa.js.map +1 -0
  540. package/dist/webcomponents/p-355eabff.entry.js +2 -0
  541. package/dist/webcomponents/p-355eabff.entry.js.map +1 -0
  542. package/dist/webcomponents/{p-640bfa9f.entry.js → p-356cf20d.entry.js} +2 -2
  543. package/dist/webcomponents/p-397e0d5a.entry.js +2 -0
  544. package/dist/webcomponents/p-397e0d5a.entry.js.map +1 -0
  545. package/dist/webcomponents/p-491d5c69.entry.js +2 -0
  546. package/dist/webcomponents/p-491d5c69.entry.js.map +1 -0
  547. package/dist/webcomponents/p-526cb161.js +2 -0
  548. package/dist/webcomponents/p-526cb161.js.map +1 -0
  549. package/dist/webcomponents/{p-f9e127a5.js → p-59860ac8.js} +2 -2
  550. package/dist/webcomponents/p-59860ac8.js.map +1 -0
  551. package/dist/webcomponents/p-62872b87.entry.js +2 -0
  552. package/dist/webcomponents/p-62872b87.entry.js.map +1 -0
  553. package/dist/webcomponents/p-635a3b3e.entry.js +2 -0
  554. package/dist/webcomponents/p-635a3b3e.entry.js.map +1 -0
  555. package/dist/webcomponents/p-64184a0c.entry.js +2 -0
  556. package/dist/webcomponents/p-64184a0c.entry.js.map +1 -0
  557. package/dist/webcomponents/p-6c3236e8.entry.js +2 -0
  558. package/dist/webcomponents/p-6c3236e8.entry.js.map +1 -0
  559. package/dist/webcomponents/p-76983a7e.js +2 -0
  560. package/dist/webcomponents/p-76983a7e.js.map +1 -0
  561. package/dist/webcomponents/p-76dffeec.js +2 -0
  562. package/dist/webcomponents/p-76dffeec.js.map +1 -0
  563. package/dist/webcomponents/{p-2b6f5e35.entry.js → p-77e732b2.entry.js} +2 -2
  564. package/dist/webcomponents/p-77e732b2.entry.js.map +1 -0
  565. package/dist/webcomponents/p-798483dd.entry.js +2 -0
  566. package/dist/webcomponents/p-798483dd.entry.js.map +1 -0
  567. package/dist/webcomponents/p-7a24ab66.entry.js +2 -0
  568. package/dist/webcomponents/p-7a24ab66.entry.js.map +1 -0
  569. package/dist/webcomponents/p-7cde64a2.entry.js +2 -0
  570. package/dist/webcomponents/{p-9d1c7e6a.entry.js.map → p-7cde64a2.entry.js.map} +1 -1
  571. package/dist/webcomponents/p-7d58db66.js +2 -0
  572. package/dist/webcomponents/p-7d58db66.js.map +1 -0
  573. package/dist/webcomponents/p-8367b46c.entry.js +2 -0
  574. package/dist/webcomponents/p-8367b46c.entry.js.map +1 -0
  575. package/dist/webcomponents/{p-1beaaba3.entry.js → p-88fa33c1.entry.js} +2 -2
  576. package/dist/webcomponents/{p-c46241ba.js → p-8f37e3ee.js} +2 -2
  577. package/dist/webcomponents/p-8f37e3ee.js.map +1 -0
  578. package/dist/webcomponents/p-931989e6.entry.js +2 -0
  579. package/dist/webcomponents/p-931989e6.entry.js.map +1 -0
  580. package/dist/webcomponents/{p-cd0eca25.entry.js → p-96eecdff.entry.js} +2 -2
  581. package/dist/webcomponents/p-988191bf.js +2 -0
  582. package/dist/webcomponents/p-988191bf.js.map +1 -0
  583. package/dist/webcomponents/p-a4c78757.entry.js +2 -0
  584. package/dist/webcomponents/p-a4c78757.entry.js.map +1 -0
  585. package/dist/webcomponents/p-b08a9520.entry.js +2 -0
  586. package/dist/webcomponents/p-b08a9520.entry.js.map +1 -0
  587. package/dist/webcomponents/p-b157f6ae.js +2 -0
  588. package/dist/webcomponents/p-b157f6ae.js.map +1 -0
  589. package/dist/webcomponents/p-b45453ea.entry.js +2 -0
  590. package/dist/webcomponents/p-b45453ea.entry.js.map +1 -0
  591. package/dist/webcomponents/p-c2845c5d.entry.js +2 -0
  592. package/dist/webcomponents/p-c2845c5d.entry.js.map +1 -0
  593. package/dist/webcomponents/p-c4289027.entry.js +2 -0
  594. package/dist/webcomponents/p-c4289027.entry.js.map +1 -0
  595. package/dist/webcomponents/p-c43e9572.entry.js +2 -0
  596. package/dist/webcomponents/p-c43e9572.entry.js.map +1 -0
  597. package/dist/webcomponents/p-cbb60191.js +3 -0
  598. package/dist/webcomponents/p-cbb60191.js.map +1 -0
  599. package/dist/webcomponents/{p-26392ae3.entry.js → p-d40718da.entry.js} +2 -2
  600. package/dist/webcomponents/p-d40718da.entry.js.map +1 -0
  601. package/dist/webcomponents/{p-9346ae33.js → p-d6b5793d.js} +2 -2
  602. package/dist/webcomponents/p-d6b5793d.js.map +1 -0
  603. package/dist/webcomponents/{p-a922b908.entry.js → p-ec1890fc.entry.js} +2 -2
  604. package/dist/webcomponents/p-ffcbf779.entry.js +2 -0
  605. package/dist/webcomponents/p-ffcbf779.entry.js.map +1 -0
  606. package/dist/webcomponents/webcomponents.esm.js +1 -1
  607. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  608. package/package.json +8 -7
  609. package/dist/cjs/Api-f76b337f.js.map +0 -1
  610. package/dist/cjs/Payout-4906a445.js.map +0 -1
  611. package/dist/cjs/business-form-schema-725ec6f5.js.map +0 -1
  612. package/dist/cjs/form-control-select.cjs.entry.js +0 -47
  613. package/dist/cjs/form-control-select.cjs.entry.js.map +0 -1
  614. package/dist/cjs/index-3533152c.js.map +0 -1
  615. package/dist/cjs/index.esm-84a0a7a8.js.map +0 -1
  616. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +0 -1
  617. package/dist/cjs/justifi-table.cjs.entry.js.map +0 -1
  618. package/dist/cjs/table-utils-617126e5.js +0 -13
  619. package/dist/cjs/table-utils-617126e5.js.map +0 -1
  620. package/dist/cjs/utils-0fd61dbd.js.map +0 -1
  621. package/dist/cjs/utils-d95b09c2.js +0 -35
  622. package/dist/cjs/utils-d95b09c2.js.map +0 -1
  623. package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +0 -1
  624. package/dist/collection/components/legal-address-form/legal-address-form.js.map +0 -1
  625. package/dist/collection/components/table/table-utils.js +0 -8
  626. package/dist/collection/components/table/table-utils.js.map +0 -1
  627. package/dist/esm/Api-cca120a8.js.map +0 -1
  628. package/dist/esm/Payout-9a1f2859.js.map +0 -1
  629. package/dist/esm/business-form-schema-5885d3d6.js.map +0 -1
  630. package/dist/esm/form-control-select.entry.js +0 -43
  631. package/dist/esm/form-control-select.entry.js.map +0 -1
  632. package/dist/esm/index-fe877d03.js.map +0 -1
  633. package/dist/esm/index.esm-89fe6af9.js.map +0 -1
  634. package/dist/esm/justifi-additional-questions_5.entry.js.map +0 -1
  635. package/dist/esm/justifi-table.entry.js.map +0 -1
  636. package/dist/esm/table-utils-6cdcaa8c.js +0 -11
  637. package/dist/esm/table-utils-6cdcaa8c.js.map +0 -1
  638. package/dist/esm/utils-1e7d6279.js +0 -28
  639. package/dist/esm/utils-1e7d6279.js.map +0 -1
  640. package/dist/esm/utils-ad0bbe03.js.map +0 -1
  641. package/dist/types/components/table/table-utils.d.ts +0 -14
  642. package/dist/webcomponents/p-26392ae3.entry.js.map +0 -1
  643. package/dist/webcomponents/p-2b6f5e35.entry.js.map +0 -1
  644. package/dist/webcomponents/p-2e66512d.entry.js +0 -2
  645. package/dist/webcomponents/p-2e66512d.entry.js.map +0 -1
  646. package/dist/webcomponents/p-523cbe04.js +0 -2
  647. package/dist/webcomponents/p-523cbe04.js.map +0 -1
  648. package/dist/webcomponents/p-641883b2.entry.js +0 -2
  649. package/dist/webcomponents/p-641883b2.entry.js.map +0 -1
  650. package/dist/webcomponents/p-69a1bec2.entry.js +0 -2
  651. package/dist/webcomponents/p-69a1bec2.entry.js.map +0 -1
  652. package/dist/webcomponents/p-6a0c8dec.entry.js +0 -2
  653. package/dist/webcomponents/p-6a0c8dec.entry.js.map +0 -1
  654. package/dist/webcomponents/p-87410719.entry.js +0 -2
  655. package/dist/webcomponents/p-87410719.entry.js.map +0 -1
  656. package/dist/webcomponents/p-881edb4d.entry.js +0 -2
  657. package/dist/webcomponents/p-881edb4d.entry.js.map +0 -1
  658. package/dist/webcomponents/p-9346ae33.js.map +0 -1
  659. package/dist/webcomponents/p-9d1c7e6a.entry.js +0 -2
  660. package/dist/webcomponents/p-ab0756ff.js +0 -2
  661. package/dist/webcomponents/p-ab0756ff.js.map +0 -1
  662. package/dist/webcomponents/p-c46241ba.js.map +0 -1
  663. package/dist/webcomponents/p-ccb0e1c5.js +0 -2
  664. package/dist/webcomponents/p-ccb0e1c5.js.map +0 -1
  665. package/dist/webcomponents/p-dabeb3df.entry.js +0 -2
  666. package/dist/webcomponents/p-dabeb3df.entry.js.map +0 -1
  667. package/dist/webcomponents/p-db9945b1.entry.js +0 -2
  668. package/dist/webcomponents/p-db9945b1.entry.js.map +0 -1
  669. package/dist/webcomponents/p-e1f6c8ec.entry.js +0 -2
  670. package/dist/webcomponents/p-e1f6c8ec.entry.js.map +0 -1
  671. package/dist/webcomponents/p-e41fb562.entry.js +0 -2
  672. package/dist/webcomponents/p-e41fb562.entry.js.map +0 -1
  673. package/dist/webcomponents/p-e6695628.js +0 -2
  674. package/dist/webcomponents/p-e6695628.js.map +0 -1
  675. package/dist/webcomponents/p-e70b2a21.js +0 -3
  676. package/dist/webcomponents/p-e70b2a21.js.map +0 -1
  677. package/dist/webcomponents/p-f6cc37a6.entry.js +0 -2
  678. package/dist/webcomponents/p-f8067330.entry.js +0 -2
  679. package/dist/webcomponents/p-f8067330.entry.js.map +0 -1
  680. package/dist/webcomponents/p-f9e127a5.js.map +0 -1
  681. /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.js +0 -0
  682. /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.css +0 -0
  683. /package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.d.ts +0 -0
  684. /package/dist/webcomponents/{p-d92116e6.entry.js.map → p-2cd29187.entry.js.map} +0 -0
  685. /package/dist/webcomponents/{p-640bfa9f.entry.js.map → p-356cf20d.entry.js.map} +0 -0
  686. /package/dist/webcomponents/{p-1beaaba3.entry.js.map → p-88fa33c1.entry.js.map} +0 -0
  687. /package/dist/webcomponents/{p-cd0eca25.entry.js.map → p-96eecdff.entry.js.map} +0 -0
  688. /package/dist/webcomponents/{p-a922b908.entry.js.map → p-ec1890fc.entry.js.map} +0 -0
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-c5ace247.js');
4
+
5
+ const LoadingState = (index.h("main", { part: "detail-loading-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
6
+ index.h("div", { part: "detail-loading-spinner", class: "spinner-border spinner-border-sm", role: "status" },
7
+ index.h("span", { class: "visually-hidden" }, "Loading..."))));
8
+ const ErrorState = (errorMessage) => (index.h("main", { part: "detail-empty-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
9
+ index.h("div", null, errorMessage)));
10
+ const DetailSection = ({ sectionTitle }, children) => (index.h("div", { part: "detail-section", class: "mt-4" },
11
+ index.h("h5", { part: "detail-section-title" }, sectionTitle),
12
+ index.h("hr", null),
13
+ index.h("div", { class: "d-flex flex-column justify-content-center gap-2 text-nowrap" }, children)));
14
+ const DetailItem = ({ title, value, }) => title && value ? (index.h("div", { class: "d-flex gap-2" },
15
+ index.h("span", { part: "detail-section-item-title", class: "fw-bold flex-1" }, title),
16
+ index.h("span", { part: "detail-section-item-data", class: "flex-1", innerHTML: value }))) : null;
17
+ const EntityHeadInfoItem = ({ title, value, classes, }) => (index.h("div", { part: "detail-head-info-item", class: `d-flex flex-column ${classes}` },
18
+ index.h("span", { part: "detail-head-info-item-title", class: "fw-bold border-1 border-bottom ps-2 pe-2" }, title),
19
+ index.h("span", { part: "detail-head-info-item-data", class: "pt-2 ps-2 pe-2" }, value)));
20
+ const EntityHeadInfo = ({ title, slot, badge }, children) => (index.h("div", { slot: slot, part: "detail-head", class: "p-2" },
21
+ index.h("div", { class: "d-flex flex-row align-items-center gap-2 mb-2" },
22
+ index.h("h1", { class: "m-0", part: "detail-title" }, title),
23
+ badge),
24
+ index.h("div", { part: "detail-head-info", class: "d-flex flex-row align-items-top" }, children)));
25
+ const CodeBlock = ({ metadata }) => metadata && Object.keys(metadata).length ? (index.h("div", { class: 'mt-4' },
26
+ index.h("pre", { part: "detail-metadata", class: "p-2", "aria-label": "metadata content" },
27
+ index.h("code", null, JSON.stringify(metadata, null, 2))))) : null;
28
+
29
+ exports.CodeBlock = CodeBlock;
30
+ exports.DetailItem = DetailItem;
31
+ exports.DetailSection = DetailSection;
32
+ exports.EntityHeadInfo = EntityHeadInfo;
33
+ exports.EntityHeadInfoItem = EntityHeadInfoItem;
34
+ exports.ErrorState = ErrorState;
35
+ exports.LoadingState = LoadingState;
36
+
37
+ //# sourceMappingURL=utils-4622829d.js.map
@@ -0,0 +1 @@
1
+ {"file":"utils-4622829d.js","mappings":";;;;MAEa,YAAY,IACvBA,kBACE,IAAI,EAAC,sBAAsB,EAC3B,KAAK,EAAC,+CAA+C,EACrD,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;EAE7BA,iBACE,IAAI,EAAC,wBAAwB,EAC7B,KAAK,EAAC,kCAAkC,EACxC,IAAI,EAAC,QAAQ;IAEbA,kBAAM,KAAK,EAAC,iBAAiB,iBAAkB,CAC3C,CACD,EACP;MAEW,UAAU,GAAG,CAAC,YAAoB,MAC7CA,kBACE,IAAI,EAAC,oBAAoB,EACzB,KAAK,EAAC,+CAA+C,EACrD,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;EAE7BA,qBAAM,YAAY,CAAO,CACpB,EAC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AAG,CAAC,EAAE,QAAQ,EAAkB,KACpD,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,IACtCA,iBAAK,KAAK,EAAC,MAAM;EACfA,iBAAK,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,KAAK,gBAAY,kBAAkB;IACnEA,sBACG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAC7B,CACH,CACF,IACJ;;;;;;;;;;","names":["h"],"sources":["src/components/details/utils.tsx"],"sourcesContent":["import { h } from '@stencil/core';\n\nexport const LoadingState = (\n <main\n part=\"detail-loading-state\"\n class=\"p-4 d-flex justify-content-center text-center\"\n style={{ fontSize: '1.2rem' }}\n >\n <div\n part=\"detail-loading-spinner\"\n class=\"spinner-border spinner-border-sm\"\n role=\"status\"\n >\n <span class=\"visually-hidden\">Loading...</span>\n </div>\n </main>\n);\n\nexport const ErrorState = (errorMessage: string) => (\n <main\n part=\"detail-empty-state\"\n class=\"p-4 d-flex justify-content-center text-center\"\n style={{ fontSize: '1.2rem' }}\n >\n <div>{errorMessage}</div>\n </main>\n);\n\nexport const DetailSection = (\n { sectionTitle }: { sectionTitle: string },\n children,\n) => (\n <div part=\"detail-section\" class=\"mt-4\">\n <h5 part=\"detail-section-title\">{sectionTitle}</h5>\n <hr />\n <div class=\"d-flex flex-column justify-content-center gap-2 text-nowrap\">\n {children}\n </div>\n </div>\n);\n\nexport const DetailItem = ({\n title,\n value,\n}: {\n title: string;\n value: string;\n}) =>\n title && value ? (\n <div class=\"d-flex gap-2\">\n <span part=\"detail-section-item-title\" class=\"fw-bold flex-1\">\n {title}\n </span>\n <span\n part=\"detail-section-item-data\"\n class=\"flex-1\"\n innerHTML={value}\n ></span>\n </div>\n ) : null;\n\nexport const EntityHeadInfoItem = ({\n title,\n value,\n classes,\n}: {\n title: string;\n value: any;\n classes?: string;\n}) => (\n <div part=\"detail-head-info-item\" class={`d-flex flex-column ${classes}`}>\n <span\n part=\"detail-head-info-item-title\"\n class=\"fw-bold border-1 border-bottom ps-2 pe-2\"\n >\n {title}\n </span>\n <span part=\"detail-head-info-item-data\" class=\"pt-2 ps-2 pe-2\">\n {value}\n </span>\n </div>\n);\n\nexport const EntityHeadInfo = ({ title, slot, badge }, children) => (\n <div slot={slot} part=\"detail-head\" class=\"p-2\">\n <div class=\"d-flex flex-row align-items-center gap-2 mb-2\">\n <h1 class=\"m-0\" part=\"detail-title\">\n {title}\n </h1>\n {badge}\n </div>\n <div part=\"detail-head-info\" class=\"d-flex flex-row align-items-top\">\n {children}\n </div>\n </div>\n);\n\nexport const CodeBlock = ({ metadata }: {metadata: {}}) => \n metadata && Object.keys(metadata).length ? (\n <div class='mt-4'>\n <pre part=\"detail-metadata\" class=\"p-2\" aria-label=\"metadata content\">\n <code>\n {JSON.stringify(metadata, null, 2)}\n </code>\n </pre>\n </div>\n ) : null;\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3533152c.js');
5
+ const index = require('./index-c5ace247.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v4.1.0 | MIT Licensed | https://stenciljs.com
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy([["justifi-business-form.cjs",[[0,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"isLoading":[32]}]]],["justifi-payment-form.cjs",[[1,"justifi-payment-form",{"bankAccount":[4,"bank-account"],"card":[4],"email":[1],"iframeOrigin":[1,"iframe-origin"],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"submitButtonText":[1,"submit-button-text"],"submitButtonEnabled":[32],"hasLoadedFonts":[32],"isLoading":[32],"selectedPaymentMethodType":[32],"allowedPaymentMethodTypes":[32],"fillBillingForm":[64],"enableSubmitButton":[64],"loadFontsOnParent":[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["justifi-bank-account-form.cjs",[[0,"justifi-bank-account-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["justifi-business-list.cjs",[[1,"justifi-business-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"businesses":[32],"loading":[32],"errorMessage":[32],"paging":[32]}]]],["justifi-card-form.cjs",[[0,"justifi-card-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"singleLine":[4,"single-line"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["justifi-details.cjs",[[1,"justifi-details",{"errorMessage":[1,"error-message"],"entity":[16]}]]],["justifi-payment-details.cjs",[[1,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"payment":[32],"loading":[32],"errorMessage":[32]}]]],["justifi-table.cjs",[[1,"justifi-table",{"loading":[4],"errorMessage":[1,"error-message"],"rowData":[16],"columnData":[16],"paging":[16],"entityId":[16],"rowClickHandler":[16]}]]],["justifi-payments-list.cjs",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"payments":[32],"loading":[32],"errorMessage":[32],"paging":[32]}]]],["justifi-payout-details.cjs",[[1,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"payout":[32],"loading":[32],"errorMessage":[32]}]]],["justifi-payouts-list.cjs",[[1,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"payouts":[32],"loading":[32],"errorMessage":[32],"paging":[32]}]]],["justifi-proceeds-list.cjs",[[1,"justifi-proceeds-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"proceeds":[32],"loading":[32],"errorMessage":[32],"paging":[32]}]]],["select-input_2.cjs",[[1,"select-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"options":[16],"internalValue":[32]}],[1,"text-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"internalValue":[32]}]]],["justifi-billing-form_2.cjs",[[1,"justifi-billing-form",{"legend":[1025],"billingFields":[32],"billingFieldsErrors":[32],"fill":[64],"validate":[64],"getValues":[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{"paymentMethodTypes":[16],"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]],["form-control-monetary.cjs",[[1,"form-control-monetary",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16]}]]],["justifi-payment-method-form.cjs",[[0,"justifi-payment-method-form",{"paymentMethodFormType":[1,"payment-method-form-type"],"paymentMethodFormValidationMode":[1025,"payment-method-form-validation-mode"],"iframeOrigin":[1,"iframe-origin"],"singleLine":[4,"single-line"],"resize":[64],"tokenize":[64],"validate":[64]}]]],["form-control-select.cjs",[[1,"form-control-select",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"options":[16],"disabled":[4]}]]],["form-control-number_3.cjs",[[1,"form-control-number-masked",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"mask":[1],"disabled":[4]}],[1,"form-control-number",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4],"input":[32]}],[1,"form-control-text",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"disabled":[4],"inputHandler":[16],"input":[32]}]]],["form-control-datepart_2.cjs",[[1,"justifi-business-address-form",{"onFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]}],[1,"form-control-datepart",{"label":[1],"name":[1],"error":[1],"defaultValue":[1,"default-value"],"type":[1],"inputHandler":[16],"disabled":[4]}]]],["justifi-additional-questions_5.cjs",[[0,"justifi-business-representative",{"formController":[16],"errors":[32],"representative":[32]}],[0,"justifi-business-generic-info",{"formController":[16],"errors":[32],"business":[32]}],[0,"justifi-business-owners",{"formController":[16],"isEditing":[4,"is-editing"],"errors":[32],"owners":[32]}],[0,"justifi-legal-address-form",{"formController":[16],"legend":[1],"errors":[32],"legal_address":[32]}],[0,"justifi-additional-questions",{"formController":[16],"errors":[32],"additional_questions":[32]}]]]], options);
20
+ return index.bootstrapLazy([["justifi-business-form.cjs",[[0,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"isLoading":[32]}]]],["justifi-business-form-stepped.cjs",[[0,"justifi-business-form-stepped",{"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"businessId":[1,"business-id"],"isLoading":[32],"currentStep":[32],"totalSteps":[32],"serverError":[32]}]]],["justifi-business-details.cjs",[[1,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["justifi-payment-form.cjs",[[1,"justifi-payment-form",{"bankAccount":[4,"bank-account"],"card":[4],"email":[1],"iframeOrigin":[1,"iframe-origin"],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"submitButtonText":[1,"submit-button-text"],"submitButtonEnabled":[32],"hasLoadedFonts":[32],"isLoading":[32],"selectedPaymentMethodType":[32],"allowedPaymentMethodTypes":[32],"fillBillingForm":[64],"enableSubmitButton":[64],"loadFontsOnParent":[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["justifi-subaccount-details.cjs",[[1,"justifi-subaccount-details",{"accountId":[1,"account-id"],"subaccountId":[1,"subaccount-id"],"authToken":[1,"auth-token"],"onboardingData":[32],"subaccount":[32],"loading":[32],"errorMessage":[32]}]]],["justifi-business-list.cjs",[[1,"justifi-business-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"businesses":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]}]]],["justifi-payment-balance-transactions.cjs",[[1,"justifi-payment-balance-transactions",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"paymentId":[1,"payment-id"],"balanceTransactions":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]}]]],["justifi-payments-list.cjs",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"payments":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]}]]],["justifi-payouts-list.cjs",[[1,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"payouts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]}]]],["justifi-proceeds-list.cjs",[[1,"justifi-proceeds-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"proceeds":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]}]]],["justifi-refund-form.cjs",[[1,"justifi-refund-form",{"authToken":[1,"auth-token"],"paymentId":[1,"payment-id"],"amount":[2],"submitButtonText":[1,"submit-button-text"],"withButton":[4,"with-button"],"refundInfoText":[1,"refund-info-text"],"errors":[32],"isSubmitting":[32]}]]],["justifi-subaccounts-list.cjs",[[1,"justifi-subaccounts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"subaccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]}]]],["justifi-payment-method-form.cjs",[[0,"justifi-payment-method-form",{"paymentMethodFormType":[1,"payment-method-form-type"],"paymentMethodFormValidationMode":[1025,"payment-method-form-validation-mode"],"iframeOrigin":[1,"iframe-origin"],"singleLine":[4,"single-line"],"resize":[64],"tokenize":[64],"validate":[64]}]]],["justifi-bank-account-form.cjs",[[0,"justifi-bank-account-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["justifi-card-form.cjs",[[0,"justifi-card-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"singleLine":[4,"single-line"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["justifi-payment-details.cjs",[[1,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"payment":[32],"loading":[32],"errorMessage":[32]}]]],["justifi-payout-details.cjs",[[1,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"payout":[32],"loading":[32],"errorMessage":[32]}]]],["justifi-gross-payment-chart.cjs",[[1,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"data":[32],"total":[32],"dates":[32],"endDate":[32],"loading":[32],"errorMessage":[32]}]]],["subaccount-bank-details.cjs",[[1,"subaccount-bank-details",{"data":[16]}]]],["subaccount-terms-details.cjs",[[1,"subaccount-terms-details",{"data":[16]}]]],["justifi-billing-form_2.cjs",[[1,"justifi-billing-form",{"legend":[1025],"billingFields":[32],"billingFieldsErrors":[32],"fill":[64],"validate":[64],"getValues":[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{"paymentMethodTypes":[16],"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]],["justifi-details.cjs",[[1,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["subaccount-account-details_4.cjs",[[1,"subaccount-account-details",{"subaccount":[16],"onboardingData":[16]}],[1,"subaccount-merchant-details",{"onboardingData":[8,"onboarding-data"]}],[1,"subaccount-owners-details",{"data":[16]}],[1,"subaccount-representative-details",{"data":[16]}]]],["select-input_2.cjs",[[1,"select-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"options":[16],"internalValue":[32]}],[1,"text-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"internalValue":[32]}]]],["form-control-monetary.cjs",[[1,"form-control-monetary",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16]}]]],["additional-questions-details_5.cjs",[[1,"additional-questions-details",{"business":[16]}],[1,"generic-info-details",{"business":[16]}],[1,"legal-address-details",{"legalAddress":[16]}],[1,"owner-details",{"owners":[16]}],[1,"representative-details",{"representative":[16]}]]],["form-control-datepart_2.cjs",[[1,"form-control-datepart",{"label":[1],"name":[1],"error":[1],"defaultValue":[1,"default-value"],"type":[1],"inputHandler":[16],"disabled":[4]}],[1,"form-control-number-masked",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"mask":[1],"disabled":[4]}]]],["form-control-number_3.cjs",[[1,"form-control-select",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"options":[16],"disabled":[4]}],[1,"form-control-number",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4],"input":[32]}],[1,"form-control-text",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"disabled":[4],"inputHandler":[16],"input":[32]}]]],["justifi-additional-questions_6.cjs",[[0,"justifi-business-representative",{"formController":[16],"errors":[32],"representative":[32]}],[0,"justifi-business-generic-info",{"formController":[16],"errors":[32]}],[0,"justifi-business-owners",{"formController":[16],"isEditing":[4,"is-editing"],"errors":[32],"owners":[32]}],[0,"justifi-legal-address-form",{"formController":[16],"errors":[32],"legal_address":[32]}],[0,"justifi-additional-questions",{"formController":[16],"errors":[32],"additional_questions":[32]}],[1,"justifi-business-address-form",{"onFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]}]]],["justifi-table_2.cjs",[[1,"justifi-table",{"loading":[4],"errorMessage":[1,"error-message"],"rowData":[16],"columnData":[16],"paging":[16],"params":[8],"entityId":[16],"rowClickHandler":[16]}],[1,"pagination-menu",{"paging":[16],"params":[16]}]]]], options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -1,7 +1,5 @@
1
1
  import { v4 as uuidv4 } from "uuid";
2
- const Api = (authToken, customApiOrigin) => {
3
- const originFromEnv = typeof process !== 'undefined' && (process === null || process === void 0 ? void 0 : process.env.API_ORIGIN);
4
- const apiOrigin = customApiOrigin || originFromEnv || 'https://wc-proxy.justifi.ai';
2
+ const Api = (authToken, apiOrigin) => {
5
3
  async function getAuthorizationHeader() {
6
4
  return {
7
5
  'Authorization': `Bearer ${authToken}`,
@@ -11,19 +9,7 @@ const Api = (authToken, customApiOrigin) => {
11
9
  }
12
10
  async function makeRequest(endpoint, method, params, body, signal) {
13
11
  const url = `${apiOrigin}/v1/${endpoint}`;
14
- let cursor;
15
- if (params === null || params === void 0 ? void 0 : params.paging) {
16
- cursor = (params === null || params === void 0 ? void 0 : params.paging) && (params === null || params === void 0 ? void 0 : params.direction) ? `${params.direction === 'prev'
17
- ? '&before_cursor=' + params.paging.start_cursor
18
- : params.direction === 'next'
19
- ? '&after_cursor=' + params.paging.end_cursor
20
- : ''}` : null;
21
- delete params.paging;
22
- }
23
- if (params === null || params === void 0 ? void 0 : params.direction) {
24
- delete params.direction;
25
- }
26
- const requestUrl = params ? `${url}?${new URLSearchParams(params)}${cursor ? '&' + cursor : ''}` : url;
12
+ const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;
27
13
  const response = await fetch(requestUrl, {
28
14
  method: method,
29
15
  headers: await getAuthorizationHeader(),
@@ -1 +1 @@
1
- {"version":3,"file":"Api.js","sourceRoot":"","sources":["../../../src/api/Api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAwBpC,MAAM,GAAG,GAAG,CAAC,SAAiB,EAAE,eAAwB,EAAE,EAAE;EAC1D,MAAM,aAAa,G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C,CAAC;AAEF,SAAS,WAAW,CAAC,UAAkB;EACrC,OAAO,CAAC,KAAK,CAAC,uBAAuB,UAAU,EAAE,CAAC,CAAC;AACrD,CAAC;AAED,eAAe,GAAG,CAAC","sourcesContent":["import { v4 as uuidv4 } from 'uuid';\nimport { IPagination } from './Pagination';\n\nexport interface IApiResponse<T> {\n data: T;\n error?: IErrorObject | IServerError;\n page_info?: IPagination;\n errors?: string[];\n id: number;\n type: string;\n}\n\nexport type IServerError = string;\n\nexport interface IErrorObject {\n message: string;\n code: string;\n param?: string;\n}\n\nexport interface IApiResponseCollection<T> extends IApiResponse<T> {\n page_info: IPagination;\n}\n\nconst Api = (authToken: string, customApiOrigin?: string) => {\n const originFromEnv = typeof process !== 'undefined' && process?.env.API_ORIGIN;\n const apiOrigin = customApiOrigin || originFromEnv || 'https://wc-proxy.justifi.ai';\n\n async function getAuthorizationHeader() {\n return {\n 'Authorization': `Bearer ${authToken}`,\n 'Idempotency-Key': uuidv4(),\n 'Content-Type': 'application/json',\n };\n }\n\n async function makeRequest(endpoint: string, method: string, params?: any, body?: any, signal?: AbortSignal) {\n const url = `${apiOrigin}/v1/${endpoint}`;\n let cursor;\n if (params?.paging) {\n cursor = params?.paging && params?.direction ? `${params.direction === 'prev'\n ? '&before_cursor=' + params.paging.start_cursor\n : params.direction === 'next'\n ? '&after_cursor=' + params.paging.end_cursor\n : ''\n }` : null;\n delete params.paging;\n }\n if (params?.direction) {\n delete params.direction;\n }\n const requestUrl = params ? `${url}?${new URLSearchParams(params)}${cursor ? '&' + cursor : ''}` : url;\n const response = await fetch(requestUrl, {\n method: method,\n headers: await getAuthorizationHeader(),\n body: body,\n signal: signal,\n });\n\n if (response) {\n return response.status === 204 ? {} : response.json();\n }\n handleError(requestUrl);\n }\n\n async function get(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'GET', params, null, signal);\n }\n\n async function post(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'POST', params, body, signal);\n }\n\n async function patch(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'PATCH', params, body, signal);\n }\n\n async function destroy(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'DELETE', params, null, signal);\n }\n\n return { get, post, patch, destroy };\n};\n\nfunction handleError(requestUrl: string): void {\n console.error(`Error fetching from ${requestUrl}`);\n}\n\nexport default Api;\n"]}
1
+ {"version":3,"file":"Api.js","sourceRoot":"","sources":["../../../src/api/Api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAwBpC,MAAM,GAAG,GAAG,CAAC,SAAiB,EAAE,SAAkB,EAAE,EAAE;EACpD,KAAK,UAAU,sBAAsB;IACnC,OAAO;MACL,eAAe,EAAE,UAAU,SAAS,EAAE;MACtC,iBAAiB,EAAE,MAAM,EAAE;MAC3B,cAAc,EAAE,kBAAkB;KACnC,CAAC;EACJ,CAAC;EAED,KAAK,UAAU,WAAW,CAAC,QAAgB,EAAE,MAAc,EAAE,MAAY,EAAE,IAAU,EAAE,MAAoB;IACzG,MAAM,GAAG,GAAG,GAAG,SAAS,OAAO,QAAQ,EAAE,CAAC;IAC1C,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAC1E,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE;MACvC,MAAM,EAAE,MAAM;MACd,OAAO,EAAE,MAAM,sBAAsB,EAAE;MACvC,IAAI,EAAE,IAAI;MACV,MAAM,EAAE,MAAM;KACf,CAAC,CAAC;IAEH,IAAI,QAAQ,EAAE;MACZ,OAAO,QAAQ,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;KACvD;IACD,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1B,CAAC;EAED,KAAK,UAAU,GAAG,CAAC,QAAgB,EAAE,MAAY,EAAE,MAAoB;IACrE,OAAO,WAAW,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;EAC5D,CAAC;EAED,KAAK,UAAU,IAAI,CAAC,QAAgB,EAAE,IAAU,EAAE,MAAY,EAAE,MAAoB;IAClF,OAAO,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;EAC7D,CAAC;EAED,KAAK,UAAU,KAAK,CAAC,QAAgB,EAAE,IAAU,EAAE,MAAY,EAAE,MAAoB;IACnF,OAAO,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;EAC9D,CAAC;EAED,KAAK,UAAU,OAAO,CAAC,QAAgB,EAAE,MAAY,EAAE,MAAoB;IACzE,OAAO,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;EAC/D,CAAC;EAED,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACvC,CAAC,CAAC;AAEF,SAAS,WAAW,CAAC,UAAkB;EACrC,OAAO,CAAC,KAAK,CAAC,uBAAuB,UAAU,EAAE,CAAC,CAAC;AACrD,CAAC;AAED,eAAe,GAAG,CAAC","sourcesContent":["import { v4 as uuidv4 } from 'uuid';\nimport { PagingInfo } from './Pagination';\n\nexport interface IApiResponse<T> {\n data: T;\n error?: IErrorObject | IServerError;\n page_info?: PagingInfo;\n errors?: string[];\n id: number;\n type: string;\n}\n\nexport type IServerError = string;\n\nexport interface IErrorObject {\n message: string;\n code: string;\n param?: string;\n}\n\nexport interface IApiResponseCollection<T> extends IApiResponse<T> {\n page_info: PagingInfo;\n}\n\nconst Api = (authToken: string, apiOrigin?: string) => {\n async function getAuthorizationHeader() {\n return {\n 'Authorization': `Bearer ${authToken}`,\n 'Idempotency-Key': uuidv4(),\n 'Content-Type': 'application/json',\n };\n }\n\n async function makeRequest(endpoint: string, method: string, params?: any, body?: any, signal?: AbortSignal) {\n const url = `${apiOrigin}/v1/${endpoint}`;\n const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;\n const response = await fetch(requestUrl, {\n method: method,\n headers: await getAuthorizationHeader(),\n body: body,\n signal: signal,\n });\n\n if (response) {\n return response.status === 204 ? {} : response.json();\n }\n handleError(requestUrl);\n }\n\n async function get(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'GET', params, null, signal);\n }\n\n async function post(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'POST', params, body, signal);\n }\n\n async function patch(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'PATCH', params, body, signal);\n }\n\n async function destroy(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'DELETE', params, null, signal);\n }\n\n return { get, post, patch, destroy };\n};\n\nfunction handleError(requestUrl: string): void {\n console.error(`Error fetching from ${requestUrl}`);\n}\n\nexport default Api;\n"]}
@@ -45,6 +45,4 @@ export class Business {
45
45
  this.product_categories = business.product_categories;
46
46
  }
47
47
  }
48
- ;
49
- ;
50
48
  //# sourceMappingURL=Business.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Business.js","sourceRoot":"","sources":["../../../src/api/Business.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,iBAcX;AAdD,WAAY,iBAAiB;EAC3B,gEAA2C,CAAA;EAC3C,8CAAyB,CAAA;EACzB,4CAAuB,CAAA;EACvB,gEAA2C,CAAA;EAC3C,gEAA2C,CAAA;EAC3C,8EAAyD,CAAA;EACzD,8DAAyC,CAAA;EACzC,8DAAyC,CAAA;EACzC,kDAA6B,CAAA;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,GAAG,QAAQ,CAAC,cAAc,CAAC;IAC9C,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC9B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IACtC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;IACxC,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC,kBAAkB,CAAC;EACxD,CAAC;CACF;AAAA,CAAC;AAgBD,CAAC","sourcesContent":["import { BankAccount } from './shared';\n\nexport enum BusinessStructure {\n sole_proprietorship = 'sole_proprietorship',\n single_llc = 'single_llc',\n multi_llc = 'multi_llc',\n private_partnership = 'private_partnership',\n private_corporation = 'private_corporation',\n unincorporated_association = 'unincorporated_association',\n public_partnership = 'public_partnership',\n public_corporation = 'public_corporation',\n incorporated = 'incorporated',\n unincorporated = 'unincorporated',\n government_unit = 'government_unit',\n government_instrumentality = 'government_instrumentality',\n tax_exempt_government_instrumentality = 'tax_exempt_government_instrumentality'\n}\n\nexport enum BusinessType {\n individual = 'individual',\n for_profit = 'for_profit',\n non_profit = 'non_profit',\n government_entity = 'government_entity'\n}\n\nexport interface Address {\n id: string,\n platform_account_id: string,\n line1: string,\n line2: string,\n postal_code: string,\n city: string,\n state: string,\n country: string,\n created_at: string\n updated_at: string\n}\n\nexport interface Document {\n business_id: string,\n created_at: string,\n description: string | null,\n document_type: string,\n file_name: string,\n file_type: string,\n id: string,\n identity_id: string,\n metadata: any,\n platform_account_id: string,\n presigned_url: string | null,\n status: string,\n updated_at: string\n}\n\nexport interface Identity {\n address: Address,\n created_at: string,\n dob_day: string,\n dob_month: string,\n dob_year: string,\n documents: Document[],\n email: string,\n id: string,\n is_owner: boolean,\n metadata: any,\n name: string,\n phone: string,\n platform_account_id: string,\n ssn_last4: string,\n title: string,\n updated_at: string\n}\n\nexport interface ProductCategories {\n credit: boolean\n insurance: boolean\n lending: boolean\n payment: boolean\n}\n\nexport interface IBusiness {\n business_structure: string,\n business_type: string,\n bank_accounts: BankAccount[]\n created_at: string,\n documents: Document[],\n doing_business_as: string,\n email: string,\n id: string,\n industry: string,\n legal_address: Address,\n legal_name: string,\n metadata: any,\n owners: Identity[],\n phone: string,\n platform_account_id: string,\n representative: Identity | null,\n tax_id: string,\n updated_at: string,\n website_url: string,\n product_categories: ProductCategories\n}\n\nexport class Business implements IBusiness {\n public business_structure: string;\n public business_type: string;\n public bank_accounts: BankAccount[];\n public created_at: string;\n public documents: Document[];\n public doing_business_as: string;\n public email: string;\n public id: string;\n public industry: string;\n public legal_address: Address;\n public legal_name: string;\n public metadata: any;\n public owners: Identity[];\n public phone: string;\n public platform_account_id: string;\n public representative: Identity | null;\n public tax_id: string;\n public updated_at: string;\n public website_url: string;\n public product_categories: ProductCategories;\n\n constructor(business: IBusiness) {\n this.business_structure = business.business_structure;\n this.business_type = business.business_type;\n this.bank_accounts = business.bank_accounts;\n this.created_at = business.created_at;\n this.documents = business.documents;\n this.doing_business_as = business.doing_business_as;\n this.email = business.email;\n this.id = business.id;\n this.industry = business.industry;\n this.legal_address = business.legal_address;\n this.legal_name = business.legal_name;\n this.metadata = business.metadata;\n this.owners = business.owners;\n this.phone = business.phone;\n this.platform_account_id = business.platform_account_id;\n this.representative = business.representative;\n this.tax_id = business.tax_id;\n this.updated_at = business.updated_at;\n this.website_url = business.website_url;\n this.product_categories = business.product_categories;\n }\n};\n\nexport interface IProductReadiness {\n business_id: string,\n created_at: string,\n id: string,\n last_verified_at: string,\n missing_optional_fields: string[],\n missing_required_fields: string[],\n percentage_complete: number,\n percentage_ready: number,\n platform_account_id: string,\n product_category: string,\n product_name: string,\n required_ready: boolean,\n updated_at: string\n};\n"]}
1
+ {"version":3,"file":"Business.js","sourceRoot":"","sources":["../../../src/api/Business.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,iBAcX;AAdD,WAAY,iBAAiB;EAC3B,gEAA2C,CAAA;EAC3C,8CAAyB,CAAA;EACzB,4CAAuB,CAAA;E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C,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAC5B,IAAI,CAAC,mBAAmB,GAAG,QAAQ,CAAC,mBAAmB,CAAC;IACxD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC;IAC9C,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC9B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IACtC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;IACxC,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC,kBAAkB,CAAC;EACxD,CAAC;CACF","sourcesContent":["import { BankAccount } from './shared';\n\nexport enum BusinessStructure {\n sole_proprietorship = 'sole_proprietorship',\n single_llc = 'single_llc',\n multi_llc = 'multi_llc',\n private_partnership = 'private_partnership',\n private_corporation = 'private_corporation',\n unincorporated_association = 'unincorporated_association',\n public_partnership = 'public_partnership',\n public_corporation = 'public_corporation',\n incorporated = 'incorporated',\n unincorporated = 'unincorporated',\n government_unit = 'government_unit',\n government_instrumentality = 'government_instrumentality',\n tax_exempt_government_instrumentality = 'tax_exempt_government_instrumentality',\n}\n\nexport enum BusinessType {\n individual = 'individual',\n for_profit = 'for_profit',\n non_profit = 'non_profit',\n government_entity = 'government_entity',\n}\n\nexport interface Address {\n id: string;\n platform_account_id: string;\n line1: string;\n line2: string;\n postal_code: string;\n city: string;\n state: string;\n country: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface Document {\n business_id: string;\n created_at: string;\n description: string | null;\n document_type: string;\n file_name: string;\n file_type: string;\n id: string;\n identity_id: string;\n metadata: any;\n platform_account_id: string;\n presigned_url: string | null;\n status: string;\n updated_at: string;\n}\n\nexport interface Identity {\n address: Address;\n created_at: string;\n dob_day: string;\n dob_month: string;\n dob_year: string;\n documents: Document[];\n email: string;\n id: string;\n is_owner: boolean;\n metadata: any;\n name: string;\n phone: string;\n platform_account_id: string;\n ssn_last4: string;\n title: string;\n updated_at: string;\n}\n\nexport interface ProductCategories {\n credit: boolean;\n insurance: boolean;\n lending: boolean;\n payment: boolean;\n}\n\nexport interface AdditionalQuestions {\n business_revenue: string;\n business_payment_volume: string;\n business_dispute_volume: string;\n business_receivable_volume: string;\n}\n\nexport interface IBusiness {\n business_structure: BusinessStructure;\n business_type: BusinessType;\n bank_accounts: BankAccount[];\n created_at: string;\n documents: Document[];\n doing_business_as: string;\n email: string;\n id: string;\n industry: string;\n legal_address: Address;\n legal_name: string;\n metadata: any;\n owners: Identity[];\n phone: string;\n platform_account_id: string;\n representative: Identity | null;\n tax_id: string;\n updated_at: string;\n website_url: string;\n product_categories: ProductCategories;\n additional_questions: AdditionalQuestions;\n}\n\nexport class Business implements IBusiness {\n public business_structure: BusinessStructure;\n public business_type: BusinessType;\n public bank_accounts: BankAccount[];\n public created_at: string;\n public documents: Document[];\n public doing_business_as: string;\n public email: string;\n public id: string;\n public industry: string;\n public legal_address: Address;\n public legal_name: string;\n public metadata: any;\n public owners: Identity[];\n public phone: string;\n public platform_account_id: string;\n public representative: Identity | null;\n public tax_id: string;\n public updated_at: string;\n public website_url: string;\n public product_categories: ProductCategories;\n public additional_questions: AdditionalQuestions;\n\n constructor(business: IBusiness) {\n this.business_structure = business.business_structure;\n this.business_type = business.business_type;\n this.bank_accounts = business.bank_accounts;\n this.created_at = business.created_at;\n this.documents = business.documents;\n this.doing_business_as = business.doing_business_as;\n this.email = business.email;\n this.id = business.id;\n this.industry = business.industry;\n this.legal_address = business.legal_address;\n this.legal_name = business.legal_name;\n this.metadata = business.metadata;\n this.owners = business.owners;\n this.phone = business.phone;\n this.platform_account_id = business.platform_account_id;\n this.representative = business.representative;\n this.tax_id = business.tax_id;\n this.updated_at = business.updated_at;\n this.website_url = business.website_url;\n this.product_categories = business.product_categories;\n }\n}\n\nexport interface IProductReadiness {\n business_id: string;\n created_at: string;\n id: string;\n last_verified_at: string;\n missing_optional_fields: string[];\n missing_required_fields: string[];\n percentage_complete: number;\n percentage_ready: number;\n platform_account_id: string;\n product_category: string;\n product_name: string;\n required_ready: boolean;\n updated_at: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GrossVolume.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GrossVolume.js","sourceRoot":"","sources":["../../../src/api/GrossVolume.ts"],"names":[],"mappings":"","sourcesContent":["export interface GrossVolumeReportDate {\n date: string, value: number\n}\n\nexport interface GrossVolumeReport {\n total: number,\n dates: GrossVolumeReportDate[]\n}\n"]}
@@ -1,9 +1,9 @@
1
- export class Pagination {
2
- constructor(pagination) {
3
- this.has_previous = (pagination === null || pagination === void 0 ? void 0 : pagination.has_previous) || false;
4
- this.has_next = (pagination === null || pagination === void 0 ? void 0 : pagination.has_next) || false;
5
- this.start_cursor = (pagination === null || pagination === void 0 ? void 0 : pagination.start_cursor) || '';
6
- this.end_cursor = (pagination === null || pagination === void 0 ? void 0 : pagination.end_cursor) || '';
7
- }
8
- }
1
+ export const pagingDefaults = {
2
+ amount: 25,
3
+ start_cursor: '',
4
+ end_cursor: '',
5
+ has_previous: false,
6
+ has_next: false,
7
+ };
8
+ export const ExtendedPagingDefaults = Object.assign(Object.assign({}, pagingDefaults), { handleClickNext: () => { }, handleClickPrevious: () => { } });
9
9
  //# sourceMappingURL=Pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../src/api/Pagination.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,UAAU;EAMrB,YAAY,UAAwB;IAClC,IAAI,CAAC,YAAY,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,YAAY,KAAI,KAAK,CAAC;IACtD,IAAI,CAAC,QAAQ,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,KAAI,KAAK,CAAC;IAC9C,IAAI,CAAC,YAAY,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,YAAY,KAAI,EAAE,CAAC;IACnD,IAAI,CAAC,UAAU,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,KAAI,EAAE,CAAC;EACjD,CAAC;CACF","sourcesContent":["export interface IPagination {\n has_previous: boolean;\n has_next: boolean;\n start_cursor: string;\n end_cursor: string;\n}\n\nexport class Pagination implements IPagination {\n public has_previous: boolean;\n public has_next: boolean;\n public start_cursor: string;\n public end_cursor: string;\n\n constructor(pagination?: IPagination) {\n this.has_previous = pagination?.has_previous || false;\n this.has_next = pagination?.has_next || false;\n this.start_cursor = pagination?.start_cursor || '';\n this.end_cursor = pagination?.end_cursor || '';\n }\n}\n"]}
1
+ {"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../src/api/Pagination.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,cAAc,GAAG;EAC5B,MAAM,EAAE,EAAE;EACV,YAAY,EAAE,EAAE;EAChB,UAAU,EAAE,EAAE;EACd,YAAY,EAAE,KAAK;EACnB,QAAQ,EAAE,KAAK;CAChB,CAAA;AAOD,MAAM,CAAC,MAAM,sBAAsB,mCAC9B,cAAc,KACjB,eAAe,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,mBAAmB,EAAE,GAAG,EAAE,GAAG,CAAC,GAC/B,CAAA","sourcesContent":["export interface PagingInfo {\n amount: number,\n start_cursor: string,\n end_cursor: string,\n has_previous: boolean,\n has_next: boolean,\n}\n\nexport const pagingDefaults = {\n amount: 25,\n start_cursor: '',\n end_cursor: '',\n has_previous: false,\n has_next: false,\n}\n\nexport interface ExtendedPagingInfo extends PagingInfo {\n handleClickNext: (after_cursor: string) => void;\n handleClickPrevious: (before_cursor: string) => void;\n}\n\nexport const ExtendedPagingDefaults: ExtendedPagingInfo = {\n ...pagingDefaults,\n handleClickNext: () => { },\n handleClickPrevious: () => { }\n}\n"]}
@@ -65,4 +65,24 @@ export class Payment {
65
65
  }
66
66
  }
67
67
  }
68
+ export class PaymentBalanceTransaction {
69
+ constructor(balanceTransaction) {
70
+ this.id = balanceTransaction.id;
71
+ this.amount = balanceTransaction.amount;
72
+ this.balance = balanceTransaction.balance;
73
+ this.currency = balanceTransaction.currency;
74
+ this.financial_transaction_id = balanceTransaction.financial_transaction_id;
75
+ this.payment_id = balanceTransaction.payment_id;
76
+ this.payment_balance_txn_type = balanceTransaction.payment_balance_txn_type;
77
+ this.source_id = balanceTransaction.source_id;
78
+ this.source_type = balanceTransaction.source_type;
79
+ this.created_at = balanceTransaction.created_at;
80
+ this.updated_at = balanceTransaction.updated_at;
81
+ }
82
+ get displayTransactionId() {
83
+ return this.payment_balance_txn_type === 'payment_fee'
84
+ ? '--'
85
+ : this.source_id;
86
+ }
87
+ }
68
88
  //# sourceMappingURL=Payment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../src/api/Payment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;EACzB,0CAAuB,CAAA;EACvB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;EAC5B,mCAAa,CAAA;EACb,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,CAAN,IAAY,eAQX;AARD,WAAY,eAAe;EACzB,sCAAmB,CAAA;EACnB,4CAAyB,CAAA;EACzB,0CAAuB,CAAA;EACvB,oCAAiB,CAAA;EACjB,wCAAqB,CAAA;EACrB,oDAAiC,CAAA;EACjC,4DAAyC,CAAA;AAC3C,CAAC,EARW,eAAe,KAAf,eAAe,QAQ1B;AAED,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;EACjC,6EAA6E;EAC7E,wCAAa,CAAA;EACb,wCAAa,CAAA;AACf,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AAoED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CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC7B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACrC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;EACvC,CAAC;EAED,IAAI,cAAc;IAChB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,KAAK,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC5F,6EAA6E;IAC7E,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,OAAO,IAAI,CAAC;KACb;SAAM,IAAI,IAAI,EAAE;MACf,OAAO,uBAAuB,CAAC,IAAI,CAAC;KACrC;SAAM;MACL,OAAO,uBAAuB,CAAC,IAAI,CAAC;KACrC;EACH,CAAC;CACF","sourcesContent":["export enum CaptureStrategy {\n automatic = 'automatic',\n manual = 'manual',\n}\n\nexport enum PaymentMethodTypes {\n card = 'card',\n bankAccount = 'bankAccount',\n}\n\nexport enum PaymentStatuses {\n pending = 'pending',\n authorized = 'authorized',\n succeeded = 'succeeded',\n failed = 'failed',\n disputed = 'disputed',\n fully_refunded = 'fully_refunded',\n partially_refunded = 'partially_refunded',\n}\n\nexport enum PaymentDisputedStatuses {\n // if a dispute is 'won', we don't show a dispute status, just general status\n lost = 'lost',\n open = 'open',\n}\n\nexport interface IPaymentMethod {\n card?: ICard;\n bank_account?: IBankAccount;\n}\n\nexport type CardBrand = 'american_express' | 'diners_club' | 'discover' | 'jcb' | 'mastercard' | 'china_unionpay' | 'visa' | 'unknown';\n\nexport interface IBankAccount {\n id: string;\n acct_last_four: string;\n name: string;\n brand: string;\n token: string\n created_at: string;\n updated_at: string;\n}\n\nexport interface ICard {\n id: string;\n acct_last_four: string;\n name: string;\n brand: CardBrand;\n token: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface IDispute {\n amount_cents: number;\n created_at: string;\n currency: string;\n gateway_ref_id: string;\n id: string;\n payment_id: string;\n reason: null;\n status: string;\n updated_at: string;\n}\n\nexport interface IPayment {\n id: string;\n account_id: string;\n amount: number;\n amount_disputed: number;\n amount_refundable: number;\n amount_refunded: number;\n balance: number;\n captured: boolean;\n capture_strategy: CaptureStrategy;\n currency: 'usd';\n description: string;\n disputed: boolean;\n disputes: IDispute[];\n error_code: string | null;\n error_description: string | null;\n fee_amount: number;\n is_test: boolean;\n metadata: Object | null;\n payment_method: IPaymentMethod;\n payment_intent_id: string | null;\n refunded: boolean;\n status: PaymentStatuses;\n created_at: string;\n updated_at: string;\n}\n\nexport class Payment implements IPayment {\n public id: string;\n public account_id: string;\n public amount: number;\n public amount_disputed: number;\n public amount_refundable: number;\n public amount_refunded: number;\n public balance: number;\n public captured: boolean;\n public capture_strategy: CaptureStrategy;\n public currency: 'usd';\n public description: string;\n public disputed: boolean;\n public disputes: IDispute[];\n public error_code: string | null;\n public error_description: string | null;\n public fee_amount: number;\n public is_test: boolean;\n public metadata: Object | null;\n public payment_method: IPaymentMethod;\n public payment_intent_id: string | null;\n public refunded: boolean;\n public status: PaymentStatuses;\n public created_at: string;\n public updated_at: string;\n public statement_descriptor?: string;\n\n constructor(payment: IPayment) {\n this.id = payment.id;\n this.account_id = payment.account_id;\n this.amount = payment.amount;\n this.amount_disputed = payment.amount_disputed;\n this.amount_refundable = payment.amount_refundable;\n this.amount_refunded = payment.amount_refunded;\n this.balance = payment.balance;\n this.captured = payment.captured;\n this.capture_strategy = payment.capture_strategy;\n this.currency = payment.currency;\n this.description = payment.description;\n this.disputed = payment.disputed;\n this.disputes = payment.disputes;\n this.error_code = payment.error_code;\n this.error_description = payment.error_description;\n this.fee_amount = payment.fee_amount;\n this.is_test = payment.is_test;\n this.metadata = payment.metadata;\n this.payment_method = payment.payment_method;\n this.payment_intent_id = payment.payment_intent_id;\n this.refunded = payment.refunded;\n this.status = payment.status;\n this.created_at = payment.created_at;\n this.updated_at = payment.updated_at;\n }\n\n get disputedStatus(): PaymentDisputedStatuses | null {\n const lost = this.disputes.some(dispute => dispute.status === PaymentDisputedStatuses.lost);\n // if a dispute is 'won', we don't show a dispute status, just general status\n if (!this.disputed) {\n return null;\n } else if (lost) {\n return PaymentDisputedStatuses.lost;\n } else {\n return PaymentDisputedStatuses.open;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../src/api/Payment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;EACzB,0CAAuB,CAAA;EACvB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;EAC5B,mCAAa,CAAA;EACb,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,CAAN,IAAY,eAQX;AARD,WAAY,eAAe;EACzB,sCAAmB,CAAA;EACnB,4CAAyB,CAAA;EACzB,0CAAuB,CAAA;EACvB,oCAAiB,CAAA;EACjB,wCAAqB,CAAA;EACrB,oDAAiC,CAAA;EACjC,4DAAyC,CAAA;AAC3C,CAAC,EARW,eAAe,KAAf,eAAe,QAQ1B;AAED,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;EACjC,6EAA6E;EAC7E,wCAAa,CAAA;EACb,wCAAa,CAAA;AACf,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AA4ED,MAAM,OAAO,OAAO;EA2BlB,YAAY,OAAiB;IAC3B,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACrB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACrC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC7B,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAC/C,IAAI,CAAC,iBAAiB,GAAG,O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AuB,CAAC,IAAI,CAC3D,CAAC;IACF,6EAA6E;IAC7E,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,OAAO,IAAI,CAAC;KACb;SAAM,IAAI,IAAI,EAAE;MACf,OAAO,uBAAuB,CAAC,IAAI,CAAC;KACrC;SAAM;MACL,OAAO,uBAAuB,CAAC,IAAI,CAAC;KACrC;EACH,CAAC;CACF;AAgBD,MAAM,OAAO,yBAAyB;EAapC,YAAY,kBAA8C;IACxD,IAAI,CAAC,EAAE,GAAG,kBAAkB,CAAC,EAAE,CAAC;IAChC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC;IACxC,IAAI,CAAC,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC;IAC1C,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC;IAC5C,IAAI,CAAC,wBAAwB,GAAG,kBAAkB,CAAC,wBAAwB,CAAC;IAC5E,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC;IAChD,IAAI,CAAC,wBAAwB,GAAG,kBAAkB,CAAC,wBAAwB,CAAC;IAC5E,IAAI,CAAC,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC;IAC9C,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAAC,WAAW,CAAC;IAClD,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC;IAChD,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC;EAClD,CAAC;EAED,IAAI,oBAAoB;IACtB,OAAO,IAAI,CAAC,wBAAwB,KAAK,aAAa;MACpD,CAAC,CAAC,IAAI;MACN,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;EACrB,CAAC;CACF","sourcesContent":["export enum CaptureStrategy {\n automatic = 'automatic',\n manual = 'manual',\n}\n\nexport enum PaymentMethodTypes {\n card = 'card',\n bankAccount = 'bankAccount',\n}\n\nexport enum PaymentStatuses {\n pending = 'pending',\n authorized = 'authorized',\n succeeded = 'succeeded',\n failed = 'failed',\n disputed = 'disputed',\n fully_refunded = 'fully_refunded',\n partially_refunded = 'partially_refunded',\n}\n\nexport enum PaymentDisputedStatuses {\n // if a dispute is 'won', we don't show a dispute status, just general status\n lost = 'lost',\n open = 'open',\n}\n\nexport interface IPaymentMethod {\n card?: ICard;\n bank_account?: IBankAccount;\n}\n\nexport type CardBrand =\n | 'american_express'\n | 'diners_club'\n | 'discover'\n | 'jcb'\n | 'mastercard'\n | 'china_unionpay'\n | 'visa'\n | 'unknown';\n\nexport interface IBankAccount {\n id: string;\n acct_last_four: string;\n name: string;\n brand: string;\n token: string\n created_at: string;\n updated_at: string;\n}\n\nexport interface ICard {\n id: string;\n acct_last_four: string;\n name: string;\n brand: CardBrand;\n token: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface IDispute {\n amount_cents: number;\n created_at: string;\n currency: string;\n gateway_ref_id: string;\n id: string;\n payment_id: string;\n reason: null;\n status: string;\n updated_at: string;\n}\n\nexport interface IPayment {\n id: string;\n account_id: string;\n amount: number;\n amount_disputed: number;\n amount_refundable: number;\n amount_refunded: number;\n balance: number;\n captured: boolean;\n capture_strategy: CaptureStrategy;\n currency: 'usd';\n description: string;\n disputed: boolean;\n disputes: IDispute[];\n error_code: string | null;\n error_description: string | null;\n fee_amount: number;\n is_test: boolean;\n metadata: Object | null;\n payment_method: IPaymentMethod;\n payment_intent_id: string | null;\n refunded: boolean;\n status: PaymentStatuses;\n created_at: string;\n updated_at: string;\n}\n\nexport class Payment implements IPayment {\n public id: string;\n public account_id: string;\n public amount: number;\n public amount_disputed: number;\n public amount_refundable: number;\n public amount_refunded: number;\n public balance: number;\n public captured: boolean;\n public capture_strategy: CaptureStrategy;\n public currency: 'usd';\n public description: string;\n public disputed: boolean;\n public disputes: IDispute[];\n public error_code: string | null;\n public error_description: string | null;\n public fee_amount: number;\n public is_test: boolean;\n public metadata: Object | null;\n public payment_method: IPaymentMethod;\n public payment_intent_id: string | null;\n public refunded: boolean;\n public status: PaymentStatuses;\n public created_at: string;\n public updated_at: string;\n public statement_descriptor?: string;\n\n constructor(payment: IPayment) {\n this.id = payment.id;\n this.account_id = payment.account_id;\n this.amount = payment.amount;\n this.amount_disputed = payment.amount_disputed;\n this.amount_refundable = payment.amount_refundable;\n this.amount_refunded = payment.amount_refunded;\n this.balance = payment.balance;\n this.captured = payment.captured;\n this.capture_strategy = payment.capture_strategy;\n this.currency = payment.currency;\n this.description = payment.description;\n this.disputed = payment.disputed;\n this.disputes = payment.disputes;\n this.error_code = payment.error_code;\n this.error_description = payment.error_description;\n this.fee_amount = payment.fee_amount;\n this.is_test = payment.is_test;\n this.metadata = payment.metadata;\n this.payment_method = payment.payment_method;\n this.payment_intent_id = payment.payment_intent_id;\n this.refunded = payment.refunded;\n this.status = payment.status;\n this.created_at = payment.created_at;\n this.updated_at = payment.updated_at;\n }\n\n get disputedStatus(): PaymentDisputedStatuses | null {\n const lost = this.disputes.some(\n dispute => dispute.status === PaymentDisputedStatuses.lost,\n );\n // if a dispute is 'won', we don't show a dispute status, just general status\n if (!this.disputed) {\n return null;\n } else if (lost) {\n return PaymentDisputedStatuses.lost;\n } else {\n return PaymentDisputedStatuses.open;\n }\n }\n}\n\nexport interface IPaymentBalanceTransaction {\n id: string;\n amount: number;\n balance: number;\n currency: 'usd';\n financial_transaction_id: string;\n payment_id: string;\n payment_balance_txn_type: string;\n source_id: string;\n source_type: string;\n created_at: string;\n updated_at: string;\n}\n\nexport class PaymentBalanceTransaction implements IPaymentBalanceTransaction {\n public id: string;\n public amount: number;\n public balance: number;\n public currency: 'usd';\n public financial_transaction_id: string;\n public payment_id: string;\n public payment_balance_txn_type: string;\n public source_id: string;\n public source_type: string;\n public created_at: string;\n public updated_at: string;\n\n constructor(balanceTransaction: IPaymentBalanceTransaction) {\n this.id = balanceTransaction.id;\n this.amount = balanceTransaction.amount;\n this.balance = balanceTransaction.balance;\n this.currency = balanceTransaction.currency;\n this.financial_transaction_id = balanceTransaction.financial_transaction_id;\n this.payment_id = balanceTransaction.payment_id;\n this.payment_balance_txn_type = balanceTransaction.payment_balance_txn_type;\n this.source_id = balanceTransaction.source_id;\n this.source_type = balanceTransaction.source_type;\n this.created_at = balanceTransaction.created_at;\n this.updated_at = balanceTransaction.updated_at;\n }\n\n get displayTransactionId(): string {\n return this.payment_balance_txn_type === 'payment_fee'\n ? '--'\n : this.source_id;\n }\n}\n"]}
@@ -0,0 +1,104 @@
1
+ import { formatCurrency, formatDate, formatPercentage, formatTime } from "../utils/utils";
2
+ export var TagTypes;
3
+ (function (TagTypes) {
4
+ TagTypes["neutral"] = "neutral";
5
+ TagTypes["info"] = "info";
6
+ TagTypes["success"] = "success";
7
+ TagTypes["warning"] = "warning";
8
+ TagTypes["error"] = "error";
9
+ })(TagTypes || (TagTypes = {}));
10
+ export var SubAccountStatusType;
11
+ (function (SubAccountStatusType) {
12
+ SubAccountStatusType["created"] = "created";
13
+ SubAccountStatusType["submitted"] = "submitted";
14
+ SubAccountStatusType["information_needed"] = "information_needed";
15
+ SubAccountStatusType["enabled"] = "enabled";
16
+ SubAccountStatusType["disabled"] = "disabled";
17
+ SubAccountStatusType["rejected"] = "rejected";
18
+ SubAccountStatusType["archived"] = "archived";
19
+ })(SubAccountStatusType || (SubAccountStatusType = {}));
20
+ export var AccountType;
21
+ (function (AccountType) {
22
+ AccountType["live"] = "live";
23
+ AccountType["test"] = "test";
24
+ })(AccountType || (AccountType = {}));
25
+ export var BusinessType;
26
+ (function (BusinessType) {
27
+ BusinessType["forProfit"] = "for_profit";
28
+ BusinessType["nonProfit"] = "non_profit";
29
+ BusinessType["government"] = "government_entity";
30
+ BusinessType["individual"] = "individual";
31
+ })(BusinessType || (BusinessType = {}));
32
+ export var ForProfitStructure;
33
+ (function (ForProfitStructure) {
34
+ ForProfitStructure["none"] = "";
35
+ ForProfitStructure["soleProprietorship"] = "sole_proprietorship";
36
+ ForProfitStructure["singleMember"] = "single_llc";
37
+ ForProfitStructure["multiMember"] = "multi_llc";
38
+ ForProfitStructure["privatePartnership"] = "private_partnership";
39
+ ForProfitStructure["privateCorp"] = "private_corporation";
40
+ ForProfitStructure["unincorporatedAssociation"] = "unincorporated_association";
41
+ ForProfitStructure["publicPartnership"] = "public_partnership";
42
+ ForProfitStructure["publicCorp"] = "public_corporation";
43
+ })(ForProfitStructure || (ForProfitStructure = {}));
44
+ export var NonProfitStructure;
45
+ (function (NonProfitStructure) {
46
+ NonProfitStructure["incorporated"] = "incorporated";
47
+ NonProfitStructure["unincorporated"] = "unincorporated";
48
+ })(NonProfitStructure || (NonProfitStructure = {}));
49
+ export var GovernmentEntityStructure;
50
+ (function (GovernmentEntityStructure) {
51
+ GovernmentEntityStructure["unit"] = "government_unit";
52
+ GovernmentEntityStructure["instrumentality"] = "government_instrumentality";
53
+ GovernmentEntityStructure["taxExempt"] = "tax_exempt_government_instrumentality";
54
+ })(GovernmentEntityStructure || (GovernmentEntityStructure = {}));
55
+ ;
56
+ export class SubAccount {
57
+ constructor(subAccount) {
58
+ this.findActiveRate = (subAccount, type) => {
59
+ return subAccount.application_fee_rates.find(rate => rate.rate_type === type);
60
+ };
61
+ this.getBasisPercentage = (rate) => {
62
+ return formatPercentage(rate === null || rate === void 0 ? void 0 : rate.basis_point_rate);
63
+ };
64
+ this.getTransactionFee = (rate) => {
65
+ return formatCurrency(rate === null || rate === void 0 ? void 0 : rate.transaction_fee);
66
+ };
67
+ this.getFormattedRate = (rate) => {
68
+ return rate ?
69
+ `${this.getBasisPercentage(rate)} + ${this.getTransactionFee(rate)}`
70
+ : 'Not set';
71
+ };
72
+ this.account_type = subAccount.account_type;
73
+ this.application_fee_rates = subAccount.application_fee_rates || [];
74
+ this.created_at = subAccount.created_at;
75
+ this.dateString = formatDate(subAccount.created_at);
76
+ this.timeString = formatTime(subAccount.created_at);
77
+ this.currency = subAccount.currency;
78
+ this.id = subAccount.id;
79
+ this.name = subAccount.name;
80
+ this.payout_ready = subAccount.payout_ready;
81
+ this.platform_account_id = subAccount.platform_account_id;
82
+ this.processing_ready = subAccount.processing_ready;
83
+ this.status = subAccount.status;
84
+ this.updated_at = subAccount.updated_at;
85
+ this.related_accounts = subAccount.related_accounts || {};
86
+ const activeCardRate = this.findActiveRate(subAccount, 'cc');
87
+ const activeAchRate = this.findActiveRate(subAccount, 'ach');
88
+ this.cardRate = this.getFormattedRate(activeCardRate);
89
+ this.achRate = this.getFormattedRate(activeAchRate);
90
+ }
91
+ get statusTagType() {
92
+ const typeMap = {
93
+ [SubAccountStatusType.enabled]: TagTypes.success,
94
+ [SubAccountStatusType.disabled]: TagTypes.error,
95
+ [SubAccountStatusType.rejected]: TagTypes.error,
96
+ [SubAccountStatusType.information_needed]: TagTypes.warning,
97
+ [SubAccountStatusType.submitted]: TagTypes.info,
98
+ [SubAccountStatusType.created]: TagTypes.neutral,
99
+ [SubAccountStatusType.archived]: TagTypes.neutral,
100
+ };
101
+ return typeMap[this.status];
102
+ }
103
+ }
104
+ //# sourceMappingURL=SubAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubAccount.js","sourceRoot":"","sources":["../../../src/api/SubAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG1F,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;EAClB,+BAAmB,CAAA;EACnB,yBAAa,CAAA;EACb,+BAAmB,CAAA;EACnB,+BAAmB,CAAA;EACnB,2BAAe,CAAA;AACjB,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB;AAED,MAAM,CAAN,IAAY,oBAQX;AARD,WAAY,oBAAoB;EAC9B,2CAAmB,CAAA;EACnB,+CAAuB,CAAA;EACvB,iEAAyC,CAAA;EACzC,2CAAmB,CAAA;EACnB,6CAAqB,CAAA;EACrB,6CAAqB,CAAA;EACrB,6CAAqB,CAAA;AACvB,CAAC,EARW,oBAAoB,KAApB,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xC,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,IAAI,EAAE,CAAC;IAC1D,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC7D,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC7D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IACtD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;EACtD,CAAC;EAoBD,IAAI,aAAa;IACf,MAAM,OAAO,GAAG;MACd,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO;MAChD,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,KAAK;MAC/C,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,KAAK;MAC/C,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,QAAQ,CAAC,OAAO;MAC3D,CAAC,oBAAoB,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI;MAC/C,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO;MAChD,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO;KAClD,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;EAC9B,CAAC;CACF","sourcesContent":["import { formatCurrency, formatDate, formatPercentage, formatTime } from '../utils/utils';\nimport { BusinessStructure } from './Business';\n\nexport enum TagTypes {\n neutral = 'neutral',\n info = 'info',\n success = 'success',\n warning = 'warning',\n error = 'error'\n}\n\nexport enum SubAccountStatusType {\n created = 'created',\n submitted = 'submitted',\n information_needed = 'information_needed',\n enabled = 'enabled',\n disabled = 'disabled',\n rejected = 'rejected',\n archived = 'archived'\n}\n\nexport enum AccountType {\n live = 'live',\n test = 'test'\n}\n\nexport enum BusinessType {\n forProfit = 'for_profit',\n nonProfit = 'non_profit',\n government = 'government_entity',\n individual = 'individual'\n}\n\nexport enum ForProfitStructure {\n none = '',\n soleProprietorship = 'sole_proprietorship',\n singleMember = 'single_llc',\n multiMember = 'multi_llc',\n privatePartnership = 'private_partnership',\n privateCorp = 'private_corporation',\n unincorporatedAssociation = 'unincorporated_association',\n publicPartnership = 'public_partnership',\n publicCorp = 'public_corporation'\n}\n\nexport enum NonProfitStructure {\n incorporated = 'incorporated',\n unincorporated = 'unincorporated'\n}\n\nexport enum GovernmentEntityStructure {\n unit = 'government_unit',\n instrumentality = 'government_instrumentality',\n taxExempt = 'tax_exempt_government_instrumentality'\n}\n\nexport interface ApplicationFeeRate {\n basis_point_rate: number,\n created_at: string,\n currency: string,\n id: string,\n rate_type: string,\n transaction_fee: number,\n updated_at: string\n}\n\nexport interface Legal {\n name?: string,\n address_line1?: string,\n address_line2?: string,\n address_city?: string,\n address_state?: string,\n address_postal_code?: string,\n address_country?: string\n}\n\nexport interface ISubAccount {\n account_type: AccountType,\n application_fee_rates: ApplicationFeeRate[] | [],\n created_at: string,\n currency: string,\n id: string,\n name: string,\n payout_ready: boolean,\n platform_account_id: string,\n processing_ready: boolean,\n status: SubAccountStatusType,\n updated_at: string\n related_accounts?: object,\n readonly statusTagType?: TagTypes\n};\n\nexport class SubAccount implements ISubAccount {\n public account_type: AccountType;\n public application_fee_rates: ApplicationFeeRate[] | [];\n public created_at: string;\n public dateString: string;\n public timeString: string;\n public currency: string;\n public id: string;\n public name: string;\n public payout_ready: boolean;\n public platform_account_id: string;\n public processing_ready: boolean;\n public status: SubAccountStatusType;\n public updated_at: string;\n public related_accounts: object;\n public cardRate: string | undefined;\n public achRate: string | undefined;\n\n constructor(subAccount: ISubAccount) {\n this.account_type = subAccount.account_type;\n this.application_fee_rates = subAccount.application_fee_rates || [];\n this.created_at = subAccount.created_at;\n this.dateString = formatDate(subAccount.created_at);\n this.timeString = formatTime(subAccount.created_at);\n this.currency = subAccount.currency;\n this.id = subAccount.id;\n this.name = subAccount.name;\n this.payout_ready = subAccount.payout_ready;\n this.platform_account_id = subAccount.platform_account_id;\n this.processing_ready = subAccount.processing_ready;\n this.status = subAccount.status;\n this.updated_at = subAccount.updated_at;\n this.related_accounts = subAccount.related_accounts || {};\n const activeCardRate = this.findActiveRate(subAccount, 'cc');\n const activeAchRate = this.findActiveRate(subAccount, 'ach');\n this.cardRate = this.getFormattedRate(activeCardRate);\n this.achRate = this.getFormattedRate(activeAchRate);\n }\n\n findActiveRate = (subAccount: ISubAccount, type: string): ApplicationFeeRate | undefined => {\n return subAccount.application_fee_rates.find(rate => rate.rate_type === type);\n };\n\n getBasisPercentage = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return formatPercentage(rate?.basis_point_rate);\n };\n\n getTransactionFee = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return formatCurrency(rate?.transaction_fee);\n };\n\n getFormattedRate = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return rate ?\n `${this.getBasisPercentage(rate)} + ${this.getTransactionFee(rate)}`\n : 'Not set';\n };\n\n get statusTagType(): TagTypes {\n const typeMap = {\n [SubAccountStatusType.enabled]: TagTypes.success,\n [SubAccountStatusType.disabled]: TagTypes.error,\n [SubAccountStatusType.rejected]: TagTypes.error,\n [SubAccountStatusType.information_needed]: TagTypes.warning,\n [SubAccountStatusType.submitted]: TagTypes.info,\n [SubAccountStatusType.created]: TagTypes.neutral,\n [SubAccountStatusType.archived]: TagTypes.neutral,\n };\n return typeMap[this.status];\n }\n}\n\nexport interface SubAccountBusinessDetails {\n url?: string,\n type?: BusinessType,\n structure?: BusinessStructure,\n industry?: string,\n tax_id?: string,\n phone?: string,\n email?: string,\n date_of_incorporation?: string,\n approximate_annual_volume?: string,\n legal?: Legal,\n doing_business_as?: {name: string}\n}\n\nexport interface SubAccountIdentity {\n name?: string,\n title?: string,\n email?: string,\n identification_number?: string,\n dob_month?: string,\n dob_day?: string,\n dob_year?: string,\n address_line1?: string,\n address_line2?: string,\n address_city?: string,\n address_state?: string,\n address_postal_code?: string,\n address_country?: string,\n phone?: string,\n is_owner?: boolean,\n ssn_last4?: string\n}\n\nexport interface SubaccountBankAccount {\n bank_name?: string,\n account_nickname?: string,\n routing_number?: string,\n account_number?: string,\n account_type?: string,\n account_owner_name?: string\n}\n\nexport interface Terms {\n accepted?: boolean,\n ip?: string,\n user_agent?: string\n}\n\nexport interface IOnboardingPayload {\n onboarding_version: string,\n bank_account?: SubaccountBankAccount,\n business_details?: SubAccountBusinessDetails,\n representative?: SubAccountIdentity,\n terms_and_conditions?: Terms\n owners?: SubAccountIdentity[]\n}\n\nexport interface IOnboardingData {\n account_type?: AccountType,\n payload?: IOnboardingPayload,\n platform_account_id?: string,\n seller_account_id?: string,\n sub_account_id?: string\n}\n"]}
@@ -0,0 +1,118 @@
1
+ import { BusinessStructure } from "../Business";
2
+ import { AccountType, BusinessType } from "../SubAccount";
3
+ const MockOnboardingPayload = {
4
+ business_details: {
5
+ url: "https://justifi.ai",
6
+ phone: '111-222-3333',
7
+ doing_business_as: {
8
+ name: 'Very Good Business'
9
+ },
10
+ email: 'ceo@business.com',
11
+ type: BusinessType.individual,
12
+ structure: BusinessStructure.private_corporation,
13
+ industry: "Landscaping Services",
14
+ legal: {
15
+ name: 'Legal Business Name',
16
+ address_city: "Minneapolis",
17
+ address_line1: "123 Example St",
18
+ address_state: "MN",
19
+ address_country: "USA",
20
+ address_postal_code: "55555"
21
+ }
22
+ },
23
+ representative: {
24
+ name: "Individual Personname",
25
+ title: 'Head of Operations',
26
+ email: "just.an.individual@justifi.ai",
27
+ phone: "6124011111",
28
+ dob_day: "01",
29
+ dob_year: "1980",
30
+ is_owner: false,
31
+ dob_month: "01",
32
+ ssn_last4: "6789",
33
+ address_city: "Minneapolis",
34
+ address_line1: "123 Example St",
35
+ address_state: "MN",
36
+ address_country: "USA",
37
+ address_postal_code: "55555"
38
+ },
39
+ owners: [
40
+ {
41
+ name: "Owner 1",
42
+ title: "CEO",
43
+ email: "owner@company.com",
44
+ identification_number: '555-555-5555',
45
+ dob_day: "01",
46
+ dob_year: "1980",
47
+ dob_month: "01",
48
+ address_city: "Minneapolis",
49
+ address_line1: "123 Example St",
50
+ address_state: "MN",
51
+ address_country: "USA",
52
+ address_postal_code: "55555"
53
+ },
54
+ {
55
+ name: "Owner 2",
56
+ title: "CFO",
57
+ email: "owner@company.com",
58
+ identification_number: '555-555-5555',
59
+ dob_day: "01",
60
+ dob_year: "1980",
61
+ dob_month: "01",
62
+ address_city: "Minneapolis",
63
+ address_line1: "123 Example St",
64
+ address_state: "MN",
65
+ address_country: "USA",
66
+ address_postal_code: "55555"
67
+ },
68
+ {
69
+ name: "Owner 3",
70
+ title: "Owner",
71
+ email: "owner@company.com",
72
+ identification_number: '555-555-5555',
73
+ dob_day: "01",
74
+ dob_year: "1980",
75
+ dob_month: "01",
76
+ address_city: "Minneapolis",
77
+ address_line1: "123 Example St",
78
+ address_state: "MN",
79
+ address_country: "USA",
80
+ address_postal_code: "55555"
81
+ },
82
+ {
83
+ name: "Owner 4",
84
+ title: "Some guy",
85
+ email: "owner@company.com",
86
+ identification_number: '555-555-5555',
87
+ dob_day: "01",
88
+ dob_year: "1980",
89
+ dob_month: "01",
90
+ address_city: "Minneapolis",
91
+ address_line1: "123 Example St",
92
+ address_state: "MN",
93
+ address_country: "USA",
94
+ address_postal_code: "55555"
95
+ },
96
+ ],
97
+ onboarding_version: "v1.0",
98
+ bank_account: {
99
+ bank_name: "Wells Fargo",
100
+ account_type: "checking",
101
+ account_number: "*****1112",
102
+ routing_number: "111111111",
103
+ account_nickname: "My payout account"
104
+ },
105
+ terms_and_conditions: {
106
+ ip: "127.0.0.1",
107
+ accepted: true,
108
+ user_agent: "Safari"
109
+ }
110
+ };
111
+ export const MockOnboardingData = {
112
+ account_type: AccountType.test,
113
+ payload: MockOnboardingPayload,
114
+ platform_account_id: 'abc123',
115
+ seller_account_id: 'def456',
116
+ sub_account_id: 'ghi789'
117
+ };
118
+ //# sourceMappingURL=MockOnboardingData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MockOnboardingData.js","sourceRoot":"","sources":["../../../../src/api/mockData/MockOnboardingData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAsB,MAAM,eAAe,CAAA;AAE7E,MAAM,qBAAqB,GAAuB;EAChD,gBAAgB,EAAE;IAChB,GAAG,EAAE,oBAAoB;IACzB,KAAK,EAAE,cAAc;IACrB,iBAAiB,EAAE;MACjB,IAAI,EAAE,oBAAoB;KAC3B;IACD,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,YAAY,CAAC,UAAU;IAC7B,SAAS,EAAE,iBAAiB,CAAC,mBAAmB;IAChD,QAAQ,EAAE,sBAAsB;IAChC,KAAK,EAAE;MACL,IAAI,EAAE,qBAAqB;MAC3B,YAAY,EAAE,aAAa;MAC3B,aAAa,EAAE,gBAAgB;MAC/B,aAAa,EAAE,IAAI;MACnB,eAAe,EAAE,KAAK;MACtB,mBAAmB,EAAE,OAAO;KAC7B;GACF;EACD,cAAc,EAAE;IACd,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EAAE,oBAAoB;IAC3B,KAAK,EAAE,+BAA+B;IACtC,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,aAAa;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,OAAO;GAC7B;EACD,MAAM,EAAE;IACN;MACE,IAAI,EAAE,SAAS;MACf,KAAK,EAAE,KAAK;MACZ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E;IACZ,SAAS,EAAE,aAAa;IACxB,YAAY,EAAE,UAAU;IACxB,cAAc,EAAE,WAAW;IAC3B,cAAc,EAAE,WAAW;IAC3B,gBAAgB,EAAE,mBAAmB;GACtC;EACD,oBAAoB,EAAE;IACpB,EAAE,EAAE,WAAW;IACf,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,QAAQ;GACrB;CACF,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG;EAChC,YAAY,EAAE,WAAW,CAAC,IAAI;EAC9B,OAAO,EAAE,qBAAqB;EAC9B,mBAAmB,EAAE,QAAQ;EAC7B,iBAAiB,EAAE,QAAQ;EAC3B,cAAc,EAAE,QAAQ;CACzB,CAAC","sourcesContent":["import { BusinessStructure } from \"../Business\";\nimport { AccountType, BusinessType, IOnboardingPayload } from \"../SubAccount\"\n\nconst MockOnboardingPayload: IOnboardingPayload = {\n business_details: {\n url: \"https://justifi.ai\",\n phone: '111-222-3333',\n doing_business_as: {\n name: 'Very Good Business'\n },\n email: 'ceo@business.com',\n type: BusinessType.individual,\n structure: BusinessStructure.private_corporation,\n industry: \"Landscaping Services\",\n legal: {\n name: 'Legal Business Name',\n address_city: \"Minneapolis\",\n address_line1: \"123 Example St\",\n address_state: \"MN\",\n address_country: \"USA\",\n address_postal_code: \"55555\"\n }\n },\n representative: {\n name: \"Individual Personname\",\n title: 'Head of Operations',\n email: \"just.an.individual@justifi.ai\",\n phone: \"6124011111\",\n dob_day: \"01\",\n dob_year: \"1980\",\n is_owner: false,\n dob_month: \"01\",\n ssn_last4: \"6789\",\n address_city: \"Minneapolis\",\n address_line1: \"123 Example St\",\n address_state: \"MN\",\n address_country: \"USA\",\n address_postal_code: \"55555\"\n },\n owners: [\n {\n name: \"Owner 1\",\n title: \"CEO\",\n email: \"owner@company.com\",\n identification_number: '555-555-5555',\n dob_day: \"01\",\n dob_year: \"1980\",\n dob_month: \"01\",\n address_city: \"Minneapolis\",\n address_line1: \"123 Example St\",\n address_state: \"MN\",\n address_country: \"USA\",\n address_postal_code: \"55555\"\n },\n {\n name: \"Owner 2\",\n title: \"CFO\",\n email: \"owner@company.com\",\n identification_number: '555-555-5555',\n dob_day: \"01\",\n dob_year: \"1980\",\n dob_month: \"01\",\n address_city: \"Minneapolis\",\n address_line1: \"123 Example St\",\n address_state: \"MN\",\n address_country: \"USA\",\n address_postal_code: \"55555\"\n },\n {\n name: \"Owner 3\",\n title: \"Owner\",\n email: \"owner@company.com\",\n identification_number: '555-555-5555',\n dob_day: \"01\",\n dob_year: \"1980\",\n dob_month: \"01\",\n address_city: \"Minneapolis\",\n address_line1: \"123 Example St\",\n address_state: \"MN\",\n address_country: \"USA\",\n address_postal_code: \"55555\"\n },\n {\n name: \"Owner 4\",\n title: \"Some guy\",\n email: \"owner@company.com\",\n identification_number: '555-555-5555',\n dob_day: \"01\",\n dob_year: \"1980\",\n dob_month: \"01\",\n address_city: \"Minneapolis\",\n address_line1: \"123 Example St\",\n address_state: \"MN\",\n address_country: \"USA\",\n address_postal_code: \"55555\"\n },\n ],\n onboarding_version: \"v1.0\",\n bank_account: {\n bank_name: \"Wells Fargo\",\n account_type: \"checking\",\n account_number: \"*****1112\",\n routing_number: \"111111111\",\n account_nickname: \"My payout account\"\n },\n terms_and_conditions: {\n ip: \"127.0.0.1\",\n accepted: true,\n user_agent: \"Safari\"\n }\n}\n\nexport const MockOnboardingData = {\n account_type: AccountType.test,\n payload: MockOnboardingPayload,\n platform_account_id: 'abc123',\n seller_account_id: 'def456',\n sub_account_id: 'ghi789'\n};\n"]}