@justifi/webcomponents 4.19.3-rc-2 → 4.19.3

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 (301) hide show
  1. package/dist/cjs/{Analytics-adc90fc6.js → Analytics-a0a86d82.js} +4 -3
  2. package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
  3. package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  5. package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
  6. package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
  7. package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
  8. package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
  9. package/dist/cjs/config-05767cba.js +15 -0
  10. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  11. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
  12. package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
  13. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  14. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
  15. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
  16. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -3
  17. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -13
  19. package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
  20. package/dist/cjs/justifi-checkout-core.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -4
  23. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -12
  24. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
  25. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -4
  26. package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -7
  27. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
  29. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -4
  30. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
  31. package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
  32. package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
  33. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
  35. package/dist/cjs/{package-22d30c5d.js → package-99f4d813.js} +2 -2
  36. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  37. package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
  38. package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
  39. package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
  40. package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
  41. package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
  42. package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
  43. package/dist/collection/api/Api.js +3 -3
  44. package/dist/collection/api/Business.js +66 -7
  45. package/dist/collection/api/Identity.js +39 -3
  46. package/dist/collection/api/services/analytics.service.js +2 -1
  47. package/dist/collection/api/services/business.service.js +6 -5
  48. package/dist/collection/api/services/checkout.service.js +3 -2
  49. package/dist/collection/api/services/insurance.service.js +3 -2
  50. package/dist/collection/api/services/payment.service.js +3 -2
  51. package/dist/collection/api/services/payout.service.js +4 -3
  52. package/dist/collection/api/services/provision.service.js +2 -1
  53. package/dist/collection/api/services/reports.service.js +2 -1
  54. package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
  55. package/dist/collection/components/business-forms/business-form/business-form.js +5 -5
  56. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
  57. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
  58. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
  59. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
  60. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
  61. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
  62. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
  63. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
  64. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
  65. package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
  66. package/dist/collection/components/card-form/card-form.js +4 -3
  67. package/dist/collection/components/checkout/checkout-core.js +4 -4
  68. package/dist/collection/components/checkout/new-payment-method.js +4 -6
  69. package/dist/collection/components/checkout/payment-method-options.js +4 -3
  70. package/dist/collection/components/checkout/saved-payment-method.js +4 -3
  71. package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
  72. package/dist/collection/components/payment-form/payment-form.js +4 -3
  73. package/dist/collection/components/refund-form/refund-form.js +3 -2
  74. package/dist/config.js +11 -0
  75. package/dist/docs.json +9 -9
  76. package/dist/{webcomponents/p-15eafa87.js → esm/Analytics-e460ab05.js} +4 -3
  77. package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
  78. package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
  79. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  80. package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
  81. package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
  82. package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
  83. package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
  84. package/dist/esm/config-27764a9d.js +13 -0
  85. package/dist/esm/form-alert_5.entry.js +2 -2
  86. package/dist/esm/form-control-checkbox_9.entry.js +21 -21
  87. package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
  88. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  89. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
  90. package/dist/esm/justifi-bank-account-form.entry.js +6 -5
  91. package/dist/esm/justifi-billing-form_2.entry.js +3 -3
  92. package/dist/esm/justifi-business-details.entry.js +6 -5
  93. package/dist/esm/justifi-business-form.entry.js +13 -12
  94. package/dist/esm/justifi-card-form.entry.js +6 -5
  95. package/dist/esm/justifi-checkout-core.entry.js +4 -4
  96. package/dist/esm/justifi-checkout.entry.js +6 -5
  97. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -4
  98. package/dist/esm/justifi-new-payment-method_4.entry.js +10 -12
  99. package/dist/esm/justifi-owner-form_3.entry.js +11 -10
  100. package/dist/esm/justifi-payment-details.entry.js +5 -4
  101. package/dist/esm/justifi-payment-form.entry.js +8 -7
  102. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  103. package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
  104. package/dist/esm/justifi-payments-list.entry.js +5 -4
  105. package/dist/esm/justifi-payout-details.entry.js +5 -4
  106. package/dist/esm/justifi-payouts-list.entry.js +5 -4
  107. package/dist/esm/justifi-refund-form.entry.js +4 -3
  108. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
  109. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -5
  110. package/dist/{webcomponents/p-2e8f4937.js → esm/package-0935c5e5.js} +2 -2
  111. package/dist/esm/payment-details-core.entry.js +1 -1
  112. package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
  113. package/dist/esm/payments-list-core.entry.js +1 -1
  114. package/dist/esm/payout-details-core.entry.js +1 -1
  115. package/dist/esm/payouts-list-core.entry.js +1 -1
  116. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
  117. package/dist/esm/{utils-3c1dd2fa.js → utils-e66d8bca.js} +1 -16
  118. package/dist/module/Analytics.js +2 -1
  119. package/dist/module/Api.js +3 -3
  120. package/dist/module/Business.js +104 -9
  121. package/dist/module/business-additional-questions-form-step-core.js +3 -3
  122. package/dist/module/business-bank-account-form-step.js +4 -3
  123. package/dist/module/business-core-info-form-step-core.js +3 -5
  124. package/dist/module/business-document-upload-form-step.js +4 -3
  125. package/dist/module/business-document-upload-input-group.js +1 -1
  126. package/dist/module/business-documents-on-file.js +1 -1
  127. package/dist/module/business-form-options.js +1 -1
  128. package/dist/module/business-owners-form-step-core.js +3 -3
  129. package/dist/module/business-representative-form-step-core.js +3 -4
  130. package/dist/module/business-terms-conditions-form-step.js +4 -3
  131. package/dist/module/business.service.js +6 -5
  132. package/dist/module/checkout-core.js +3 -3
  133. package/dist/module/config.js +13 -0
  134. package/dist/module/get-payout-csv.js +4 -3
  135. package/dist/module/justifi-bank-account-form.js +3 -2
  136. package/dist/module/justifi-business-form.js +5 -5
  137. package/dist/module/justifi-card-form.js +3 -2
  138. package/dist/module/justifi-checkout.js +3 -2
  139. package/dist/module/justifi-gross-payment-chart.js +2 -1
  140. package/dist/module/justifi-payment-form.js +4 -3
  141. package/dist/module/justifi-payment-provisioning.js +2 -1
  142. package/dist/module/justifi-refund-form.js +3 -2
  143. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  144. package/dist/module/legal-address-form-step-core.js +3 -4
  145. package/dist/module/new-payment-method.js +3 -5
  146. package/dist/module/owner-form-core2.js +4 -5
  147. package/dist/module/package.js +2 -2
  148. package/dist/module/payment-details-core2.js +1 -1
  149. package/dist/module/payment-method-options.js +3 -2
  150. package/dist/module/payment.service.js +3 -2
  151. package/dist/module/payments-list-core2.js +1 -1
  152. package/dist/module/payout-details-core2.js +1 -1
  153. package/dist/module/payouts-list-core2.js +1 -1
  154. package/dist/module/saved-payment-method.js +4 -3
  155. package/dist/module/sezzle-payment-method.js +3 -2
  156. package/dist/module/utils2.js +1 -16
  157. package/dist/types/api/Business.d.ts +87 -1
  158. package/dist/types/api/Identity.d.ts +45 -1
  159. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
  160. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
  161. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
  162. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
  163. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
  164. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  165. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  166. package/dist/webcomponents/index.esm.js +0 -1
  167. package/dist/webcomponents/p-056e75be.entry.js +1 -0
  168. package/dist/webcomponents/p-07109641.entry.js +1 -0
  169. package/dist/webcomponents/p-08b0fb31.js +1 -41
  170. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  171. package/dist/webcomponents/p-11b6ed0c.entry.js +1 -0
  172. package/dist/webcomponents/p-124c1ecd.entry.js +1 -0
  173. package/dist/webcomponents/p-14c91ffd.js +1 -20
  174. package/dist/webcomponents/p-15976984.entry.js +1 -0
  175. package/dist/webcomponents/p-1815a43b.js +1 -0
  176. package/dist/webcomponents/p-1ad5995e.js +1 -3599
  177. package/dist/webcomponents/p-1cf90026.entry.js +1 -0
  178. package/dist/webcomponents/p-1eee25f3.entry.js +19 -0
  179. package/dist/webcomponents/p-1ff8810b.js +1 -29
  180. package/dist/webcomponents/p-2338affa.js +1 -213
  181. package/dist/webcomponents/p-277aee05.js +1 -0
  182. package/dist/webcomponents/p-2b6c9c4f.js +1 -7
  183. package/dist/webcomponents/p-2eab3c90.js +1 -3052
  184. package/dist/webcomponents/p-3423ddfd.entry.js +1 -0
  185. package/dist/webcomponents/p-39c6f36a.entry.js +1 -0
  186. package/dist/webcomponents/p-401d6607.js +1 -0
  187. package/dist/webcomponents/p-421ed39d.entry.js +1 -0
  188. package/dist/webcomponents/p-487b72a8.entry.js +1 -0
  189. package/dist/webcomponents/p-4e017b58.js +1 -0
  190. package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
  191. package/dist/webcomponents/p-5022f21c.js +1 -0
  192. package/dist/webcomponents/p-525db3e8.js +1 -22
  193. package/dist/webcomponents/p-55182a59.js +1 -0
  194. package/dist/webcomponents/p-56f6ce4c.js +1 -10
  195. package/dist/webcomponents/p-5968ff8a.js +1 -178
  196. package/dist/webcomponents/p-5a62fca2.js +1 -0
  197. package/dist/webcomponents/p-5e2c9ec8.js +1 -0
  198. package/dist/webcomponents/p-5e7c60d8.js +1 -0
  199. package/dist/webcomponents/p-6078a370.js +1 -244
  200. package/dist/webcomponents/p-69c18f39.entry.js +1 -0
  201. package/dist/webcomponents/p-6abb2a04.entry.js +1 -0
  202. package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
  203. package/dist/webcomponents/p-721dcf51.entry.js +1 -0
  204. package/dist/webcomponents/p-7d3be485.js +1 -0
  205. package/dist/webcomponents/p-7d85af5c.js +1 -16
  206. package/dist/webcomponents/p-7ff329b1.js +1 -0
  207. package/dist/webcomponents/p-8115b2f4.js +1 -28
  208. package/dist/webcomponents/p-817da23c.entry.js +1 -0
  209. package/dist/webcomponents/p-8df7bde8.js +1 -27
  210. package/dist/webcomponents/p-9c9c7dac.js +1 -24
  211. package/dist/webcomponents/p-a99032e1.entry.js +1 -0
  212. package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
  213. package/dist/webcomponents/p-aedb421f.entry.js +1 -0
  214. package/dist/webcomponents/p-b676bca5.entry.js +1 -0
  215. package/dist/webcomponents/p-b6c3b7bc.entry.js +1 -0
  216. package/dist/webcomponents/p-ba4bae6f.js +1 -12
  217. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  218. package/dist/webcomponents/p-bd278ff4.entry.js +1 -0
  219. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  220. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  221. package/dist/webcomponents/p-d4a44a1e.entry.js +1 -0
  222. package/dist/webcomponents/p-d76002d5.entry.js +1 -0
  223. package/dist/webcomponents/p-d78eb6ce.js +1 -0
  224. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  225. package/dist/webcomponents/p-d89bad72.js +1 -39
  226. package/dist/webcomponents/p-da1d174d.entry.js +1 -0
  227. package/dist/webcomponents/p-dce846bf.js +1 -27
  228. package/dist/webcomponents/p-df21aaad.js +1 -120
  229. package/dist/webcomponents/p-e1255160.js +1 -3
  230. package/dist/webcomponents/p-e2b2213f.entry.js +1 -0
  231. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  232. package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
  233. package/dist/webcomponents/p-e333620e.js +1 -34
  234. package/dist/webcomponents/p-e3f4a2a6.js +1 -0
  235. package/dist/webcomponents/p-e3fab0e2.js +1 -43
  236. package/dist/webcomponents/p-e7fd1357.entry.js +1 -0
  237. package/dist/webcomponents/p-eccf2e8e.entry.js +1 -0
  238. package/dist/webcomponents/p-edb62047.entry.js +1 -0
  239. package/dist/webcomponents/p-f0866375.entry.js +1 -0
  240. package/dist/webcomponents/p-f5ebca3e.entry.js +1 -0
  241. package/dist/webcomponents/p-fad19d75.js +2 -1638
  242. package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
  243. package/dist/webcomponents/webcomponents.css +4 -362
  244. package/dist/webcomponents/webcomponents.esm.js +1 -20
  245. package/package.json +2 -2
  246. package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
  247. package/dist/esm/Analytics-a8eb7344.js +0 -77
  248. package/dist/esm/package-ccb774a9.js +0 -79
  249. package/dist/module/payload-parsers.js +0 -43
  250. package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
  251. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  252. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  253. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  254. package/dist/webcomponents/p-0e1bc91e.js +0 -28
  255. package/dist/webcomponents/p-10875f3d.entry.js +0 -97
  256. package/dist/webcomponents/p-157acba8.entry.js +0 -98
  257. package/dist/webcomponents/p-18fa0479.entry.js +0 -131
  258. package/dist/webcomponents/p-1a5120f4.entry.js +0 -145
  259. package/dist/webcomponents/p-24dc023a.entry.js +0 -791
  260. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  261. package/dist/webcomponents/p-27d87fe2.entry.js +0 -133
  262. package/dist/webcomponents/p-29c0b182.js +0 -114
  263. package/dist/webcomponents/p-3395e896.entry.js +0 -74
  264. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  265. package/dist/webcomponents/p-47d79529.js +0 -18
  266. package/dist/webcomponents/p-53ecc8b9.entry.js +0 -261
  267. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  268. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  269. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  270. package/dist/webcomponents/p-6124b1b3.entry.js +0 -80
  271. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  272. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  273. package/dist/webcomponents/p-75fd6367.entry.js +0 -149
  274. package/dist/webcomponents/p-79646550.entry.js +0 -61
  275. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  276. package/dist/webcomponents/p-83125497.js +0 -4027
  277. package/dist/webcomponents/p-85fc69e5.js +0 -90
  278. package/dist/webcomponents/p-89887332.js +0 -301
  279. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  280. package/dist/webcomponents/p-9e17630d.entry.js +0 -1684
  281. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  282. package/dist/webcomponents/p-a4e8573e.entry.js +0 -94
  283. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  284. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  285. package/dist/webcomponents/p-ab4816e1.entry.js +0 -117
  286. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  287. package/dist/webcomponents/p-af244664.js +0 -126
  288. package/dist/webcomponents/p-b4b8b531.js +0 -44
  289. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  290. package/dist/webcomponents/p-ba5fae28.js +0 -90
  291. package/dist/webcomponents/p-bd66f9d2.entry.js +0 -101
  292. package/dist/webcomponents/p-cc39384f.entry.js +0 -99
  293. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  294. package/dist/webcomponents/p-dad3e069.entry.js +0 -298
  295. package/dist/webcomponents/p-e1e7525b.entry.js +0 -73
  296. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  297. package/dist/webcomponents/p-e9a5cb95.entry.js +0 -94
  298. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  299. package/dist/webcomponents/p-edc37d1f.entry.js +0 -75
  300. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
  301. package/dist/{globals.d.ts → types/global.d.ts} +1 -1
@@ -34,6 +34,15 @@ export declare class Address implements IAddress {
34
34
  created_at?: string;
35
35
  updated_at?: string;
36
36
  constructor(address: IAddress);
37
+ get payload(): {
38
+ platform_account_id: string;
39
+ line1: string;
40
+ line2: string;
41
+ postal_code: string;
42
+ city: string;
43
+ state: string;
44
+ country: string;
45
+ };
37
46
  }
38
47
  export interface ProductCategories {
39
48
  credit: boolean;
@@ -49,6 +58,7 @@ export interface IAdditionalQuestions {
49
58
  business_recurring_payments_percentage?: string;
50
59
  business_seasonal?: string;
51
60
  business_other_payment_details?: string;
61
+ payload?: any;
52
62
  }
53
63
  export declare class AdditionalQuestions implements IAdditionalQuestions {
54
64
  business_revenue?: string;
@@ -59,6 +69,15 @@ export declare class AdditionalQuestions implements IAdditionalQuestions {
59
69
  business_seasonal?: string;
60
70
  business_other_payment_details?: string;
61
71
  constructor(additionalQuestions: IAdditionalQuestions);
72
+ get payload(): {
73
+ business_revenue: string;
74
+ business_payment_volume: string;
75
+ business_when_service_received: string;
76
+ business_recurring_payments: string;
77
+ business_recurring_payments_percentage: string;
78
+ business_seasonal: string;
79
+ business_other_payment_details: string;
80
+ };
62
81
  }
63
82
  export interface ICoreBusinessInfo {
64
83
  classification?: BusinessClassification;
@@ -82,6 +101,17 @@ export declare class CoreBusinessInfo implements ICoreBusinessInfo {
82
101
  phone: string;
83
102
  date_of_incorporation: string;
84
103
  constructor(coreBusinessInfo: ICoreBusinessInfo);
104
+ get payload(): {
105
+ classification: string;
106
+ legal_name: string;
107
+ doing_business_as: string;
108
+ industry: string;
109
+ tax_id: string;
110
+ website_url: string;
111
+ email: string;
112
+ phone: string;
113
+ date_of_incorporation: string;
114
+ };
85
115
  }
86
116
  export interface IBusiness {
87
117
  additional_questions: IAdditionalQuestions;
@@ -109,7 +139,7 @@ export interface IBusiness {
109
139
  date_of_incorporation?: string;
110
140
  }
111
141
  export declare class Business implements IBusiness {
112
- additional_questions: AdditionalQuestions;
142
+ additional_questions: IAdditionalQuestions;
113
143
  associated_accounts: any[];
114
144
  classification: BusinessClassification;
115
145
  bank_accounts: IBankAccount[];
@@ -133,6 +163,62 @@ export declare class Business implements IBusiness {
133
163
  date_of_incorporation?: string;
134
164
  product_categories: ProductCategories;
135
165
  constructor(business: IBusiness);
166
+ get payload(): {
167
+ additional_questions: {
168
+ business_revenue: string;
169
+ business_payment_volume: string;
170
+ business_when_service_received: string;
171
+ business_recurring_payments: string;
172
+ business_recurring_payments_percentage: string;
173
+ business_seasonal: string;
174
+ business_other_payment_details: string;
175
+ };
176
+ classification: string;
177
+ doing_business_as: string;
178
+ email: string;
179
+ industry: string;
180
+ legal_address: {
181
+ platform_account_id: string;
182
+ line1: string;
183
+ line2: string;
184
+ postal_code: string;
185
+ city: string;
186
+ state: string;
187
+ country: string;
188
+ };
189
+ legal_name: string;
190
+ metadata: any;
191
+ owners: {
192
+ id: string;
193
+ }[];
194
+ phone: string;
195
+ platform_account_id: string;
196
+ representative: {
197
+ address: {
198
+ platform_account_id: string;
199
+ line1: string;
200
+ line2: string;
201
+ postal_code: string;
202
+ city: string;
203
+ state: string;
204
+ country: string;
205
+ };
206
+ dob_day: string;
207
+ dob_month: string;
208
+ dob_year: string;
209
+ email: string;
210
+ is_owner: boolean;
211
+ identification_number: string;
212
+ metadata: any;
213
+ name: string;
214
+ phone: string;
215
+ platform_account_id: string;
216
+ title: string;
217
+ };
218
+ tax_id: string;
219
+ website_url: string;
220
+ date_of_incorporation: string;
221
+ };
136
222
  }
137
223
  export interface IProductReadiness {
138
224
  business_id: string;
@@ -1,4 +1,4 @@
1
- import { Address, IAddress } from "./Business";
1
+ import { Address, IAddress } from './Business';
2
2
  export interface Identity {
3
3
  address?: IAddress;
4
4
  created_at?: string;
@@ -40,6 +40,28 @@ export declare class Owner implements Identity {
40
40
  title?: string;
41
41
  updated_at?: string;
42
42
  constructor(owner: Identity);
43
+ get payload(): {
44
+ address: {
45
+ platform_account_id: string;
46
+ line1: string;
47
+ line2: string;
48
+ postal_code: string;
49
+ city: string;
50
+ state: string;
51
+ country: string;
52
+ };
53
+ dob_day: string;
54
+ dob_month: string;
55
+ dob_year: string;
56
+ email: string;
57
+ identification_number: string;
58
+ is_owner: boolean;
59
+ metadata: any;
60
+ name: string;
61
+ phone: string;
62
+ platform_account_id: string;
63
+ title: string;
64
+ };
43
65
  }
44
66
  export declare class Representative implements Identity {
45
67
  address?: Address;
@@ -62,4 +84,26 @@ export declare class Representative implements Identity {
62
84
  title?: string;
63
85
  updated_at?: string;
64
86
  constructor(representative: Identity);
87
+ get payload(): {
88
+ address: {
89
+ platform_account_id: string;
90
+ line1: string;
91
+ line2: string;
92
+ postal_code: string;
93
+ city: string;
94
+ state: string;
95
+ country: string;
96
+ };
97
+ dob_day: string;
98
+ dob_month: string;
99
+ dob_year: string;
100
+ email: string;
101
+ is_owner: boolean;
102
+ identification_number: string;
103
+ metadata: any;
104
+ name: string;
105
+ phone: string;
106
+ platform_account_id: string;
107
+ title: string;
108
+ };
65
109
  }
@@ -28,7 +28,50 @@ export declare class BusinessOwnerFormCore {
28
28
  validate(): Promise<boolean>;
29
29
  submit(): Promise<boolean>;
30
30
  validateAndSubmit(event: any): Promise<void>;
31
- get payload(): string;
31
+ get payload(): {
32
+ address: {
33
+ platform_account_id: string;
34
+ line1: string;
35
+ line2: string;
36
+ postal_code: string;
37
+ city: string;
38
+ state: string;
39
+ country: string;
40
+ };
41
+ dob_day: string;
42
+ dob_month: string;
43
+ dob_year: string;
44
+ email: string;
45
+ identification_number: string;
46
+ is_owner: boolean;
47
+ metadata: any;
48
+ name: string;
49
+ phone: string;
50
+ platform_account_id: string;
51
+ title: string;
52
+ } | {
53
+ business_id: string;
54
+ address: {
55
+ platform_account_id: string;
56
+ line1: string;
57
+ line2: string;
58
+ postal_code: string;
59
+ city: string;
60
+ state: string;
61
+ country: string;
62
+ };
63
+ dob_day: string;
64
+ dob_month: string;
65
+ dob_year: string;
66
+ email: string;
67
+ identification_number: string;
68
+ is_owner: boolean;
69
+ metadata: any;
70
+ name: string;
71
+ phone: string;
72
+ platform_account_id: string;
73
+ title: string;
74
+ };
32
75
  get formTitle(): "Edit Business Owner" | "Add Business Owner";
33
76
  get submitButtonText(): "Update" | "Add";
34
77
  get showRemoveButton(): boolean;
@@ -16,7 +16,17 @@ export declare class AdditionalQuestionsFormStepCore {
16
16
  validateAndSubmit({ onSuccess }: {
17
17
  onSuccess: any;
18
18
  }): Promise<void>;
19
- get patchPayload(): string;
19
+ get patchPayload(): {
20
+ additional_questions: {
21
+ business_revenue: string;
22
+ business_payment_volume: string;
23
+ business_when_service_received: string;
24
+ business_recurring_payments: string;
25
+ business_recurring_payments_percentage: string;
26
+ business_seasonal: string;
27
+ business_other_payment_details: string;
28
+ };
29
+ };
20
30
  componentWillLoad(): void;
21
31
  componentDidLoad(): void;
22
32
  private getData;
@@ -17,7 +17,17 @@ export declare class BusinessCoreInfoFormStepCore {
17
17
  validateAndSubmit({ onSuccess }: {
18
18
  onSuccess: any;
19
19
  }): Promise<void>;
20
- get patchPayload(): string;
20
+ get patchPayload(): {
21
+ classification: string;
22
+ legal_name: string;
23
+ doing_business_as: string;
24
+ industry: string;
25
+ tax_id: string;
26
+ website_url: string;
27
+ email: string;
28
+ phone: string;
29
+ date_of_incorporation: string;
30
+ };
21
31
  componentWillLoad(): void;
22
32
  componentDidLoad(): void;
23
33
  private getData;
@@ -16,7 +16,30 @@ export declare class BusinessRepresentativeFormStepCore {
16
16
  validateAndSubmit({ onSuccess }: {
17
17
  onSuccess: any;
18
18
  }): Promise<void>;
19
- get patchPayload(): string;
19
+ get patchPayload(): {
20
+ representative: {
21
+ address: {
22
+ platform_account_id: string;
23
+ line1: string;
24
+ line2: string;
25
+ postal_code: string;
26
+ city: string;
27
+ state: string;
28
+ country: string;
29
+ };
30
+ dob_day: string;
31
+ dob_month: string;
32
+ dob_year: string;
33
+ email: string;
34
+ is_owner: boolean;
35
+ identification_number: string;
36
+ metadata: any;
37
+ name: string;
38
+ phone: string;
39
+ platform_account_id: string;
40
+ title: string;
41
+ };
42
+ };
20
43
  componentWillLoad(): void;
21
44
  componentDidLoad(): void;
22
45
  private getData;
@@ -16,7 +16,17 @@ export declare class LegalAddressFormStepCore {
16
16
  validateAndSubmit({ onSuccess }: {
17
17
  onSuccess: any;
18
18
  }): Promise<void>;
19
- get patchPayload(): string;
19
+ get patchPayload(): {
20
+ legal_address: {
21
+ platform_account_id: string;
22
+ line1: string;
23
+ line2: string;
24
+ postal_code: string;
25
+ city: string;
26
+ state: string;
27
+ country: string;
28
+ };
29
+ };
20
30
  componentWillLoad(): void;
21
31
  componentDidLoad(): void;
22
32
  private getData;
@@ -13,7 +13,6 @@ export declare class NewPaymentMethod {
13
13
  paymentMethodOptionSelected: EventEmitter;
14
14
  private billingFormRef?;
15
15
  private paymentMethodFormRef?;
16
- componentWillLoad(): void;
17
16
  handleCheckboxChanged(event: CustomEvent<boolean>): void;
18
17
  fillBillingForm(fields: BillingFormFields): Promise<void>;
19
18
  resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
@@ -0,0 +1,11 @@
1
+ export declare const config: {
2
+ iframeOrigin: string;
3
+ proxyApiOrigin: string;
4
+ proxyAuthToken: string;
5
+ exampleAccountId: string;
6
+ exampleBusinessId: string;
7
+ examplePaymentId: string;
8
+ examplePayoutId: string;
9
+ privateApiOrigin: string;
10
+ privateAuthToken: string;
11
+ };
@@ -1 +0,0 @@
1
-
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s}from"./p-fad19d75.js";import{c as i,d as a,e as r}from"./p-5968ff8a.js";import{I as o}from"./p-401d6607.js";import{F as d}from"./p-2eab3c90.js";import{O as h}from"./p-5e7c60d8.js";import{a as c}from"./p-d89bad72.js";import{i as n}from"./p-55182a59.js";import{B as f}from"./p-9c9c7dac.js";import{S as b,P as l}from"./p-525db3e8.js";import{u as m,a as u,b as p}from"./p-7d85af5c.js";import"./p-14c91ffd.js";import"./p-8115b2f4.js";import"./p-5a62fca2.js";import"./p-7d3be485.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-5022f21c.js";import"./p-1815a43b.js";const v=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.authToken=void 0,this.ownerId=void 0,this.businessId=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:t}){this.coreComponent.validateAndSubmit({onSuccess:t})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=a({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=r({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"332d1e77d01886f13aba09b32b2d5f2199131619",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:t=>this.coreComponent=t})}},y=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){t(this,s),this.submitted=e(this,"submitted",7),this.ownerSubmitted=e(this,"ownerSubmitted",7),this.clickEvent=e(this,"click-event",7),this.formLoading=e(this,"formLoading",7),this.errorEvent=e(this,"error-event",7),this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:t=>{this.instantiateOwner(t.data)},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((t=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:e=>{this.submitted.emit({data:e,metadata:{ownerID:e.data.id}}),this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.submitted.emit({data:{error:e}}),this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:e=>{this.submitted.emit({data:e,metadata:{ownerID:e.data.id}}),this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.submitted.emit({data:{error:e}}),this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async t=>{this.owner=Object.assign({},new h(t)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?c.updateOwner:c.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:c.removeOwner})},this.isLoading=!1,this.formController=void 0,this.errors={},this.owner={},this.ownerId=void 0,this.businessId=void 0,this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0,this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(t){t.preventDefault(),await this.validate()&&this.submit()}get payload(){let t=new h(this.formController.values.getValue()).payload;return this.ownerId?t:Object.assign(Object.assign({},t),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(n("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((t=>this.errors=Object.assign({},t)))}render(){return s("form",{key:"27f0d989f017bd03b84cf8c994fa96f9a65aad08",onSubmit:this.validateAndSubmit},s("fieldset",{key:"2c793f1f8777181e5db0a4cae5b9994d9188685e"},s("legend",{key:"a8951fcd990c8136cf6672424869f5c96def3cef",class:"fw-semibold fs-5"},this.formTitle),s("br",{key:"faaf0cc27c448452a5172ad7fcfcf510ec586d2b"}),s("div",{key:"486638ad24414a05f84ada3f37a89d0cc12e7ffb",class:"row gy-3"},s("owner-form-inputs",{key:"bdfe7cb3305f31d93321319ef14eee3e5b331381",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"9e5c63e0637e0bffe5ab77a1f73c203704115479",class:"d-flex gap-2 justify-content-start"},s(f,{key:"85de4b69c697ebf96778f538b1535bd1fb2c43e7",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(f,{key:"1dd026432f19f84ae2142101191e511ebd62c2b3",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"2570611bbe663e2e128f03806ecb036ce750c80b"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},k=class{constructor(e){t(this,e),this.inputHandler=(t,e)=>{m(this.formController,{[t]:e})},this.onAddressFormUpdate=t=>{u(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),t))},this.ownerDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){return s("div",{key:"6fcc165d4bc75b92403d9031ad98f05f6b1dcd34",class:"row gy-3"},s("div",{key:"74f1e42a13892e95497a99684ba9de64719edb72",class:"col-12 col-md-6"},s("form-control-text",{key:"29caea2b0b0a62822cc20c99e697f3db7c22a541",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"5b0f8da9a0512de70558baa9cb188b4d5e773dc2",class:"col-12 col-md-4"},s("form-control-text",{key:"5967094f115a64876f8dc943a273f5a22b193f1c",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler})),s("div",{key:"6c05fec9b87f8ba5e3be9ce74ef727a1e4b14905",class:"col-12 col-md-6"},s("form-control-text",{key:"8c5b2839b6de605915d8e7c14a0ba22d3f440bda",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"d7eae882aea84b8562e459e66bc1ba885c4be3c7",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"2d6b33f47e4008745fd65c5ef3cb60dd92b85eba",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:l.US})),s("div",{key:"92b825163aedf052bdb89721397da69c717e595d",class:"col-12 col-md-4"},s("form-control-date",{key:"cd884b773ef0eb60effc61e8cfbf42b21620cd1c",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:t=>p(t,this.formController)})),s("div",{key:"614ba65972946645ba5c7a299c00efd0e85abf5e",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"7cd9fe7a1b56d351942a0b962f3c7227459406ae",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b})),s("div",{key:"ce08f35a16de4b9be65377cde0a9daa5b4cbe876",class:"col-12"},s("justifi-identity-address-form",{key:"79a7f5e8c08fc57383c1975145a6b06bd4e615dd",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{v as justifi_owner_form,y as owner_form_core,k as owner_form_inputs}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,c as s,H as e,g as o}from"./p-fad19d75.js";const a=class{constructor(i){t(this,i),this.errorText=void 0,this.name=void 0}render(){return this.errorText?i("small",{class:"form-text text-danger",id:`form-error-text-${this.name}`},this.errorText):null}},r=class{constructor(i){t(this,i),this.helpText=void 0,this.name=void 0}render(){return this.helpText?i("small",{class:"form-text text-muted",id:`form-help-text-${this.name}`},this.helpText):null}},h=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const i=t.target,s=i.getAttribute("name");this.inputHandler(s,i.value),this.formControlInput.emit(i.value)},this.updateInput=t=>{this.selectElement.value=t},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.options=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){var t;return i(e,{key:"99449e3724103b12af7f2a4573831961074a484a",exportparts:"label,input,input-invalid"},i("div",{key:"d73e89d43da9968b687afece24794d9472fec6b5",class:"form-group d-flex flex-column"},i("label",{key:"6964c55858fc3cf96a137e1061c7f66831105348",part:"label",class:"form-label",htmlFor:this.name},this.label),i("select",{key:"5b1a09a607ad9638915f5e70f2164f6010020438",ref:t=>this.selectElement=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:"input "+(this.errorText?"input-invalid":""),class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>i("option",{value:t.value},t.label)))),i("form-control-help-text",{key:"62d862921d463c98e56888293c878624f7311548",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"0b1c4d4752965fb058208c72c7f1c3872d1e0561",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},l=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const i=t.target,s=i.getAttribute("name");this.inputHandler(s,i.value),this.formControlInput.emit({name:s,value:i.value})},this.updateInput=t=>{const i=this.el.querySelector("input");i&&(i.value=t||"")},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.maxLength=void 0,this.inputHandler=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){return i(e,{key:"1194532f81831734543bad80860da14f8a5ad856",exportparts:"label,input,input-invalid"},i("div",{key:"296538cf90b62f8041e21620aa06b4074f68b71a",class:"form-group d-flex flex-column"},i("label",{key:"7c009ce96124e58f9657dba2565ef298225f10f7",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"4b33cb700aecf4d0a359366ba2e0d248c602d904",id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?" input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i("form-control-help-text",{key:"7a279d72bb262fcb044b5b0cc31703878ce9f444",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"00bea288a99f626806697a98b6dca3f3298dc0b3",errorText:this.errorText,name:this.name})))}get el(){return o(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{a as form_control_error_text,r as form_control_help_text,h as form_control_select,l as form_control_text}
@@ -1,41 +1 @@
1
- import { h } from './p-fad19d75.js';
2
-
3
- // This component relies on "src/styles/animations.css"
4
- // where it is defined the pulsation animation.
5
- // Because of shadow-dom, it's not possible to add it to the root.css.
6
- // Don't forget to include this file in the `styleUrls`
7
- // property of the web component that will render the Skeleton
8
- const Skeleton = ({ component = 'div', height, width, variant = 'text', componentClassName, styles = {}, }) => {
9
- const getVariantStyle = () => {
10
- if (variant === 'text') {
11
- return {
12
- marginTop: 0,
13
- marginBottom: 0,
14
- height: 'auto',
15
- transformOrigin: '0 55%',
16
- transform: 'scale(1, 0.60)',
17
- borderRadius: '4px/6.67px',
18
- '::before': {
19
- content: '"\\00a0"',
20
- },
21
- };
22
- }
23
- else if (variant === 'circular') {
24
- return {
25
- borderRadius: '50%',
26
- };
27
- }
28
- else if (variant === 'rounded') {
29
- return {
30
- borderRadius: '4px',
31
- };
32
- }
33
- return {};
34
- };
35
- const combinedStyle = Object.assign(Object.assign(Object.assign({}, styles), getVariantStyle()), { width,
36
- height });
37
- const TagType = component;
38
- return (h(TagType, { class: componentClassName, style: combinedStyle, part: "skeleton" }));
39
- };
40
-
41
- export { Skeleton as S };
1
+ import{h as t}from"./p-fad19d75.js";const e=({component:e="div",height:r,width:o,variant:a="text",componentClassName:s,styles:n={}})=>{const i=Object.assign(Object.assign(Object.assign({},n),"text"===a?{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"4px/6.67px","::before":{content:'"\\00a0"'}}:"circular"===a?{borderRadius:"50%"}:"rounded"===a?{borderRadius:"4px"}:{}),{width:o,height:r});return t(e,{class:s,style:i,part:"skeleton"})};export{e as S}
@@ -0,0 +1 @@
1
+ import{r as a,h as e,H as t}from"./p-fad19d75.js";import{E as c}from"./p-56f6ce4c.js";const d=class{constructor(e){a(this,e),this.paging=c,this.params={}}render(){return e(t,{key:"645df5028861aa714a814f908ccace8dcd0986f8",exportparts:"page-arrow,page-button,page-button-disabled,page-button-text"},e("nav",{key:"6cb86ce01c625db9c31204f63258570f8a5d0a0f","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"7ffb5771a1c51553d64735721b937e53c699949d",class:"pagination m-0"},e("li",{key:"b439c2f7fe81ccdfa29670a6fc04715681ed5ab3",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("a",{key:"dc59152e834a3076f09304f6fcd0195058ebefec",href:"#",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:"page-button"+(this.paging.has_previous?"":" page-button-disabled")},e("span",{key:"fc640fb9ae2ca672bfed89d23c5641cb346c673d",class:"me-1",part:"page-arrow"},"«"),e("span",{key:"fb6fcd31ebd4d194b37f53a071537133b8c4d369",part:"page-button-text"},"Previous"))),e("li",{key:"b10e12ec7bc4a89cd897e868ec7b303c62599cd3",class:"page-item "+(this.paging.has_next?"":" disabled")},e("a",{key:"51f91eb7cfef91dcbcfd9f11522213308bf717b5",href:"#",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:"page-button"+(this.paging.has_next?"":" page-button-disabled")},e("span",{key:"d89f50a44dead676d19b8862a92ba636947fe6b1",part:"page-button-text"},"Next"),e("span",{key:"f5dd2ddddef86931d935df56101f1fed8118e4f6",class:"ms-1",part:"page-arrow"},"»"))))))}};export{d as pagination_menu}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i}from"./p-fad19d75.js";import{C as s,a as o}from"./p-14c91ffd.js";import{g as r,a as c}from"./p-8115b2f4.js";import{A as a}from"./p-7d3be485.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as h}from"./p-5a62fca2.js";import{J as n}from"./p-4e017b58.js";import"./p-d78eb6ce.js";class d{async fetchCheckout(e,t){const i=`checkouts/${t}`;return a({authToken:e,apiOrigin:h.proxyApiOrigin}).get(i)}async complete(e,t,i){const s=`checkouts/${t}/complete`,o={payment_mode:i.payment_mode};return i.payment_token&&(o.payment_token=i.payment_token),a({authToken:e,apiOrigin:h.proxyApiOrigin}).post(s,o)}}const u=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.iframeOrigin=void 0,this.authToken=void 0,this.checkoutId=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.getCheckout=void 0,this.complete=void 0,this.errorMessage=""}componentWillLoad(){this.analytics=new n(this),this.initializeGetCheckout()}disconnectedCallback(){this.analytics.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:e,checkoutId:t,service:i})=>async({onSuccess:o,onError:a})=>{var h;try{const n=await i.fetchCheckout(e,t);if(n.error)return a({error:r(n.error),code:c(null===(h=n.error)||void 0===h?void 0:h.code),severity:s.ERROR});o({checkout:n.data})}catch(e){const t=c(null==e?void 0:e.code);return a({error:e.message||e,code:t,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new d}),this.complete=(({authToken:e,checkoutId:t,service:i})=>async({payment:o,onSuccess:a,onError:h})=>{var n;try{const d=await i.complete(e,t,o);if(d.error)return h({error:r(d.error),code:c(null===(n=d.error)||void 0===n?void 0:n.code),severity:s.ERROR});a(d)}catch(e){const t=c(null==e?void 0:e.code);return h({error:e.message||e,code:t,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new d})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:o.MISSING_PROPS,severity:s.ERROR})}propChanged(){this.initializeGetCheckout()}async fillBillingForm(e){this.checkoutCoreRef.fillBillingForm(e)}render(){return i("justifi-checkout-core",{key:"d2f6bfed1be767edcf4ba21cddc503ff5efbec1a",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,ref:e=>{e&&(this.checkoutCoreRef=e)}},i("div",{key:"45ac1bea74ca8ef7999211b51fe7791225d61f00",slot:"insurance"},i("slot",{key:"13e051844cc7cb4aed98076ccd64954b2dd68228",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{u as justifi_checkout}
@@ -0,0 +1 @@
1
+ import{r as e,c as a,h as t}from"./p-fad19d75.js";import{M as d,f as s,b,c as i,s as f}from"./p-5e2c9ec8.js";import{a as c,b as l,D as h,c as r,C as o,E as y,L as n}from"./p-dce846bf.js";import{S as u}from"./p-ba4bae6f.js";const k=class{constructor(t){e(this,t),this.errorEvent=a(this,"error-event",7),this.getPaymentDetails=void 0,this.payment=void 0,this.loading=!0,this.errorMessage=void 0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.loading=!1,this.errorMessage=null},onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t}),this.loading=!1}})}render(){var e;return t(u,{key:"aaaea4076938af5a74197256dba1093265f0e2d6"},this.loading&&n(),!this.loading&&this.errorMessage&&y(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&t("justifi-details",{key:"12f06fa05915380403e244cbed053d0c04bfa1d4","error-message":this.errorMessage},t(c,{key:"4d496def6abfc728e6f184fb0729ac648fb2deaf",slot:"head-info",badge:t("span",{slot:"badge",innerHTML:d(this.payment.status)}),title:`${s(this.payment.amount)} ${null===(e=this.payment)||void 0===e?void 0:e.currency.toUpperCase()}`},t(l,{key:"78dcff13206646d594bdc80f6297d45dc9932694",classes:"border-1 border-end",title:"Updated At",value:`${b(this.payment.updated_at)} ${i(this.payment.updated_at)}`}),t(l,{key:"dfa0de667ebd28efd217b6bdf548b9b1b728b57e",classes:"border-1 border-end",title:"Created At",value:`${b(this.payment.created_at)} ${i(this.payment.created_at)}`}),t(l,{key:"b449b180034f28504007a9c2fb0598607dc00efb",title:"ID",value:this.payment.id})),t("div",{key:"62af84e244e38b24b32f791d13f1b21b49942597",slot:"detail-sections"},t(h,{key:"0ddb0366b4ab737c7b08a37764b8ce2f7ec4a1e9",sectionTitle:"Details"}),t("div",{key:"cb699194db16cb8608834779f560e882f6f9da7c",class:"d-table gap-2 w-100"},t(r,{key:"3b6eb4a8b782668951bba90be3b5d522f3f7c69b",title:"Amount",value:s(this.payment.amount)}),t(r,{key:"7a59ab0b12a263c38c40a98acbff6492d370b28b",title:"Fees",value:s(this.payment.fee_amount)}),t(r,{key:"a9eaa5d1959425205c144dc2aa7c7fad77014290",title:"Refunded",value:s(this.payment.amount_refunded)}),t(r,{key:"d70c3a4bf48c9c69625d5f27f1095f9b0744a71e",title:"Net",value:s(this.payment.balance)}),t(r,{key:"28f526b1adcd475c2ae88a8bf09ae4aea7935df6",title:"Status",value:d(this.payment.status)}),t(r,{key:"700f51d787f20f575e3e11aa72a8da29a9587c2a",title:"Payment ID",value:this.payment.id}),t(r,{key:"ea72ecc9c2f5055d4b0f6b37cd16cb318f9a797c",title:"Processing Fees",value:s(this.payment.fee_amount)}),t(r,{key:"9d66af2c0c0baef4e8b7b021daf0b4d6adb267d2",title:"Statement Descriptor",value:this.payment.statement_descriptor}),t(r,{key:"3f21501c1e08feeee1e7427a42faf1c5d1d9c84d",title:"Description",value:this.payment.description})),this.payment.payment_method.card&&[t(h,{key:"b7767b93e090c0195aca6c99b66b48d61b6134b3",sectionTitle:"Payment Method"}),t("div",{key:"a363c7a7e69932a8ffeddb5e0d53f7df13119a9a",class:"d-table gap-2 w-100"},t(r,{key:"fb0e1f64fcec23e513590b3048593565685d8400",title:"ID",value:this.payment.payment_method.card.id}),t(r,{key:"bc181b1b94039e1aad341a8e563ba923976c806b",title:"Payment Type",value:"Card"}),t(r,{key:"88b21dd2368b88232cd0f464c381d4423fe3c774",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),t(r,{key:"040fd71315ead633f9c89e9a9dad906889759d77",title:"Brand",value:f(this.payment.payment_method.card.brand)}),t(r,{key:"35ebc74de2c5c8fafd95fc5b15ff4f2ca85220cc",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[t(h,{key:"f10eef0b4e4067fb78dbff16719a6f266f4e6bab",sectionTitle:"Payment Method"}),t("div",{key:"6c1ef713b5dcabba5b516f3cbbd088d098873303",class:"d-table gap-2 w-100"},t(r,{key:"8880fd0fb2b16ee6f177aba15d6f4485c95af252",title:"ID",value:this.payment.payment_method.bank_account.id}),t(r,{key:"baa70304d2972f69ce8a5d077a076b16f986745b",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),t(r,{key:"dcb63b9258bea698bf2d165c611dfa05cb320f30",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),t(r,{key:"806696c15aa5ef242c230d9c9aea642ddfdfd93d",title:"Account Owner",value:this.payment.payment_method.payersName}))],t(h,{key:"83289d8f2cf57a624678260555f00af4ea96a566",sectionTitle:"Metadata"}),t("div",{key:"02e248b962e0c06f4d83bae75a5759b234fea36b",class:"d-table gap-2 w-100"},t(o,{key:"5d81879c7815102219ed010dab9f573ad6b7985d",metadata:this.payment.metadata})))))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{k as payment_details_core}
@@ -1,20 +1 @@
1
- var ComponentErrorCodes;
2
- (function (ComponentErrorCodes) {
3
- ComponentErrorCodes["MISSING_PROPS"] = "missing-props";
4
- ComponentErrorCodes["FETCH_ERROR"] = "fetch-error";
5
- ComponentErrorCodes["PATCH_ERROR"] = "patch-error";
6
- ComponentErrorCodes["POST_ERROR"] = "post-error";
7
- ComponentErrorCodes["UNKNOWN_ERROR"] = "unknown-error";
8
- ComponentErrorCodes["TOKENIZE_ERROR"] = "tokenize-error";
9
- ComponentErrorCodes["NOT_AUTHENTICATED"] = "not-authenticated";
10
- ComponentErrorCodes["INVALID_PARAMETER"] = "invalid-parameter";
11
- ComponentErrorCodes["PROVISIONING_REQUESTED"] = "provisioning-already-requested";
12
- })(ComponentErrorCodes || (ComponentErrorCodes = {}));
13
- var ComponentErrorSeverity;
14
- (function (ComponentErrorSeverity) {
15
- ComponentErrorSeverity["INFO"] = "info";
16
- ComponentErrorSeverity["WARNING"] = "warning";
17
- ComponentErrorSeverity["ERROR"] = "error";
18
- })(ComponentErrorSeverity || (ComponentErrorSeverity = {}));
19
-
20
- export { ComponentErrorSeverity as C, ComponentErrorCodes as a };
1
+ var r,e;!function(r){r.MISSING_PROPS="missing-props",r.FETCH_ERROR="fetch-error",r.PATCH_ERROR="patch-error",r.POST_ERROR="post-error",r.UNKNOWN_ERROR="unknown-error",r.TOKENIZE_ERROR="tokenize-error",r.NOT_AUTHENTICATED="not-authenticated",r.INVALID_PARAMETER="invalid-parameter",r.PROVISIONING_REQUESTED="provisioning-already-requested"}(r||(r={})),function(r){r.INFO="info",r.WARNING="warning",r.ERROR="error"}(e||(e={}));export{e as C,r as a}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as r}from"./p-fad19d75.js";import{c as e}from"./p-5a62fca2.js";import{A as o}from"./p-7d3be485.js";import{C as i,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as c}from"./p-dce846bf.js";import{J as p}from"./p-4e017b58.js";import"./p-d78eb6ce.js";class d{async fetchGrossVolumeChartData(s,t){return o({authToken:t,apiOrigin:e.proxyApiOrigin}).get(`account/${s}/reports/gross_volume`)}}const m=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.accountId=void 0,this.authToken=void 0,this.getGrossPayment=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new p(this),this.initializeGetGrossPayment()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:e,onError:o})=>{var a;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?o({error:n(c.error),code:h(null===(a=c.error)||void 0===a?void 0:a.code),severity:i.ERROR}):e(c.data)}catch(s){const t=h(null==s?void 0:s.code);o({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_gross_payment_chart}
@@ -0,0 +1 @@
1
+ import{a as e}from"./p-5e7c60d8.js";const a=[{label:"Choose business classification",value:""},{label:"Sole Proprietor",value:e.sole_proprietor},{label:"Partnership",value:e.partnership},{label:"Corporation",value:e.corporation},{label:"Public Company",value:e.public_company},{label:"Limited Liability Company (LLC)",value:e.limited},{label:"Non Profit",value:e.non_profit},{label:"Government",value:e.government}],l=[{label:"Within 7 days",value:"Within 7 days"},{label:"Within 30 days",value:"Within 30 days"},{label:"Within 90 days",value:"Within 90 days"},{label:"Within 120 days",value:"Within 120 days"},{label:"More than 120 days",value:"More than 120 days"}],s=[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],i=[{label:"Yes. The majority of the business revenue is generated in 3-6 months.",value:"Yes"},{label:"No. The business revenue is generated evenly throughout the year.",value:"No"}],n=[{label:"Checking",value:"checking"},{label:"Savings",value:"savings"}];export{l as a,a as b,n as c,s as r,i as s}