@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
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- const _package = require('./package-22d30c5d.js');
4
- const Api = require('./Api-3bc6e43f.js');
3
+ const _package = require('./package-99f4d813.js');
4
+ const config = require('./config-05767cba.js');
5
+ const Api = require('./Api-b98b256f.js');
5
6
 
6
7
  class AnalyticsService {
7
8
  async record(body) {
8
9
  const endpoint = 'analytics';
9
- return Api.Api({ apiOrigin: "" }).post(endpoint, JSON.stringify(body));
10
+ return Api.Api({ apiOrigin: config.config.proxyApiOrigin }).post(endpoint, body);
10
11
  }
11
12
  }
12
13
 
@@ -96,13 +96,13 @@ const Api = ({ authToken, apiOrigin }) => {
96
96
  return makeRequest(endpoint, 'GET', params, null, signal);
97
97
  }
98
98
  async function post(endpoint, body, params, signal) {
99
- return makeRequest(endpoint, 'POST', params, body, signal);
99
+ return makeRequest(endpoint, 'POST', params, JSON.stringify(body), signal);
100
100
  }
101
101
  async function put(endpoint, body, params, signal) {
102
- return makeRequest(endpoint, 'PUT', params, body, signal);
102
+ return makeRequest(endpoint, 'PUT', params, JSON.stringify(body), signal);
103
103
  }
104
104
  async function patch(endpoint, body, params, signal) {
105
- return makeRequest(endpoint, 'PATCH', params, body, signal);
105
+ return makeRequest(endpoint, 'PATCH', params, JSON.stringify(body), signal);
106
106
  }
107
107
  async function destroy(endpoint, params, signal) {
108
108
  return makeRequest(endpoint, 'DELETE', params, null, signal);
@@ -9,7 +9,8 @@ class Owner {
9
9
  this.dob_day = helpers.filterNumber(owner.dob_day);
10
10
  this.dob_month = helpers.filterNumber(owner.dob_month);
11
11
  this.dob_year = owner.dob_year;
12
- this.dob_full = helpers.constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
12
+ this.dob_full =
13
+ helpers.constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
13
14
  this.documents = owner.documents;
14
15
  this.email = owner.email;
15
16
  this.id = owner.id;
@@ -24,6 +25,23 @@ class Owner {
24
25
  this.title = owner.title;
25
26
  this.updated_at = owner.updated_at;
26
27
  }
28
+ // Getter method to return the payload in the desired shape
29
+ get payload() {
30
+ return {
31
+ address: new Address(this.address || {}).payload,
32
+ dob_day: this.dob_day || '',
33
+ dob_month: this.dob_month || '',
34
+ dob_year: this.dob_year || '',
35
+ email: this.email || '',
36
+ identification_number: this.identification_number || undefined,
37
+ is_owner: this.is_owner || false,
38
+ metadata: this.metadata || null,
39
+ name: this.name || '',
40
+ phone: this.phone || '',
41
+ platform_account_id: this.platform_account_id || null,
42
+ title: this.title || '',
43
+ };
44
+ }
27
45
  }
28
46
  class Representative {
29
47
  constructor(representative) {
@@ -32,7 +50,8 @@ class Representative {
32
50
  this.dob_day = helpers.filterNumber(representative.dob_day);
33
51
  this.dob_month = helpers.filterNumber(representative.dob_month);
34
52
  this.dob_year = representative.dob_year;
35
- this.dob_full = helpers.constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
53
+ this.dob_full =
54
+ helpers.constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
36
55
  this.documents = representative.documents;
37
56
  this.email = representative.email;
38
57
  this.id = representative.id;
@@ -47,6 +66,23 @@ class Representative {
47
66
  this.title = representative.title;
48
67
  this.updated_at = representative.updated_at;
49
68
  }
69
+ // Getter method to return the payload in the desired shape
70
+ get payload() {
71
+ return {
72
+ address: new Address(this.address || {}).payload,
73
+ dob_day: this.dob_day || '',
74
+ dob_month: this.dob_month || '',
75
+ dob_year: this.dob_year || '',
76
+ email: this.email || '',
77
+ is_owner: this.is_owner || false,
78
+ identification_number: this.identification_number || undefined,
79
+ metadata: this.metadata || null,
80
+ name: this.name || '',
81
+ phone: this.phone || '',
82
+ platform_account_id: this.platform_account_id || null,
83
+ title: this.title || '',
84
+ };
85
+ }
50
86
  }
51
87
 
52
88
  exports.BusinessClassification = void 0;
@@ -72,16 +108,42 @@ class Address {
72
108
  this.created_at = address.created_at;
73
109
  this.updated_at = address.updated_at;
74
110
  }
111
+ get payload() {
112
+ return {
113
+ platform_account_id: this.platform_account_id || '',
114
+ line1: this.line1 || '',
115
+ line2: this.line2 || '',
116
+ postal_code: this.postal_code || '',
117
+ city: this.city || '',
118
+ state: this.state || '',
119
+ country: this.country || '',
120
+ };
121
+ }
75
122
  }
76
123
  class AdditionalQuestions {
77
124
  constructor(additionalQuestions) {
78
125
  this.business_revenue = additionalQuestions.business_revenue;
79
126
  this.business_payment_volume = additionalQuestions.business_payment_volume;
80
- this.business_when_service_received = additionalQuestions.business_when_service_received;
81
- this.business_recurring_payments = additionalQuestions.business_recurring_payments;
82
- this.business_recurring_payments_percentage = additionalQuestions.business_recurring_payments_percentage;
127
+ this.business_when_service_received =
128
+ additionalQuestions.business_when_service_received;
129
+ this.business_recurring_payments =
130
+ additionalQuestions.business_recurring_payments;
131
+ this.business_recurring_payments_percentage =
132
+ additionalQuestions.business_recurring_payments_percentage;
83
133
  this.business_seasonal = additionalQuestions.business_seasonal;
84
- this.business_other_payment_details = additionalQuestions.business_other_payment_details;
134
+ this.business_other_payment_details =
135
+ additionalQuestions.business_other_payment_details;
136
+ }
137
+ get payload() {
138
+ return {
139
+ business_revenue: this.business_revenue || '',
140
+ business_payment_volume: this.business_payment_volume || '',
141
+ business_when_service_received: this.business_when_service_received || '',
142
+ business_recurring_payments: this.business_recurring_payments || '',
143
+ business_recurring_payments_percentage: this.business_recurring_payments_percentage || '',
144
+ business_seasonal: this.business_seasonal || '',
145
+ business_other_payment_details: this.business_other_payment_details || '',
146
+ };
85
147
  }
86
148
  }
87
149
  class CoreBusinessInfo {
@@ -96,10 +158,23 @@ class CoreBusinessInfo {
96
158
  this.phone = coreBusinessInfo.phone;
97
159
  this.date_of_incorporation = coreBusinessInfo.date_of_incorporation;
98
160
  }
161
+ get payload() {
162
+ return {
163
+ classification: this.classification || '',
164
+ legal_name: this.legal_name || '',
165
+ doing_business_as: this.doing_business_as || '',
166
+ industry: this.industry || '',
167
+ tax_id: this.tax_id || '',
168
+ website_url: this.website_url || '',
169
+ email: this.email || '',
170
+ phone: this.phone || '',
171
+ date_of_incorporation: this.date_of_incorporation || '',
172
+ };
173
+ }
99
174
  }
100
175
  class Business {
101
176
  constructor(business) {
102
- this.additional_questions = Object.assign({}, new AdditionalQuestions(business.additional_questions || {}));
177
+ this.additional_questions = new AdditionalQuestions(business.additional_questions || {});
103
178
  this.associated_accounts = business.associated_accounts;
104
179
  this.classification = business.classification;
105
180
  this.bank_accounts = business.bank_accounts;
@@ -109,20 +184,40 @@ class Business {
109
184
  this.email = business.email;
110
185
  this.id = business.id;
111
186
  this.industry = business.industry;
112
- this.legal_address = Object.assign({}, new Address(business.legal_address || {}));
187
+ this.legal_address = new Address(business.legal_address || {});
113
188
  this.legal_name = business.legal_name;
114
189
  this.metadata = business.metadata;
115
190
  this.owners = business.owners;
116
191
  this.phone = business.phone;
117
192
  this.platform_account_id = business.platform_account_id;
118
193
  this.product_categories = business.product_categories;
119
- this.representative = Object.assign({}, new Representative(business.representative || {}));
194
+ this.representative = new Representative(business.representative || {});
120
195
  this.tax_id = business.tax_id;
121
196
  this.terms_conditions_accepted = business.terms_conditions_accepted;
122
197
  this.updated_at = business.updated_at;
123
198
  this.website_url = business.website_url;
124
199
  this.date_of_incorporation = business.date_of_incorporation;
125
200
  }
201
+ get payload() {
202
+ return {
203
+ additional_questions: new AdditionalQuestions(this.additional_questions)
204
+ .payload,
205
+ classification: this.classification || '',
206
+ doing_business_as: this.doing_business_as || '',
207
+ email: this.email || '',
208
+ industry: this.industry || '',
209
+ legal_address: new Address(this.legal_address).payload,
210
+ legal_name: this.legal_name || '',
211
+ metadata: this.metadata || {},
212
+ owners: this.owners.map((owner) => ({ id: owner.id })),
213
+ phone: this.phone || '',
214
+ platform_account_id: this.platform_account_id || '',
215
+ representative: new Representative(this.representative).payload,
216
+ tax_id: this.tax_id || '',
217
+ website_url: this.website_url || '',
218
+ date_of_incorporation: this.date_of_incorporation || '',
219
+ };
220
+ }
126
221
  }
127
222
 
128
223
  exports.AdditionalQuestions = AdditionalQuestions;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const utils$1 = require('./utils-c1d2e426.js');
7
- const utils = require('./utils-89d86e29.js');
7
+ const utils = require('./utils-af1b60a9.js');
8
8
 
9
9
  const sharedBusinessDetailsCss$4 = ".flex-1{flex:1}";
10
10
  const AdditionalQuestionsDetailsStyle0 = sharedBusinessDetailsCss$4;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index_esm = require('./index.esm-52757963.js');
4
- const schemaValidations = require('./schema-validations-2733de42.js');
4
+ const schemaValidations = require('./schema-validations-0a7e46a3.js');
5
5
 
6
6
  const businessCoreInfoSchema = (allowOptionalFields) => {
7
7
  const schema = index_esm.create$3({
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const Business = require('./Business-aacbe893.js');
3
+ const Business = require('./Business-aa799fec.js');
4
4
 
5
5
  const businessClassificationOptions = [
6
6
  {
@@ -24,7 +24,7 @@ const businessClassificationOptions = [
24
24
  value: Business.BusinessClassification.public_company,
25
25
  },
26
26
  {
27
- label: 'Limited',
27
+ label: 'Limited Liability Company (LLC)',
28
28
  value: Business.BusinessClassification.limited,
29
29
  },
30
30
  {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index_esm = require('./index.esm-52757963.js');
4
- const schemaValidations = require('./schema-validations-2733de42.js');
4
+ const schemaValidations = require('./schema-validations-0a7e46a3.js');
5
5
 
6
6
  const addressSchema = (allowOptionalFields) => {
7
7
  const schema = index_esm.create$3({
@@ -47,51 +47,5 @@ const identitySchema = (role, allowOptionalFields) => {
47
47
  return allowOptionalFields ? easySchema : schema;
48
48
  };
49
49
 
50
- // These props should not be sent to the server
51
- // This function is for the larger business form.
52
- const parseBusiness = (values, initialValues) => {
53
- var _a;
54
- parseCoreInfo(values);
55
- parseAddressInfo(values.legal_address);
56
- parseIdentityInfo(values.representative);
57
- ((_a = initialValues.owners) === null || _a === void 0 ? void 0 : _a.length) && delete values.owners;
58
- return values;
59
- };
60
- // These functions are for the stepped business form.
61
- const parseCoreInfo = (values) => {
62
- delete values.id;
63
- delete values.documents;
64
- delete values.bank_accounts;
65
- delete values.product_categories;
66
- delete values.created_at;
67
- delete values.updated_at;
68
- delete values.associated_accounts;
69
- delete values.terms_conditions_accepted;
70
- return values;
71
- };
72
- const parseAddressInfo = (values) => {
73
- delete values.id;
74
- delete values.created_at;
75
- delete values.updated_at;
76
- return values;
77
- };
78
- const parseIdentityInfo = (values) => {
79
- delete values.id;
80
- delete values.documents;
81
- delete values.created_at;
82
- delete values.updated_at;
83
- delete values.address.id;
84
- delete values.address.created_at;
85
- delete values.address.updated_at;
86
- delete values.business_id;
87
- delete values.dob_full;
88
- delete values.ssn_last4;
89
- return values;
90
- };
91
-
92
50
  exports.addressSchema = addressSchema;
93
51
  exports.identitySchema = identitySchema;
94
- exports.parseAddressInfo = parseAddressInfo;
95
- exports.parseBusiness = parseBusiness;
96
- exports.parseCoreInfo = parseCoreInfo;
97
- exports.parseIdentityInfo = parseIdentityInfo;
@@ -1,29 +1,30 @@
1
1
  'use strict';
2
2
 
3
- const Api = require('./Api-3bc6e43f.js');
3
+ const config = require('./config-05767cba.js');
4
+ const Api = require('./Api-b98b256f.js');
4
5
 
5
6
  class BusinessService {
6
7
  async fetchBusiness(businessId, authToken) {
7
8
  const endpoint = `entities/business/${businessId}`;
8
- return Api.Api({ authToken, apiOrigin: "" }).get(endpoint);
9
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
9
10
  }
10
11
  async patchBusiness(authToken, businessId, payload) {
11
12
  const endpoint = `entities/business/${businessId}`;
12
- return Api.Api({ authToken, apiOrigin: "" }).patch(endpoint, payload);
13
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).patch(endpoint, payload);
13
14
  }
14
15
  }
15
16
  class IdentityService {
16
17
  async fetchIdentity(identityId, authToken) {
17
18
  const endpoint = `entities/identity/${identityId}`;
18
- return Api.Api({ authToken, apiOrigin: "" }).get(endpoint);
19
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
19
20
  }
20
21
  async patchIdentity(authToken, identityId, payload) {
21
22
  const endpoint = `entities/identity/${identityId}`;
22
- return Api.Api({ authToken, apiOrigin: "" }).patch(endpoint, payload);
23
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).patch(endpoint, payload);
23
24
  }
24
25
  async postIdentity(authToken, payload) {
25
26
  const endpoint = `entities/identity`;
26
- return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, payload);
27
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
27
28
  }
28
29
  }
29
30
 
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ const config = {
4
+ iframeOrigin: "https://components.justifi.ai/v1",
5
+ proxyApiOrigin: "https://wc-proxy.justifi.ai",
6
+ proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
7
+ exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
8
+ exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
9
+ examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
10
+ examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
11
+ privateApiOrigin: '',
12
+ privateAuthToken: '',
13
+ };
14
+
15
+ exports.config = config;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const businessFormOptions = require('./business-form-options-582467fe.js');
6
+ const businessFormOptions = require('./business-form-options-5db0bd5e.js');
7
7
  const formInputMasks = require('./form-input-masks-0879c139.js');
8
- const Business = require('./Business-aacbe893.js');
8
+ const Business = require('./Business-aa799fec.js');
9
9
  const helpers = require('./helpers-602962eb.js');
10
10
  const stateOptions = require('./state-options-4fbcb48a.js');
11
11
  const utils = require('./utils-ddacfc44.js');
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-cf545610.js');
6
+ const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-26b0eecb.js');
7
7
  const index_esm = require('./index.esm-52757963.js');
8
- const Business = require('./Business-aacbe893.js');
8
+ const Business = require('./Business-aa799fec.js');
9
9
  const formInputMasks = require('./form-input-masks-0879c139.js');
10
- const businessFormOptions = require('./business-form-options-582467fe.js');
11
- const payloadParsers = require('./payload-parsers-1cbc3b57.js');
12
- const utils = require('./utils-89d86e29.js');
13
- const utils$1 = require('./utils-ddacfc44.js');
14
- const schemaValidations = require('./schema-validations-2733de42.js');
10
+ const businessFormOptions = require('./business-form-options-5db0bd5e.js');
11
+ const utils = require('./utils-ddacfc44.js');
12
+ const schemaValidations = require('./schema-validations-0a7e46a3.js');
13
+ const utils$1 = require('./utils-af1b60a9.js');
15
14
  const businessFormTypes = require('./business-form-types-6e1fcda3.js');
16
15
  const button = require('./button-3f400a66.js');
16
+ const businessIdentitySchema = require('./business-identity-schema-503ecb77.js');
17
17
  const stateOptions = require('./state-options-4fbcb48a.js');
18
18
  require('./helpers-602962eb.js');
19
19
 
@@ -114,8 +114,8 @@ const AdditionalQuestionsFormStepCore = class {
114
114
  }
115
115
  ;
116
116
  get patchPayload() {
117
- let formValues = this.formController.values.getValue();
118
- return JSON.stringify({ additional_questions: formValues });
117
+ let formValues = new Business.AdditionalQuestions(this.formController.values.getValue()).payload;
118
+ return { additional_questions: formValues };
119
119
  }
120
120
  componentWillLoad() {
121
121
  this.getBusiness && this.getData();
@@ -129,7 +129,7 @@ const AdditionalQuestionsFormStepCore = class {
129
129
  render() {
130
130
  var _a, _b, _c, _d, _e, _f, _g;
131
131
  const additionalQuestionsDefaultValue = this.formController.getInitialValues();
132
- return (index.h("form", { key: 'f5a3d2826c65e84e90325000973c5cdc2922c643' }, index.h("fieldset", { key: '8dfecfc242e62ca523c3950b9f29e159ee8debc5' }, index.h("legend", { key: '192071e8d05c1d075ad79678890b47fe116577d2' }, "Additional Questions"), index.h("hr", { key: 'e2b7369711b4ba285522200233c5112ad5320a74' }), index.h("div", { key: '3ef5edae7215eb35835cfc6dd373c311ba7446a5', class: 'row gy-3' }, index.h("div", { key: '6af600e3612b03b505c0d2c1ddbfdb9520b9df9d', class: 'col-12 col-md-6' }, index.h("form-control-monetary", { key: '8afb46cdad6b2ceab63227bd6f659f7f8b2a9153', name: 'business_revenue', label: 'What is the business\u2019 estimated annual revenue from its primary business activities?', inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: formInputMasks.CURRENCY_MASK.WHOLE })), index.h("div", { key: 'ae94caaafd45e4c46899d802337ce0a3a8d5b3aa', class: 'col-12 col-md-6' }, index.h("form-control-monetary", { key: '6b86e3a15934a15ecfbf7a1ac369c8ed9ee2f6a4', name: 'business_payment_volume', label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: formInputMasks.CURRENCY_MASK.WHOLE })), index.h("div", { key: '4b8fe3214082368c111183fcb1b76abf2c1ba5a1', class: 'col-12' }, index.h("form-control-select", { key: '88e5c2593bc1b55a797e1d67e103759c5e2e29e8', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessFormOptions.businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), index.h("div", { key: 'a914e7114fd6fd4e44136ba8b986c20d1984dba8', class: 'col-12' }, index.h("form-control-select", { key: '38c9934952884a6d1dc70f4ebd61f03a87bd8091', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: businessFormOptions.recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), index.h("div", { key: '7a6d2a527e7486cff7dfa1d594e2f0378e66b583', class: 'col-12' }, index.h("form-control-text", { key: '6e445ff593a7970967040ae5bfd3b8056e17c129', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), index.h("div", { key: 'cf00fad8a096be8e28ef12bde563ead6f8b5ef6d', class: 'col-12' }, index.h("form-control-select", { key: '7cf9edd70b0ceaf25d2fd5947ecaf2760e76dd75', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: businessFormOptions.seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), index.h("div", { key: 'ceb6355fef7bae249330e0f39758be1812ff8cbe', class: 'col-12' }, index.h("form-control-text", { key: '689edc0fb02f926112c529301366e31d6d130aa6', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
132
+ return (index.h("form", { key: '275b193388d360ab6dacfb70ea9e06d68d68cbf8' }, index.h("fieldset", { key: '740ce0b08ad00efa1345f69cf977e64283307533' }, index.h("legend", { key: '7f531cdf699ad93234bbdd5d9336ee782e770597' }, "Additional Questions"), index.h("hr", { key: 'cb81b0b4dc9e6a52ff9bf70571a200fee50e8146' }), index.h("div", { key: '9100fdb4857a5a9a2b42f0188cfac075974afbeb', class: 'row gy-3' }, index.h("div", { key: 'ee0885251b8e49cb33359a42897097552e9d0ff9', class: 'col-12 col-md-6' }, index.h("form-control-monetary", { key: '555b00e0b6728dca26a42813991f35dec41e2577', name: 'business_revenue', label: 'What is the business\u2019 estimated annual revenue from its primary business activities?', inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: formInputMasks.CURRENCY_MASK.WHOLE })), index.h("div", { key: '689ecc46bffe9cfe7190428e191802332485f139', class: 'col-12 col-md-6' }, index.h("form-control-monetary", { key: '19a4269b31af12f9e07655c9dc0d9db1de46caa2', name: 'business_payment_volume', label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: formInputMasks.CURRENCY_MASK.WHOLE })), index.h("div", { key: 'f6eebbdd589cf4eb506d3d94502a027e639889d9', class: 'col-12' }, index.h("form-control-select", { key: '112bb7ee88335d9b8e8f9300ff190f164b750b39', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessFormOptions.businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), index.h("div", { key: '49864b5aeca86d221cc12690e2f9976fe9ee86ef', class: 'col-12' }, index.h("form-control-select", { key: 'a07159d8e7e49b9b1df5bcf2dcede994d0059595', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: businessFormOptions.recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), index.h("div", { key: '3a03321d7dd9202c290443d756105bb2565a3e55', class: 'col-12' }, index.h("form-control-text", { key: '319a5fcb7ac6e975c41cfd5b19d5de0e98504f5d', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), index.h("div", { key: 'e108f26d04e7f9510f89ab09daab53e86f5c30e1', class: 'col-12' }, index.h("form-control-select", { key: '45fb9296592415ddb947b55e3c7c73d198b96fac', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: businessFormOptions.seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), index.h("div", { key: '0b40ac8429c07279acb3d360124853a608a01664', class: 'col-12' }, index.h("form-control-text", { key: '880e00acdfa51f95b643f1ecc8d6fccba1167e6c', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
133
133
  }
134
134
  };
135
135
 
@@ -195,8 +195,8 @@ const BusinessCoreInfoFormStepCore = class {
195
195
  }
196
196
  ;
197
197
  get patchPayload() {
198
- let formValues = payloadParsers.parseCoreInfo(utils.flattenNestedObject(this.formController.values.getValue()));
199
- return JSON.stringify(formValues);
198
+ let formValues = new Business.CoreBusinessInfo(this.formController.values.getValue()).payload;
199
+ return formValues;
200
200
  }
201
201
  componentWillLoad() {
202
202
  this.getBusiness && this.getData();
@@ -209,7 +209,7 @@ const BusinessCoreInfoFormStepCore = class {
209
209
  }
210
210
  render() {
211
211
  const coreInfoDefaultValue = this.formController.getInitialValues();
212
- return (index.h("form", { key: 'c91c42a7b3d48789f2304f6f3e7b9cab228e7e86' }, index.h("fieldset", { key: '159f23468da4ed60e89be108c3640c3e4f19a32a' }, index.h("legend", { key: '7666498459afce82b88114c880dba4f697ec422e' }, "General Info"), index.h("hr", { key: 'f9d253d811ba1f9b7438888f5c2e9813fb6371a9' }), index.h("div", { key: '9bc73f86956d81ed4028cabb4ec083e7524ad973', class: 'row gy-3' }, index.h("div", { key: '86bc9d41f88ee46e727a11b6371ecdb7d9dac6f3', class: 'col-12' }, index.h("form-control-text", { key: '2f470cdd65f25993a2671f1ab1938a214acfa625', name: 'legal_name', label: 'Legal Name', defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), index.h("div", { key: '38af9153a77c6f121a2f1af626a325a525b8be36', class: 'col-12' }, index.h("form-control-text", { key: '5912ab4555f9522f973ef67240249fb44e89bcab', name: 'doing_business_as', label: 'Doing Business As (DBA)', defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), index.h("div", { key: 'a48d44f28b473c3873aa16468a01f45f46e99c5e', class: 'col-12 col-md-8' }, index.h("form-control-select", { key: '7fa00ac1122a43fd1645dd81c6d9fbaf6b10131d', name: 'classification', label: 'Business Classification', options: businessFormOptions.businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), index.h("div", { key: 'cd4e235392581af33d79d0eeb7a950fe51291bb4', class: 'col-12 col-md-4' }, index.h("form-control-date", { key: '43f65e71b7ea53fb82f8a97d4160b3df9b1ceacf', name: 'date_of_incorporation', label: 'Date of Incorporation', defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), index.h("div", { key: '37ba3bc3731eec0281ab6c4ae942649ac25e4eba', class: 'col-12 col-md-6' }, index.h("form-control-text", { key: 'b48172d98fd70130fe60c47f31b077e8644ed2e7', name: 'industry', label: 'Industry', defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), index.h("div", { key: '3212bfe272b22b896ef6602f639b2779ace36857', class: 'col-12 col-md-6' }, index.h("form-control-text", { key: '523a2e4b1df12723e936f224ad1518d657acc38e', name: 'tax_id', label: 'Tax ID (EIN or SSN)', defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: utils$1.numberOnlyHandler, maxLength: 9 })), index.h("div", { key: '4018cec1595a3c2b92d92faaec10c6c917364721', class: 'col-12' }, index.h("form-control-text", { key: 'f5dfb03af25b7eeeb1720191acff2fff510b8114', name: 'website_url', label: 'Website URL', defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), index.h("div", { key: '3dbe9c55e93c35b68d6783f4dd73dab45970289b', class: 'col-12 col-md-6' }, index.h("form-control-text", { key: '5de21e1a7c0647b4fe6e66b51a32288c96ae82a7', name: 'email', label: 'Email Address', defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), index.h("div", { key: '93c06e619ea76c69eb7723c3d050edfb0539635d', class: 'col-12 col-md-6' }, index.h("form-control-number-masked", { key: '4dc5a4ee1bb04075ee20d58e87fec1711b0683a8', name: 'phone', label: 'Phone Number', defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: formInputMasks.PHONE_MASKS.US }))))));
212
+ return (index.h("form", { key: 'ab0ae9821e19c2a2d1e87ce16b23cfe56bafb31b' }, index.h("fieldset", { key: 'eec949b50436218cee02c6410c34959a6b10ebf8' }, index.h("legend", { key: '34b37dddcb967275ddd3d561dd2931b74103c0ce' }, "General Info"), index.h("hr", { key: 'af37f3171790265c3b7d22d2328c31842c5a12ea' }), index.h("div", { key: 'ba4780eec04a8b34f644895913e99ea49c587f81', class: 'row gy-3' }, index.h("div", { key: '8109ee7485afc5a5ee3e38c947ef9387cab5daa4', class: 'col-12' }, index.h("form-control-text", { key: '885bc9f67fc4738cb5abc6165bf1f6f5b3382a90', name: 'legal_name', label: 'Legal Name', defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), index.h("div", { key: '453b4e25b812015a50f72e76159111818d0065f5', class: 'col-12' }, index.h("form-control-text", { key: 'a63ec6c1e936ab1104b92e6fdd5f6a350559009c', name: 'doing_business_as', label: 'Doing Business As (DBA)', defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), index.h("div", { key: '8a39b25c7d9c414569e22e73a98d7b136b0623dd', class: 'col-12 col-md-8' }, index.h("form-control-select", { key: '41d6d3a45431953746e86a5aea6ebb0a39674009', name: 'classification', label: 'Business Classification', options: businessFormOptions.businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), index.h("div", { key: 'd98e5f2ee6e7d3ddc23ba5501db4f698cc88ba40', class: 'col-12 col-md-4' }, index.h("form-control-date", { key: '4ea36622261e3a649b934700ee676c062789c519', name: 'date_of_incorporation', label: 'Date of Incorporation', defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), index.h("div", { key: '8617887e16cbc3a40b0c1ab56597d7098c7ac62f', class: 'col-12 col-md-6' }, index.h("form-control-text", { key: '9357ddb686194100fe705111bbc965c2956dddb4', name: 'industry', label: 'Industry', defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), index.h("div", { key: '968b0f492f354279736b531295a1e4813a5de0b0', class: 'col-12 col-md-6' }, index.h("form-control-text", { key: 'd082445d9f876794e525839fb35457f114e89dac', name: 'tax_id', label: 'Tax ID (EIN or SSN)', defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, maxLength: 9 })), index.h("div", { key: 'a0e041bb3fa323e378d2b9730dd9055c9ecf1dfc', class: 'col-12' }, index.h("form-control-text", { key: '4994efe8c6cb5faf84accd0f2965b508d084144e', name: 'website_url', label: 'Website URL', defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), index.h("div", { key: '0f7f1548e704095aaef9d4fccd7c81284ff7bbed', class: 'col-12 col-md-6' }, index.h("form-control-text", { key: 'e1cffd24b03e5e3655649b68900c74fcc89513c5', name: 'email', label: 'Email Address', defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), index.h("div", { key: '1732635477c58d1f57aa5b8dc0c560ae0c215501', class: 'col-12 col-md-6' }, index.h("form-control-number-masked", { key: '04979d08463efc69557b782fda772702935349a7', name: 'phone', label: 'Phone Number', defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: formInputMasks.PHONE_MASKS.US }))))));
213
213
  }
214
214
  };
215
215
 
@@ -281,7 +281,7 @@ const BusinessDocumentUploadInputGroup = class {
281
281
  }
282
282
  getInputGroup() {
283
283
  let volume = parseInt(this.paymentVolume);
284
- if (utils.isInRange(volume, 250000, 999999)) {
284
+ if (utils$1.isInRange(volume, 250000, 999999)) {
285
285
  this.inputConfigs.unshift(inputConfigurations.bankStatements);
286
286
  }
287
287
  else if (volume >= 1000000) {
@@ -309,7 +309,7 @@ const BusinessDocumentsOnFile = class {
309
309
  }
310
310
  return (index.h("div", null, index.h("div", { class: 'card' }, index.h("div", { class: 'card-body' }, index.h("h5", { class: 'card-title' }, "Documents Already on File"), index.h("div", { class: 'table-responsive' }, index.h("table", { class: 'table table-sm table-borderless' }, index.h("thead", { part: "table-head" }, index.h("tr", { part: 'table-head-row' }, index.h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "File Name"), index.h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "File Type"), index.h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "Document Type"), index.h("th", { style: { width: '25%' }, part: "table-head-cell", scope: 'col' }, "Date Uploaded"))), index.h("tbody", { part: 'table-body' }, this.documents.sort((a, b) => a.document_type.localeCompare(b.document_type))
311
311
  .map((document, index$1) => {
312
- return (index.h("tr", { class: index$1 === 0 ? 'border-bottom border-top' : 'border-bottom' }, index.h("td", { part: "table-cell" }, document.file_name), index.h("td", { part: "table-cell" }, document.file_type), index.h("td", { part: "table-cell" }, utils.snakeCaseToHumanReadable(document.document_type)), index.h("td", { part: "table-cell" }, `${utils.formatDate(document.created_at)} - ${utils.formatTimeSeconds(document.created_at)}`)));
312
+ return (index.h("tr", { class: index$1 === 0 ? 'border-bottom border-top' : 'border-bottom' }, index.h("td", { part: "table-cell" }, document.file_name), index.h("td", { part: "table-cell" }, document.file_type), index.h("td", { part: "table-cell" }, utils$1.snakeCaseToHumanReadable(document.document_type)), index.h("td", { part: "table-cell" }, `${utils$1.formatDate(document.created_at)} - ${utils$1.formatTimeSeconds(document.created_at)}`)));
313
313
  })))))), index.h("hr", null)));
314
314
  }
315
315
  };
@@ -355,7 +355,7 @@ const BusinessOwnersFormStepCore = class {
355
355
  let submittedData;
356
356
  this.formLoading.emit(true);
357
357
  this.patchBusiness({
358
- payload: JSON.stringify({ owners: this.ownersPayload }),
358
+ payload: { owners: this.ownersPayload },
359
359
  onSuccess: (response) => {
360
360
  submittedData = response;
361
361
  onSuccess();
@@ -429,9 +429,9 @@ const BusinessOwnersFormStepCore = class {
429
429
  this.ownersPayload = updatedOwners;
430
430
  }
431
431
  render() {
432
- return (index.h("div", { key: '5958d46ae5bc3abb7a82f5c67c597be46898284e' }, index.h("legend", { key: 'e10085a37e93b96901187e0a926127167ca6dbc5' }, "Owners"), index.h("hr", { key: 'eb7f84185271c80b87397e49f2ee5c6e20faad99' }), index.h("div", { key: '0f791f3d3f6c7f6aa363004d0618bd90e16f185b', class: 'row gy-3' }, this.ownersPayload.map((owner) => {
432
+ return (index.h("div", { key: 'f2358952d2d28841fb8e6bc66e9846eb2cdcc97e' }, index.h("legend", { key: 'ab3f7e6758cc50760681a9fdd07f8e137da65980' }, "Owners"), index.h("hr", { key: '57828746f9991da89e77a1f96b51f6df2d33d666' }), index.h("div", { key: '4f7f58bf1b5d40079228eef118946e17b407db63', class: 'row gy-3' }, this.ownersPayload.map((owner) => {
433
433
  return (index.h("justifi-owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
434
- })), index.h("div", { key: 'd1f6414e9213d9600eaea7e9c1e033d250f8e49a', class: 'd-flex justify-content-start' }, index.h("div", { key: 'fd96248f6dddfa0d973744d11e3f1f121353e398', class: 'gap-2' }, index.h(button.Button, { key: '514e549632c8f11b4b51c061949b026734ae0113', variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
434
+ })), index.h("div", { key: '88dad43cc24d7c1e1220acb6b7791c2172074d61', class: 'd-flex justify-content-start' }, index.h("div", { key: '9359481d78e5c3ba9599d2fce5837c5fdfe1d6f0', class: 'gap-2' }, index.h(button.Button, { key: '04ee1c49c34567b079432df8fb2b1b298fb7d7a3', variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
435
435
  }
436
436
  static get watchers() { return {
437
437
  "ownersPayload": ["ownersWatcher"]
@@ -495,12 +495,12 @@ const BusinessRepresentativeFormStepCore = class {
495
495
  this.formController.validateAndSubmit(() => this.sendData(onSuccess));
496
496
  }
497
497
  get patchPayload() {
498
- let formValues = payloadParsers.parseIdentityInfo(this.formController.values.getValue());
499
- return JSON.stringify({ representative: formValues });
498
+ let formValues = new Business.Representative(this.formController.values.getValue()).payload;
499
+ return { representative: formValues };
500
500
  }
501
501
  componentWillLoad() {
502
502
  this.getBusiness && this.getData();
503
- this.formController = new index_esm.FormController(payloadParsers.identitySchema('representative', this.allowOptionalFields));
503
+ this.formController = new index_esm.FormController(businessIdentitySchema.identitySchema('representative', this.allowOptionalFields));
504
504
  }
505
505
  componentDidLoad() {
506
506
  this.formController.errors.subscribe(errors => {
@@ -508,7 +508,7 @@ const BusinessRepresentativeFormStepCore = class {
508
508
  });
509
509
  }
510
510
  render() {
511
- return (index.h("justifi-business-representative-form-inputs", { key: 'bfe9944ea9fc78fda577944f2c968ab9decf7f00', representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
511
+ return (index.h("justifi-business-representative-form-inputs", { key: '855736c2c1565b0b9e2cf57131a72298ccc889d5', representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
512
512
  }
513
513
  };
514
514
 
@@ -586,12 +586,12 @@ const LegalAddressFormStepCore = class {
586
586
  }
587
587
  ;
588
588
  get patchPayload() {
589
- let formValues = payloadParsers.parseAddressInfo(this.formController.values.getValue());
590
- return JSON.stringify({ legal_address: formValues });
589
+ let formValues = new Business.Address(this.formController.values.getValue()).payload;
590
+ return { legal_address: formValues };
591
591
  }
592
592
  componentWillLoad() {
593
593
  this.getBusiness && this.getData();
594
- this.formController = new index_esm.FormController(payloadParsers.addressSchema(this.allowOptionalFields));
594
+ this.formController = new index_esm.FormController(businessIdentitySchema.addressSchema(this.allowOptionalFields));
595
595
  }
596
596
  componentDidLoad() {
597
597
  this.formController.errors.subscribe(errors => {
@@ -601,7 +601,7 @@ const LegalAddressFormStepCore = class {
601
601
  render() {
602
602
  var _a, _b, _c, _d, _e, _f;
603
603
  const legalAddressDefaultValue = this.formController.getInitialValues();
604
- return (index.h("form", { key: 'ef8d88ebced702b5a0b89eaddb22320f24e7081f' }, index.h("fieldset", { key: '9f70633b36559e6f8de8d67f39a19df365116bcd' }, index.h("legend", { key: '6b6b0e42fd0f00a28d24bf9d1e4818e54264ff96' }, "Business Legal Address"), index.h("hr", { key: '8b7b1a9f0f9448c4fd3b918f20e7b51337d3e5ee' }), index.h("div", { key: 'f45b643ec057356d9a6e04a19829c562ec521bd2', class: 'row gy-3' }, index.h("div", { key: 'f115c4e4163126d2d8c998c8de775821e7fc0e65', class: 'col-12' }, index.h("form-control-text", { key: '066a1ea25ef086dda05e32cde738e7e77dcbb322', name: 'line1', label: 'Legal Address', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), index.h("div", { key: 'e8432ea00cd5da5b08cc97efe8f3a9817a14b5b1', class: 'col-12' }, index.h("form-control-text", { key: '099ab7197940d5de8869682cbda41dc0d6ee0e1d', name: 'line2', label: 'Address Line 2', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), index.h("div", { key: '9514757f732d6a445e48eb85d3654f79cf2320db', class: 'col-12' }, index.h("form-control-text", { key: '37db927ef6c735699a4954ad51d43f4666eea9a0', name: 'city', label: 'City', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), index.h("div", { key: 'f3c82def0d67fcc0d7e4ca03e80afc166a36ffbb', class: 'col-12' }, index.h("form-control-select", { key: 'cbcfafe876997e0f9181cf117eeaf465ca424c68', name: 'state', label: 'State', options: stateOptions.StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), index.h("div", { key: '4f32ffbe520d1fbe2406d41e7fb76a9f0f450299', class: 'col-12' }, index.h("form-control-text", { key: '5a2fcc4726b543e8ef6c5456e965cc479d91ce4e', name: 'postal_code', label: 'Postal Code', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: utils$1.numberOnlyHandler })), index.h("div", { key: 'd4bdbfa4d3999bae59b812e84394bb4c0974d6b3', class: 'col-12' }, index.h("form-control-select", { key: '95eec216f50d119016c7627074bf29b9a21b1cd1', name: 'country', label: 'Country', options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
604
+ return (index.h("form", { key: '5a95fe5a130deded7e160e6fe4ba1d09e6a6aabc' }, index.h("fieldset", { key: '2011fac5c860b7beee5eaac28e697b284067f2e6' }, index.h("legend", { key: 'dbe411d80d10a71bc63f18fcdb58a40b124e8eaf' }, "Business Legal Address"), index.h("hr", { key: '4a91dd5e67e5770778d2dd59716e1e532d644ee9' }), index.h("div", { key: 'cd53516a98498ab82ab347a1f7c836be262b9fdb', class: 'row gy-3' }, index.h("div", { key: '14cd5fee5661681ccff95eabf8cd6f2d4cff2296', class: 'col-12' }, index.h("form-control-text", { key: 'e4b0a5e30fc1a35e5127a76710211874fb68898b', name: 'line1', label: 'Legal Address', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), index.h("div", { key: '2c35da509732e73e2abb4365d6d9e2056d7ce771', class: 'col-12' }, index.h("form-control-text", { key: 'c8ae2a5c75d0fe8c5ddd46d9150590b8a4f99a5e', name: 'line2', label: 'Address Line 2', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), index.h("div", { key: '07649ebd5a848eee63398965c30e8e30fcc88354', class: 'col-12' }, index.h("form-control-text", { key: 'cb25047c3458124f7d837b7948e807214f1a0a0a', name: 'city', label: 'City', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), index.h("div", { key: 'ce3ddc5f3639503dbc02668aea7139ffff376545', class: 'col-12' }, index.h("form-control-select", { key: '00d18b4af1f415828b40404888a6c69d0611d0cc', name: 'state', label: 'State', options: stateOptions.StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), index.h("div", { key: '1988bd739af107d9595f6fed897f257da13ac997', class: 'col-12' }, index.h("form-control-text", { key: '55144c39845d4cc36704170b73458f761f311d00', name: 'postal_code', label: 'Postal Code', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: utils.numberOnlyHandler })), index.h("div", { key: 'cccba799a75280693f461f390121b13006877f35', class: 'col-12' }, index.h("form-control-select", { key: 'e49b21a781280fb2e9cc9f6b88ddcc6d7408c5f8', name: 'country', label: 'Country', options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
605
605
  // just for now so we skip handling country specificities
606
606
  disabled: true }))))));
607
607
  }
@@ -1,25 +1,26 @@
1
1
  'use strict';
2
2
 
3
- const Api = require('./Api-3bc6e43f.js');
3
+ const Api = require('./Api-b98b256f.js');
4
4
  require('./Pagination-0da8f095.js');
5
5
  require('./Payment-1a8a8ca6.js');
6
6
  require('./Payout-a2dd7b01.js');
7
+ const config = require('./config-05767cba.js');
7
8
  const ComponentError = require('./ComponentError-233ac749.js');
8
9
  const utils = require('./utils-7a478c37.js');
9
10
 
10
11
  class PayoutService {
11
12
  async fetchPayouts(accountId, authToken, params) {
12
- const api = Api.Api({ authToken, apiOrigin: "" });
13
+ const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
13
14
  const endpoint = `account/${accountId}/payouts`;
14
15
  return api.get(endpoint, params);
15
16
  }
16
17
  async fetchPayout(payoutId, authToken) {
17
- const api = Api.Api({ authToken, apiOrigin: "" });
18
+ const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
18
19
  const endpoint = `payouts/${payoutId}`;
19
20
  return api.get(endpoint);
20
21
  }
21
22
  async fetchCSV(payoutId, authToken) {
22
- const api = Api.Api({ authToken, apiOrigin: "" });
23
+ const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
23
24
  const endpoint = `reports/payouts/${payoutId}`;
24
25
  return api.get(endpoint);
25
26
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const utils = require('./utils-89d86e29.js');
6
+ const utils = require('./utils-af1b60a9.js');
7
7
  const utils$1 = require('./utils-c1d2e426.js');
8
8
 
9
9
  /*!