@justifi/webcomponents 5.7.1 → 5.7.2

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 (296) hide show
  1. package/dist/cjs/{Api-C8nf_gS9.js → Api-Dp4CW5K6.js} +1 -1
  2. package/dist/cjs/{Business-DyiDiIuO.js → Business-DCRzZf0w.js} +3 -1
  3. package/dist/cjs/{Checkout-RAGvjVPj.js → Checkout-TZnRz3-3.js} +1 -1
  4. package/dist/cjs/{Document-CL5Zc72Q.js → Document-Qt0qiXeh.js} +1 -1
  5. package/dist/cjs/{Refund-CYxocU06.js → Refund-BDFOEJv_.js} +1 -1
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +12 -13
  7. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
  8. package/dist/cjs/bank-account-form_9.cjs.entry.js +26 -15
  9. package/dist/cjs/{business-additional-questions-schema-DR8vt11M.js → business-additional-questions-schema-JlysTRE3.js} +1 -1
  10. package/dist/cjs/business-details-core.cjs.entry.js +1 -2
  11. package/dist/cjs/{business-form-options-BCj0efiD.js → business-form-options-CMII7nIK.js} +1 -1
  12. package/dist/cjs/{business-identity-schema-BYaCsboD.js → business-identity-schema-BksYFWls.js} +1 -1
  13. package/dist/cjs/{business.service-C2rg_zSw.js → business.service-DMIMZpx4.js} +5 -5
  14. package/dist/cjs/{check-pkg-version-BqC8BOhm.js → check-pkg-version-hqYwYpQq.js} +6 -6
  15. package/dist/cjs/{checkout.service-CyvIIMeq.js → checkout.service-DKH8NODe.js} +5 -5
  16. package/dist/cjs/checkouts-list-core.cjs.entry.js +6 -6
  17. package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-Cj2iSB_P.js} +1 -1
  18. package/dist/cjs/{dispute.service-CKPR1vFS.js → dispute.service-8j6tLV4i.js} +5 -5
  19. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  21. package/dist/cjs/{get-business-DHg5rpse.js → get-business-BJrtsomz.js} +1 -1
  22. package/dist/cjs/{get-payment-details-C9HqIv-M.js → get-payment-details-MM1u5jMc.js} +5 -5
  23. package/dist/cjs/{get-subaccounts-BNpIanJ9.js → get-subaccounts-CkjWYxIU.js} +6 -6
  24. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  25. package/dist/cjs/iframe-input.cjs.entry.js +1 -1
  26. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +9 -9
  27. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -9
  28. package/dist/cjs/justifi-business-details.cjs.entry.js +17 -12
  29. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  30. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  31. package/dist/cjs/justifi-checkout.cjs.entry.js +9 -9
  32. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -5
  33. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  34. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  35. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
  36. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -9
  37. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  38. package/dist/cjs/justifi-order-terminals.cjs.entry.js +11 -11
  39. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
  40. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  41. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +9 -9
  43. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
  46. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +9 -9
  47. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
  48. package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -11
  49. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
  52. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  53. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
  54. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
  55. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  56. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +10 -11
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/{package-Biee4Hdo.js → package-BCOEGxFC.js} +1 -1
  59. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  60. package/dist/cjs/{payment.service-C996aLGw.js → payment.service-CCxGhTwZ.js} +5 -5
  61. package/dist/cjs/payments-list-core.cjs.entry.js +6 -6
  62. package/dist/cjs/{payments-table-BkRhDePE.js → payments-table-BR97ybd6.js} +1 -1
  63. package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
  64. package/dist/cjs/{payout.service-BwKgEbDo.js → payout.service-CtphIhUK.js} +5 -5
  65. package/dist/cjs/payouts-list-core.cjs.entry.js +6 -6
  66. package/dist/cjs/{payouts-table-DJMz3bVh.js → payouts-table-DMcQiC1g.js} +1 -1
  67. package/dist/cjs/{schema-validations-Bhz09M42.js → schema-validations-BUor-ySb.js} +6 -7
  68. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +6 -6
  69. package/dist/cjs/{terminal-orders-table-CxY1ykZ7.js → terminal-orders-table-D-CLcZws.js} +5 -5
  70. package/dist/cjs/{terminal.service-D7dxg9ZQ.js → terminal.service-Dv_WJkue.js} +5 -5
  71. package/dist/cjs/terminals-list-core.cjs.entry.js +6 -6
  72. package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-BEJ6sF7w.js} +1 -1
  73. package/dist/cjs/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
  74. package/dist/cjs/webcomponents.cjs.js +1 -1
  75. package/dist/collection/api/Business.js +3 -1
  76. package/dist/collection/collection-manifest.json +1 -1
  77. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
  78. package/dist/collection/components/business-details/business-details-core.js +1 -2
  79. package/dist/collection/components/business-details/business-details.js +10 -3
  80. package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
  81. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
  82. package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
  83. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  84. package/dist/collection/components/business-forms/schemas/schema-validations.js +6 -7
  85. package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
  86. package/dist/collection/components/checkout/new-payment-method.js +17 -6
  87. package/dist/collection/components/checkout/payment-method-options.js +4 -5
  88. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +4 -5
  89. package/dist/collection/ui-components/details/details.js +2 -2
  90. package/dist/collection/utils/utils.js +3 -0
  91. package/dist/docs.json +84 -77
  92. package/dist/esm/{Api-KYhsw8Nv.js → Api-cgKcLG0y.js} +1 -1
  93. package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
  94. package/dist/esm/{Checkout-Dfpql997.js → Checkout-B9LrTq63.js} +1 -1
  95. package/dist/esm/{Document-cNXrKmGy.js → Document-DvWsQBM6.js} +1 -1
  96. package/dist/esm/{Refund-2YJqP9qX.js → Refund-zZewCvey.js} +1 -1
  97. package/dist/esm/additional-questions-details_5.entry.js +12 -13
  98. package/dist/esm/bank-account-document-form-inputs_4.entry.js +6 -6
  99. package/dist/esm/bank-account-form_9.entry.js +26 -15
  100. package/dist/esm/{business-additional-questions-schema-GpN_koGK.js → business-additional-questions-schema-CBUm3D7O.js} +1 -1
  101. package/dist/esm/business-details-core.entry.js +1 -2
  102. package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
  103. package/dist/esm/{business-identity-schema-BjuQ6ajL.js → business-identity-schema-CntGz8jo.js} +1 -1
  104. package/dist/esm/{business.service-ClD_YDeT.js → business.service-BWivPbyO.js} +5 -5
  105. package/dist/esm/{check-pkg-version-DxnKX9GQ.js → check-pkg-version-BykGn7tx.js} +6 -6
  106. package/dist/esm/{checkout.service-DfzkmIe4.js → checkout.service-Bh-Q24Cr.js} +5 -5
  107. package/dist/esm/checkouts-list-core.entry.js +6 -6
  108. package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-DcVkD83l.js} +1 -1
  109. package/dist/esm/{dispute.service-BTOWqnmk.js → dispute.service-1AYcALSg.js} +5 -5
  110. package/dist/esm/form-alert_5.entry.js +2 -2
  111. package/dist/esm/form-control-monetary.entry.js +1 -1
  112. package/dist/esm/{get-business-CIKToQur.js → get-business-GEPTefIj.js} +1 -1
  113. package/dist/esm/{get-payment-details-D-prcfRc.js → get-payment-details-DXhXxFPr.js} +5 -5
  114. package/dist/esm/{get-subaccounts-B0uEyOp_.js → get-subaccounts-CtHj1UM6.js} +6 -6
  115. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  116. package/dist/esm/iframe-input.entry.js +1 -1
  117. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +9 -9
  118. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
  119. package/dist/esm/justifi-business-details.entry.js +18 -13
  120. package/dist/esm/justifi-business-form.entry.js +13 -13
  121. package/dist/esm/justifi-checkout-core.entry.js +2 -2
  122. package/dist/esm/justifi-checkout.entry.js +9 -9
  123. package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
  124. package/dist/esm/justifi-checkouts-list.entry.js +11 -11
  125. package/dist/esm/justifi-details.entry.js +2 -2
  126. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  127. package/dist/esm/justifi-dispute-notification_3.entry.js +9 -9
  128. package/dist/esm/justifi-gross-payment-chart.entry.js +8 -8
  129. package/dist/esm/justifi-order-terminals.entry.js +11 -11
  130. package/dist/esm/justifi-owner-form_3.entry.js +10 -10
  131. package/dist/esm/justifi-payment-details.entry.js +10 -10
  132. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  133. package/dist/esm/justifi-payment-transactions-list.entry.js +9 -9
  134. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  135. package/dist/esm/justifi-payments-list.entry.js +10 -10
  136. package/dist/esm/justifi-payout-details.entry.js +9 -9
  137. package/dist/esm/justifi-payout-transactions-list.entry.js +9 -9
  138. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  139. package/dist/esm/justifi-payouts-list.entry.js +11 -11
  140. package/dist/esm/justifi-refund-payment.entry.js +10 -10
  141. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
  142. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
  143. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  144. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -9
  145. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
  146. package/dist/esm/justifi-terminals-list.entry.js +11 -11
  147. package/dist/esm/justifi-tokenize-payment-method.entry.js +10 -11
  148. package/dist/esm/loader.js +1 -1
  149. package/dist/esm/{package-DPiTQ9dr.js → package-BjMTOtI1.js} +1 -1
  150. package/dist/esm/payment-details-core.entry.js +1 -1
  151. package/dist/esm/{payment.service-CgwLo1_s.js → payment.service-2afJc31y.js} +5 -5
  152. package/dist/esm/payments-list-core.entry.js +6 -6
  153. package/dist/esm/{payments-table-BBf5fV74.js → payments-table-B8316Kqz.js} +1 -1
  154. package/dist/esm/payout-details-core.entry.js +1 -1
  155. package/dist/esm/{payout.service-DYFCNfLa.js → payout.service-Bd8Tc7-Q.js} +5 -5
  156. package/dist/esm/payouts-list-core.entry.js +6 -6
  157. package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-Ip10eH4Q.js} +1 -1
  158. package/dist/esm/{schema-validations-D9YNVLiI.js → schema-validations-C7D5tPzq.js} +6 -7
  159. package/dist/esm/terminal-orders-list-core.entry.js +6 -6
  160. package/dist/esm/{terminal-orders-table-BopP465z.js → terminal-orders-table-CCJT7oq4.js} +5 -5
  161. package/dist/esm/{terminal.service-f-whs_d4.js → terminal.service-8kwGru35.js} +5 -5
  162. package/dist/esm/terminals-list-core.entry.js +6 -6
  163. package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-cMkKUVff.js} +1 -1
  164. package/dist/esm/{utils-BWcTxbSg.js → utils-DB5fh6Iv.js} +3 -0
  165. package/dist/esm/webcomponents.js +1 -1
  166. package/dist/module/Business.js +3 -1
  167. package/dist/module/additional-questions-details2.js +3 -4
  168. package/dist/module/billing-form.js +4 -3
  169. package/dist/module/business-details-core2.js +11 -7
  170. package/dist/module/business-terms-conditions-form-step.js +2 -2
  171. package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
  172. package/dist/module/core-info-details.js +6 -0
  173. package/dist/module/core-info-details2.js +34 -0
  174. package/dist/module/details.js +2 -2
  175. package/dist/module/justifi-business-details.js +20 -9
  176. package/dist/module/justifi-tokenize-payment-method.js +2 -3
  177. package/dist/module/legal-address-details2.js +3 -3
  178. package/dist/module/new-payment-method.js +15 -4
  179. package/dist/module/package.js +1 -1
  180. package/dist/module/payment-method-options.js +2 -3
  181. package/dist/module/representative-details2.js +3 -3
  182. package/dist/module/schema-validations.js +4 -5
  183. package/dist/module/utils2.js +3 -0
  184. package/dist/types/components/business-details/business-details.d.ts +1 -0
  185. package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
  186. package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
  187. package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
  188. package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
  189. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  190. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -0
  191. package/dist/types/components.d.ts +21 -21
  192. package/dist/types/utils/utils.d.ts +1 -1
  193. package/dist/webcomponents/{p-40541e0c.entry.js → p-10d41e17.entry.js} +1 -1
  194. package/dist/webcomponents/{p-b2192f8b.entry.js → p-1678e9e3.entry.js} +1 -1
  195. package/dist/webcomponents/p-16d29d0b.entry.js +1 -0
  196. package/dist/webcomponents/p-292da2d4.entry.js +1 -0
  197. package/dist/webcomponents/p-2c7ae3ac.entry.js +1 -0
  198. package/dist/webcomponents/{p-44d8c2b1.entry.js → p-2c8d7aa9.entry.js} +1 -1
  199. package/dist/webcomponents/p-33b23638.entry.js +1 -0
  200. package/dist/webcomponents/{p-4749e0d0.entry.js → p-40f7e3af.entry.js} +1 -1
  201. package/dist/webcomponents/p-4680f931.entry.js +1 -0
  202. package/dist/webcomponents/{p-d1331dbb.entry.js → p-4a070b7a.entry.js} +1 -1
  203. package/dist/webcomponents/{p-916ea4fc.entry.js → p-4b51a896.entry.js} +1 -1
  204. package/dist/webcomponents/p-4f8b9b99.entry.js +1 -0
  205. package/dist/webcomponents/p-57c89023.entry.js +1 -0
  206. package/dist/webcomponents/{p-1a85f26f.entry.js → p-57fc593a.entry.js} +1 -1
  207. package/dist/webcomponents/p-5d81f36e.entry.js +1 -0
  208. package/dist/webcomponents/{p-43d6bbed.entry.js → p-5df5aa41.entry.js} +1 -1
  209. package/dist/webcomponents/{p-d9c70010.entry.js → p-70c498d4.entry.js} +1 -1
  210. package/dist/webcomponents/{p-947239a6.entry.js → p-722c5e42.entry.js} +1 -1
  211. package/dist/webcomponents/{p-d2dc6f22.entry.js → p-758ce5e5.entry.js} +4 -4
  212. package/dist/webcomponents/{p-f389c2aa.entry.js → p-77896e7b.entry.js} +1 -1
  213. package/dist/webcomponents/p-77ac321c.entry.js +1 -0
  214. package/dist/webcomponents/p-7d3cf734.entry.js +1 -0
  215. package/dist/webcomponents/{p-3abc8eab.entry.js → p-8183c2d1.entry.js} +1 -1
  216. package/dist/webcomponents/{p-f8b205f7.entry.js → p-8ad67f87.entry.js} +1 -1
  217. package/dist/webcomponents/{p-9105f700.entry.js → p-8c107267.entry.js} +1 -1
  218. package/dist/webcomponents/p-93df56e1.entry.js +1 -0
  219. package/dist/webcomponents/{p-BiPRf6d2.js → p-BR7flk4G.js} +1 -1
  220. package/dist/webcomponents/p-BjMTOtI1.js +1 -0
  221. package/dist/webcomponents/{p-BzPi8Ea_.js → p-Bk4gk-f7.js} +1 -1
  222. package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
  223. package/dist/webcomponents/{p-CpTwq2jw.js → p-BnE7qgLh.js} +1 -1
  224. package/dist/webcomponents/{p-d-_oUZor.js → p-C1sOJl-_.js} +1 -1
  225. package/dist/webcomponents/p-COcul8pX.js +1 -0
  226. package/dist/webcomponents/{p-CffckWWF.js → p-CaGOSFHG.js} +1 -1
  227. package/dist/webcomponents/p-Cm_0sqXz.js +1 -0
  228. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  229. package/dist/webcomponents/p-Cx60eQXT.js +1 -0
  230. package/dist/webcomponents/{p-OSmuQKbK.js → p-D2ZiLcDE.js} +1 -1
  231. package/dist/webcomponents/{p-vb3fTJEZ.js → p-DClC2nMO.js} +1 -1
  232. package/dist/webcomponents/p-DR89sFne.js +1 -0
  233. package/dist/webcomponents/{p-ByRPlUBS.js → p-DnB1x5JE.js} +1 -1
  234. package/dist/webcomponents/p-DvhDilDP.js +1 -0
  235. package/dist/webcomponents/{p-BjB_yKBJ.js → p-DzFysjCc.js} +1 -1
  236. package/dist/webcomponents/{p-DvHZ2jYI.js → p-HBDBB6lL.js} +1 -1
  237. package/dist/webcomponents/p-_pH3Hg4P.js +1 -0
  238. package/dist/webcomponents/{p-a4dd3835.entry.js → p-a0662195.entry.js} +1 -1
  239. package/dist/webcomponents/{p-82515f70.entry.js → p-a136ff22.entry.js} +1 -1
  240. package/dist/webcomponents/{p-2b8ac00a.entry.js → p-a33cfcfe.entry.js} +1 -1
  241. package/dist/webcomponents/{p-83154291.entry.js → p-a6722f44.entry.js} +1 -1
  242. package/dist/webcomponents/{p-24792e8e.entry.js → p-a8119fda.entry.js} +1 -1
  243. package/dist/webcomponents/{p-799000c1.entry.js → p-a94952f6.entry.js} +1 -1
  244. package/dist/webcomponents/p-abdae97a.entry.js +1 -0
  245. package/dist/webcomponents/p-af09b6ee.entry.js +1 -0
  246. package/dist/webcomponents/p-b0d3aab7.entry.js +1 -0
  247. package/dist/webcomponents/p-b1586aa2.entry.js +1 -0
  248. package/dist/webcomponents/{p-0deb6a38.entry.js → p-c01544c3.entry.js} +1 -1
  249. package/dist/webcomponents/{p-25ea4450.entry.js → p-c3c7be24.entry.js} +1 -1
  250. package/dist/webcomponents/{p-cab175e9.entry.js → p-c5628e09.entry.js} +1 -1
  251. package/dist/webcomponents/{p-af2c38f7.entry.js → p-c5b6b76f.entry.js} +1 -1
  252. package/dist/webcomponents/{p-ad85bd0d.entry.js → p-c6490254.entry.js} +1 -1
  253. package/dist/webcomponents/{p-C0UUR9CN.js → p-clwP6zk3.js} +1 -1
  254. package/dist/webcomponents/{p-3babed12.entry.js → p-d8b8b17c.entry.js} +1 -1
  255. package/dist/webcomponents/{p-54281359.entry.js → p-e2bfdba5.entry.js} +1 -1
  256. package/dist/webcomponents/p-e73fe424.entry.js +1 -0
  257. package/dist/webcomponents/{p-CCGhF18e.js → p-eHhqPyVW.js} +1 -1
  258. package/dist/webcomponents/{p-4ee0cd96.entry.js → p-f23d4fdb.entry.js} +1 -1
  259. package/dist/webcomponents/{p-4194214c.entry.js → p-ffd197c2.entry.js} +1 -1
  260. package/dist/webcomponents/p-gZGxqQgQ.js +1 -0
  261. package/dist/webcomponents/p-l3uWWMRW.js +1 -0
  262. package/dist/webcomponents/{p-ZE1NEnP3.js → p-r__elyG4.js} +1 -1
  263. package/dist/webcomponents/{p-82kiZkHt.js → p-uSM1EMk-.js} +1 -1
  264. package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
  265. package/dist/webcomponents/webcomponents.esm.js +1 -1
  266. package/package.json +1 -1
  267. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
  268. package/dist/module/generic-info-details.js +0 -6
  269. package/dist/module/generic-info-details2.js +0 -34
  270. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
  271. package/dist/webcomponents/p-0ab2f675.entry.js +0 -1
  272. package/dist/webcomponents/p-0b57ecc3.entry.js +0 -1
  273. package/dist/webcomponents/p-16adfe77.entry.js +0 -1
  274. package/dist/webcomponents/p-1b22572d.entry.js +0 -1
  275. package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
  276. package/dist/webcomponents/p-2adda453.entry.js +0 -1
  277. package/dist/webcomponents/p-2dbc4b19.entry.js +0 -1
  278. package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
  279. package/dist/webcomponents/p-84d27581.entry.js +0 -1
  280. package/dist/webcomponents/p-935fa555.entry.js +0 -1
  281. package/dist/webcomponents/p-BM5lviat.js +0 -1
  282. package/dist/webcomponents/p-BWJ7zamv.js +0 -1
  283. package/dist/webcomponents/p-BmWpHZ-Z.js +0 -1
  284. package/dist/webcomponents/p-D5Sh88BE.js +0 -1
  285. package/dist/webcomponents/p-DNt_pMGt.js +0 -1
  286. package/dist/webcomponents/p-DPiTQ9dr.js +0 -1
  287. package/dist/webcomponents/p-DZfxGQ1I.js +0 -1
  288. package/dist/webcomponents/p-DuBhW0xA.js +0 -1
  289. package/dist/webcomponents/p-M61ygz6l.js +0 -1
  290. package/dist/webcomponents/p-a46730eb.entry.js +0 -1
  291. package/dist/webcomponents/p-afa54e39.entry.js +0 -1
  292. package/dist/webcomponents/p-dd05cce1.entry.js +0 -1
  293. package/dist/webcomponents/p-e00aeb33.entry.js +0 -1
  294. package/dist/webcomponents/p-e1c5ee0a.entry.js +0 -1
  295. package/dist/webcomponents/p-ea8dd3e7.entry.js +0 -1
  296. package/dist/webcomponents/p-o_73WSki.js +0 -1
@@ -1,12 +1,12 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
3
3
  import { formatMediumDate, isEmptyObject } from "../../../utils/utils";
4
4
  export class JustifiRepresentativeDetails {
5
5
  render() {
6
6
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
7
- if (isEmptyObject(this.representative))
7
+ if (!this.representative || isEmptyObject(this.representative))
8
8
  return null;
9
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
9
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
10
10
  }
11
11
  static get is() { return "representative-details"; }
12
12
  static get properties() {
@@ -30,7 +30,7 @@ export class BusinessTermsConditionsFormStep {
30
30
  this.formLoading.emit(true);
31
31
  try {
32
32
  const payload = this.termsPayload;
33
- const response = await this.api.post({ endpoint: this.termsConditionsEndpoint, body: payload });
33
+ const response = await this.api.post({ endpoint: this.termsConditionsEndpoint, body: payload, authToken: this.authToken });
34
34
  this.handleResponse(response, onSuccess);
35
35
  }
36
36
  catch (error) {
@@ -108,7 +108,7 @@ export class BusinessTermsConditionsFormStep {
108
108
  return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
109
109
  }
110
110
  render() {
111
- return (h("form", { key: '6bba766ba11512058470225103aa2afff318ab99' }, h("fieldset", { key: '318755ea4fc772e61ac9f8318ccf95494f71bf73' }, h("legend", { key: 'e5a268e9be8ed0a69eb8eed23ffc742228218685', part: heading2 }, "Terms and Conditions"), h("hr", { key: '100eed0ad0c8e7a5c652640c337d899be6f2131a' }), h("div", { key: '08a878a7fe9cd7b8ccb2217932d5d3a3b53bb0c9' }, h("p", { key: 'a5b3ddc655c511187327028229a893f7ea06c7ca' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '5c021ef8a8bce686a615a7478a4312f842eb4248' }), h("div", { key: '6b3172972459d33e70e6bf4b8c2c9d93a843b7f4', class: "row-gy-3" }, h("div", { key: '1e99c4eab265b0b0f370a02ddf76b15d27db961c', class: "col-12" }, h("form-control-checkbox", { key: '4c974e3fd58f34000fa70d38d3da312f9bd1fe0d', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
111
+ return (h("form", { key: 'c1ca0ecd364a999e7525e9ac3da82e874a8784e8' }, h("fieldset", { key: 'a77178a38044c458d8dbd31a7e1aeb3f1a34c968' }, h("legend", { key: '7e933517fca8d54095466715bf1f0485625be74f', part: heading2 }, "Terms and Conditions"), h("hr", { key: '1c1da0b7378c51ad2be5efc0e51dedd3ed178c8f' }), h("div", { key: 'bc37aa5162dddc8ade4316b5f24deb1d4a4b6f86' }, h("p", { key: 'aef3d0c9186845e3f44b8e1906c405647f489b53' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '2a6a480916cc0c4bf35d96c96c3f0250e87149cb' }), h("div", { key: '2e3bed3a57bcb026152fcdc82debab0e667f8148', class: "row-gy-3" }, h("div", { key: '3243c1819e4e61921421467271b2a4d2a89e73d4', class: "col-12" }, h("form-control-checkbox", { key: '20b9b72809148ef390a6da7d9f5bc216436d34a5', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
112
112
  }
113
113
  static get is() { return "justifi-business-terms-conditions-form-step"; }
114
114
  static get properties() {
@@ -1,7 +1,7 @@
1
1
  import { mixed, string } from "yup";
2
2
  import StateOptions from "../../../utils/state-options";
3
- import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions } from "../utils/business-form-options";
4
- import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber } from "./schema-helpers";
3
+ import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions, } from "../utils/business-form-options";
4
+ import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber, } from "./schema-helpers";
5
5
  import { EntityDocumentType } from "../../../api/Document";
6
6
  // Common Validations
7
7
  export const emailValidation = string()
@@ -55,7 +55,7 @@ export const identityTitleValidation = string()
55
55
  .max(50, 'Title must be less than 50 characters')
56
56
  .transform(transformEmptyString);
57
57
  export const dobValidation = (role) => {
58
- return (string()
58
+ return string()
59
59
  .test('min', 'Enter a valid date', (value) => {
60
60
  const date = new Date(value);
61
61
  const minDate = new Date('1902-01-01');
@@ -67,7 +67,7 @@ export const dobValidation = (role) => {
67
67
  minAgeDate.setFullYear(minAgeDate.getFullYear() - 18);
68
68
  return date <= minAgeDate;
69
69
  })
70
- .transform(transformEmptyString));
70
+ .transform(transformEmptyString);
71
71
  };
72
72
  export const ssnValidation = string()
73
73
  .matches(ssnRegex, 'Enter valid SSN')
@@ -102,7 +102,7 @@ export const cityValidation = string()
102
102
  .max(50, 'City must be less than 50 characters')
103
103
  .transform(transformEmptyString);
104
104
  export const stateValidation = string()
105
- .oneOf(StateOptions.map((option) => option.value), 'Select state')
105
+ .oneOf(StateOptions.map((option) => option.value), 'Enter a 2-letter state abbreviation, such as CA')
106
106
  .transform(transformEmptyString);
107
107
  export const postalValidation = string()
108
108
  .matches(/^[0-9]{5}$/, 'Enter valid postal code')
@@ -130,8 +130,7 @@ export const recurringPaymentsPercentageValidation = string()
130
130
  export const seasonalBusinessValidation = string()
131
131
  .oneOf(seasonalBusinessOptions.map((option) => option.value), 'Select seasonal business')
132
132
  .transform(transformEmptyString);
133
- export const otherPaymentDetailsValidation = string()
134
- .transform(transformEmptyString);
133
+ export const otherPaymentDetailsValidation = string().transform(transformEmptyString);
135
134
  // Bank Account Validations
136
135
  export const bankNameValidation = string()
137
136
  .min(2, 'Name must be at least 2 characters')
@@ -35,13 +35,14 @@ export class BillingForm {
35
35
  this.formController.setInitialValues(fields);
36
36
  }
37
37
  async validate() {
38
- let isValid = await this.formController.validate();
39
- return { isValid: isValid };
38
+ const isValid = await this.formController.validate();
39
+ const errors = this.formController.errors.getValue();
40
+ return { isValid, errors };
40
41
  }
41
42
  render() {
42
43
  const billingFormDefaultValue = this.formController.getInitialValues();
43
44
  const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
44
- return (h(Host, { key: '0df4ecdee8c32874325b83dd79586c7449ce6d93' }, h("div", { key: '6d5b45f278a7c69a76fe0895036ab37b810d0262', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: 'bc8f57f42134859e28dd523500ef874101198076', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '908b8265b028caaa01314bc56bdbfe550b632b94' }, h("fieldset", { key: 'af3e34fca100b0e0c3f13ef3af3a88009859e277' }, this.legend && h("legend", { key: '15cfcc98681d4386afad33d68910f7732e88b9a9' }, this.legend), h("div", { key: 'de372fbe06a6da1f512170a6f79f27c96499d790', class: "row gy-3" }, h("div", { key: 'bb4aab9d17a7bed7cb09e4306158f5e0ff248b8f', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'f8e086504b6f3fac0e4bd2a0c0dee5e2f2c3328a', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '9a5105e1183a61c55639c8153a65169fb65998c5', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '4802e1462b0b1f433c77f817b733611332b18711', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '3edf7b2390c2fa7d0cadd75f9102a63f88a3685b', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'bec348d7030fa44e5a627ebc3f67ed9689a4a5b9', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '066d141b9529aae210fc2585bd2fd386e5b82120', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '602587fcca0666d7070e5cd0316ed1c541953337', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '125aeec26f292763abefe1c3a1a3070a2a8b4c7c', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'fb8d46d217d452809ee199ef8640e93714a91e85', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: 'b622a69cb724ed15d2fe0fb2a9039635bc96a12e', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: 'a094770db85d5a65524909b5c4ec532fca167a95', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
45
+ return (h(Host, { key: 'df86239c476aadde3af18742bbf643d61825c051' }, h("div", { key: '186f3ef6c2295223da888b7645a0af7aa8df4535', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '72284e3fcea18cbdfe879989fb7f1b007e2a37df', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '9479d696a0486e63edfad4bd0dbe374a21cb7b8c' }, h("fieldset", { key: 'b780abf09a714f2e9588670ad149c3ca999cbc87' }, this.legend && h("legend", { key: 'f102dc51722fe2f050c951e7b56117c9577f3b83' }, this.legend), h("div", { key: '00d6c7e35d768f3357cc17836c916e2bf24e3a7e', class: "row gy-3" }, h("div", { key: 'cb2b29aa769c97ccab246dc74e463d389497edbd', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '3cb8ca5e3ecd0817f8e16aafbb5d3ca5ee7824ed', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '781338b1c79fd815d2ab2dbc15e7b56b534a2278', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '682a37c6b417fbc0edf76b89122b5bf618603360', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '50d657891e492c8568bf179d752b9aadf10f2387', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'ce1f04bfc3307af7a025390bcbcce6a6b3da6fab', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: 'ddb45c1cbdc6aa5d27c6a0c4b6f29366ed0e8eba', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '410efdbcd5381bdf61d9c752f292f794d8e12670', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: 'a65811acc25443a07cdb1401231ce1e703096fd4', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'bed28d564c9e5a2ebfc10b6ab47e43e2b17bd6e6', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '8aca307d318e87b17e09122fa91e817c0a59c8d5', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: '4dd06dc9ae01fc2953780e52f9e9c918a38a7bbd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
45
46
  }
46
47
  static get is() { return "justifi-billing-form"; }
47
48
  static get properties() {
@@ -183,7 +184,7 @@ export class BillingForm {
183
184
  },
184
185
  "validate": {
185
186
  "complexType": {
186
- "signature": "() => Promise<{ isValid: boolean; }>",
187
+ "signature": "() => Promise<{ isValid: boolean; errors: any; }>",
187
188
  "parameters": [],
188
189
  "references": {
189
190
  "Promise": {
@@ -191,7 +192,7 @@ export class BillingForm {
191
192
  "id": "global::Promise"
192
193
  }
193
194
  },
194
- "return": "Promise<{ isValid: boolean; }>"
195
+ "return": "Promise<{ isValid: boolean; errors: any; }>"
195
196
  },
196
197
  "docs": {
197
198
  "text": "",
@@ -23,9 +23,18 @@ export class NewPaymentMethod {
23
23
  if (!this.paymentMethodFormRef || !this.billingFormRef)
24
24
  return;
25
25
  try {
26
- const isValid = await this.validate();
26
+ const { isValid, errors } = await this.validate();
27
27
  if (!isValid || !insuranceValidation.isValid) {
28
- return { validationError: true };
28
+ // get propety value from first property in errors object
29
+ const message = `${Object.values(errors)[0] || 'Validation error'}`;
30
+ return {
31
+ validationError: true,
32
+ error: {
33
+ code: 'validation_error',
34
+ message,
35
+ decline_code: undefined
36
+ }
37
+ };
29
38
  }
30
39
  const tokenizeResponse = await this.tokenize();
31
40
  if (tokenizeResponse.error) {
@@ -46,7 +55,9 @@ export class NewPaymentMethod {
46
55
  async validate() {
47
56
  const billingFormValidation = await this.billingFormRef.validate();
48
57
  const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
49
- return billingFormValidation.isValid && paymentMethodFormValidation.isValid;
58
+ const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
59
+ const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
60
+ return { isValid, errors };
50
61
  }
51
62
  async tokenize() {
52
63
  try {
@@ -76,7 +87,7 @@ export class NewPaymentMethod {
76
87
  }
77
88
  render() {
78
89
  var _a, _b;
79
- return (h(Host, { key: 'b80791923e2276322ebe0ce3b25b2073beac188d', class: "payment-method" }, h("div", { key: '47dc555bc135d4562958cf371ca3c8b80ee7236d', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'e485347f39fa4b7d46d64e231931d6bdf541687c', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
90
+ return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
80
91
  }
81
92
  static get is() { return "justifi-new-payment-method"; }
82
93
  static get properties() {
@@ -338,7 +349,7 @@ export class NewPaymentMethod {
338
349
  },
339
350
  "validate": {
340
351
  "complexType": {
341
- "signature": "() => Promise<boolean>",
352
+ "signature": "() => Promise<{ isValid: boolean; errors: any; }>",
342
353
  "parameters": [],
343
354
  "references": {
344
355
  "Promise": {
@@ -346,7 +357,7 @@ export class NewPaymentMethod {
346
357
  "id": "global::Promise"
347
358
  }
348
359
  },
349
- "return": "Promise<boolean>"
360
+ "return": "Promise<{ isValid: boolean; errors: any; }>"
350
361
  },
351
362
  "docs": {
352
363
  "text": "",
@@ -46,12 +46,11 @@ export class PaymentMethodOptions {
46
46
  }
47
47
  async validate() {
48
48
  const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
49
- const isValid = await newPaymentMethodElement.validate();
50
- return { isValid: isValid };
49
+ return newPaymentMethodElement.validate();
51
50
  }
52
51
  render() {
53
52
  var _a;
54
- return (h(Host, { key: '506450161ed363330132c2bfa99a6a7729e94778' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
53
+ return (h(Host, { key: 'c61e82c72aaa25e87ded723799a1eb0961c05444' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
55
54
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
56
55
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
57
56
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
@@ -402,7 +401,7 @@ export class PaymentMethodOptions {
402
401
  },
403
402
  "validate": {
404
403
  "complexType": {
405
- "signature": "() => Promise<{ isValid: boolean; }>",
404
+ "signature": "() => Promise<{ isValid: boolean; errors?: any; }>",
406
405
  "parameters": [],
407
406
  "references": {
408
407
  "Promise": {
@@ -414,7 +413,7 @@ export class PaymentMethodOptions {
414
413
  "id": "global::HTMLJustifiNewPaymentMethodElement"
415
414
  }
416
415
  },
417
- "return": "Promise<{ isValid: boolean; }>"
416
+ "return": "Promise<{ isValid: boolean; errors?: any; }>"
418
417
  },
419
418
  "docs": {
420
419
  "text": "",
@@ -49,11 +49,10 @@ export class TokenizePaymentMethod {
49
49
  this.paymentMethodOptionsRef.fillBillingForm(fields);
50
50
  }
51
51
  async validate() {
52
- const { isValid } = await this.paymentMethodOptionsRef.validate();
53
- return { isValid };
52
+ return this.paymentMethodOptionsRef.validate();
54
53
  }
55
54
  render() {
56
- return (h(StyledHost, { key: 'd4dab6a0690a86229dd9b6e8bc39ea62cfa23300' }, h("form", { key: 'e2faa29095280fda65f14a4cb048c306578cf61e' }, h("fieldset", { key: '18b55da72957d26e3c3f44b9b2ef0c55d959e2ee' }, h("div", { key: '2d57f4b65361aadb7a0eed596a0595e24ef85930', class: "row gy-3" }, h("div", { key: 'd57acfc84d6af84c60636c6e7607a43926ead41f', class: "col-12" }, h("justifi-payment-method-options", { key: '1065a98d952820ba612376044c0c54fbb7ac0491', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, authToken: this.authToken, "account-id": this.accountId })), h("div", { key: 'f50dd3f73048f7ca13a57bffe1ef6f2f33d091b0', class: "col-12" }, h(Button, { key: '1b13f82171d439bedaa0b6cc31d1593c2343a930', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText)))))));
55
+ return (h(StyledHost, { key: '9f12f7a83b2cb06c83694454ea5884bd7392eb83' }, h("form", { key: '0a0a4b4a049aa85863ef5c65313b89ebf58455c5' }, h("fieldset", { key: 'c35ed423483d49615f9ebe500fcef405394f4eb6' }, h("div", { key: '80419e9ca3431d9d75cffc958daab84a2c232f49', class: "row gy-3" }, h("div", { key: 'bd465d8b364c1bc46a6a3dee3fb74087bc087580', class: "col-12" }, h("justifi-payment-method-options", { key: 'c363e501622ef81c78a728ebbd15a3a4cd89867a', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, authToken: this.authToken, "account-id": this.accountId })), h("div", { key: 'ad252991a12f6d21a012b6422ecaae13412f789b', class: "col-12" }, h(Button, { key: '4bb1dcdfeb71c21d3268c11fabd1ab92b43fca5e', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText)))))));
57
56
  }
58
57
  static get is() { return "justifi-tokenize-payment-method"; }
59
58
  static get encapsulation() { return "shadow"; }
@@ -348,7 +347,7 @@ export class TokenizePaymentMethod {
348
347
  },
349
348
  "validate": {
350
349
  "complexType": {
351
- "signature": "() => Promise<{ isValid: boolean; }>",
350
+ "signature": "() => Promise<{ isValid: boolean; errors?: any; }>",
352
351
  "parameters": [],
353
352
  "references": {
354
353
  "Promise": {
@@ -356,7 +355,7 @@ export class TokenizePaymentMethod {
356
355
  "id": "global::Promise"
357
356
  }
358
357
  },
359
- "return": "Promise<{ isValid: boolean; }>"
358
+ "return": "Promise<{ isValid: boolean; errors?: any; }>"
360
359
  },
361
360
  "docs": {
362
361
  "text": "",
@@ -1,8 +1,8 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { ErrorState } from "./utils";
3
3
  export class Details {
4
4
  render() {
5
- return (h(Host, { key: 'd00d3b1c3b5d73af5a0eb1a18f2095f023aeb816' }, this.errorMessage ?
5
+ return (h("div", { key: '3c1c4e729711c6676c176a5a04228ec7ebb7acfa' }, this.errorMessage ?
6
6
  ErrorState(this.errorMessage)
7
7
  :
8
8
  h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
@@ -125,6 +125,9 @@ export function snakeToCamel(str) {
125
125
  }
126
126
  // Object Utilities
127
127
  export function isEmptyObject(obj) {
128
+ if (obj === null) {
129
+ return true;
130
+ }
128
131
  return Object.keys(obj).length === 0 && obj.constructor === Object;
129
132
  }
130
133
  export const isInRange = (num, min, max) => {
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-05-22T19:45:33",
2
+ "timestamp": "2025-05-28T19:04:17",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.31.0",
@@ -487,7 +487,8 @@
487
487
  "justifi-business-details"
488
488
  ],
489
489
  "dependencies": [
490
- "generic-info-details",
490
+ "justifi-details",
491
+ "core-info-details",
491
492
  "legal-address-details",
492
493
  "representative-details",
493
494
  "owner-details",
@@ -495,7 +496,8 @@
495
496
  ],
496
497
  "dependencyGraph": {
497
498
  "business-details-core": [
498
- "generic-info-details",
499
+ "justifi-details",
500
+ "core-info-details",
499
501
  "legal-address-details",
500
502
  "representative-details",
501
503
  "owner-details",
@@ -838,6 +840,61 @@
838
840
  ]
839
841
  }
840
842
  },
843
+ {
844
+ "filePath": "src/components/business-details/core-info-details/core-info-details.tsx",
845
+ "encapsulation": "none",
846
+ "tag": "core-info-details",
847
+ "readme": "# core-info-details\n\n\n",
848
+ "docs": "",
849
+ "docsTags": [],
850
+ "usage": {},
851
+ "props": [
852
+ {
853
+ "name": "business",
854
+ "type": "Business",
855
+ "complexType": {
856
+ "original": "Business",
857
+ "resolved": "Business",
858
+ "references": {
859
+ "Business": {
860
+ "location": "import",
861
+ "path": "../../../api/Business",
862
+ "id": "src/api/Business.ts::Business"
863
+ }
864
+ }
865
+ },
866
+ "mutable": false,
867
+ "attr": "business",
868
+ "reflectToAttr": false,
869
+ "docs": "",
870
+ "docsTags": [],
871
+ "values": [
872
+ {
873
+ "type": "Business"
874
+ }
875
+ ],
876
+ "optional": false,
877
+ "required": false,
878
+ "getter": false,
879
+ "setter": false
880
+ }
881
+ ],
882
+ "methods": [],
883
+ "events": [],
884
+ "listeners": [],
885
+ "styles": [],
886
+ "slots": [],
887
+ "parts": [],
888
+ "dependents": [
889
+ "business-details-core"
890
+ ],
891
+ "dependencies": [],
892
+ "dependencyGraph": {
893
+ "business-details-core": [
894
+ "core-info-details"
895
+ ]
896
+ }
897
+ },
841
898
  {
842
899
  "filePath": "src/ui-components/custom-popper/custom-popper.tsx",
843
900
  "encapsulation": "none",
@@ -4602,61 +4659,6 @@
4602
4659
  ]
4603
4660
  }
4604
4661
  },
4605
- {
4606
- "filePath": "src/components/business-details/generic-info-details/generic-info-details.tsx",
4607
- "encapsulation": "none",
4608
- "tag": "generic-info-details",
4609
- "readme": "# generic-info-details\n\n\n",
4610
- "docs": "",
4611
- "docsTags": [],
4612
- "usage": {},
4613
- "props": [
4614
- {
4615
- "name": "business",
4616
- "type": "IBusiness",
4617
- "complexType": {
4618
- "original": "IBusiness",
4619
- "resolved": "IBusiness",
4620
- "references": {
4621
- "IBusiness": {
4622
- "location": "import",
4623
- "path": "../../../api/Business",
4624
- "id": "src/api/Business.ts::IBusiness"
4625
- }
4626
- }
4627
- },
4628
- "mutable": false,
4629
- "attr": "business",
4630
- "reflectToAttr": false,
4631
- "docs": "",
4632
- "docsTags": [],
4633
- "values": [
4634
- {
4635
- "type": "IBusiness"
4636
- }
4637
- ],
4638
- "optional": false,
4639
- "required": false,
4640
- "getter": false,
4641
- "setter": false
4642
- }
4643
- ],
4644
- "methods": [],
4645
- "events": [],
4646
- "listeners": [],
4647
- "styles": [],
4648
- "slots": [],
4649
- "parts": [],
4650
- "dependents": [
4651
- "business-details-core"
4652
- ],
4653
- "dependencies": [],
4654
- "dependencyGraph": {
4655
- "business-details-core": [
4656
- "generic-info-details"
4657
- ]
4658
- }
4659
- },
4660
4662
  {
4661
4663
  "filePath": "src/components/gross-payment-chart/gross-payment-chart-core.tsx",
4662
4664
  "encapsulation": "none",
@@ -5713,11 +5715,11 @@
5713
5715
  {
5714
5716
  "name": "validate",
5715
5717
  "returns": {
5716
- "type": "Promise<{ isValid: boolean; }>",
5718
+ "type": "Promise<{ isValid: boolean; errors: any; }>",
5717
5719
  "docs": ""
5718
5720
  },
5719
5721
  "complexType": {
5720
- "signature": "() => Promise<{ isValid: boolean; }>",
5722
+ "signature": "() => Promise<{ isValid: boolean; errors: any; }>",
5721
5723
  "parameters": [],
5722
5724
  "references": {
5723
5725
  "Promise": {
@@ -5725,9 +5727,9 @@
5725
5727
  "id": "global::Promise"
5726
5728
  }
5727
5729
  },
5728
- "return": "Promise<{ isValid: boolean; }>"
5730
+ "return": "Promise<{ isValid: boolean; errors: any; }>"
5729
5731
  },
5730
- "signature": "validate() => Promise<{ isValid: boolean; }>",
5732
+ "signature": "validate() => Promise<{ isValid: boolean; errors: any; }>",
5731
5733
  "parameters": [],
5732
5734
  "docs": "",
5733
5735
  "docsTags": []
@@ -6815,7 +6817,8 @@
6815
6817
  "business-details-core"
6816
6818
  ],
6817
6819
  "business-details-core": [
6818
- "generic-info-details",
6820
+ "justifi-details",
6821
+ "core-info-details",
6819
6822
  "legal-address-details",
6820
6823
  "representative-details",
6821
6824
  "owner-details",
@@ -9835,11 +9838,15 @@
9835
9838
  "slots": [],
9836
9839
  "parts": [],
9837
9840
  "dependents": [
9841
+ "business-details-core",
9838
9842
  "payment-details-core",
9839
9843
  "payout-details-core"
9840
9844
  ],
9841
9845
  "dependencies": [],
9842
9846
  "dependencyGraph": {
9847
+ "business-details-core": [
9848
+ "justifi-details"
9849
+ ],
9843
9850
  "payment-details-core": [
9844
9851
  "justifi-details"
9845
9852
  ],
@@ -12152,11 +12159,11 @@
12152
12159
  {
12153
12160
  "name": "validate",
12154
12161
  "returns": {
12155
- "type": "Promise<boolean>",
12162
+ "type": "Promise<{ isValid: boolean; errors: any; }>",
12156
12163
  "docs": ""
12157
12164
  },
12158
12165
  "complexType": {
12159
- "signature": "() => Promise<boolean>",
12166
+ "signature": "() => Promise<{ isValid: boolean; errors: any; }>",
12160
12167
  "parameters": [],
12161
12168
  "references": {
12162
12169
  "Promise": {
@@ -12164,9 +12171,9 @@
12164
12171
  "id": "global::Promise"
12165
12172
  }
12166
12173
  },
12167
- "return": "Promise<boolean>"
12174
+ "return": "Promise<{ isValid: boolean; errors: any; }>"
12168
12175
  },
12169
- "signature": "validate() => Promise<boolean>",
12176
+ "signature": "validate() => Promise<{ isValid: boolean; errors: any; }>",
12170
12177
  "parameters": [],
12171
12178
  "docs": "",
12172
12179
  "docsTags": []
@@ -13250,11 +13257,11 @@
13250
13257
  {
13251
13258
  "name": "validate",
13252
13259
  "returns": {
13253
- "type": "Promise<{ isValid: boolean; }>",
13260
+ "type": "Promise<{ isValid: boolean; errors?: any; }>",
13254
13261
  "docs": ""
13255
13262
  },
13256
13263
  "complexType": {
13257
- "signature": "() => Promise<{ isValid: boolean; }>",
13264
+ "signature": "() => Promise<{ isValid: boolean; errors?: any; }>",
13258
13265
  "parameters": [],
13259
13266
  "references": {
13260
13267
  "Promise": {
@@ -13266,9 +13273,9 @@
13266
13273
  "id": "global::HTMLJustifiNewPaymentMethodElement"
13267
13274
  }
13268
13275
  },
13269
- "return": "Promise<{ isValid: boolean; }>"
13276
+ "return": "Promise<{ isValid: boolean; errors?: any; }>"
13270
13277
  },
13271
- "signature": "validate() => Promise<{ isValid: boolean; }>",
13278
+ "signature": "validate() => Promise<{ isValid: boolean; errors?: any; }>",
13272
13279
  "parameters": [],
13273
13280
  "docs": "",
13274
13281
  "docsTags": []
@@ -17973,11 +17980,11 @@
17973
17980
  {
17974
17981
  "name": "validate",
17975
17982
  "returns": {
17976
- "type": "Promise<{ isValid: boolean; }>",
17983
+ "type": "Promise<{ isValid: boolean; errors?: any; }>",
17977
17984
  "docs": ""
17978
17985
  },
17979
17986
  "complexType": {
17980
- "signature": "() => Promise<{ isValid: boolean; }>",
17987
+ "signature": "() => Promise<{ isValid: boolean; errors?: any; }>",
17981
17988
  "parameters": [],
17982
17989
  "references": {
17983
17990
  "Promise": {
@@ -17985,9 +17992,9 @@
17985
17992
  "id": "global::Promise"
17986
17993
  }
17987
17994
  },
17988
- "return": "Promise<{ isValid: boolean; }>"
17995
+ "return": "Promise<{ isValid: boolean; errors?: any; }>"
17989
17996
  },
17990
- "signature": "validate() => Promise<{ isValid: boolean; }>",
17997
+ "signature": "validate() => Promise<{ isValid: boolean; errors?: any; }>",
17991
17998
  "parameters": [],
17992
17999
  "docs": "",
17993
18000
  "docsTags": []
@@ -20015,8 +20022,8 @@
20015
20022
  "docstring": "",
20016
20023
  "path": "src/api/Business.ts"
20017
20024
  },
20018
- "src/api/Business.ts::IBusiness": {
20019
- "declaration": "export interface IBusiness {\n additional_questions: IAdditionalQuestions;\n associated_accounts: any[];\n classification: BusinessClassification;\n bank_accounts: IBankAccount[];\n created_at: string;\n documents: IDocument[];\n doing_business_as: string;\n email: string;\n id: string;\n industry: string;\n legal_address?: IAddress | null;\n legal_name: string;\n metadata: any;\n owners: Identity[];\n phone: string;\n platform_account_id: string;\n product_categories: ProductCategories;\n representative?: Identity | null;\n tax_id: string;\n terms_conditions_accepted: boolean;\n updated_at: string;\n website_url: string;\n date_of_incorporation?: string;\n}",
20025
+ "src/api/Business.ts::Business": {
20026
+ "declaration": "any",
20020
20027
  "docstring": "",
20021
20028
  "path": "src/api/Business.ts"
20022
20029
  },
@@ -1,5 +1,5 @@
1
1
  import { w as waitForConfig, c as configState } from './config-state-CkKrqnpZ.js';
2
- import { g as generateId } from './utils-BWcTxbSg.js';
2
+ import { g as generateId } from './utils-DB5fh6Iv.js';
3
3
 
4
4
  const Api = () => {
5
5
  async function getAuthorizationHeader(authToken) {
@@ -177,7 +177,9 @@ class CoreBusinessInfo {
177
177
  }
178
178
  class Business {
179
179
  constructor(business) {
180
- this.additional_questions = new AdditionalQuestions(business.additional_questions || {});
180
+ this.additional_questions = business.additional_questions
181
+ ? new AdditionalQuestions(business.additional_questions)
182
+ : null;
181
183
  this.associated_accounts = business.associated_accounts;
182
184
  this.classification = business.classification;
183
185
  this.bank_accounts = business.bank_accounts;
@@ -1,4 +1,4 @@
1
- import { f as formatCurrency } from './utils-BWcTxbSg.js';
1
+ import { f as formatCurrency } from './utils-DB5fh6Iv.js';
2
2
 
3
3
  class Completion {
4
4
  constructor(data) {
@@ -1,4 +1,4 @@
1
- import { f as formatCurrency } from './utils-BWcTxbSg.js';
1
+ import { f as formatCurrency } from './utils-DB5fh6Iv.js';
2
2
  import { a as DisputeStatus } from './Dispute-BH0Xfn-F.js';
3
3
 
4
4
  var CaptureStrategy;
@@ -1,4 +1,4 @@
1
- import { f as formatCurrency } from './utils-BWcTxbSg.js';
1
+ import { f as formatCurrency } from './utils-DB5fh6Iv.js';
2
2
 
3
3
  var PaymentBalanceTxnType;
4
4
  (function (PaymentBalanceTxnType) {