@justifi/webcomponents 6.12.0 → 6.12.1-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 (536) hide show
  1. package/dist/cjs/{Analytics-DZCXB2Za.js → Analytics-DN1vWC6J.js} +2 -3
  2. package/dist/cjs/{Plaid-DR9WDZ98.js → Plaid-6JK8xPnG.js} +47 -14
  3. package/dist/cjs/{additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_14.cjs.entry.js} +451 -58
  4. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +2 -2
  5. package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
  6. package/dist/cjs/bank-account-read-only-value.cjs.entry.js +15 -0
  7. package/dist/cjs/{business.service-mliLE8kX.js → business.service-XXjIL3rT.js} +1 -2
  8. package/dist/cjs/card-form.cjs.entry.js +4 -4
  9. package/dist/cjs/{check-pkg-version-CUhnNGii.js → check-pkg-version-DKEv2rPI.js} +1 -1
  10. package/dist/cjs/{checkout.service-Cok0vRot.js → checkout.service-BUpGS3Nm.js} +1 -2
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -3
  12. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  13. package/dist/cjs/{dispute.service-DEH_I2G9.js → dispute.service-BC_bJL60.js} +1 -2
  14. package/dist/cjs/form-address-fields_3.cjs.entry.js +3 -3
  15. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  18. package/dist/cjs/form-control-file.cjs.entry.js +59 -0
  19. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-number_3.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  23. package/dist/cjs/{get-business-DF-XBH8G.js → get-business-Dk1gjO4B.js} +4 -4
  24. package/dist/cjs/{get-payment-details-DNpOyUyR.js → get-payment-details-Cvi1hHGJ.js} +4 -5
  25. package/dist/cjs/{get-payout-csv-DE_D9y08.js → get-payout-csv-CFsWBUNg.js} +3 -3
  26. package/dist/cjs/{get-subaccounts-BQW_RPW5.js → get-subaccounts-BPJ2-LBo.js} +4 -5
  27. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  28. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  29. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  31. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +60 -59
  32. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
  33. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
  34. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  35. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  36. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -11
  37. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
  38. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
  40. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -7
  41. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
  42. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -13
  43. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -14
  45. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -20
  46. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -10
  47. package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -15
  48. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -11
  49. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +134 -18
  50. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
  51. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  52. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
  53. package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -12
  54. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
  55. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
  56. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -15
  57. package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -14
  58. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  59. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -12
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -12
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -14
  66. package/dist/cjs/loader.cjs.js +1 -1
  67. package/dist/cjs/{package-CJg8qLYd.js → package-EwQYAMPH.js} +1 -1
  68. package/dist/cjs/payment-details-core.cjs.entry.js +9 -10
  69. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  70. package/dist/cjs/{payment-provisioning-actions-J6TGZZb9.js → payment-provisioning-actions-DscyasDY.js} +18 -18
  71. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +52 -0
  72. package/dist/cjs/{payment.service-Dl9UExDw.js → payment.service-DC2FVlv-.js} +1 -2
  73. package/dist/cjs/payments-list-core.cjs.entry.js +2 -3
  74. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  75. package/dist/cjs/{payout.service-kaFewwx4.js → payout.service-Bjbt6USA.js} +1 -2
  76. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -5
  77. package/dist/cjs/{plaid.service-CK1ouCBC.js → plaid.service-C0ZgOkwL.js} +1 -2
  78. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  79. package/dist/cjs/save-new-payment-method.cjs.entry.js +1 -1
  80. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  81. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -4
  82. package/dist/cjs/{terminal-orders-table-07fV7wGh.js → terminal-orders-table-j_IoYD-2.js} +1 -2
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  84. package/dist/cjs/{terminal.service-UUoIe0IR.js → terminal.service-YAuPfEGz.js} +1 -2
  85. package/dist/cjs/terminals-list-core.cjs.entry.js +2 -3
  86. package/dist/cjs/{utils-DvUQQLmR.js → utils-C4CgQd55.js} +4 -4
  87. package/dist/cjs/webcomponents.cjs.js +1 -1
  88. package/dist/collection/api/ApplePay.js +4 -0
  89. package/dist/collection/api/services/apple-pay.service.js +1 -0
  90. package/dist/collection/collection-manifest.json +0 -1
  91. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-form-inputs.js +1 -1
  92. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  93. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  94. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  95. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
  96. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
  97. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +181 -10
  98. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  101. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  102. package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
  103. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
  104. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
  105. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  106. package/dist/collection/components/checkout/justifi-checkout.js +2 -2
  107. package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
  108. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  109. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  110. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  111. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  112. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +1 -1
  113. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  114. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  115. package/dist/collection/components/dispute-management/dispute-response/justifi-additional-statement.js +1 -1
  116. package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
  117. package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
  118. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
  119. package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
  120. package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
  121. package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
  122. package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
  124. package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
  125. package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
  126. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  127. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  128. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
  129. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -0
  130. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  131. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
  132. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  133. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  134. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  135. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  136. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  137. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  138. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  139. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  140. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  141. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  142. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  143. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  144. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  145. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  146. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  147. package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
  148. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  149. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  150. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +1 -1
  151. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  152. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  153. package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
  154. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  155. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  156. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  158. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  160. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  163. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  164. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  165. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  166. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  167. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  168. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  169. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  170. package/dist/collection/ui-components/internal-button.js +1 -1
  171. package/dist/collection/ui-components/radio-list-item.js +1 -1
  172. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  173. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  174. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  175. package/dist/docs.json +11 -320
  176. package/dist/esm/{Analytics-C2EVi4Am.js → Analytics-Ds-ogIwt.js} +3 -4
  177. package/dist/esm/{Api-DI0-itk3.js → Api-BrYhtpEh.js} +1 -1
  178. package/dist/esm/{Plaid-vwPGZ5y4.js → Plaid-D40pFwwP.js} +36 -3
  179. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  180. package/dist/esm/{additional-questions-form-step_9.entry.js → additional-questions-form-step_14.entry.js} +423 -35
  181. package/dist/esm/bank-account-billing-form-simple_4.entry.js +2 -2
  182. package/dist/esm/bank-account-form.entry.js +5 -5
  183. package/dist/esm/bank-account-read-only-value.entry.js +13 -0
  184. package/dist/esm/{business.service-M3YvwC-d.js → business.service-Bt68Uk7V.js} +2 -3
  185. package/dist/esm/card-form.entry.js +5 -5
  186. package/dist/esm/{check-pkg-version-qIHmWcbI.js → check-pkg-version-Bd_MOwNP.js} +1 -1
  187. package/dist/esm/{checkout.service-DdIBmfsp.js → checkout.service-B7K5LRx2.js} +2 -3
  188. package/dist/esm/checkouts-list-core.entry.js +4 -5
  189. package/dist/esm/{checkouts-table-4iLy6mvH.js → checkouts-table-BXm9GGFI.js} +1 -1
  190. package/dist/esm/custom-popper_2.entry.js +2 -2
  191. package/dist/esm/{dispute.service-BzzA0DeT.js → dispute.service-BPA0V42p.js} +2 -3
  192. package/dist/esm/form-address-fields_3.entry.js +3 -3
  193. package/dist/esm/form-control-checkbox.entry.js +2 -2
  194. package/dist/esm/form-control-date.entry.js +2 -2
  195. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  196. package/dist/esm/form-control-file.entry.js +57 -0
  197. package/dist/esm/form-control-monetary.entry.js +3 -3
  198. package/dist/esm/form-control-number_3.entry.js +2 -2
  199. package/dist/esm/form-control-radio.entry.js +2 -2
  200. package/dist/esm/form-control-select_2.entry.js +4 -4
  201. package/dist/esm/{get-business-BtJWpVs_.js → get-business-CijoB3Df.js} +2 -2
  202. package/dist/esm/{get-payment-details-CN7gUjBc.js → get-payment-details-B9JipaKX.js} +2 -3
  203. package/dist/esm/{get-payout-csv-D-Lnooki.js → get-payout-csv-CzWaTjoV.js} +2 -2
  204. package/dist/esm/{get-subaccounts-Mwx-aVcG.js → get-subaccounts-Dfo7wGVE.js} +3 -4
  205. package/dist/esm/gross-payment-chart-core.entry.js +2 -2
  206. package/dist/esm/hidden-input_2.entry.js +5 -5
  207. package/dist/esm/internal-button.entry.js +1 -1
  208. package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
  209. package/dist/esm/justifi-apple-pay_11.entry.js +16 -15
  210. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +7 -8
  211. package/dist/esm/justifi-bank-account-form.entry.js +7 -8
  212. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  213. package/dist/esm/justifi-billing-form.entry.js +1 -1
  214. package/dist/esm/justifi-business-details.entry.js +10 -11
  215. package/dist/esm/justifi-business-form.entry.js +9 -10
  216. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  217. package/dist/esm/justifi-card-form.entry.js +7 -8
  218. package/dist/esm/justifi-checkout.entry.js +8 -9
  219. package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
  220. package/dist/esm/justifi-checkouts-list.entry.js +11 -12
  221. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  222. package/dist/esm/justifi-dispute-management.entry.js +10 -11
  223. package/dist/esm/justifi-dispute-notification_3.entry.js +13 -14
  224. package/dist/esm/justifi-gross-payment-chart.entry.js +7 -8
  225. package/dist/esm/justifi-order-terminals.entry.js +11 -12
  226. package/dist/esm/justifi-payment-details.entry.js +10 -11
  227. package/dist/esm/justifi-payment-provisioning.entry.js +133 -17
  228. package/dist/esm/justifi-payment-transactions-list.entry.js +9 -10
  229. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  230. package/dist/esm/justifi-payments-list.entry.js +10 -11
  231. package/dist/esm/justifi-payout-details.entry.js +9 -10
  232. package/dist/esm/justifi-payout-transactions-list.entry.js +9 -10
  233. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
  234. package/dist/esm/justifi-payouts-list.entry.js +12 -13
  235. package/dist/esm/justifi-refund-payment.entry.js +9 -10
  236. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  237. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  238. package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -8
  239. package/dist/esm/justifi-skeleton.entry.js +1 -1
  240. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
  241. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -10
  242. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
  243. package/dist/esm/justifi-terminals-list.entry.js +11 -12
  244. package/dist/esm/loader.js +1 -1
  245. package/dist/esm/{package-CIYOQWsL.js → package-B5w1e9rb.js} +1 -1
  246. package/dist/esm/payment-details-core.entry.js +10 -11
  247. package/dist/esm/payment-method-option.entry.js +1 -1
  248. package/dist/esm/{payment-provisioning-actions-CBvplwPf.js → payment-provisioning-actions-Bv2HP9Cx.js} +3 -3
  249. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +49 -0
  250. package/dist/esm/{payment.service-0k8z2rOV.js → payment.service-J7iQtC5z.js} +2 -3
  251. package/dist/esm/payments-list-core.entry.js +4 -5
  252. package/dist/esm/{payments-table-Bz7LmU_J.js → payments-table-n1VrIKIR.js} +1 -1
  253. package/dist/esm/payout-details-core.entry.js +4 -4
  254. package/dist/esm/{payout.service-C14YvCWQ.js → payout.service-Dsz8f37z.js} +2 -3
  255. package/dist/esm/payouts-list-core.entry.js +4 -5
  256. package/dist/esm/{payouts-table-Bpt__avQ.js → payouts-table-CbzI90ci.js} +1 -1
  257. package/dist/esm/{plaid.service-Dtxfrsm8.js → plaid.service-D1nDrcPY.js} +2 -3
  258. package/dist/esm/radio-list-item.entry.js +1 -1
  259. package/dist/esm/save-new-payment-method.entry.js +1 -1
  260. package/dist/esm/table-filters-menu.entry.js +1 -1
  261. package/dist/esm/terminal-orders-list-core.entry.js +4 -5
  262. package/dist/esm/{terminal-orders-table-DRnRR4zn.js → terminal-orders-table-DlVbBgNh.js} +2 -3
  263. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  264. package/dist/esm/{terminal.service-rxvEhqqF.js → terminal.service-Sg45obrZ.js} +2 -3
  265. package/dist/esm/terminals-list-core.entry.js +4 -5
  266. package/dist/esm/{terminals-table-DSDZgJ77.js → terminals-table-Bja7MP5H.js} +1 -1
  267. package/dist/esm/{utils-C_8ZxLti.js → utils-De6tr4ug.js} +1 -1
  268. package/dist/esm/{utils-BeQLScSm.js → utils-jaFbbifV.js} +1 -1
  269. package/dist/esm/webcomponents.js +1 -1
  270. package/dist/module/ApplePay.js +4 -0
  271. package/dist/module/Business.js +1 -1
  272. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  273. package/dist/module/bank-account-document-form-inputs2.js +1 -1
  274. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  275. package/dist/module/bank-account-form-inputs2.js +1 -1
  276. package/dist/module/bank-account-form2.js +2 -2
  277. package/dist/module/bank-account-read-only-value2.js +1 -1
  278. package/dist/module/business-representative-form-inputs2.js +2 -2
  279. package/dist/module/business-terms-conditions-form-step2.js +1 -1
  280. package/dist/module/card-billing-form-simple2.js +1 -1
  281. package/dist/module/card-form2.js +2 -2
  282. package/dist/module/checkouts-list-core2.js +1 -1
  283. package/dist/module/custom-popper2.js +2 -2
  284. package/dist/module/dispute-management-core.js +1 -1
  285. package/dist/module/dispute-response-core.js +1 -1
  286. package/dist/module/form-address-fields2.js +1 -1
  287. package/dist/module/form-control-checkbox2.js +2 -2
  288. package/dist/module/form-control-date2.js +2 -2
  289. package/dist/module/form-control-file-v22.js +1 -1
  290. package/dist/module/form-control-file2.js +2 -2
  291. package/dist/module/form-control-monetary2.js +2 -2
  292. package/dist/module/form-control-number-masked2.js +2 -2
  293. package/dist/module/form-control-number2.js +2 -2
  294. package/dist/module/form-control-radio2.js +2 -2
  295. package/dist/module/form-control-select2.js +2 -2
  296. package/dist/module/form-control-text2.js +2 -2
  297. package/dist/module/form-control-textarea2.js +2 -2
  298. package/dist/module/gross-payment-chart-core2.js +2 -2
  299. package/dist/module/hidden-input2.js +1 -1
  300. package/dist/module/iframe-input2.js +3 -3
  301. package/dist/module/internal-button2.js +1 -1
  302. package/dist/module/justifi-additional-statement2.js +1 -1
  303. package/dist/module/justifi-apple-pay2.js +2 -0
  304. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  305. package/dist/module/justifi-bank-account-form.js +1 -1
  306. package/dist/module/justifi-billing-form-full.js +1 -1
  307. package/dist/module/justifi-billing-form.js +1 -1
  308. package/dist/module/justifi-business-form.js +1 -1
  309. package/dist/module/justifi-button2.js +1 -1
  310. package/dist/module/justifi-cancellation-policy2.js +1 -1
  311. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  312. package/dist/module/justifi-card-form.js +1 -1
  313. package/dist/module/justifi-checkout-summary2.js +1 -1
  314. package/dist/module/justifi-checkout.js +2 -2
  315. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  316. package/dist/module/justifi-checkouts-list.js +1 -1
  317. package/dist/module/justifi-customer-details2.js +1 -1
  318. package/dist/module/justifi-dispute-management.js +1 -1
  319. package/dist/module/justifi-dispute-notification2.js +2 -2
  320. package/dist/module/justifi-dispute-response2.js +1 -1
  321. package/dist/module/justifi-duplicate-charge2.js +1 -1
  322. package/dist/module/justifi-electronic-evidence2.js +1 -1
  323. package/dist/module/justifi-header2.js +1 -1
  324. package/dist/module/justifi-modular-checkout2.js +1 -1
  325. package/dist/module/justifi-order-terminals.js +1 -1
  326. package/dist/module/justifi-payment-provisioning.js +182 -65
  327. package/dist/module/justifi-payment-transactions-list.js +1 -1
  328. package/dist/module/justifi-payments-list-filters.js +2 -2
  329. package/dist/module/justifi-payments-list.js +1 -1
  330. package/dist/module/justifi-payout-transactions-list.js +1 -1
  331. package/dist/module/justifi-payouts-list-filters.js +2 -2
  332. package/dist/module/justifi-payouts-list.js +1 -1
  333. package/dist/module/justifi-product-or-service2.js +1 -1
  334. package/dist/module/justifi-refund-policy2.js +1 -1
  335. package/dist/module/justifi-save-new-payment-method.js +1 -1
  336. package/dist/module/justifi-saved-payment-method.js +1 -1
  337. package/dist/module/justifi-shipping-details2.js +1 -1
  338. package/dist/module/justifi-skeleton.js +1 -1
  339. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  340. package/dist/module/justifi-terminal-orders-list.js +1 -1
  341. package/dist/module/justifi-terminals-list-filters.js +1 -1
  342. package/dist/module/justifi-terminals-list.js +1 -1
  343. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  344. package/dist/module/package.js +1 -1
  345. package/dist/module/payment-details-core2.js +8 -8
  346. package/dist/module/payment-method-option.js +1 -1
  347. package/dist/module/payment-provisioning-form-buttons2.js +1 -1
  348. package/dist/module/payment-provisioning-form-steps2.js +1 -1
  349. package/dist/module/payments-list-core2.js +1 -1
  350. package/dist/module/payout-details-core2.js +3 -3
  351. package/dist/module/payouts-list-core2.js +1 -1
  352. package/dist/module/radio-list-item2.js +1 -1
  353. package/dist/module/save-new-payment-method2.js +1 -1
  354. package/dist/module/table-filters-menu2.js +1 -1
  355. package/dist/module/terminal-orders-list-core2.js +1 -1
  356. package/dist/module/terminal-quantity-selector2.js +1 -1
  357. package/dist/module/terminals-list-core2.js +2 -2
  358. package/dist/module/utils2.js +1 -1
  359. package/dist/types/api/ApplePay.d.ts +3 -0
  360. package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +26 -4
  361. package/dist/types/components.d.ts +4 -51
  362. package/dist/webcomponents/p-0b95dd8f.entry.js +1 -0
  363. package/dist/webcomponents/p-0ee11ceb.entry.js +1 -0
  364. package/dist/webcomponents/p-15377f17.entry.js +1 -0
  365. package/dist/webcomponents/p-15dfb893.entry.js +1 -0
  366. package/dist/webcomponents/{p-6372a42a.entry.js → p-15f43759.entry.js} +1 -1
  367. package/dist/webcomponents/p-1628613b.entry.js +1 -0
  368. package/dist/webcomponents/p-17fb6153.entry.js +1 -0
  369. package/dist/webcomponents/p-18fc10ca.entry.js +1 -0
  370. package/dist/webcomponents/{p-90f2c769.entry.js → p-1b92fb9a.entry.js} +1 -1
  371. package/dist/webcomponents/p-1c54dc53.entry.js +1 -0
  372. package/dist/webcomponents/p-1f2129ec.entry.js +1 -0
  373. package/dist/webcomponents/p-1fe99fde.entry.js +1 -0
  374. package/dist/webcomponents/p-20b0f88b.entry.js +1 -0
  375. package/dist/webcomponents/p-257597f1.entry.js +1 -0
  376. package/dist/webcomponents/{p-b31c9979.entry.js → p-26c419f3.entry.js} +1 -1
  377. package/dist/webcomponents/p-2f71285a.entry.js +1 -0
  378. package/dist/webcomponents/p-30662daa.entry.js +1 -0
  379. package/dist/webcomponents/p-30f61950.entry.js +1 -0
  380. package/dist/webcomponents/{p-3d135aee.entry.js → p-39bb134c.entry.js} +1 -1
  381. package/dist/webcomponents/p-3O6JkTxx.js +1 -0
  382. package/dist/webcomponents/p-3c50f7aa.entry.js +1 -0
  383. package/dist/webcomponents/p-3c59fe06.entry.js +1 -0
  384. package/dist/webcomponents/p-3e74bd93.entry.js +1 -0
  385. package/dist/webcomponents/p-45212820.entry.js +1 -0
  386. package/dist/webcomponents/p-46d8145c.entry.js +1 -0
  387. package/dist/webcomponents/{p-9838b5a7.entry.js → p-4db2e291.entry.js} +1 -1
  388. package/dist/webcomponents/{p-c07069f1.entry.js → p-55e7e239.entry.js} +1 -1
  389. package/dist/webcomponents/p-58e811cc.entry.js +1 -0
  390. package/dist/webcomponents/{p-534881d8.entry.js → p-5d2bcf39.entry.js} +1 -1
  391. package/dist/webcomponents/p-6ae9b2c5.entry.js +1 -0
  392. package/dist/webcomponents/p-6ba76fc2.entry.js +1 -0
  393. package/dist/webcomponents/p-6e5ec134.entry.js +1 -0
  394. package/dist/webcomponents/p-707e1e27.entry.js +1 -0
  395. package/dist/webcomponents/p-70a7c529.entry.js +1 -0
  396. package/dist/webcomponents/p-71de86bf.entry.js +1 -0
  397. package/dist/webcomponents/p-799e1a2f.entry.js +1 -0
  398. package/dist/webcomponents/p-80a9216a.entry.js +1 -0
  399. package/dist/webcomponents/p-8d215ad8.entry.js +1 -0
  400. package/dist/webcomponents/p-8d5138d8.entry.js +1 -0
  401. package/dist/webcomponents/p-8d88556f.entry.js +1 -0
  402. package/dist/webcomponents/p-8dc0e73a.entry.js +1 -0
  403. package/dist/webcomponents/p-8e9407a1.entry.js +1 -0
  404. package/dist/webcomponents/p-90d106c7.entry.js +1 -0
  405. package/dist/webcomponents/{p-d667138d.entry.js → p-938e4dc8.entry.js} +1 -1
  406. package/dist/webcomponents/p-99f3e1e0.entry.js +1 -0
  407. package/dist/webcomponents/{p-534833ca.entry.js → p-9a00cde1.entry.js} +1 -1
  408. package/dist/webcomponents/{p-J7WCmj-J.js → p-B--wlcf0.js} +1 -1
  409. package/dist/webcomponents/p-B2OPgLr1.js +1 -0
  410. package/dist/webcomponents/p-B5w1e9rb.js +1 -0
  411. package/dist/webcomponents/p-BIiEPAAI.js +1 -0
  412. package/dist/webcomponents/p-BMdYr88u.js +1 -0
  413. package/dist/webcomponents/p-BisDKGW5.js +1 -0
  414. package/dist/webcomponents/p-BlW92We8.js +1 -0
  415. package/dist/webcomponents/{p-D2muobcE.js → p-C-Uj-u5r.js} +1 -1
  416. package/dist/webcomponents/{p-D2TJwp13.js → p-C6IaNDXe.js} +1 -1
  417. package/dist/webcomponents/{p-DL0R5vDy.js → p-C95_YBmG.js} +1 -1
  418. package/dist/webcomponents/p-CASlE7cE.js +1 -0
  419. package/dist/webcomponents/{p-CMB3sNMT.js → p-CEnTtUmd.js} +1 -1
  420. package/dist/webcomponents/{p-Bwzxu5wV.js → p-CSW_ZzE9.js} +1 -1
  421. package/dist/webcomponents/{p-MkDHT9M4.js → p-CTwm3w6I.js} +1 -1
  422. package/dist/webcomponents/p-ChUBhd2W.js +1 -0
  423. package/dist/webcomponents/p-CpPclqiT.js +1 -0
  424. package/dist/webcomponents/{p-D0BjjvYt.js → p-DKzki_Iz.js} +1 -1
  425. package/dist/webcomponents/p-DtDYtwHR.js +1 -0
  426. package/dist/webcomponents/p-ZiYybdMz.js +1 -0
  427. package/dist/webcomponents/p-a00ccf58.entry.js +1 -0
  428. package/dist/webcomponents/p-a511a246.entry.js +1 -0
  429. package/dist/webcomponents/p-a9edf63a.entry.js +1 -0
  430. package/dist/webcomponents/p-ad785edd.entry.js +1 -0
  431. package/dist/webcomponents/p-afe956d9.entry.js +1 -0
  432. package/dist/webcomponents/p-b822ab7e.entry.js +1 -0
  433. package/dist/webcomponents/{p-1c95ec74.entry.js → p-bbcaa5cc.entry.js} +2 -2
  434. package/dist/webcomponents/p-bd3f7117.entry.js +1 -0
  435. package/dist/webcomponents/{p-2bec5dca.entry.js → p-c499a613.entry.js} +1 -1
  436. package/dist/webcomponents/p-c4d50650.entry.js +1 -0
  437. package/dist/webcomponents/p-c7ecb7d3.entry.js +1 -0
  438. package/dist/webcomponents/p-ce8de71b.entry.js +1 -0
  439. package/dist/webcomponents/{p-252a4f75.entry.js → p-d072a65f.entry.js} +1 -1
  440. package/dist/webcomponents/{p-ea84c544.entry.js → p-d34f497c.entry.js} +1 -1
  441. package/dist/webcomponents/p-d791e38e.entry.js +1 -0
  442. package/dist/webcomponents/p-d8918d5a.entry.js +1 -0
  443. package/dist/webcomponents/{p-42129686.entry.js → p-de4c796a.entry.js} +1 -1
  444. package/dist/webcomponents/p-e204efea.entry.js +1 -0
  445. package/dist/webcomponents/p-e70602bd.entry.js +1 -0
  446. package/dist/webcomponents/p-e751e2c3.entry.js +1 -0
  447. package/dist/webcomponents/{p-744f57f0.entry.js → p-ef30afd5.entry.js} +1 -1
  448. package/dist/webcomponents/p-f7522364.entry.js +1 -0
  449. package/dist/webcomponents/p-fNBks3-O.js +1 -0
  450. package/dist/webcomponents/p-facdac1b.entry.js +1 -0
  451. package/dist/webcomponents/p-g6a7Gl9y.js +1 -0
  452. package/dist/webcomponents/p-lFx33NDk.js +1 -0
  453. package/dist/webcomponents/p-x7WGc-xR.js +1 -0
  454. package/dist/webcomponents/webcomponents.esm.js +1 -1
  455. package/package.json +14 -14
  456. package/LICENSE +0 -21
  457. package/dist/cjs/ComponentError-D4OLnOkg.js +0 -31
  458. package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +0 -525
  459. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +0 -151
  460. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +0 -353
  461. package/dist/esm/ComponentError-Cjcsf8ku.js +0 -31
  462. package/dist/esm/bank-account-document-form-inputs_9.entry.js +0 -515
  463. package/dist/esm/justifi-payment-provisioning-core.entry.js +0 -149
  464. package/dist/module/justifi-payment-provisioning-core.d.ts +0 -11
  465. package/dist/module/justifi-payment-provisioning-core.js +0 -6
  466. package/dist/module/payment-provisioning-core.js +0 -367
  467. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -43
  468. package/dist/webcomponents/p-08424d71.entry.js +0 -1
  469. package/dist/webcomponents/p-089bc927.entry.js +0 -1
  470. package/dist/webcomponents/p-0b7fa323.entry.js +0 -1
  471. package/dist/webcomponents/p-16ae88d0.entry.js +0 -1
  472. package/dist/webcomponents/p-179fe9a0.entry.js +0 -1
  473. package/dist/webcomponents/p-1a9aecbf.entry.js +0 -1
  474. package/dist/webcomponents/p-1d1c48c3.entry.js +0 -1
  475. package/dist/webcomponents/p-1da3ba0f.entry.js +0 -1
  476. package/dist/webcomponents/p-26062991.entry.js +0 -1
  477. package/dist/webcomponents/p-26074643.entry.js +0 -1
  478. package/dist/webcomponents/p-2719f4db.entry.js +0 -1
  479. package/dist/webcomponents/p-2a0ce169.entry.js +0 -1
  480. package/dist/webcomponents/p-2b8df3c0.entry.js +0 -1
  481. package/dist/webcomponents/p-358f7121.entry.js +0 -1
  482. package/dist/webcomponents/p-383798ab.entry.js +0 -1
  483. package/dist/webcomponents/p-485a8795.entry.js +0 -1
  484. package/dist/webcomponents/p-4d222f42.entry.js +0 -1
  485. package/dist/webcomponents/p-53dd8569.entry.js +0 -1
  486. package/dist/webcomponents/p-56d58041.entry.js +0 -1
  487. package/dist/webcomponents/p-61784c6a.entry.js +0 -1
  488. package/dist/webcomponents/p-7108eead.entry.js +0 -1
  489. package/dist/webcomponents/p-729c9798.entry.js +0 -1
  490. package/dist/webcomponents/p-7742cf61.entry.js +0 -1
  491. package/dist/webcomponents/p-774b69a0.entry.js +0 -1
  492. package/dist/webcomponents/p-77600a47.entry.js +0 -1
  493. package/dist/webcomponents/p-783580d4.entry.js +0 -1
  494. package/dist/webcomponents/p-83fd4eae.entry.js +0 -1
  495. package/dist/webcomponents/p-848ae146.entry.js +0 -1
  496. package/dist/webcomponents/p-865d4604.entry.js +0 -1
  497. package/dist/webcomponents/p-8Kt4Rhcq.js +0 -1
  498. package/dist/webcomponents/p-8c52d10a.entry.js +0 -1
  499. package/dist/webcomponents/p-8df335d4.entry.js +0 -1
  500. package/dist/webcomponents/p-9639d9d0.entry.js +0 -1
  501. package/dist/webcomponents/p-97d16844.entry.js +0 -1
  502. package/dist/webcomponents/p-B6sIVWJW.js +0 -1
  503. package/dist/webcomponents/p-BmEX2SfZ.js +0 -1
  504. package/dist/webcomponents/p-C1olhiO9.js +0 -1
  505. package/dist/webcomponents/p-CAl_N2gi.js +0 -1
  506. package/dist/webcomponents/p-CBqZge6m.js +0 -1
  507. package/dist/webcomponents/p-CIYOQWsL.js +0 -1
  508. package/dist/webcomponents/p-CMqX6btO.js +0 -1
  509. package/dist/webcomponents/p-CWv3GX8X.js +0 -1
  510. package/dist/webcomponents/p-Cjcsf8ku.js +0 -1
  511. package/dist/webcomponents/p-CmXujxGp.js +0 -1
  512. package/dist/webcomponents/p-DLmWCafe.js +0 -1
  513. package/dist/webcomponents/p-DYGIC0QH.js +0 -1
  514. package/dist/webcomponents/p-Dvcgmvfg.js +0 -1
  515. package/dist/webcomponents/p-MLfmcsbZ.js +0 -1
  516. package/dist/webcomponents/p-R0FDNhyd.js +0 -1
  517. package/dist/webcomponents/p-a53fae42.entry.js +0 -1
  518. package/dist/webcomponents/p-a5640aa4.entry.js +0 -1
  519. package/dist/webcomponents/p-b21e5a85.entry.js +0 -1
  520. package/dist/webcomponents/p-b2d7a9dd.entry.js +0 -1
  521. package/dist/webcomponents/p-b596cbb3.entry.js +0 -1
  522. package/dist/webcomponents/p-b7ffdb30.entry.js +0 -1
  523. package/dist/webcomponents/p-bac16c16.entry.js +0 -1
  524. package/dist/webcomponents/p-bb4cc829.entry.js +0 -1
  525. package/dist/webcomponents/p-bbdae5b7.entry.js +0 -1
  526. package/dist/webcomponents/p-c4da12e0.entry.js +0 -1
  527. package/dist/webcomponents/p-c5be6300.entry.js +0 -1
  528. package/dist/webcomponents/p-c63b8c8f.entry.js +0 -1
  529. package/dist/webcomponents/p-d6350138.entry.js +0 -1
  530. package/dist/webcomponents/p-d6c2d51d.entry.js +0 -1
  531. package/dist/webcomponents/p-def798df.entry.js +0 -1
  532. package/dist/webcomponents/p-e2650fe5.entry.js +0 -1
  533. package/dist/webcomponents/p-e4ba0754.entry.js +0 -1
  534. package/dist/webcomponents/p-e939affa.entry.js +0 -1
  535. package/dist/webcomponents/p-e9c20b52.entry.js +0 -1
  536. package/dist/webcomponents/p-rz2BF2Sz.js +0 -1
@@ -1,151 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-p7cvUYAE.js');
4
- var ComponentError = require('./ComponentError-D4OLnOkg.js');
5
- var Business = require('./Business-oBifyXkW.js');
6
- var parts = require('./parts-BXshb_S-.js');
7
- var styledHost = require('./styled-host-DAi5SuFa.js');
8
- var header1 = require('./header-1-CsBQoo1f.js');
9
- require('./event-types-YOY5TKUN.js');
10
- var eventTypes = require('./event-types-DNOUef41.js');
11
- var paymentProvisioningLoading = require('./payment-provisioning-loading-tM9WWmxv.js');
12
- require('./skeleton-DvRCiQlA.js');
13
-
14
- const PaymentProvisioningAlreadyProvisioned = () => {
15
- return (index.h("div", { class: "row gap-3 p-5" }, index.h("div", { class: "col-12" }, index.h(header1.Header1, { text: "Business Already Provisioned" })), index.h("div", { class: "col-12", part: parts.text }, index.h("p", null, "We have already received the onboarding information for this business."))));
16
- };
17
-
18
- const PaymentProvisioningSubmissionComplete = () => {
19
- return (index.h("div", { class: "row gap-3 p5" }, index.h("div", { class: "col-12" }, index.h(header1.Header1, { text: "You're all set for now" })), index.h("div", { class: "col-12", part: parts.text }, index.h("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!"))));
20
- };
21
-
22
- const JustifiPaymentProvisioningCore = class {
23
- constructor(hostRef) {
24
- index.registerInstance(this, hostRef);
25
- this.clickEvent = index.createEvent(this, "click-event", 7);
26
- this.errorEvent = index.createEvent(this, "error-event", 7);
27
- this.submitEvent = index.createEvent(this, "submit-event", 7);
28
- this.loading = false;
29
- this.businessLoading = true;
30
- this.businessProvisioned = false;
31
- this.formSubmitted = false;
32
- this.currentStep = 0;
33
- this.country = Business.CountryCode.USA;
34
- this.allowOptionalFields = false;
35
- this.setBusinessProvisioned = () => {
36
- return new Promise((resolve) => {
37
- this.getBusiness({
38
- onSuccess: (response) => {
39
- const business = new Business.Business(response.data);
40
- this.businessProvisioned = Business.checkProvisioningStatus(business);
41
- this.country = business.country_of_establishment;
42
- if (this.businessProvisioned) {
43
- this.errorEvent.emit({
44
- message: 'A request to provision payments for this business has already been submitted.',
45
- errorCode: ComponentError.ComponentErrorCodes.PROVISIONING_REQUESTED,
46
- severity: ComponentError.ComponentErrorSeverity.INFO,
47
- });
48
- }
49
- this.businessLoading = false;
50
- resolve();
51
- },
52
- onError: ({ error, code, severity }) => {
53
- this.errorEvent.emit({
54
- message: error,
55
- errorCode: code,
56
- severity: severity
57
- });
58
- this.businessLoading = false;
59
- resolve();
60
- }
61
- });
62
- });
63
- };
64
- this.postProvisioningData = () => {
65
- this.postProvisioning({
66
- onSuccess: (response) => {
67
- this.formSubmitted = true;
68
- this.submitEvent.emit({ response: response });
69
- },
70
- onError: ({ error, code, severity }) => {
71
- this.submitEvent.emit({ response: { error } });
72
- this.errorEvent.emit({
73
- message: error,
74
- errorCode: code,
75
- severity: severity
76
- });
77
- }
78
- });
79
- };
80
- this.refs = [];
81
- this.incrementSteps = () => {
82
- if (this.currentStep < this.totalSteps) {
83
- return this.currentStep++;
84
- }
85
- };
86
- this.decrementSteps = () => { return this.currentStep--; };
87
- this.previousStepButtonOnClick = () => {
88
- this.clickEvent.emit({ name: eventTypes.BusinessFormClickActions.previousStep });
89
- this.decrementSteps();
90
- };
91
- this.nextStepButtonOnClick = (e, clickEventName) => {
92
- e.preventDefault();
93
- this.clickEvent.emit({ name: clickEventName });
94
- const currentStep = this.refs[this.currentStep];
95
- currentStep.validateAndSubmit({ onSuccess: this.incrementSteps });
96
- };
97
- }
98
- handleFormCompleted() {
99
- this.postProvisioningData();
100
- }
101
- async componentWillLoad() {
102
- if (this.getBusiness) {
103
- await this.setBusinessProvisioned();
104
- }
105
- else {
106
- this.businessLoading = false;
107
- }
108
- this.refs = [
109
- this.coreInfoRef,
110
- this.legalAddressRef,
111
- this.additionalQuestionsRef,
112
- this.representativeRef,
113
- this.ownersRef,
114
- this.bankAccountRef,
115
- this.termsRef,
116
- ];
117
- }
118
- get businessEndpoint() {
119
- return `entities/business/${this.businessId}`;
120
- }
121
- get formDisabled() {
122
- return this.loading || this.businessProvisioned;
123
- }
124
- get totalSteps() {
125
- return this.refs.length - 1;
126
- }
127
- get stepCounter() {
128
- return `Step ${this.currentStep + 1} of ${this.totalSteps + 1}`;
129
- }
130
- handleFormLoading(event) {
131
- this.loading = event.detail;
132
- }
133
- render() {
134
- // State 1: Loading
135
- if (this.businessLoading) {
136
- return (index.h(styledHost.StyledHost, null, index.h(paymentProvisioningLoading.PaymentProvisioningLoading, null)));
137
- }
138
- // State 2: Already Provisioned
139
- if (this.businessProvisioned) {
140
- return (index.h(styledHost.StyledHost, null, index.h(PaymentProvisioningAlreadyProvisioned, null)));
141
- }
142
- // State 3: Submission Complete
143
- if (this.formSubmitted) {
144
- return (index.h(styledHost.StyledHost, null, index.h(PaymentProvisioningSubmissionComplete, null)));
145
- }
146
- // State 4: Form Steps (default)
147
- return (index.h(styledHost.StyledHost, null, index.h("div", { class: 'row gap-3' }, index.h(header1.Header1, { text: this.formTitle }), index.h("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 }), index.h("div", { class: 'd-flex justify-content-between align-items-center' }, index.h("div", { class: 'd-flex align-items-center', part: parts.text }, this.stepCounter), index.h("payment-provisioning-form-buttons", { currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
148
- }
149
- };
150
-
151
- exports.justifi_payment_provisioning_core = JustifiPaymentProvisioningCore;
@@ -1,353 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../api/ComponentError";
3
- import { checkProvisioningStatus } from "../utils/helpers";
4
- import { Header1, StyledHost } from "../../../ui-components";
5
- import { text } from "../../../styles/parts";
6
- import { BusinessFormClickActions } from "../utils/event-types";
7
- import { CountryCode } from "../../../utils/country-codes";
8
- import { Business } from "../../../api/Business";
9
- import { PaymentProvisioningLoading } from "./payment-provisioning-loading";
10
- import { PaymentProvisioningAlreadyProvisioned } from "./payment-provisioning-already-provisioned";
11
- import { PaymentProvisioningSubmissionComplete } from "./payment-provisioning-submission-complete";
12
- export class JustifiPaymentProvisioningCore {
13
- constructor() {
14
- this.loading = false;
15
- this.businessLoading = true;
16
- this.businessProvisioned = false;
17
- this.formSubmitted = false;
18
- this.currentStep = 0;
19
- this.country = CountryCode.USA;
20
- this.allowOptionalFields = false;
21
- this.setBusinessProvisioned = () => {
22
- return new Promise((resolve) => {
23
- this.getBusiness({
24
- onSuccess: (response) => {
25
- const business = new Business(response.data);
26
- this.businessProvisioned = checkProvisioningStatus(business);
27
- this.country = business.country_of_establishment;
28
- if (this.businessProvisioned) {
29
- this.errorEvent.emit({
30
- message: 'A request to provision payments for this business has already been submitted.',
31
- errorCode: ComponentErrorCodes.PROVISIONING_REQUESTED,
32
- severity: ComponentErrorSeverity.INFO,
33
- });
34
- }
35
- this.businessLoading = false;
36
- resolve();
37
- },
38
- onError: ({ error, code, severity }) => {
39
- this.errorEvent.emit({
40
- message: error,
41
- errorCode: code,
42
- severity: severity
43
- });
44
- this.businessLoading = false;
45
- resolve();
46
- }
47
- });
48
- });
49
- };
50
- this.postProvisioningData = () => {
51
- this.postProvisioning({
52
- onSuccess: (response) => {
53
- this.formSubmitted = true;
54
- this.submitEvent.emit({ response: response });
55
- },
56
- onError: ({ error, code, severity }) => {
57
- this.submitEvent.emit({ response: { error } });
58
- this.errorEvent.emit({
59
- message: error,
60
- errorCode: code,
61
- severity: severity
62
- });
63
- }
64
- });
65
- };
66
- this.refs = [];
67
- this.incrementSteps = () => {
68
- if (this.currentStep < this.totalSteps) {
69
- return this.currentStep++;
70
- }
71
- };
72
- this.decrementSteps = () => { return this.currentStep--; };
73
- this.previousStepButtonOnClick = () => {
74
- this.clickEvent.emit({ name: BusinessFormClickActions.previousStep });
75
- this.decrementSteps();
76
- };
77
- this.nextStepButtonOnClick = (e, clickEventName) => {
78
- e.preventDefault();
79
- this.clickEvent.emit({ name: clickEventName });
80
- const currentStep = this.refs[this.currentStep];
81
- currentStep.validateAndSubmit({ onSuccess: this.incrementSteps });
82
- };
83
- }
84
- handleFormCompleted() {
85
- this.postProvisioningData();
86
- }
87
- async componentWillLoad() {
88
- if (this.getBusiness) {
89
- await this.setBusinessProvisioned();
90
- }
91
- else {
92
- this.businessLoading = false;
93
- }
94
- this.refs = [
95
- this.coreInfoRef,
96
- this.legalAddressRef,
97
- this.additionalQuestionsRef,
98
- this.representativeRef,
99
- this.ownersRef,
100
- this.bankAccountRef,
101
- this.termsRef,
102
- ];
103
- }
104
- get businessEndpoint() {
105
- return `entities/business/${this.businessId}`;
106
- }
107
- get formDisabled() {
108
- return this.loading || this.businessProvisioned;
109
- }
110
- get totalSteps() {
111
- return this.refs.length - 1;
112
- }
113
- get stepCounter() {
114
- return `Step ${this.currentStep + 1} of ${this.totalSteps + 1}`;
115
- }
116
- handleFormLoading(event) {
117
- this.loading = event.detail;
118
- }
119
- render() {
120
- // State 1: Loading
121
- if (this.businessLoading) {
122
- return (h(StyledHost, null, h(PaymentProvisioningLoading, null)));
123
- }
124
- // State 2: Already Provisioned
125
- if (this.businessProvisioned) {
126
- return (h(StyledHost, null, h(PaymentProvisioningAlreadyProvisioned, null)));
127
- }
128
- // State 3: Submission Complete
129
- if (this.formSubmitted) {
130
- return (h(StyledHost, null, h(PaymentProvisioningSubmissionComplete, null)));
131
- }
132
- // State 4: Form Steps (default)
133
- return (h(StyledHost, null, h("div", { class: 'row gap-3' }, h(Header1, { text: this.formTitle }), h("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 }), h("div", { class: 'd-flex justify-content-between align-items-center' }, h("div", { class: 'd-flex align-items-center', part: text }, this.stepCounter), h("payment-provisioning-form-buttons", { currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
134
- }
135
- static get is() { return "justifi-payment-provisioning-core"; }
136
- static get properties() {
137
- return {
138
- "businessId": {
139
- "type": "string",
140
- "mutable": false,
141
- "complexType": {
142
- "original": "string",
143
- "resolved": "string",
144
- "references": {}
145
- },
146
- "required": true,
147
- "optional": false,
148
- "docs": {
149
- "tags": [],
150
- "text": ""
151
- },
152
- "getter": false,
153
- "setter": false,
154
- "reflect": false,
155
- "attribute": "business-id"
156
- },
157
- "authToken": {
158
- "type": "string",
159
- "mutable": false,
160
- "complexType": {
161
- "original": "string",
162
- "resolved": "string",
163
- "references": {}
164
- },
165
- "required": true,
166
- "optional": false,
167
- "docs": {
168
- "tags": [],
169
- "text": ""
170
- },
171
- "getter": false,
172
- "setter": false,
173
- "reflect": false,
174
- "attribute": "auth-token"
175
- },
176
- "allowOptionalFields": {
177
- "type": "boolean",
178
- "mutable": false,
179
- "complexType": {
180
- "original": "boolean",
181
- "resolved": "boolean",
182
- "references": {}
183
- },
184
- "required": false,
185
- "optional": true,
186
- "docs": {
187
- "tags": [],
188
- "text": ""
189
- },
190
- "getter": false,
191
- "setter": false,
192
- "reflect": false,
193
- "attribute": "allow-optional-fields",
194
- "defaultValue": "false"
195
- },
196
- "formTitle": {
197
- "type": "string",
198
- "mutable": false,
199
- "complexType": {
200
- "original": "string",
201
- "resolved": "string",
202
- "references": {}
203
- },
204
- "required": true,
205
- "optional": false,
206
- "docs": {
207
- "tags": [],
208
- "text": ""
209
- },
210
- "getter": false,
211
- "setter": false,
212
- "reflect": false,
213
- "attribute": "form-title"
214
- },
215
- "getBusiness": {
216
- "type": "unknown",
217
- "mutable": false,
218
- "complexType": {
219
- "original": "Function",
220
- "resolved": "Function",
221
- "references": {
222
- "Function": {
223
- "location": "global",
224
- "id": "global::Function"
225
- }
226
- }
227
- },
228
- "required": true,
229
- "optional": false,
230
- "docs": {
231
- "tags": [],
232
- "text": ""
233
- },
234
- "getter": false,
235
- "setter": false
236
- },
237
- "postProvisioning": {
238
- "type": "unknown",
239
- "mutable": false,
240
- "complexType": {
241
- "original": "Function",
242
- "resolved": "Function",
243
- "references": {
244
- "Function": {
245
- "location": "global",
246
- "id": "global::Function"
247
- }
248
- }
249
- },
250
- "required": true,
251
- "optional": false,
252
- "docs": {
253
- "tags": [],
254
- "text": ""
255
- },
256
- "getter": false,
257
- "setter": false
258
- }
259
- };
260
- }
261
- static get states() {
262
- return {
263
- "loading": {},
264
- "businessLoading": {},
265
- "businessProvisioned": {},
266
- "formSubmitted": {},
267
- "currentStep": {},
268
- "errorMessage": {},
269
- "country": {}
270
- };
271
- }
272
- static get events() {
273
- return [{
274
- "method": "clickEvent",
275
- "name": "click-event",
276
- "bubbles": true,
277
- "cancelable": true,
278
- "composed": true,
279
- "docs": {
280
- "tags": [],
281
- "text": ""
282
- },
283
- "complexType": {
284
- "original": "ComponentClickEvent",
285
- "resolved": "ComponentClickEvent",
286
- "references": {
287
- "ComponentClickEvent": {
288
- "location": "import",
289
- "path": "../../../api/ComponentEvents",
290
- "id": "src/api/ComponentEvents.ts::ComponentClickEvent"
291
- }
292
- }
293
- }
294
- }, {
295
- "method": "errorEvent",
296
- "name": "error-event",
297
- "bubbles": true,
298
- "cancelable": true,
299
- "composed": true,
300
- "docs": {
301
- "tags": [],
302
- "text": ""
303
- },
304
- "complexType": {
305
- "original": "ComponentErrorEvent",
306
- "resolved": "ComponentErrorEvent",
307
- "references": {
308
- "ComponentErrorEvent": {
309
- "location": "import",
310
- "path": "../../../api/ComponentEvents",
311
- "id": "src/api/ComponentEvents.ts::ComponentErrorEvent"
312
- }
313
- }
314
- }
315
- }, {
316
- "method": "submitEvent",
317
- "name": "submit-event",
318
- "bubbles": true,
319
- "cancelable": true,
320
- "composed": true,
321
- "docs": {
322
- "tags": [],
323
- "text": ""
324
- },
325
- "complexType": {
326
- "original": "ComponentSubmitEvent",
327
- "resolved": "ComponentSubmitEvent",
328
- "references": {
329
- "ComponentSubmitEvent": {
330
- "location": "import",
331
- "path": "../../../api/ComponentEvents",
332
- "id": "src/api/ComponentEvents.ts::ComponentSubmitEvent"
333
- }
334
- }
335
- }
336
- }];
337
- }
338
- static get listeners() {
339
- return [{
340
- "name": "formCompleted",
341
- "method": "handleFormCompleted",
342
- "target": undefined,
343
- "capture": false,
344
- "passive": false
345
- }, {
346
- "name": "formLoading",
347
- "method": "handleFormLoading",
348
- "target": undefined,
349
- "capture": false,
350
- "passive": false
351
- }];
352
- }
353
- }
@@ -1,31 +0,0 @@
1
- var ComponentErrorCodes;
2
- (function (ComponentErrorCodes) {
3
- ComponentErrorCodes["MISSING_PROPS"] = "missing-props";
4
- ComponentErrorCodes["FETCH_ERROR"] = "fetch-error";
5
- ComponentErrorCodes["PATCH_ERROR"] = "patch-error";
6
- ComponentErrorCodes["POST_ERROR"] = "post-error";
7
- ComponentErrorCodes["UNKNOWN_ERROR"] = "unknown-error";
8
- ComponentErrorCodes["TOKENIZE_ERROR"] = "tokenize-error";
9
- ComponentErrorCodes["COMPLETE_CHECKOUT_ERROR"] = "complete-checkout-error";
10
- ComponentErrorCodes["CHECKOUT_ALREADY_COMPLETED"] = "checkout-already-completed";
11
- ComponentErrorCodes["CHECKOUT_EXPIRED"] = "checkout-expired";
12
- ComponentErrorCodes["NOT_AUTHENTICATED"] = "not-authenticated";
13
- ComponentErrorCodes["INVALID_PARAMETER"] = "invalid-parameter";
14
- ComponentErrorCodes["PROVISIONING_REQUESTED"] = "provisioning-already-requested";
15
- ComponentErrorCodes["INVALID_REFUND_AMOUNT"] = "invalid-refund-amount";
16
- ComponentErrorCodes["VALIDATION_ERROR"] = "validation-error";
17
- })(ComponentErrorCodes || (ComponentErrorCodes = {}));
18
- var ComponentErrorSeverity;
19
- (function (ComponentErrorSeverity) {
20
- ComponentErrorSeverity["INFO"] = "info";
21
- ComponentErrorSeverity["WARNING"] = "warning";
22
- ComponentErrorSeverity["ERROR"] = "error";
23
- })(ComponentErrorSeverity || (ComponentErrorSeverity = {}));
24
- var ComponentErrorMessages;
25
- (function (ComponentErrorMessages) {
26
- ComponentErrorMessages["NOT_AUTHENTICATED"] = "Not authenticated. Please provide a valid auth token, checkout id, and account id.";
27
- ComponentErrorMessages["CHECKOUT_ALREADY_COMPLETED"] = "Checkout already completed. Please create a new checkout.";
28
- ComponentErrorMessages["CHECKOUT_EXPIRED"] = "Checkout expired. Please create a new checkout.";
29
- })(ComponentErrorMessages || (ComponentErrorMessages = {}));
30
-
31
- export { ComponentErrorSeverity as C, ComponentErrorCodes as a, ComponentErrorMessages as b };