@justifi/webcomponents 6.12.6 → 6.12.7-rc.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 (319) hide show
  1. package/dist/cjs/{Analytics-CuYtRPw5.js → Analytics-BeXvM43S.js} +2 -2
  2. package/dist/cjs/{Plaid-BRSyOOuw.js → Plaid-KasiL5mp.js} +14 -19
  3. package/dist/cjs/{additional-questions-form-step_14.cjs.entry.js → additional-questions-form-step_15.cjs.entry.js} +378 -169
  4. package/dist/cjs/additional-questions_5.cjs.entry.js +7 -7
  5. package/dist/cjs/additional-statement_8.cjs.entry.js +1 -1
  6. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
  7. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +21 -0
  8. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{business-form-options-D_nM7NDk.js → business-form-options-CnlrfbQ6.js} +51 -0
  10. package/dist/cjs/{business-identity-schema-DuFGX6_i.js → business-identity-schema-CC1wOwXd.js} +11 -7
  11. package/dist/cjs/{business.service-Z9OACEQL.js → business.service-BBovho58.js} +1 -1
  12. package/dist/cjs/card-form.cjs.entry.js +2 -2
  13. package/dist/cjs/{check-pkg-version-CPWLIT6P.js → check-pkg-version-BhNoPxct.js} +1 -1
  14. package/dist/cjs/{checkout.service-BZOyqXgW.js → checkout.service-C0M9hmsL.js} +1 -1
  15. package/dist/cjs/{country-config-aJp8ScEs.js → country-config-Ck-eEeZZ.js} +2 -0
  16. package/dist/cjs/dispute-notification_2.cjs.entry.js +6 -6
  17. package/dist/cjs/{event-types-AU1B76Vm.js → event-types-DDNVjmfR.js} +1 -1
  18. package/dist/cjs/form-address-fields_3.cjs.entry.js +1 -1
  19. package/dist/cjs/form-control-number_2.cjs.entry.js +5 -4
  20. package/dist/cjs/{get-business-aR-C83KX.js → get-business-Ggw-UjXj.js} +2 -2
  21. package/dist/cjs/{get-payment-details-dwhA02Zl.js → get-payment-details-BVKRwME1.js} +2 -2
  22. package/dist/cjs/{get-subaccounts-B1jmSa2d.js → get-subaccounts-RRmcS9xU.js} +2 -2
  23. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  24. package/dist/cjs/{index.esm-C1ZPG85l.js → index.esm-BNETBIV_.js} +0 -18
  25. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +8 -8
  26. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  29. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
  31. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  32. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  34. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  35. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
  36. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -8
  37. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  38. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
  39. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
  40. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -8
  41. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
  43. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
  46. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
  47. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  48. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -9
  49. package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
  50. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
  52. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
  54. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
  55. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/{package-Dxjq_cJI.js → package-BEc4P6pn.js} +1 -1
  59. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  60. package/dist/cjs/{payment-provisioning-actions-BiSpysjW.js → payment-provisioning-actions-Cn8bgHKu.js} +2 -2
  61. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +3 -2
  62. package/dist/cjs/{payment.service-ByrgA_QZ.js → payment.service-CbIxt30x.js} +1 -1
  63. package/dist/cjs/{payout.service-CnQm_BpU.js → payout.service-DVMvsdAf.js} +1 -1
  64. package/dist/cjs/{payouts-status-AuS3Mp0V.js → payouts-status-CzS2CLGW.js} +2 -2
  65. package/dist/cjs/{plaid.service-Dlb8EUR8.js → plaid.service-DNT_DX6z.js} +1 -1
  66. package/dist/cjs/{schema-validations-DNPcvDh5.js → schema-validations-DackMxv7.js} +11 -8
  67. package/dist/cjs/styled-host-Ch0-dxF-.js +11 -0
  68. package/dist/cjs/{terminal.service-BdwHQ3Vv.js → terminal.service-BBHixg-d.js} +1 -1
  69. package/dist/cjs/{utils-FVGp6se3.js → utils-kDsk4nqH.js} +1 -1
  70. package/dist/cjs/webcomponents.cjs.js +1 -1
  71. package/dist/collection/api/Document.js +14 -7
  72. package/dist/collection/collection-manifest.json +2 -0
  73. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  74. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +5 -3
  75. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +4 -2
  76. package/dist/collection/components/business-forms/owner-form/owner-form.js +46 -1
  77. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +1 -1
  78. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +6 -114
  79. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  80. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +8 -0
  81. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -2
  82. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +435 -0
  83. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-list.js +52 -0
  84. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-options.js +72 -0
  85. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +1 -1
  86. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +3 -2
  87. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +10 -38
  88. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  89. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +7 -3
  90. package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -5
  91. package/dist/collection/components/business-forms/utils/business-form-options.js +50 -0
  92. package/dist/collection/components/business-forms/utils/country-config.js +2 -0
  93. package/dist/collection/ui-components/form/form-control-file.js +1 -1
  94. package/dist/docs.json +496 -64
  95. package/dist/esm/{Analytics-CwckfiSK.js → Analytics-D0PhqCxC.js} +2 -2
  96. package/dist/esm/{Plaid-l6nNIjab.js → Plaid-BM3JUIG5.js} +15 -19
  97. package/dist/esm/{additional-questions-form-step_14.entry.js → additional-questions-form-step_15.entry.js} +377 -169
  98. package/dist/esm/additional-questions_5.entry.js +8 -8
  99. package/dist/esm/additional-statement_8.entry.js +1 -1
  100. package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
  101. package/dist/esm/bank-account-document-form-inputs.entry.js +19 -0
  102. package/dist/esm/bank-account-form.entry.js +2 -2
  103. package/dist/esm/{business-form-options-DRalxlqN.js → business-form-options-DXjZp4Rl.js} +51 -1
  104. package/dist/esm/{business-identity-schema-0Q3kck3C.js → business-identity-schema-D8L_UfWl.js} +11 -7
  105. package/dist/esm/{business.service-C31wbMVs.js → business.service-C4BD3pf7.js} +1 -1
  106. package/dist/esm/card-form.entry.js +2 -2
  107. package/dist/esm/{check-pkg-version-Dy2NK3Nn.js → check-pkg-version-CAHx7crY.js} +1 -1
  108. package/dist/esm/{checkout.service-cVdOGDuI.js → checkout.service-DmWeKNQs.js} +1 -1
  109. package/dist/esm/{country-config-CdvhLcnT.js → country-config-BW2dUoTJ.js} +2 -0
  110. package/dist/esm/dispute-notification_2.entry.js +6 -6
  111. package/dist/esm/{event-types-DalU_6SB.js → event-types-eIqsrwmW.js} +1 -1
  112. package/dist/esm/form-address-fields_3.entry.js +1 -1
  113. package/dist/esm/form-control-number_2.entry.js +5 -4
  114. package/dist/esm/{get-business-Gg6qn5on.js → get-business-DtFHdc37.js} +2 -2
  115. package/dist/esm/{get-payment-details-BiWgSJau.js → get-payment-details-26GxiYgv.js} +2 -2
  116. package/dist/esm/{get-subaccounts-CkjZeR9U.js → get-subaccounts-xkGMPstt.js} +2 -2
  117. package/dist/esm/hidden-input_2.entry.js +1 -1
  118. package/dist/esm/{index.esm-BHdVU4hV.js → index.esm-KCSohgHx.js} +1 -18
  119. package/dist/esm/justifi-apple-pay_11.entry.js +8 -8
  120. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  121. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  122. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  123. package/dist/esm/justifi-billing-form.entry.js +1 -1
  124. package/dist/esm/justifi-business-details.entry.js +8 -8
  125. package/dist/esm/justifi-business-form.entry.js +13 -13
  126. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  127. package/dist/esm/justifi-card-form.entry.js +5 -5
  128. package/dist/esm/justifi-checkout.entry.js +5 -5
  129. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  130. package/dist/esm/justifi-checkouts-list.entry.js +8 -8
  131. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  132. package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
  133. package/dist/esm/justifi-order-terminals.entry.js +9 -9
  134. package/dist/esm/justifi-payment-details.entry.js +8 -8
  135. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  136. package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
  137. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  138. package/dist/esm/justifi-payments-list.entry.js +7 -7
  139. package/dist/esm/justifi-payout-details.entry.js +8 -8
  140. package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
  141. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  142. package/dist/esm/justifi-payouts-list.entry.js +9 -9
  143. package/dist/esm/justifi-refund-payment.entry.js +9 -9
  144. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  145. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  146. package/dist/esm/justifi-skeleton.entry.js +1 -1
  147. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
  148. package/dist/esm/justifi-terminal-orders-list.entry.js +6 -6
  149. package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
  150. package/dist/esm/justifi-terminals-list.entry.js +8 -8
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/{package-DAZd_gFd.js → package-Blb_02Wm.js} +1 -1
  153. package/dist/esm/payment-method-option.entry.js +1 -1
  154. package/dist/esm/{payment-provisioning-actions-cl5xIYnF.js → payment-provisioning-actions-fWdNDUdq.js} +2 -2
  155. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +3 -2
  156. package/dist/esm/{payment.service-5_u-UzTY.js → payment.service-CWR7jF-K.js} +1 -1
  157. package/dist/esm/{payout.service-D2zS5y8N.js → payout.service-CFU362cH.js} +1 -1
  158. package/dist/esm/{payouts-status-DCjCGTaa.js → payouts-status-D2G7FKu1.js} +2 -2
  159. package/dist/esm/{plaid.service-BiJ65YG8.js → plaid.service-0hd1i5Ga.js} +1 -1
  160. package/dist/esm/{schema-validations-A1o1biOB.js → schema-validations-CjqWFLKt.js} +11 -8
  161. package/dist/esm/styled-host-D84RBv1W.js +9 -0
  162. package/dist/esm/{terminal.service-CIxDfM7V.js → terminal.service-Dr6dERcJ.js} +1 -1
  163. package/dist/esm/{utils-C1B2hVAB.js → utils-q7KOrlSX.js} +1 -1
  164. package/dist/esm/webcomponents.js +1 -1
  165. package/dist/module/Plaid.js +15 -19
  166. package/dist/module/additional-questions-form-step2.js +11 -5
  167. package/dist/module/bank-account-document-form-inputs.js +55 -1
  168. package/dist/module/business-bank-account-form-step2.js +24 -177
  169. package/dist/module/business-core-info-form-step2.js +2 -2
  170. package/dist/module/business-core-info-schema.js +1 -1
  171. package/dist/module/business-core-info2.js +3 -3
  172. package/dist/module/business-documents-on-file2.js +1 -1
  173. package/dist/module/business-form-options.js +51 -1
  174. package/dist/module/business-identity-schema.js +7 -3
  175. package/dist/module/business-owners-form-step2.js +8 -0
  176. package/dist/module/business-representative-form-inputs2.js +5 -3
  177. package/dist/module/business-representative2.js +6 -5
  178. package/dist/module/button.js +1 -1
  179. package/dist/module/country-config.js +2 -0
  180. package/dist/module/document-upload-form-step.d.ts +11 -0
  181. package/dist/module/document-upload-form-step.js +6 -0
  182. package/dist/module/document-upload-form-step2.js +397 -0
  183. package/dist/module/document-upload-list.d.ts +11 -0
  184. package/dist/module/document-upload-list.js +6 -0
  185. package/dist/module/document-upload-list2.js +46 -0
  186. package/dist/module/form-control-number2.js +1 -1
  187. package/dist/module/form-control-textarea2.js +1 -1
  188. package/dist/module/form.js +1 -18
  189. package/dist/module/hidden-input2.js +1 -1
  190. package/dist/module/iframe-input2.js +1 -1
  191. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  192. package/dist/module/justifi-checkouts-list.js +2 -2
  193. package/dist/module/justifi-dispute-management.js +1 -1
  194. package/dist/module/justifi-modular-checkout2.js +1 -1
  195. package/dist/module/justifi-order-terminals.js +2 -2
  196. package/dist/module/justifi-payment-details.js +1 -1
  197. package/dist/module/justifi-payment-provisioning.js +33 -27
  198. package/dist/module/justifi-payment-transactions-list.js +2 -2
  199. package/dist/module/justifi-payments-list.js +1 -1
  200. package/dist/module/justifi-payout-details.js +1 -1
  201. package/dist/module/justifi-payout-transactions-list.js +2 -2
  202. package/dist/module/justifi-payouts-list-filters.js +1 -1
  203. package/dist/module/justifi-payouts-list.js +2 -2
  204. package/dist/module/justifi-refund-payment.js +1 -1
  205. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  206. package/dist/module/justifi-terminal-orders-list.js +2 -2
  207. package/dist/module/justifi-terminals-list-filters.js +1 -1
  208. package/dist/module/justifi-terminals-list.js +2 -2
  209. package/dist/module/owner-form-inputs2.js +5 -3
  210. package/dist/module/owner-form2.js +10 -1
  211. package/dist/module/package.js +1 -1
  212. package/dist/module/parts.js +1 -1
  213. package/dist/module/payment-provisioning-actions.js +1 -1
  214. package/dist/module/payment-provisioning-form-steps2.js +35 -28
  215. package/dist/module/plaid-verification2.js +1 -1
  216. package/dist/module/schema-validations.js +8 -5
  217. package/dist/module/skeleton.js +1 -1
  218. package/dist/module/styled-host.js +1 -1
  219. package/dist/module/table.js +1 -1
  220. package/dist/module/terminal-quantity-selector2.js +1 -1
  221. package/dist/types/api/Document.d.ts +15 -2
  222. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  223. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -12
  224. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.d.ts +44 -0
  225. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-list.d.ts +6 -0
  226. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-options.d.ts +44 -0
  227. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +1 -0
  228. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +4 -4
  229. package/dist/types/components/business-forms/utils/business-form-options.d.ts +1 -0
  230. package/dist/types/components.d.ts +67 -0
  231. package/dist/webcomponents/{p-oTtn8xDw.js → p--RbNhyet.js} +1 -1
  232. package/dist/webcomponents/{p-4ee55e7d.entry.js → p-07a89d7a.entry.js} +1 -1
  233. package/dist/webcomponents/{p-e02d7751.entry.js → p-09f51c5c.entry.js} +4 -4
  234. package/dist/webcomponents/{p-ca87c609.entry.js → p-0a4fcb15.entry.js} +1 -1
  235. package/dist/webcomponents/{p-b0b6083f.entry.js → p-0b169fac.entry.js} +1 -1
  236. package/dist/webcomponents/{p-07eaee91.entry.js → p-0c2cdb91.entry.js} +1 -1
  237. package/dist/webcomponents/{p-f1b9cbf0.entry.js → p-0e4cda77.entry.js} +1 -1
  238. package/dist/webcomponents/{p-6904c62c.entry.js → p-191797d9.entry.js} +1 -1
  239. package/dist/webcomponents/{p-b62ff001.entry.js → p-1e34c488.entry.js} +1 -1
  240. package/dist/webcomponents/{p-b21010cb.entry.js → p-233fef57.entry.js} +1 -1
  241. package/dist/webcomponents/{p-bc2dddf3.entry.js → p-2ade0336.entry.js} +1 -1
  242. package/dist/webcomponents/{p-8e56430a.entry.js → p-2ae9d5d3.entry.js} +1 -1
  243. package/dist/webcomponents/{p-cf3e3394.entry.js → p-31e0449b.entry.js} +1 -1
  244. package/dist/webcomponents/p-368c600f.entry.js +1 -0
  245. package/dist/webcomponents/{p-41637e4a.entry.js → p-374ce853.entry.js} +1 -1
  246. package/dist/webcomponents/p-37676092.entry.js +1 -0
  247. package/dist/webcomponents/p-3a4137e7.entry.js +1 -0
  248. package/dist/webcomponents/{p-78c4668b.entry.js → p-3c3fbcca.entry.js} +1 -1
  249. package/dist/webcomponents/{p-c4767c7b.entry.js → p-3e10a0de.entry.js} +1 -1
  250. package/dist/webcomponents/{p-3cefb032.entry.js → p-4b14b7e7.entry.js} +1 -1
  251. package/dist/webcomponents/p-557b2a80.entry.js +1 -0
  252. package/dist/webcomponents/{p-d5edbea3.entry.js → p-667a078f.entry.js} +1 -1
  253. package/dist/webcomponents/{p-7377f7d1.entry.js → p-6768d5f6.entry.js} +1 -1
  254. package/dist/webcomponents/p-6872d22b.entry.js +1 -0
  255. package/dist/webcomponents/{p-08ab97ce.entry.js → p-6c807ddc.entry.js} +1 -1
  256. package/dist/webcomponents/{p-d01a1076.entry.js → p-70cb8b60.entry.js} +1 -1
  257. package/dist/webcomponents/{p-a2c25cc4.entry.js → p-76897b50.entry.js} +1 -1
  258. package/dist/webcomponents/{p-1f34b2f7.entry.js → p-80fdd013.entry.js} +1 -1
  259. package/dist/webcomponents/{p-3ef07f42.entry.js → p-864b6f32.entry.js} +1 -1
  260. package/dist/webcomponents/p-943dfa47.entry.js +1 -0
  261. package/dist/webcomponents/{p-9153c121.entry.js → p-947950cc.entry.js} +1 -1
  262. package/dist/webcomponents/p-B1yVkh15.js +1 -0
  263. package/dist/webcomponents/{p-Axa3cgnH.js → p-B3vR2OUB.js} +1 -1
  264. package/dist/webcomponents/{p-Bt4GjEWL.js → p-BBSnDYJw.js} +1 -1
  265. package/dist/webcomponents/{p-av6jyzyC.js → p-BSyTbuZy.js} +1 -1
  266. package/dist/webcomponents/p-Blb_02Wm.js +1 -0
  267. package/dist/webcomponents/{p-APOabprT.js → p-BrFax4_P.js} +1 -1
  268. package/dist/webcomponents/p-BzXQDB0t.js +1 -0
  269. package/dist/webcomponents/{p-BxKbnILQ.js → p-C-zuQNNP.js} +1 -1
  270. package/dist/webcomponents/{p-Cm9f5fyh.js → p-CDu7TeCZ.js} +1 -1
  271. package/dist/webcomponents/{p-BJu1-9kE.js → p-CL8LyqRI.js} +1 -1
  272. package/dist/webcomponents/{p-fE5A37L5.js → p-Cz0yhyYu.js} +1 -1
  273. package/dist/webcomponents/p-D9ZHVy-j.js +1 -0
  274. package/dist/webcomponents/{p-CKiAlBsU.js → p-D9sqTVmd.js} +1 -1
  275. package/dist/webcomponents/p-DV4n8kZd.js +1 -0
  276. package/dist/webcomponents/{p-Dk26hk5T.js → p-DdeBubpX.js} +1 -1
  277. package/dist/webcomponents/{p-BdpSLMs7.js → p-DyNR3yHR.js} +1 -1
  278. package/dist/webcomponents/p-DzEdYT8R.js +1 -0
  279. package/dist/webcomponents/{p-NZS8uCtH.js → p-Dzv0P2Ly.js} +1 -1
  280. package/dist/webcomponents/{p-a7a1b168.entry.js → p-a3b48ba3.entry.js} +1 -1
  281. package/dist/webcomponents/{p-ebb7b693.entry.js → p-a3fe126f.entry.js} +1 -1
  282. package/dist/webcomponents/{p-a9e82502.entry.js → p-a4849f3b.entry.js} +1 -1
  283. package/dist/webcomponents/p-a9976353.entry.js +1 -0
  284. package/dist/webcomponents/{p-279c17ac.entry.js → p-af1d7ba7.entry.js} +1 -1
  285. package/dist/webcomponents/{p-d79c5ee4.entry.js → p-b17ce21d.entry.js} +1 -1
  286. package/dist/webcomponents/{p-2a5ee558.entry.js → p-b777d62f.entry.js} +1 -1
  287. package/dist/webcomponents/p-cab840bd.entry.js +1 -0
  288. package/dist/webcomponents/{p-e17b92ec.entry.js → p-cc558e25.entry.js} +1 -1
  289. package/dist/webcomponents/{p-BXyADlAH.js → p-czJ2qSU1.js} +1 -1
  290. package/dist/webcomponents/{p-38209a25.entry.js → p-d59c5fa6.entry.js} +1 -1
  291. package/dist/webcomponents/{p-e07506b7.entry.js → p-e0494c03.entry.js} +1 -1
  292. package/dist/webcomponents/{p-b8351983.entry.js → p-eb9ea201.entry.js} +1 -1
  293. package/dist/webcomponents/{p-a56e43a1.entry.js → p-f1ee97ba.entry.js} +1 -1
  294. package/dist/webcomponents/{p-4b39a470.entry.js → p-f61066db.entry.js} +1 -1
  295. package/dist/webcomponents/{p-9d676f54.entry.js → p-fed3bfac.entry.js} +1 -1
  296. package/dist/webcomponents/p-n_pmf4AT.js +1 -0
  297. package/dist/webcomponents/p-vUN_uvAi.js +1 -0
  298. package/dist/webcomponents/{p-Ba8jdOkX.js → p-xWuaNtJy.js} +1 -1
  299. package/dist/webcomponents/webcomponents.esm.js +1 -1
  300. package/package.json +14 -14
  301. package/LICENSE +0 -21
  302. package/dist/cjs/styled-host-DAi5SuFa.js +0 -11
  303. package/dist/esm/styled-host-D6byRazK.js +0 -9
  304. package/dist/module/bank-account-document-form-inputs2.js +0 -57
  305. package/dist/webcomponents/p-034fa691.entry.js +0 -1
  306. package/dist/webcomponents/p-2aac2ab6.entry.js +0 -1
  307. package/dist/webcomponents/p-37254105.entry.js +0 -1
  308. package/dist/webcomponents/p-5G1OMxZz.js +0 -1
  309. package/dist/webcomponents/p-9b5ca32c.entry.js +0 -1
  310. package/dist/webcomponents/p-Aacb4jqT.js +0 -1
  311. package/dist/webcomponents/p-BqNNwq6C.js +0 -1
  312. package/dist/webcomponents/p-D8ytux5N.js +0 -1
  313. package/dist/webcomponents/p-DAZd_gFd.js +0 -1
  314. package/dist/webcomponents/p-DrMJliVY.js +0 -1
  315. package/dist/webcomponents/p-XIWgia4J.js +0 -1
  316. package/dist/webcomponents/p-c8bc235f.entry.js +0 -1
  317. package/dist/webcomponents/p-ea254f14.entry.js +0 -1
  318. package/dist/webcomponents/p-ff8cf16c.entry.js +0 -1
  319. package/dist/webcomponents/p-nb_LhbJq.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { h } from '@stencil/core/internal/client';
2
- import { A as table, ai as tableHead, aj as tableHeadRow, ak as tableRow, al as tableFoot, am as tableFootRow, an as tableFootCell, ao as tableEmpty, ap as tableError, C as tableCell } from './parts.js';
2
+ import { C as table, ai as tableHead, aj as tableHeadRow, ak as tableRow, al as tableFoot, am as tableFootRow, an as tableFootCell, ao as tableEmpty, ap as tableError, E as tableCell } from './parts.js';
3
3
  import { S as Spinner } from './spinner.js';
4
4
 
5
5
  const TableWrapper = (props, children) => {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { z as card, a0 as image, a1 as buttonLink } from './parts.js';
2
+ import { B as card, a0 as image, a1 as buttonLink } from './parts.js';
3
3
  import { d as defineCustomElement$2 } from './custom-popper2.js';
4
4
  import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
5
5
 
@@ -20,7 +20,19 @@ export declare enum EntityDocumentType {
20
20
  governmentId = "government_id",
21
21
  profitAndLossStatement = "profit_and_loss_statement",
22
22
  taxReturn = "tax_return",
23
- other = "other"
23
+ other = "other",
24
+ articlesOfIncorporation = "articles_of_incorporation",
25
+ businessRegistration = "business_registration",
26
+ passport = "passport",
27
+ driverLicense = "driver_license",
28
+ residentCard = "resident_card",
29
+ statusCard = "status_card",
30
+ nexusCard = "nexus_card",
31
+ citizenshipCard = "citizenship_card",
32
+ foreignPassport = "foreign_passport",
33
+ birthCertificate = "birth_certificate",
34
+ sinCard = "sin_card",
35
+ ssnCard = "ssn_card"
24
36
  }
25
37
  export declare enum EntityDocumentStatus {
26
38
  pending = "pending",
@@ -37,6 +49,7 @@ export interface DocumentRecordData {
37
49
  document_type: EntityDocumentType;
38
50
  file_name: string;
39
51
  file_type: string;
52
+ identity_id?: string;
40
53
  }
41
54
  export declare class EntityDocumentStorage {
42
55
  voided_check: EntityDocument[];
@@ -58,7 +71,7 @@ export declare class EntityDocument {
58
71
  document_type: EntityDocumentType;
59
72
  presigned_url: string | null;
60
73
  record_data: DocumentRecordData | null;
61
- constructor(fileData: EntityFileData, business_id: string);
74
+ constructor(fileData: EntityFileData, business_id: string, identity_id?: string);
62
75
  getFileData(): Promise<ArrayBuffer>;
63
76
  setPresignedUrl(url: string): void;
64
77
  }
@@ -26,6 +26,8 @@ export declare class OwnerForm {
26
26
  ownerSubmitted: EventEmitter<any>;
27
27
  constructor();
28
28
  returnOwnerData(): Promise<string>;
29
+ getOwnershipPercentage(): Promise<string | null>;
30
+ setOwnershipPercentageError(message: string): Promise<void>;
29
31
  validate(): Promise<boolean>;
30
32
  submit(): Promise<boolean>;
31
33
  validateAndSubmit(event: any): Promise<void>;
@@ -1,19 +1,15 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { ComponentErrorEvent, ComponentFormStepCompleteEvent, IBankAccount, EntityDocument, EntityDocumentStorage, FileSelectEvent } from '../../../../api';
2
+ import { ComponentErrorEvent, ComponentFormStepCompleteEvent, IBankAccount } from '../../../../api';
3
3
  import { CountryCode } from '../../../../utils/country-codes';
4
4
  import { FormController } from '../../../../ui-components/form/form';
5
5
  export declare class BusinessBankAccountFormStep {
6
6
  formController: FormController;
7
7
  errors: any;
8
8
  bankAccount: IBankAccount;
9
- existingDocuments: any;
10
- documentData: EntityDocumentStorage;
11
9
  isLoading: boolean;
12
10
  viewMode: 'readonly' | 'plaid' | 'manual';
13
11
  getBusiness: Function;
14
12
  postBankAccount: Function;
15
- postDocumentRecord: Function;
16
- postDocument: Function;
17
13
  bankAccountVerification: boolean;
18
14
  platformAccountId: string | null;
19
15
  authToken: string;
@@ -34,7 +30,6 @@ export declare class BusinessBankAccountFormStep {
34
30
  private getSchema;
35
31
  initializeFormController: () => void;
36
32
  inputHandler: (name: string, value: string) => void;
37
- storeFiles: (e: CustomEvent<FileSelectEvent>) => void;
38
33
  get postPayload(): {
39
34
  account_owner_name: string;
40
35
  account_type: string;
@@ -60,15 +55,9 @@ export declare class BusinessBankAccountFormStep {
60
55
  handleToggleToManualEntry: () => void;
61
56
  handleToggleToPlaidVerification: () => void;
62
57
  handleSaveBankAccount: () => Promise<void>;
63
- private postBusinessDocuments;
64
- private postDocumentRecordData;
65
- handleDocRecordResponse: (docData: EntityDocument, response: any) => boolean;
66
- uploadDocument: (docData: EntityDocument) => Promise<boolean>;
67
- handleUploadResponse: (response: any) => boolean;
68
58
  private renderBankAccountInputs;
69
59
  private renderReadonlyView;
70
60
  private renderPlaidView;
71
61
  private renderManualEntryView;
72
- private renderDocumentUploads;
73
62
  render(): any;
74
63
  }
@@ -0,0 +1,44 @@
1
+ import { EventEmitter } from '../../../../stencil-public-runtime';
2
+ import { ComponentErrorEvent, ComponentFormStepCompleteEvent, FileSelectEvent, IDocument, Identity } from '../../../../api';
3
+ import { CountryCode } from '../../../../utils/country-codes';
4
+ import { UploadedDocumentEntry } from './document-upload-options';
5
+ export declare class DocumentUploadFormStep {
6
+ authToken: string;
7
+ businessId: string;
8
+ allowOptionalFields?: boolean;
9
+ country: CountryCode;
10
+ owners: Identity[];
11
+ existingDocuments: IDocument[];
12
+ selectedCategory: string;
13
+ selectedDocType: string;
14
+ uploadQueue: UploadedDocumentEntry[];
15
+ isLoading: boolean;
16
+ errors: {
17
+ [key: string]: string;
18
+ };
19
+ fileInputKey: number;
20
+ getBusiness: Function;
21
+ postDocumentRecord: Function;
22
+ private categories;
23
+ propChanged(): void;
24
+ watchHandler(newValue: boolean): void;
25
+ errorEvent: EventEmitter<ComponentErrorEvent>;
26
+ stepCompleteEvent: EventEmitter<ComponentFormStepCompleteEvent>;
27
+ formLoading: EventEmitter<boolean>;
28
+ validateAndSubmit({ onSuccess }: {
29
+ onSuccess: any;
30
+ }): Promise<void>;
31
+ componentWillLoad(): void;
32
+ private initializeApi;
33
+ private getData;
34
+ private get categoryOptions();
35
+ private get docTypeOptions();
36
+ private validate;
37
+ handleCategoryChange: (_name: string, value: string) => void;
38
+ handleDocTypeChange: (_name: string, value: string) => void;
39
+ handleFileSelected: (e: CustomEvent<FileSelectEvent>) => Promise<void>;
40
+ private postDocumentRecordData;
41
+ private handleDocRecordResponse;
42
+ private uploadDocument;
43
+ render(): any;
44
+ }
@@ -0,0 +1,6 @@
1
+ import { UploadedDocumentEntry } from './document-upload-options';
2
+ export declare class DocumentUploadList {
3
+ documents: UploadedDocumentEntry[];
4
+ private renderStatus;
5
+ render(): any;
6
+ }
@@ -0,0 +1,44 @@
1
+ import { Identity } from '../../../../api';
2
+ import { CountryCode } from '../../../../utils/country-codes';
3
+ export declare const businessDocumentOptions: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ export declare const financialDocumentOptions: {
8
+ label: string;
9
+ value: string;
10
+ }[];
11
+ export declare const personalDocGroup1Options: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ export declare const personalDocGroup2Options: {
16
+ label: string;
17
+ value: string;
18
+ }[];
19
+ export interface DocumentCategory {
20
+ label: string;
21
+ value: string;
22
+ identityId?: string;
23
+ docTypeOptions: {
24
+ label: string;
25
+ value: string;
26
+ }[];
27
+ }
28
+ export type DocumentUploadStatus = 'uploading' | 'uploaded' | 'error';
29
+ export interface UploadedDocumentEntry {
30
+ categoryLabel: string;
31
+ categoryValue: string;
32
+ docTypeLabel: string;
33
+ docTypeValue: string;
34
+ fileName: string;
35
+ file: File;
36
+ identityId?: string;
37
+ status: DocumentUploadStatus;
38
+ }
39
+ export declare const staticCategories: DocumentCategory[];
40
+ export declare function buildOwnerCategories(owners: Identity[]): DocumentCategory[];
41
+ export declare const financialOnlyCategories: DocumentCategory[];
42
+ export declare function buildAllCategories(owners: Identity[], country?: CountryCode): DocumentCategory[];
43
+ export declare const personalDocGroup1Types: Set<string>;
44
+ export declare const personalDocGroup2Types: Set<string>;
@@ -16,6 +16,7 @@ export declare class PaymentProvisioningFormSteps {
16
16
  4: () => any;
17
17
  5: () => any;
18
18
  6: () => any;
19
+ 7: () => any;
19
20
  };
20
21
  render(): any;
21
22
  }
@@ -1,17 +1,17 @@
1
1
  import { CountryCode } from '../../../utils/country-codes';
2
- export declare const businessBankAccountSchemaUSA: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
2
+ export declare const businessBankAccountSchemaUSA: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
3
3
  [x: string]: any;
4
4
  }, import("yup").AnyObject, {
5
5
  [x: string]: any;
6
6
  }, "">;
7
- export declare const businessBankAccountSchemaCAN: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
7
+ export declare const businessBankAccountSchemaCAN: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
8
8
  [x: string]: any;
9
9
  }, import("yup").AnyObject, {
10
10
  [x: string]: any;
11
11
  }, "">;
12
- export declare const businessBankAccountSchema: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
12
+ export declare const businessBankAccountSchema: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
13
13
  [x: string]: any;
14
14
  }, import("yup").AnyObject, {
15
15
  [x: string]: any;
16
16
  }, "">;
17
- export declare const bankAccountSchemaByCountry: Record<CountryCode, (allowOptionalFields?: boolean, documents?: any[]) => any>;
17
+ export declare const bankAccountSchemaByCountry: Record<CountryCode, (allowOptionalFields?: boolean) => any>;
@@ -6,5 +6,6 @@ export declare const businessClassificationOptions: BusinessFormOption[];
6
6
  export declare const businessServiceReceivedOptions: BusinessFormOption[];
7
7
  export declare const recurringPaymentsOptions: BusinessFormOption[];
8
8
  export declare const seasonalBusinessOptions: BusinessFormOption[];
9
+ export declare const businessTitleOptions: BusinessFormOption[];
9
10
  export declare const bankAccountTypeOptions: BusinessFormOption[];
10
11
  export {};
@@ -16,6 +16,7 @@ import { CountryCode } from "./utils/country-codes";
16
16
  import { FormController as FormController1 } from "./ui-components/form/form";
17
17
  import { Placement, PositioningStrategy } from "@popperjs/core";
18
18
  import { Dispute } from "./api/Dispute";
19
+ import { UploadedDocumentEntry } from "./components/business-forms/payment-provisioning/document-upload/document-upload-options";
19
20
  import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
20
21
  import { IPaymentMethodMetadata } from "./api/PaymentMethod";
21
22
  import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
@@ -37,6 +38,7 @@ export { CountryCode } from "./utils/country-codes";
37
38
  export { FormController as FormController1 } from "./ui-components/form/form";
38
39
  export { Placement, PositioningStrategy } from "@popperjs/core";
39
40
  export { Dispute } from "./api/Dispute";
41
+ export { UploadedDocumentEntry } from "./components/business-forms/payment-provisioning/document-upload/document-upload-options";
40
42
  export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
41
43
  export { IPaymentMethodMetadata } from "./api/PaymentMethod";
42
44
  export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
@@ -238,6 +240,19 @@ export namespace Components {
238
240
  */
239
241
  "disputeResponse": ApiDisputeResponse | any;
240
242
  }
243
+ interface DocumentUploadFormStep {
244
+ "allowOptionalFields"?: boolean;
245
+ "authToken": string;
246
+ "businessId": string;
247
+ "country": CountryCode;
248
+ "validateAndSubmit": ({ onSuccess }: { onSuccess: any; }) => Promise<void>;
249
+ }
250
+ interface DocumentUploadList {
251
+ /**
252
+ * @default []
253
+ */
254
+ "documents": UploadedDocumentEntry[];
255
+ }
241
256
  interface DuplicateCharge {
242
257
  "disputeResponse": any;
243
258
  /**
@@ -955,11 +970,13 @@ export namespace Components {
955
970
  "authToken": string;
956
971
  "businessId"?: string;
957
972
  "country": CountryCode;
973
+ "getOwnershipPercentage": () => Promise<string | null>;
958
974
  "newFormOpen"?: boolean;
959
975
  "ownerId"?: string;
960
976
  "ownersLength"?: number;
961
977
  "removeOwner": (id: string) => void;
962
978
  "returnOwnerData": () => Promise<string>;
979
+ "setOwnershipPercentageError": (message: string) => Promise<void>;
963
980
  "submit": () => Promise<boolean>;
964
981
  "validate": () => Promise<boolean>;
965
982
  "validateAndSubmit": (event: any) => Promise<void>;
@@ -1114,6 +1131,10 @@ export interface DisputeResponseCustomEvent<T> extends CustomEvent<T> {
1114
1131
  detail: T;
1115
1132
  target: HTMLDisputeResponseElement;
1116
1133
  }
1134
+ export interface DocumentUploadFormStepCustomEvent<T> extends CustomEvent<T> {
1135
+ detail: T;
1136
+ target: HTMLDocumentUploadFormStepElement;
1137
+ }
1117
1138
  export interface FormControlCheckboxCustomEvent<T> extends CustomEvent<T> {
1118
1139
  detail: T;
1119
1140
  target: HTMLFormControlCheckboxElement;
@@ -1597,6 +1618,31 @@ declare global {
1597
1618
  prototype: HTMLDisputeResponseElement;
1598
1619
  new (): HTMLDisputeResponseElement;
1599
1620
  };
1621
+ interface HTMLDocumentUploadFormStepElementEventMap {
1622
+ "error-event": ComponentErrorEvent1;
1623
+ "complete-form-step-event": ComponentFormStepCompleteEvent1;
1624
+ "formLoading": boolean;
1625
+ }
1626
+ interface HTMLDocumentUploadFormStepElement extends Components.DocumentUploadFormStep, HTMLStencilElement {
1627
+ addEventListener<K extends keyof HTMLDocumentUploadFormStepElementEventMap>(type: K, listener: (this: HTMLDocumentUploadFormStepElement, ev: DocumentUploadFormStepCustomEvent<HTMLDocumentUploadFormStepElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1628
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1629
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1630
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1631
+ removeEventListener<K extends keyof HTMLDocumentUploadFormStepElementEventMap>(type: K, listener: (this: HTMLDocumentUploadFormStepElement, ev: DocumentUploadFormStepCustomEvent<HTMLDocumentUploadFormStepElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1632
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1633
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1634
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1635
+ }
1636
+ var HTMLDocumentUploadFormStepElement: {
1637
+ prototype: HTMLDocumentUploadFormStepElement;
1638
+ new (): HTMLDocumentUploadFormStepElement;
1639
+ };
1640
+ interface HTMLDocumentUploadListElement extends Components.DocumentUploadList, HTMLStencilElement {
1641
+ }
1642
+ var HTMLDocumentUploadListElement: {
1643
+ prototype: HTMLDocumentUploadListElement;
1644
+ new (): HTMLDocumentUploadListElement;
1645
+ };
1600
1646
  interface HTMLDuplicateChargeElement extends Components.DuplicateCharge, HTMLStencilElement {
1601
1647
  }
1602
1648
  var HTMLDuplicateChargeElement: {
@@ -2707,6 +2753,8 @@ declare global {
2707
2753
  "customer-details": HTMLCustomerDetailsElement;
2708
2754
  "dispute-notification": HTMLDisputeNotificationElement;
2709
2755
  "dispute-response": HTMLDisputeResponseElement;
2756
+ "document-upload-form-step": HTMLDocumentUploadFormStepElement;
2757
+ "document-upload-list": HTMLDocumentUploadListElement;
2710
2758
  "duplicate-charge": HTMLDuplicateChargeElement;
2711
2759
  "electronic-evidence": HTMLElectronicEvidenceElement;
2712
2760
  "form-address-fields": HTMLFormAddressFieldsElement;
@@ -2994,6 +3042,21 @@ declare namespace LocalJSX {
2994
3042
  "onError-event"?: (event: DisputeResponseCustomEvent<ComponentErrorEvent>) => void;
2995
3043
  "onSubmit-event"?: (event: DisputeResponseCustomEvent<ComponentSubmitEvent>) => void;
2996
3044
  }
3045
+ interface DocumentUploadFormStep {
3046
+ "allowOptionalFields"?: boolean;
3047
+ "authToken": string;
3048
+ "businessId": string;
3049
+ "country": CountryCode;
3050
+ "onComplete-form-step-event"?: (event: DocumentUploadFormStepCustomEvent<ComponentFormStepCompleteEvent1>) => void;
3051
+ "onError-event"?: (event: DocumentUploadFormStepCustomEvent<ComponentErrorEvent1>) => void;
3052
+ "onFormLoading"?: (event: DocumentUploadFormStepCustomEvent<boolean>) => void;
3053
+ }
3054
+ interface DocumentUploadList {
3055
+ /**
3056
+ * @default []
3057
+ */
3058
+ "documents"?: UploadedDocumentEntry[];
3059
+ }
2997
3060
  interface DuplicateCharge {
2998
3061
  "disputeResponse": any;
2999
3062
  /**
@@ -3914,6 +3977,8 @@ declare namespace LocalJSX {
3914
3977
  "customer-details": CustomerDetails;
3915
3978
  "dispute-notification": DisputeNotification;
3916
3979
  "dispute-response": DisputeResponse;
3980
+ "document-upload-form-step": DocumentUploadFormStep;
3981
+ "document-upload-list": DocumentUploadList;
3917
3982
  "duplicate-charge": DuplicateCharge;
3918
3983
  "electronic-evidence": ElectronicEvidence;
3919
3984
  "form-address-fields": FormAddressFields;
@@ -4040,6 +4105,8 @@ declare module "@stencil/core" {
4040
4105
  "customer-details": LocalJSX.CustomerDetails & JSXBase.HTMLAttributes<HTMLCustomerDetailsElement>;
4041
4106
  "dispute-notification": LocalJSX.DisputeNotification & JSXBase.HTMLAttributes<HTMLDisputeNotificationElement>;
4042
4107
  "dispute-response": LocalJSX.DisputeResponse & JSXBase.HTMLAttributes<HTMLDisputeResponseElement>;
4108
+ "document-upload-form-step": LocalJSX.DocumentUploadFormStep & JSXBase.HTMLAttributes<HTMLDocumentUploadFormStepElement>;
4109
+ "document-upload-list": LocalJSX.DocumentUploadList & JSXBase.HTMLAttributes<HTMLDocumentUploadListElement>;
4043
4110
  "duplicate-charge": LocalJSX.DuplicateCharge & JSXBase.HTMLAttributes<HTMLDuplicateChargeElement>;
4044
4111
  "electronic-evidence": LocalJSX.ElectronicEvidence & JSXBase.HTMLAttributes<HTMLElectronicEvidenceElement>;
4045
4112
  "form-address-fields": LocalJSX.FormAddressFields & JSXBase.HTMLAttributes<HTMLFormAddressFieldsElement>;
@@ -1 +1 @@
1
- import{A as e}from"./p-CYQvLgSs.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const t=e();class s{async fetchDispute(e,s){return t.get({endpoint:`disputes/${e}`,authToken:s})}async updateDisputeResponse(e,s,n){return t.patch({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async submitDisputeResponse(e,s,n){return t.post({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async createDisputeEvidence(e,s,n){return t.put({endpoint:`disputes/${e}/evidence`,body:n,authToken:s})}}var n,i;!function(e){e.nextStep="nextStep",e.previousStep="previousStep",e.cancelDispute="cancelDispute",e.respondToDispute="respondToDispute",e.submit="submit"}(n||(n={})),function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(i||(i={}));export{n as D,s as a}
1
+ import{A as e}from"./p-CYQvLgSs.js";import"./p-Dzv0P2Ly.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const t=e();class s{async fetchDispute(e,s){return t.get({endpoint:`disputes/${e}`,authToken:s})}async updateDisputeResponse(e,s,n){return t.patch({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async submitDisputeResponse(e,s,n){return t.post({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async createDisputeEvidence(e,s,n){return t.put({endpoint:`disputes/${e}/evidence`,body:n,authToken:s})}}var n,i;!function(e){e.nextStep="nextStep",e.previousStep="previousStep",e.cancelDispute="cancelDispute",e.respondToDispute="respondToDispute",e.submit="submit"}(n||(n={})),function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(i||(i={}));export{n as D,s as a}
@@ -1 +1 @@
1
- import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{J as e}from"./p-Axa3cgnH.js";import{C as r,e as o}from"./p-NZS8uCtH.js";import{m as n,b as h}from"./p-APOabprT.js";import{B as a}from"./p-BJu1-9kE.js";import{A as p}from"./p-CYQvLgSs.js";import"./p-CLHwhyvu.js";import{C as m,B as d,c as l}from"./p-BcNb9bVO.js";import{c as u}from"./p-BdpSLMs7.js";import{i as c}from"./p-BRnBHsdq.js";import{t as v}from"./p-CPKMvyV_.js";import{S as f}from"./p-BqNNwq6C.js";import{H as g}from"./p-jIDKmNHy.js";import"./p-CZfYo5-1.js";import{B as y}from"./p-XYgDHrVL.js";import{P as b}from"./p-DSclFZ32.js";import"./p-DAZd_gFd.js";import"./p-Cm9f5fyh.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-uZ5KAseb.js";const j=p();class C{async postProvisioning(s,t,i){return j.post({endpoint:"entities/provisioning",body:{business_id:t,product_category:i},authToken:s})}}const w=()=>s("div",{class:"row gap-3 p-5"},s("div",{class:"col-12"},s(g,{text:"Business Already Provisioned"})),s("div",{class:"col-12",part:v},s("p",null,"We have already received the onboarding information for this business."))),S=()=>s("div",{class:"row gap-3 p5"},s("div",{class:"col-12"},s(g,{text:"You're all set for now"})),s("div",{class:"col-12",part:v},s("p",null,"We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))),k=class{constructor(s){t(this,s),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.loading=!1,this.businessLoading=!0,this.businessProvisioned=!1,this.formSubmitted=!1,this.currentStep=0,this.country=m.USA,this.allowOptionalFields=!1,this.formTitle="Business Information",this.refs=[],this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const i=new d(t.data);this.businessProvisioned=l(i),this.country=i.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:o.PROVISIONING_REQUESTED,severity:r.INFO}),this.businessLoading=!1,s()},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({message:t,errorCode:i,severity:e}),this.businessLoading=!1,s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.formSubmitted=!0,this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:i})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>{this.currentStep>0&&(this.currentStep-=1)},this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:y.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}propChanged(){this.initializeApi()}handleFormCompleted(){this.postProvisioningData()}handleFormLoading(s){this.loading=s.detail}async componentWillLoad(){u(),this.analytics=new e(this),this.initializeApi(),this.getBusiness?await this.setBusinessProvisioned():this.businessLoading=!1,this.refs=new Array(7)}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?c(this.authToken)?this.errorEvent.emit({message:"auth-token is expired",errorCode:o.NOT_AUTHENTICATED,severity:r.ERROR}):(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new a}),this.postProvisioning=h({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new C})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`Step ${this.currentStep+1} of ${this.totalSteps+1}`}render(){return s(f,null,this.businessLoading?s(b,null):this.businessProvisioned?s(w,null):this.formSubmitted?s(S,null):s("div",{class:"row gap-3"},s(g,{text:this.formTitle}),s("payment-provisioning-form-steps",{businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),s("div",{class:"d-flex justify-content-between align-items-center"},s("div",{class:"d-flex align-items-center",part:v},this.stepCounter),s("payment-provisioning-form-buttons",{currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{k as justifi_payment_provisioning}
1
+ import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{J as e}from"./p-B3vR2OUB.js";import{C as r,e as o}from"./p-Dzv0P2Ly.js";import{m as n,b as h}from"./p-BrFax4_P.js";import{B as a}from"./p-CL8LyqRI.js";import{A as p}from"./p-CYQvLgSs.js";import"./p-CLHwhyvu.js";import{C as m,B as l,c as d}from"./p-BcNb9bVO.js";import{c as u}from"./p-DyNR3yHR.js";import{i as c}from"./p-BRnBHsdq.js";import{t as v}from"./p-CPKMvyV_.js";import{S as f}from"./p-DzEdYT8R.js";import{H as y}from"./p-jIDKmNHy.js";import"./p-CZfYo5-1.js";import{B as g}from"./p-XYgDHrVL.js";import{P as b}from"./p-DSclFZ32.js";import"./p-Blb_02Wm.js";import"./p-CDu7TeCZ.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-uZ5KAseb.js";const j=p();class C{async postProvisioning(s,t,i){return j.post({endpoint:"entities/provisioning",body:{business_id:t,product_category:i},authToken:s})}}const w=()=>s("div",{class:"row gap-3 p-5"},s("div",{class:"col-12"},s(y,{text:"Business Already Provisioned"})),s("div",{class:"col-12",part:v},s("p",null,"We have already received the onboarding information for this business."))),B=()=>s("div",{class:"row gap-3 p5"},s("div",{class:"col-12"},s(y,{text:"You're all set for now"})),s("div",{class:"col-12",part:v},s("p",null,"We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))),k=class{constructor(s){t(this,s),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.loading=!1,this.businessLoading=!0,this.businessProvisioned=!1,this.formSubmitted=!1,this.currentStep=0,this.country=m.USA,this.allowOptionalFields=!1,this.formTitle="Business Information",this.refs=[],this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const i=new l(t.data);this.businessProvisioned=d(i),this.country=i.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:o.PROVISIONING_REQUESTED,severity:r.INFO}),this.businessLoading=!1,s()},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({message:t,errorCode:i,severity:e}),this.businessLoading=!1,s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.formSubmitted=!0,this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:i})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>{this.currentStep>0&&(this.currentStep-=1)},this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:g.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}propChanged(){this.initializeApi()}handleFormCompleted(){this.postProvisioningData()}handleFormLoading(s){this.loading=s.detail}async componentWillLoad(){u(),this.analytics=new e(this),this.initializeApi(),this.getBusiness?await this.setBusinessProvisioned():this.businessLoading=!1,this.refs=new Array(8)}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?c(this.authToken)?this.errorEvent.emit({message:"auth-token is expired",errorCode:o.NOT_AUTHENTICATED,severity:r.ERROR}):(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new a}),this.postProvisioning=h({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new C})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`Step ${this.currentStep+1} of ${this.totalSteps+1}`}render(){return s(f,null,this.businessLoading?s(b,null):this.businessProvisioned?s(w,null):this.formSubmitted?s(B,null):s("div",{class:"row gap-3"},s(y,{text:this.formTitle}),s("payment-provisioning-form-steps",{businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),s("div",{class:"d-flex justify-content-between align-items-center"},s("div",{class:"d-flex align-items-center",part:v},this.stepCounter),s("payment-provisioning-form-buttons",{currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{k as justifi_payment_provisioning}