@justifi/webcomponents 5.7.0 → 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 (515) hide show
  1. package/dist/cjs/{ApiNew-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/{Payment-CQCmj3Ck.js → Document-Qt0qiXeh.js} +58 -1
  5. package/dist/cjs/{Refund-CpurRc4w.js → Refund-BDFOEJv_.js} +2 -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 +11 -10
  8. package/dist/cjs/bank-account-form_9.cjs.entry.js +35 -25
  9. package/dist/cjs/{business-additional-questions-schema-gVepoR4V.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-dt0zCW0R.js → business-identity-schema-BksYFWls.js} +1 -1
  13. package/dist/cjs/{business.service-yVtplFhh.js → business.service-DMIMZpx4.js} +9 -2
  14. package/dist/cjs/{check-pkg-version-BYKcQDik.js → check-pkg-version-hqYwYpQq.js} +13 -3
  15. package/dist/cjs/{checkout.service-Dd2AbBn2.js → checkout.service-DKH8NODe.js} +9 -2
  16. package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -8
  17. package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-Cj2iSB_P.js} +1 -1
  18. package/dist/cjs/custom-popper_4.cjs.entry.js +4 -4
  19. package/dist/cjs/{dispute.service-C0J-Wh-Y.js → dispute.service-8j6tLV4i.js} +9 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  23. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  24. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  25. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  28. package/dist/cjs/{get-business-DHg5rpse.js → get-business-BJrtsomz.js} +1 -1
  29. package/dist/cjs/{get-payment-details-DqvDYbnK.js → get-payment-details-MM1u5jMc.js} +8 -6
  30. package/dist/cjs/{get-subaccounts-CquZS5kP.js → get-subaccounts-CkjWYxIU.js} +9 -7
  31. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  32. package/dist/cjs/iframe-input.cjs.entry.js +4 -4
  33. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +12 -11
  34. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +13 -15
  35. package/dist/cjs/justifi-business-details.cjs.entry.js +22 -10
  36. package/dist/cjs/justifi-business-form.cjs.entry.js +19 -18
  37. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  38. package/dist/cjs/justifi-checkout.cjs.entry.js +18 -8
  39. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -7
  40. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +20 -16
  41. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-dispute-management.cjs.entry.js +15 -7
  43. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +17 -7
  44. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +19 -10
  45. package/dist/cjs/justifi-order-terminals.cjs.entry.js +20 -16
  46. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -8
  47. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -11
  48. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +18 -8
  49. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +18 -14
  50. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
  51. package/dist/cjs/justifi-payments-list.cjs.entry.js +19 -15
  52. package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -12
  53. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +18 -14
  54. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -15
  56. package/dist/cjs/justifi-refund-payment.cjs.entry.js +16 -14
  57. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -2
  58. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +20 -23
  59. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +11 -8
  60. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +21 -14
  61. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -7
  62. package/dist/cjs/justifi-terminals-list.cjs.entry.js +19 -15
  63. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +19 -13
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/{package-CX6Njc5t.js → package-BCOEGxFC.js} +1 -1
  66. package/dist/cjs/payment-details-core.cjs.entry.js +10 -10
  67. package/dist/cjs/{payment.service-BvTU2Orj.js → payment.service-CCxGhTwZ.js} +9 -2
  68. package/dist/cjs/payments-list-core.cjs.entry.js +12 -9
  69. package/dist/cjs/{payments-table-BkRhDePE.js → payments-table-BR97ybd6.js} +1 -1
  70. package/dist/cjs/payout-details-core.cjs.entry.js +5 -5
  71. package/dist/cjs/{payout.service-C99pgxvg.js → payout.service-CtphIhUK.js} +9 -2
  72. package/dist/cjs/payouts-list-core.cjs.entry.js +12 -9
  73. package/dist/cjs/{payouts-table-DJMz3bVh.js → payouts-table-DMcQiC1g.js} +1 -1
  74. package/dist/cjs/{schema-validations-p4OCdblz.js → schema-validations-BUor-ySb.js} +6 -7
  75. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +12 -9
  76. package/dist/cjs/{terminal-orders-table-BeeUTKtj.js → terminal-orders-table-D-CLcZws.js} +7 -5
  77. package/dist/cjs/{terminal.service-DEGcoaCb.js → terminal.service-Dv_WJkue.js} +9 -2
  78. package/dist/cjs/terminals-list-core.cjs.entry.js +12 -9
  79. package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-BEJ6sF7w.js} +1 -1
  80. package/dist/cjs/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
  81. package/dist/cjs/webcomponents.cjs.js +1 -1
  82. package/dist/collection/api/Analytics.js +3 -0
  83. package/dist/collection/api/Api.js +23 -12
  84. package/dist/collection/api/Business.js +3 -1
  85. package/dist/collection/api/Payment.js +1 -0
  86. package/dist/collection/api/Payout.js +1 -0
  87. package/dist/collection/api/index.js +5 -1
  88. package/dist/collection/api/services/analytics.service.js +1 -1
  89. package/dist/collection/api/services/business.service.js +1 -1
  90. package/dist/collection/api/services/checkout.service.js +1 -1
  91. package/dist/collection/api/services/dispute.service.js +1 -1
  92. package/dist/collection/api/services/insurance.service.js +5 -8
  93. package/dist/collection/api/services/payment.service.js +1 -1
  94. package/dist/collection/api/services/payout.service.js +1 -1
  95. package/dist/collection/api/services/provision.service.js +1 -1
  96. package/dist/collection/api/services/refund.service.js +1 -1
  97. package/dist/collection/api/services/reports.service.js +3 -3
  98. package/dist/collection/api/services/subaccounts.service.js +1 -1
  99. package/dist/collection/api/services/terminal.service.js +1 -1
  100. package/dist/collection/api/services/terminal_orders.service.js +1 -1
  101. package/dist/collection/collection-manifest.json +1 -1
  102. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
  103. package/dist/collection/components/business-details/business-details-core.js +1 -2
  104. package/dist/collection/components/business-details/business-details.js +13 -4
  105. package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
  106. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
  107. package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
  108. package/dist/collection/components/business-forms/business-form/business-form.js +3 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +4 -2
  110. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -4
  111. package/dist/collection/components/business-forms/schemas/schema-validations.js +6 -7
  112. package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
  113. package/dist/collection/components/checkout/checkout.js +5 -3
  114. package/dist/collection/components/checkout/new-payment-method.js +17 -6
  115. package/dist/collection/components/checkout/payment-method-options.js +4 -5
  116. package/dist/collection/components/checkouts-list/checkouts-list.js +4 -2
  117. package/dist/collection/components/dispute-management/dispute-management.js +3 -2
  118. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -2
  119. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +3 -1
  120. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +4 -1
  121. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -4
  122. package/dist/collection/components/order-terminals/order-terminals.js +6 -1
  123. package/dist/collection/components/payment-details/payment-details-core.js +9 -8
  124. package/dist/collection/components/payment-details/payment-details.js +2 -1
  125. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +4 -2
  126. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  127. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  128. package/dist/collection/components/payments-list/payments-list.js +4 -2
  129. package/dist/collection/components/payout-details/payout-details-core.js +4 -3
  130. package/dist/collection/components/payout-details/payout-details.js +3 -1
  131. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +4 -2
  132. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  133. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  134. package/dist/collection/components/payouts-list/payouts-list.js +4 -2
  135. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  136. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  137. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +6 -1
  138. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  139. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  140. package/dist/collection/components/terminals-list/terminals-list.js +4 -2
  141. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +9 -5
  142. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  143. package/dist/collection/ui-components/details/details.js +2 -2
  144. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  145. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  146. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  147. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  148. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  149. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  150. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  151. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  152. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  153. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  154. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  155. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  156. package/dist/collection/utils/utils.js +3 -0
  157. package/dist/docs.json +85 -78
  158. package/dist/esm/{ApiNew-KYhsw8Nv.js → Api-cgKcLG0y.js} +1 -1
  159. package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
  160. package/dist/esm/{Checkout-Dfpql997.js → Checkout-B9LrTq63.js} +1 -1
  161. package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
  162. package/dist/esm/{Payment-BADkZFaz.js → Document-DvWsQBM6.js} +58 -3
  163. package/dist/esm/{Refund-DOvd7RJp.js → Refund-zZewCvey.js} +2 -1
  164. package/dist/esm/additional-questions-details_5.entry.js +12 -13
  165. package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -10
  166. package/dist/esm/bank-account-form_9.entry.js +28 -18
  167. package/dist/esm/{business-additional-questions-schema-DWnZs60Z.js → business-additional-questions-schema-CBUm3D7O.js} +1 -1
  168. package/dist/esm/business-details-core.entry.js +1 -2
  169. package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
  170. package/dist/esm/{business-identity-schema-lqdJS3MT.js → business-identity-schema-CntGz8jo.js} +1 -1
  171. package/dist/esm/{business.service-_645Z23O.js → business.service-BWivPbyO.js} +8 -1
  172. package/dist/esm/{check-pkg-version-Dh7UNmHL.js → check-pkg-version-BykGn7tx.js} +12 -2
  173. package/dist/esm/{checkout.service-7FGjq0rO.js → checkout.service-Bh-Q24Cr.js} +8 -1
  174. package/dist/esm/checkouts-list-core.entry.js +11 -8
  175. package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-DcVkD83l.js} +1 -1
  176. package/dist/esm/custom-popper_4.entry.js +4 -4
  177. package/dist/esm/{dispute.service-lJlAFuE6.js → dispute.service-1AYcALSg.js} +8 -1
  178. package/dist/esm/form-alert_5.entry.js +2 -2
  179. package/dist/esm/form-control-checkbox.entry.js +2 -2
  180. package/dist/esm/form-control-date.entry.js +2 -2
  181. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  182. package/dist/esm/form-control-monetary.entry.js +3 -3
  183. package/dist/esm/form-control-number-masked_2.entry.js +2 -2
  184. package/dist/esm/form-control-number.entry.js +2 -2
  185. package/dist/esm/form-control-radio.entry.js +2 -2
  186. package/dist/esm/{get-business-CIKToQur.js → get-business-GEPTefIj.js} +1 -1
  187. package/dist/esm/{get-payment-details-CXiGG9cO.js → get-payment-details-DXhXxFPr.js} +7 -5
  188. package/dist/esm/{get-subaccounts-DIJtLFsb.js → get-subaccounts-CtHj1UM6.js} +8 -6
  189. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  190. package/dist/esm/iframe-input.entry.js +4 -4
  191. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -11
  192. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +13 -15
  193. package/dist/esm/justifi-business-details.entry.js +23 -11
  194. package/dist/esm/justifi-business-form.entry.js +19 -18
  195. package/dist/esm/justifi-checkout-core.entry.js +2 -2
  196. package/dist/esm/justifi-checkout.entry.js +18 -8
  197. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -7
  198. package/dist/esm/justifi-checkouts-list.entry.js +20 -16
  199. package/dist/esm/justifi-details.entry.js +2 -2
  200. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  201. package/dist/esm/justifi-dispute-management.entry.js +16 -8
  202. package/dist/esm/justifi-dispute-notification_3.entry.js +17 -7
  203. package/dist/esm/justifi-gross-payment-chart.entry.js +19 -10
  204. package/dist/esm/justifi-order-terminals.entry.js +20 -16
  205. package/dist/esm/justifi-owner-form_3.entry.js +12 -8
  206. package/dist/esm/justifi-payment-details.entry.js +15 -12
  207. package/dist/esm/justifi-payment-provisioning.entry.js +17 -7
  208. package/dist/esm/justifi-payment-transactions-list.entry.js +18 -14
  209. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  210. package/dist/esm/justifi-payments-list.entry.js +18 -14
  211. package/dist/esm/justifi-payout-details.entry.js +16 -12
  212. package/dist/esm/justifi-payout-transactions-list.entry.js +18 -14
  213. package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
  214. package/dist/esm/justifi-payouts-list.entry.js +19 -15
  215. package/dist/esm/justifi-refund-payment.entry.js +15 -13
  216. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -2
  217. package/dist/esm/justifi-season-interruption-insurance.entry.js +20 -23
  218. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +11 -8
  219. package/dist/esm/justifi-terminal-orders-list.entry.js +20 -13
  220. package/dist/esm/justifi-terminals-list-filters.entry.js +10 -7
  221. package/dist/esm/justifi-terminals-list.entry.js +19 -15
  222. package/dist/esm/justifi-tokenize-payment-method.entry.js +19 -13
  223. package/dist/esm/loader.js +1 -1
  224. package/dist/esm/{package-DLLK41AX.js → package-BjMTOtI1.js} +1 -1
  225. package/dist/esm/payment-details-core.entry.js +10 -10
  226. package/dist/esm/{payment.service-DdCJ1Dc7.js → payment.service-2afJc31y.js} +8 -1
  227. package/dist/esm/payments-list-core.entry.js +12 -9
  228. package/dist/esm/{payments-table-BBf5fV74.js → payments-table-B8316Kqz.js} +1 -1
  229. package/dist/esm/payout-details-core.entry.js +5 -5
  230. package/dist/esm/{payout.service-G1Isezyi.js → payout.service-Bd8Tc7-Q.js} +8 -1
  231. package/dist/esm/payouts-list-core.entry.js +12 -9
  232. package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-Ip10eH4Q.js} +1 -1
  233. package/dist/esm/{schema-validations-BsbYeDDR.js → schema-validations-C7D5tPzq.js} +6 -7
  234. package/dist/esm/terminal-orders-list-core.entry.js +12 -9
  235. package/dist/esm/{terminal-orders-table-BlT9YrFD.js → terminal-orders-table-CCJT7oq4.js} +7 -5
  236. package/dist/esm/{terminal.service-aFe-O3PC.js → terminal.service-8kwGru35.js} +8 -1
  237. package/dist/esm/terminals-list-core.entry.js +12 -9
  238. package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-cMkKUVff.js} +1 -1
  239. package/dist/esm/{utils-BWcTxbSg.js → utils-DB5fh6Iv.js} +3 -0
  240. package/dist/esm/webcomponents.js +1 -1
  241. package/dist/module/Api.js +23 -11
  242. package/dist/module/Business.js +3 -1
  243. package/dist/module/Checkout.js +22 -2
  244. package/dist/module/Payment.js +59 -3
  245. package/dist/module/Refund.js +2 -1
  246. package/dist/module/additional-questions-details2.js +3 -4
  247. package/dist/module/bank-account-document-inputs.js +2 -1
  248. package/dist/module/billing-form.js +4 -3
  249. package/dist/module/business-additional-questions-form-step.js +1 -1
  250. package/dist/module/business-bank-account-form-step-core.js +2 -2
  251. package/dist/module/business-bank-account-form-step.js +3 -2
  252. package/dist/module/business-core-info-form-step.js +1 -1
  253. package/dist/module/business-details-core2.js +11 -7
  254. package/dist/module/business-documents-on-file2.js +1 -1
  255. package/dist/module/business-owners-form-step.js +1 -1
  256. package/dist/module/business-representative-form-step.js +1 -1
  257. package/dist/module/business-terms-conditions-form-step.js +6 -7
  258. package/dist/module/business.service.js +7 -1
  259. package/dist/module/check-pkg-version.js +10 -1
  260. package/dist/module/checkout-core.js +2 -3
  261. package/dist/module/checkout.service.js +7 -1
  262. package/dist/module/checkouts-list-core2.js +3 -2
  263. package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
  264. package/dist/module/core-info-details.js +6 -0
  265. package/dist/module/core-info-details2.js +34 -0
  266. package/dist/module/custom-popper2.js +2 -2
  267. package/dist/module/details.js +2 -2
  268. package/dist/module/dispute-management-core.js +1 -1
  269. package/dist/module/dispute-notification.js +1 -1
  270. package/dist/module/dispute-response-actions.js +7 -2
  271. package/dist/module/dispute-response.js +5 -3
  272. package/dist/module/form-control-checkbox2.js +2 -2
  273. package/dist/module/form-control-date2.js +2 -2
  274. package/dist/module/form-control-file-v22.js +1 -1
  275. package/dist/module/form-control-file2.js +2 -2
  276. package/dist/module/form-control-monetary2.js +3 -3
  277. package/dist/module/form-control-number-masked2.js +2 -2
  278. package/dist/module/form-control-number.js +2 -2
  279. package/dist/module/form-control-radio2.js +2 -2
  280. package/dist/module/form-control-text2.js +2 -2
  281. package/dist/module/form-control-textarea2.js +2 -2
  282. package/dist/module/get-business.js +1 -1
  283. package/dist/module/get-payment-details.js +4 -3
  284. package/dist/module/get-payout-csv.js +1 -1
  285. package/dist/module/get-subaccounts.js +5 -4
  286. package/dist/module/gross-payment-chart-core2.js +1 -1
  287. package/dist/module/hidden-input2.js +1 -1
  288. package/dist/module/iframe-input2.js +3 -3
  289. package/dist/module/justifi-business-details.js +24 -11
  290. package/dist/module/justifi-business-form.js +5 -3
  291. package/dist/module/justifi-checkout.js +6 -4
  292. package/dist/module/justifi-checkouts-list-filters.js +3 -2
  293. package/dist/module/justifi-checkouts-list.js +7 -4
  294. package/dist/module/justifi-dispute-management.js +5 -4
  295. package/dist/module/justifi-gross-payment-chart.js +11 -4
  296. package/dist/module/justifi-order-terminals.js +8 -3
  297. package/dist/module/justifi-payment-details.js +3 -2
  298. package/dist/module/justifi-payment-provisioning.js +11 -4
  299. package/dist/module/justifi-payment-transactions-list.js +7 -4
  300. package/dist/module/justifi-payments-list-filters.js +2 -2
  301. package/dist/module/justifi-payments-list.js +8 -5
  302. package/dist/module/justifi-payout-details.js +6 -3
  303. package/dist/module/justifi-payout-transactions-list.js +7 -5
  304. package/dist/module/justifi-payouts-list-filters.js +2 -2
  305. package/dist/module/justifi-payouts-list.js +7 -4
  306. package/dist/module/justifi-refund-payment.js +5 -4
  307. package/dist/module/justifi-season-interruption-insurance.js +10 -14
  308. package/dist/module/justifi-terminal-orders-list-filters.js +4 -3
  309. package/dist/module/justifi-terminal-orders-list.js +10 -4
  310. package/dist/module/justifi-terminals-list-filters.js +3 -2
  311. package/dist/module/justifi-terminals-list.js +7 -4
  312. package/dist/module/justifi-tokenize-payment-method.js +10 -5
  313. package/dist/module/legal-address-details2.js +3 -3
  314. package/dist/module/legal-address-form-step.js +1 -1
  315. package/dist/module/new-payment-method.js +15 -4
  316. package/dist/module/owner-details2.js +1 -1
  317. package/dist/module/package.js +1 -1
  318. package/dist/module/payment-details-core2.js +10 -9
  319. package/dist/module/payment-method-options.js +2 -3
  320. package/dist/module/payment-provisioning-actions.js +1 -1
  321. package/dist/module/payment-provisioning-core.js +1 -1
  322. package/dist/module/payment.service.js +7 -1
  323. package/dist/module/payments-list-core2.js +3 -2
  324. package/dist/module/payout-details-core2.js +5 -4
  325. package/dist/module/payout.service.js +7 -1
  326. package/dist/module/payouts-list-core2.js +4 -3
  327. package/dist/module/representative-details2.js +4 -4
  328. package/dist/module/schema-validations.js +4 -5
  329. package/dist/module/season-interruption-insurance-core.js +6 -3
  330. package/dist/module/sezzle-payment-method.js +1 -1
  331. package/dist/module/terminal-orders-list-core2.js +3 -2
  332. package/dist/module/terminal.service.js +7 -1
  333. package/dist/module/terminals-list-core2.js +3 -2
  334. package/dist/module/utils2.js +4 -1
  335. package/dist/module/utils4.js +1 -1
  336. package/dist/types/api/Api.d.ts +41 -35
  337. package/dist/types/api/Payment.d.ts +2 -0
  338. package/dist/types/api/Payout.d.ts +2 -0
  339. package/dist/types/api/index.d.ts +5 -1
  340. package/dist/types/api/services/business.service.d.ts +1 -5
  341. package/dist/types/api/services/dispute.service.d.ts +1 -2
  342. package/dist/types/api/services/payout.service.d.ts +1 -2
  343. package/dist/types/api/services/provision.service.d.ts +1 -1
  344. package/dist/types/api/services/reports.service.d.ts +1 -2
  345. package/dist/types/api/services/subaccounts.service.d.ts +1 -2
  346. package/dist/types/components/business-details/business-details.d.ts +1 -0
  347. package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
  348. package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
  349. package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
  350. package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
  351. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  352. package/dist/types/components/order-terminals/order-terminals.d.ts +1 -0
  353. package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +1 -0
  354. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -0
  355. package/dist/types/components.d.ts +21 -21
  356. package/dist/types/utils/utils.d.ts +1 -1
  357. package/dist/webcomponents/p-10d41e17.entry.js +1 -0
  358. package/dist/webcomponents/{p-b2192f8b.entry.js → p-1678e9e3.entry.js} +1 -1
  359. package/dist/webcomponents/p-16d29d0b.entry.js +1 -0
  360. package/dist/webcomponents/{p-8224e3c2.entry.js → p-19b9c96a.entry.js} +1 -1
  361. package/dist/webcomponents/p-22a0b397.entry.js +1 -0
  362. package/dist/webcomponents/p-292da2d4.entry.js +1 -0
  363. package/dist/webcomponents/p-2c7ae3ac.entry.js +1 -0
  364. package/dist/webcomponents/p-2c8d7aa9.entry.js +1 -0
  365. package/dist/webcomponents/p-3368d3d5.entry.js +1 -0
  366. package/dist/webcomponents/p-33b23638.entry.js +1 -0
  367. package/dist/webcomponents/{p-12674a89.entry.js → p-3a979295.entry.js} +1 -1
  368. package/dist/webcomponents/p-40f7e3af.entry.js +1 -0
  369. package/dist/webcomponents/p-4680f931.entry.js +1 -0
  370. package/dist/webcomponents/p-4a070b7a.entry.js +1 -0
  371. package/dist/webcomponents/p-4b51a896.entry.js +1 -0
  372. package/dist/webcomponents/p-4f8b9b99.entry.js +1 -0
  373. package/dist/webcomponents/p-57c89023.entry.js +1 -0
  374. package/dist/webcomponents/p-57fc593a.entry.js +1 -0
  375. package/dist/webcomponents/{p-9c1a79c5.entry.js → p-59abf1de.entry.js} +1 -1
  376. package/dist/webcomponents/p-5d81f36e.entry.js +1 -0
  377. package/dist/webcomponents/p-5df5aa41.entry.js +1 -0
  378. package/dist/webcomponents/p-70c498d4.entry.js +1 -0
  379. package/dist/webcomponents/p-722c5e42.entry.js +1 -0
  380. package/dist/webcomponents/{p-d2dc6f22.entry.js → p-758ce5e5.entry.js} +4 -4
  381. package/dist/webcomponents/p-77896e7b.entry.js +1 -0
  382. package/dist/webcomponents/p-77ac321c.entry.js +1 -0
  383. package/dist/webcomponents/p-7d3cf734.entry.js +1 -0
  384. package/dist/webcomponents/p-8183c2d1.entry.js +1 -0
  385. package/dist/webcomponents/p-8ad67f87.entry.js +1 -0
  386. package/dist/webcomponents/p-8c107267.entry.js +1 -0
  387. package/dist/webcomponents/{p-32345016.entry.js → p-935bbc62.entry.js} +1 -1
  388. package/dist/webcomponents/p-93df56e1.entry.js +1 -0
  389. package/dist/webcomponents/p-99b080d9.entry.js +1 -0
  390. package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
  391. package/dist/webcomponents/p-BR7flk4G.js +1 -0
  392. package/dist/webcomponents/p-BjMTOtI1.js +1 -0
  393. package/dist/webcomponents/p-Bk4gk-f7.js +1 -0
  394. package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
  395. package/dist/webcomponents/{p-CpTwq2jw.js → p-BnE7qgLh.js} +1 -1
  396. package/dist/webcomponents/{p-d-_oUZor.js → p-C1sOJl-_.js} +1 -1
  397. package/dist/webcomponents/p-COcul8pX.js +1 -0
  398. package/dist/webcomponents/p-CaGOSFHG.js +1 -0
  399. package/dist/webcomponents/p-Cm_0sqXz.js +1 -0
  400. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  401. package/dist/webcomponents/p-Cx60eQXT.js +1 -0
  402. package/dist/webcomponents/{p-OSmuQKbK.js → p-D2ZiLcDE.js} +1 -1
  403. package/dist/webcomponents/p-DClC2nMO.js +1 -0
  404. package/dist/webcomponents/p-DR89sFne.js +1 -0
  405. package/dist/webcomponents/{p-ByRPlUBS.js → p-DnB1x5JE.js} +1 -1
  406. package/dist/webcomponents/p-DvhDilDP.js +1 -0
  407. package/dist/webcomponents/{p-BjB_yKBJ.js → p-DzFysjCc.js} +1 -1
  408. package/dist/webcomponents/{p-DvHZ2jYI.js → p-HBDBB6lL.js} +1 -1
  409. package/dist/webcomponents/p-_pH3Hg4P.js +1 -0
  410. package/dist/webcomponents/p-a0662195.entry.js +1 -0
  411. package/dist/webcomponents/{p-82515f70.entry.js → p-a136ff22.entry.js} +1 -1
  412. package/dist/webcomponents/p-a33cfcfe.entry.js +1 -0
  413. package/dist/webcomponents/p-a6722f44.entry.js +1 -0
  414. package/dist/webcomponents/{p-9dae8152.entry.js → p-a8119fda.entry.js} +1 -1
  415. package/dist/webcomponents/p-a94952f6.entry.js +1 -0
  416. package/dist/webcomponents/p-abdae97a.entry.js +1 -0
  417. package/dist/webcomponents/p-af09b6ee.entry.js +1 -0
  418. package/dist/webcomponents/p-b0d3aab7.entry.js +1 -0
  419. package/dist/webcomponents/p-b1586aa2.entry.js +1 -0
  420. package/dist/webcomponents/p-c01544c3.entry.js +1 -0
  421. package/dist/webcomponents/p-c3c7be24.entry.js +1 -0
  422. package/dist/webcomponents/p-c5628e09.entry.js +1 -0
  423. package/dist/webcomponents/p-c5b6b76f.entry.js +1 -0
  424. package/dist/webcomponents/p-c6490254.entry.js +1 -0
  425. package/dist/webcomponents/p-ceefc483.entry.js +1 -0
  426. package/dist/webcomponents/p-clwP6zk3.js +1 -0
  427. package/dist/webcomponents/{p-774eee26.entry.js → p-d8b8b17c.entry.js} +1 -1
  428. package/dist/webcomponents/p-e2bfdba5.entry.js +1 -0
  429. package/dist/webcomponents/p-e73fe424.entry.js +1 -0
  430. package/dist/webcomponents/{p-CegkOiUz.js → p-eHhqPyVW.js} +1 -1
  431. package/dist/webcomponents/p-f23d4fdb.entry.js +1 -0
  432. package/dist/webcomponents/p-ffd197c2.entry.js +1 -0
  433. package/dist/webcomponents/p-gZGxqQgQ.js +1 -0
  434. package/dist/webcomponents/p-l3uWWMRW.js +1 -0
  435. package/dist/webcomponents/p-r__elyG4.js +1 -0
  436. package/dist/webcomponents/{p-82kiZkHt.js → p-uSM1EMk-.js} +1 -1
  437. package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
  438. package/dist/webcomponents/webcomponents.esm.js +1 -1
  439. package/package.json +1 -1
  440. package/dist/cjs/Api-KMweahmp.js +0 -74
  441. package/dist/cjs/Document-rXGBUaOh.js +0 -58
  442. package/dist/collection/api/ApiNew.js +0 -82
  443. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
  444. package/dist/esm/Api-C9CDE-UM.js +0 -72
  445. package/dist/esm/Document-Ct-uNz2r.js +0 -55
  446. package/dist/module/ApiNew.js +0 -84
  447. package/dist/module/ComponentError.js +0 -21
  448. package/dist/module/Dispute.js +0 -57
  449. package/dist/module/generic-info-details.js +0 -6
  450. package/dist/module/generic-info-details2.js +0 -34
  451. package/dist/types/api/ApiNew.d.ts +0 -61
  452. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
  453. package/dist/webcomponents/p-05138b5d.entry.js +0 -1
  454. package/dist/webcomponents/p-0661622e.entry.js +0 -1
  455. package/dist/webcomponents/p-0a4abfba.entry.js +0 -1
  456. package/dist/webcomponents/p-0d73af88.entry.js +0 -1
  457. package/dist/webcomponents/p-107fdd99.entry.js +0 -1
  458. package/dist/webcomponents/p-12ea3a21.entry.js +0 -1
  459. package/dist/webcomponents/p-13a56c04.entry.js +0 -1
  460. package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
  461. package/dist/webcomponents/p-2ce8e7ac.entry.js +0 -1
  462. package/dist/webcomponents/p-357e1077.entry.js +0 -1
  463. package/dist/webcomponents/p-3a691b9a.entry.js +0 -1
  464. package/dist/webcomponents/p-3adEM48l.js +0 -1
  465. package/dist/webcomponents/p-3bb94f41.entry.js +0 -1
  466. package/dist/webcomponents/p-460eae73.entry.js +0 -1
  467. package/dist/webcomponents/p-48d84a6f.entry.js +0 -1
  468. package/dist/webcomponents/p-4a3ee65c.entry.js +0 -1
  469. package/dist/webcomponents/p-58f415f4.entry.js +0 -1
  470. package/dist/webcomponents/p-5ff7f253.entry.js +0 -1
  471. package/dist/webcomponents/p-6334c2bc.entry.js +0 -1
  472. package/dist/webcomponents/p-6780e07e.entry.js +0 -1
  473. package/dist/webcomponents/p-6a3a8a7a.entry.js +0 -1
  474. package/dist/webcomponents/p-76d1a604.entry.js +0 -1
  475. package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
  476. package/dist/webcomponents/p-833576ca.entry.js +0 -1
  477. package/dist/webcomponents/p-83d4ac72.entry.js +0 -1
  478. package/dist/webcomponents/p-AVaenhw9.js +0 -1
  479. package/dist/webcomponents/p-B1ubyLhU.js +0 -1
  480. package/dist/webcomponents/p-BBsCnePk.js +0 -1
  481. package/dist/webcomponents/p-BHbsXXRt.js +0 -1
  482. package/dist/webcomponents/p-Bxs6fi7a.js +0 -1
  483. package/dist/webcomponents/p-C0piBrye.js +0 -1
  484. package/dist/webcomponents/p-CkrVt-dj.js +0 -1
  485. package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
  486. package/dist/webcomponents/p-Cy4aIACq.js +0 -1
  487. package/dist/webcomponents/p-D5Sh88BE.js +0 -1
  488. package/dist/webcomponents/p-DLLK41AX.js +0 -1
  489. package/dist/webcomponents/p-Da_GeglS.js +0 -1
  490. package/dist/webcomponents/p-Dgxn_B6C.js +0 -1
  491. package/dist/webcomponents/p-DmIOVniD.js +0 -1
  492. package/dist/webcomponents/p-DqOTECuf.js +0 -1
  493. package/dist/webcomponents/p-Dz-Ft5b1.js +0 -1
  494. package/dist/webcomponents/p-a5af8397.entry.js +0 -1
  495. package/dist/webcomponents/p-a61f9b3c.entry.js +0 -1
  496. package/dist/webcomponents/p-a6fb7730.entry.js +0 -1
  497. package/dist/webcomponents/p-aTcDcUMZ.js +0 -1
  498. package/dist/webcomponents/p-aa954ce9.entry.js +0 -1
  499. package/dist/webcomponents/p-ac4ac963.entry.js +0 -1
  500. package/dist/webcomponents/p-ae7c6b81.entry.js +0 -1
  501. package/dist/webcomponents/p-ae8c3dab.entry.js +0 -1
  502. package/dist/webcomponents/p-afa54e39.entry.js +0 -1
  503. package/dist/webcomponents/p-b061c21c.entry.js +0 -1
  504. package/dist/webcomponents/p-b4d857b2.entry.js +0 -1
  505. package/dist/webcomponents/p-bb45705e.entry.js +0 -1
  506. package/dist/webcomponents/p-c2f3d7da.entry.js +0 -1
  507. package/dist/webcomponents/p-c7227fc1.entry.js +0 -1
  508. package/dist/webcomponents/p-c8f70818.entry.js +0 -1
  509. package/dist/webcomponents/p-c9288f47.entry.js +0 -1
  510. package/dist/webcomponents/p-d1a440e3.entry.js +0 -1
  511. package/dist/webcomponents/p-dd89c516.entry.js +0 -1
  512. package/dist/webcomponents/p-e39b5ffd.entry.js +0 -1
  513. package/dist/webcomponents/p-e5d35016.entry.js +0 -1
  514. package/dist/webcomponents/p-ebd7753d.entry.js +0 -1
  515. package/dist/webcomponents/p-ec47b7c8.entry.js +0 -1
@@ -1,17 +1,14 @@
1
1
  import { Api } from "..";
2
+ const api = Api();
2
3
  export class InsuranceService {
3
4
  async fetchQuote(authToken, payload) {
4
5
  const endpoint = 'insurance/quotes';
5
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post({
6
- endpoint,
7
- body: payload,
8
- });
6
+ const body = payload;
7
+ return api.post({ endpoint, body, authToken });
9
8
  }
10
9
  async toggleCoverage(authToken, quoteId, payload) {
11
10
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
12
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post({
13
- endpoint,
14
- body: payload,
15
- });
11
+ const body = payload;
12
+ return api.post({ endpoint, body, authToken });
16
13
  }
17
14
  }
@@ -1,4 +1,4 @@
1
- import Api from "../ApiNew";
1
+ import { Api } from "..";
2
2
  const api = Api();
3
3
  export class PaymentService {
4
4
  async fetchPayments(accountId, authToken, params) {
@@ -1,4 +1,4 @@
1
- import Api from "../ApiNew";
1
+ import { Api } from "..";
2
2
  const api = Api();
3
3
  export class PayoutService {
4
4
  async fetchPayouts(accountId, authToken, params) {
@@ -1,4 +1,4 @@
1
- import Api from "../ApiNew";
1
+ import { Api } from "..";
2
2
  const api = Api();
3
3
  export class ProvisionService {
4
4
  async postProvisioning(authToken, businessId, product) {
@@ -1,4 +1,4 @@
1
- import Api from "../ApiNew";
1
+ import { Api } from "..";
2
2
  const api = Api();
3
3
  ;
4
4
  export class RefundService {
@@ -1,8 +1,8 @@
1
- import Api from "../Api";
1
+ import { Api } from "..";
2
+ const api = Api();
2
3
  export class ReportsService {
3
4
  async fetchGrossVolumeChartData(accountId, authToken) {
4
- const api = Api({ authToken: authToken, apiOrigin: PROXY_API_ORIGIN });
5
5
  const endpoint = `account/${accountId}/reports/gross_volume`;
6
- return api.get({ endpoint });
6
+ return api.get({ endpoint, authToken });
7
7
  }
8
8
  }
@@ -1,4 +1,4 @@
1
- import Api from "../ApiNew";
1
+ import { Api } from "..";
2
2
  const api = Api();
3
3
  export class SubAccountService {
4
4
  async fetchSubAccounts(accountId, authToken, params) {
@@ -1,4 +1,4 @@
1
- import Api from "../ApiNew";
1
+ import { Api } from "..";
2
2
  const api = Api();
3
3
  export class TerminalService {
4
4
  async fetchTerminals(accountId, authToken, params) {
@@ -1,4 +1,4 @@
1
- import Api from "../ApiNew";
1
+ import { Api } from "..";
2
2
  const api = Api();
3
3
  export class TerminalOrderService {
4
4
  async fetchTerminalOrders(accountId, authToken, params) {
@@ -5,7 +5,7 @@
5
5
  "components/business-details/business-details-core.js",
6
6
  "components/business-details/business-details.js",
7
7
  "components/business-details/additional-questions-details/additional-questions-details.js",
8
- "components/business-details/generic-info-details/generic-info-details.js",
8
+ "components/business-details/core-info-details/core-info-details.js",
9
9
  "components/business-details/legal-address-details/legal-address-details.js",
10
10
  "components/business-details/owner-details/owner-details.js",
11
11
  "components/business-details/representative-details/representative-details.js",
@@ -1,12 +1,11 @@
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 { isEmptyObject } from "../../../utils/utils";
4
4
  export class AdditionalQuestionsDetails {
5
5
  render() {
6
- var _a, _b;
7
- if (isEmptyObject(this.additionalQuestions))
6
+ if (!this.additionalQuestions || isEmptyObject(this.additionalQuestions))
8
7
  return null;
9
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), 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: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() }))))));
8
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), 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: "Business Revenue", value: this.additionalQuestions.business_revenue }), h(DetailItem, { title: "Business Payment Volume", value: this.additionalQuestions.business_payment_volume }))))));
10
9
  }
11
10
  static get is() { return "additional-questions-details"; }
12
11
  static get properties() {
@@ -11,7 +11,6 @@ var RENDER_STATES;
11
11
  export class BusinessDetailsCore {
12
12
  constructor() {
13
13
  this.renderState = RENDER_STATES.LOADING;
14
- this.errorMessage = 'An error ocurred.';
15
14
  }
16
15
  async componentWillLoad() {
17
16
  if (this.getBusiness) {
@@ -43,7 +42,7 @@ export class BusinessDetailsCore {
43
42
  if (this.renderState === RENDER_STATES.ERROR) {
44
43
  return h(StyledHost, null, ErrorState(this.errorMessage));
45
44
  }
46
- return (h(StyledHost, null, h("generic-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })));
45
+ return (h(StyledHost, null, h("justifi-details", { "error-message": this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
47
46
  }
48
47
  static get is() { return "business-details-core"; }
49
48
  static get properties() {
@@ -1,4 +1,4 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { ErrorState } from "../../ui-components/details/utils";
3
3
  import { BusinessService } from "../../api/services/business.service";
4
4
  import { makeGetBusiness } from "../../actions/business/get-business";
@@ -6,14 +6,23 @@ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/Component
6
6
  import JustifiAnalytics from "../../api/Analytics";
7
7
  import { checkPkgVersion } from "../../utils/check-pkg-version";
8
8
  export class BusinessDetails {
9
+ constructor() {
10
+ this.errorMessage = null;
11
+ this.handleErrorEvent = event => {
12
+ this.errorMessage = event.detail.message;
13
+ this.errorEvent.emit(event.detail);
14
+ };
15
+ }
9
16
  componentWillLoad() {
10
17
  checkPkgVersion();
11
18
  this.analytics = new JustifiAnalytics(this);
12
19
  this.initializeGetBusiness();
13
20
  }
14
21
  disconnectedCallback() {
15
- this.analytics.cleanup();
22
+ var _a;
23
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
16
24
  }
25
+ ;
17
26
  initializeGetBusiness() {
18
27
  if (!this.businessId || !this.authToken) {
19
28
  this.errorMessage = 'Invalid business id or auth token';
@@ -32,9 +41,9 @@ export class BusinessDetails {
32
41
  }
33
42
  render() {
34
43
  if (this.errorMessage) {
35
- return h(Host, null, ErrorState(this.errorMessage));
44
+ return ErrorState(this.errorMessage);
36
45
  }
37
- return (h(Host, null, h("business-details-core", { getBusiness: this.getBusiness })));
46
+ return (h("business-details-core", { getBusiness: this.getBusiness, "onError-event": this.handleErrorEvent }));
38
47
  }
39
48
  static get is() { return "justifi-business-details"; }
40
49
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,41 @@
1
+ import { h } from "@stencil/core";
2
+ import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
3
+ import { snakeCaseToHumanReadable } from "../../../utils/utils";
4
+ export class CoreInfoDetails {
5
+ render() {
6
+ if (!this.business) {
7
+ return null;
8
+ }
9
+ ;
10
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Core Info 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: "Legal Name", value: this.business.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: this.business.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable(this.business.classification) }), h(DetailItem, { title: "Industry", value: this.business.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: this.business.tax_id }), h(DetailItem, { title: "Website URL", value: this.business.website_url }), h(DetailItem, { title: "Email Address", value: this.business.email }), h(DetailItem, { title: "Phone Number", value: this.business.phone }))))));
11
+ }
12
+ static get is() { return "core-info-details"; }
13
+ static get properties() {
14
+ return {
15
+ "business": {
16
+ "type": "unknown",
17
+ "attribute": "business",
18
+ "mutable": false,
19
+ "complexType": {
20
+ "original": "Business",
21
+ "resolved": "Business",
22
+ "references": {
23
+ "Business": {
24
+ "location": "import",
25
+ "path": "../../../api/Business",
26
+ "id": "src/api/Business.ts::Business"
27
+ }
28
+ }
29
+ },
30
+ "required": false,
31
+ "optional": false,
32
+ "docs": {
33
+ "tags": [],
34
+ "text": ""
35
+ },
36
+ "getter": false,
37
+ "setter": false
38
+ }
39
+ };
40
+ }
41
+ }
@@ -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 { isEmptyObject } from "../../../utils/utils";
4
4
  export class LegalAddressDetails {
5
5
  render() {
6
6
  var _a, _b, _c, _d, _e, _f, _g;
7
- if (isEmptyObject(this.legalAddress))
7
+ if (!this.legalAddress || isEmptyObject(this.legalAddress))
8
8
  return null;
9
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address 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: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
9
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address 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: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
10
10
  }
11
11
  static get is() { return "legal-address-details"; }
12
12
  static get properties() {
@@ -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() {
@@ -52,8 +52,10 @@ export class BusinessForm {
52
52
  this.initializeApi();
53
53
  }
54
54
  disconnectedCallback() {
55
- this.analytics.cleanup();
55
+ var _a;
56
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
56
57
  }
58
+ ;
57
59
  get title() {
58
60
  return this.removeTitle ? '' : this.formTitle;
59
61
  }
@@ -19,8 +19,10 @@ export class PaymentProvisioning {
19
19
  this.initializeApi();
20
20
  }
21
21
  disconnectedCallback() {
22
- this.analytics.cleanup();
22
+ var _a;
23
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
23
24
  }
25
+ ;
24
26
  initializeApi() {
25
27
  if (this.authToken && this.businessId) {
26
28
  this.getBusiness = makeGetBusiness({
@@ -44,7 +46,7 @@ export class PaymentProvisioning {
44
46
  }
45
47
  }
46
48
  render() {
47
- return (h("justifi-payment-provisioning-core", { key: 'ab584a720ecfc7ec4e68082fefadeb11fd2884d2', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
49
+ return (h("justifi-payment-provisioning-core", { key: '11871305b4b4974787a9278195ea0b314be250b0', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
48
50
  }
49
51
  static get is() { return "justifi-payment-provisioning"; }
50
52
  static get encapsulation() { return "shadow"; }
@@ -11,7 +11,7 @@ export class BusinessTermsConditionsFormStep {
11
11
  this.fetchData = async () => {
12
12
  this.formLoading.emit(true);
13
13
  try {
14
- const response = await this.api.get({ endpoint: this.businessEndpoint });
14
+ const response = await this.api.get({ endpoint: this.businessEndpoint, authToken: this.authToken });
15
15
  this.acceptedTermsBefore = response.data.terms_conditions_accepted;
16
16
  }
17
17
  catch (error) {
@@ -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) {
@@ -67,7 +67,7 @@ export class BusinessTermsConditionsFormStep {
67
67
  };
68
68
  }
69
69
  async componentWillLoad() {
70
- this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
70
+ this.api = Api();
71
71
  this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
72
72
  if (this.businessId && this.authToken) {
73
73
  this.fetchData();
@@ -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: '2da7d2ed790cc896168c3034642b5e1c4b5aab5b' }, h("fieldset", { key: '1fd89c9ef9d1f65647280d8b7d80625ee6fcde3a' }, h("legend", { key: 'c8d4b44f530bf4b702523ebd10b2abef4321c1e5', part: heading2 }, "Terms and Conditions"), h("hr", { key: '5b16410dea6ee295e9546bb7d9f69c47b5a3a2a0' }), h("div", { key: '0863be82b21e863fbd59eadcf6eb6bf214f7be5c' }, h("p", { key: '9cc14fe90dafba81b5f979b6cd36bfb820c84d5e' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '357aa6a506fe3c4fdb2d2cdd5250096fc6707bad' }), h("div", { key: 'f9196a0f47187d263b1eea9157307e2a0bd58eab', class: "row-gy-3" }, h("div", { key: 'd753c0ea76488813acc49034e433f82ac6aea8c2', class: "col-12" }, h("form-control-checkbox", { key: 'e2fd2f318fd357959bb0768008f8c9f0242f7fe6', 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": "",
@@ -14,8 +14,10 @@ export class Checkout {
14
14
  this.initializeGetCheckout();
15
15
  }
16
16
  disconnectedCallback() {
17
- this.analytics.cleanup();
17
+ var _a;
18
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
18
19
  }
20
+ ;
19
21
  initializeGetCheckout() {
20
22
  if (this.authToken && this.checkoutId) {
21
23
  this.getCheckout = makeGetCheckout({
@@ -48,11 +50,11 @@ export class Checkout {
48
50
  return { isValid };
49
51
  }
50
52
  render() {
51
- return (h("justifi-checkout-core", { key: '2a0e3529580beae8de71d6305e3ca9af2c705ee5', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: el => {
53
+ return (h("justifi-checkout-core", { key: 'c1c7cf4f1aadce928e3ed6a6ae05a7824d875d68', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: el => {
52
54
  if (el) {
53
55
  this.checkoutCoreRef = el;
54
56
  }
55
- } }, h("div", { key: '132ad877917930b63fdd9d4ff5432d2f6a82a76d', slot: "insurance" }, h("slot", { key: '9854d96105ebac1adc176ea195f0e0b2b792b125', name: "insurance" }))));
57
+ } }, h("div", { key: '7a4be7220e5eb199f94c5086c23e10dce68d4854', slot: "insurance" }, h("slot", { key: 'f5db23ef6dc82d0521518ea2dbfe99d8c8b6c2cc', name: "insurance" }))));
56
58
  }
57
59
  static get is() { return "justifi-checkout"; }
58
60
  static get properties() {
@@ -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": "",
@@ -23,8 +23,10 @@ export class CheckoutsList {
23
23
  this.initializeGetData();
24
24
  }
25
25
  disconnectedCallback() {
26
- this.analytics.cleanup();
26
+ var _a;
27
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
27
28
  }
29
+ ;
28
30
  propChanged() {
29
31
  this.initializeGetData();
30
32
  }
@@ -59,7 +61,7 @@ export class CheckoutsList {
59
61
  }
60
62
  }
61
63
  render() {
62
- return (h(StyledHost, { key: '086d85512b11a65ac2d8960f515e373093d4bd96' }, h("checkouts-list-core", { key: 'abe06be934ac5f13ec98425f29c6b6b7c0ff4456', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
64
+ return (h(StyledHost, { key: 'c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7' }, h("checkouts-list-core", { key: '484d31c0b0434181b3bd69cb9c3b6810aa0f2983', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
63
65
  }
64
66
  static get is() { return "justifi-checkouts-list"; }
65
67
  static get encapsulation() { return "shadow"; }
@@ -18,7 +18,8 @@ export class DisputeManagement {
18
18
  this.initializeGetDispute();
19
19
  }
20
20
  disconnectedCallback() {
21
- this.analytics.cleanup();
21
+ var _a;
22
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
22
23
  }
23
24
  ;
24
25
  propChanged() {
@@ -42,7 +43,7 @@ export class DisputeManagement {
42
43
  }
43
44
  }
44
45
  render() {
45
- return (h("justifi-dispute-management-core", { key: '12e281244496ede936b191dbc5b4069404d931e9', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
46
+ return (h("justifi-dispute-management-core", { key: '5abe4c29317f9baa7fc40d82e2cd533de321d58f', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
46
47
  }
47
48
  static get is() { return "justifi-dispute-management"; }
48
49
  static get properties() {
@@ -20,8 +20,10 @@ export class DisputeResponse {
20
20
  this.initializeDisputeServiceMethods();
21
21
  }
22
22
  disconnectedCallback() {
23
- this.analytics.cleanup();
23
+ var _a;
24
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
24
25
  }
26
+ ;
25
27
  propChanged() {
26
28
  this.initializeDisputeServiceMethods();
27
29
  }
@@ -53,7 +55,7 @@ export class DisputeResponse {
53
55
  }
54
56
  }
55
57
  render() {
56
- return (h(StyledHost, { key: '4c0cd0b8a082d9f2f4428868d88cbb9bde2a3a5d' }, h("justifi-dispute-response-core", { key: '58bbf7f5b2ce8efea0467efddfeffe3c752a3402', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
58
+ return (h(StyledHost, { key: '6f1fd8e2109c806c82c63cfd046739e18cc2b3b7' }, h("justifi-dispute-response-core", { key: '56cba360a731ed4054c89c11250f115a7e3b9e63', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
57
59
  }
58
60
  ;
59
61
  static get is() { return "justifi-dispute-response"; }