@justifi/webcomponents 6.12.6-rc.1 → 6.12.6

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 (328) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-CexlbLRl.js → Analytics-CuYtRPw5.js} +2 -2
  3. package/dist/cjs/{Plaid-KasiL5mp.js → Plaid-BRSyOOuw.js} +19 -14
  4. package/dist/cjs/{additional-questions-form-step_15.cjs.entry.js → additional-questions-form-step_14.cjs.entry.js} +169 -378
  5. package/dist/cjs/additional-questions_5.cjs.entry.js +7 -7
  6. package/dist/cjs/additional-statement_8.cjs.entry.js +1 -1
  7. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
  8. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-D_nM7NDk.js} +0 -51
  10. package/dist/cjs/{business-identity-schema-CC1wOwXd.js → business-identity-schema-DuFGX6_i.js} +7 -11
  11. package/dist/cjs/{business.service-BBovho58.js → business.service-Z9OACEQL.js} +1 -1
  12. package/dist/cjs/card-form.cjs.entry.js +2 -2
  13. package/dist/cjs/{check-pkg-version-jeIQGJ8A.js → check-pkg-version-CPWLIT6P.js} +1 -1
  14. package/dist/cjs/{checkout.service-C0M9hmsL.js → checkout.service-BZOyqXgW.js} +1 -1
  15. package/dist/cjs/{country-config-Ck-eEeZZ.js → country-config-aJp8ScEs.js} +0 -2
  16. package/dist/cjs/dispute-notification_2.cjs.entry.js +6 -6
  17. package/dist/cjs/{event-types-DDNVjmfR.js → event-types-AU1B76Vm.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 +4 -5
  20. package/dist/cjs/{get-business-Ggw-UjXj.js → get-business-aR-C83KX.js} +2 -2
  21. package/dist/cjs/{get-payment-details-BVKRwME1.js → get-payment-details-dwhA02Zl.js} +2 -2
  22. package/dist/cjs/{get-subaccounts-RRmcS9xU.js → get-subaccounts-B1jmSa2d.js} +2 -2
  23. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  24. package/dist/cjs/{index.esm-BNETBIV_.js → index.esm-C1ZPG85l.js} +18 -0
  25. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +11 -10
  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 +3 -3
  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 +2 -2
  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 +3 -3
  54. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
  55. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  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/{lodash-CxSkBibc.js → lodash-C4mGy21w.js} +38 -27
  59. package/dist/cjs/{package-CDegPd7E.js → package-Dxjq_cJI.js} +1 -1
  60. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  61. package/dist/cjs/{payment-provisioning-actions-Cn8bgHKu.js → payment-provisioning-actions-BiSpysjW.js} +2 -2
  62. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +2 -3
  63. package/dist/cjs/{payment.service-CbIxt30x.js → payment.service-ByrgA_QZ.js} +1 -1
  64. package/dist/cjs/{payout.service-DVMvsdAf.js → payout.service-CnQm_BpU.js} +1 -1
  65. package/dist/cjs/{payouts-status-CzS2CLGW.js → payouts-status-AuS3Mp0V.js} +2 -2
  66. package/dist/cjs/{plaid.service-DNT_DX6z.js → plaid.service-Dlb8EUR8.js} +1 -1
  67. package/dist/cjs/{schema-validations-DackMxv7.js → schema-validations-DNPcvDh5.js} +8 -11
  68. package/dist/cjs/styled-host-DAi5SuFa.js +11 -0
  69. package/dist/cjs/{terminal.service-BBHixg-d.js → terminal.service-BdwHQ3Vv.js} +1 -1
  70. package/dist/cjs/{utils-kDsk4nqH.js → utils-FVGp6se3.js} +1 -1
  71. package/dist/cjs/webcomponents.cjs.js +1 -1
  72. package/dist/collection/api/Document.js +7 -14
  73. package/dist/collection/collection-manifest.json +0 -2
  74. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  75. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +3 -5
  76. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -4
  77. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -46
  78. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +1 -1
  79. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +114 -6
  80. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  81. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +0 -8
  82. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -4
  83. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +1 -1
  84. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -3
  85. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +38 -10
  86. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  87. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +3 -7
  88. package/dist/collection/components/business-forms/schemas/schema-validations.js +5 -8
  89. package/dist/collection/components/business-forms/utils/business-form-options.js +0 -50
  90. package/dist/collection/components/business-forms/utils/country-config.js +0 -2
  91. package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +8 -6
  92. package/dist/collection/ui-components/form/form-control-file.js +1 -1
  93. package/dist/docs.json +76 -502
  94. package/dist/esm/{Analytics-5J6H0ALl.js → Analytics-CwckfiSK.js} +2 -2
  95. package/dist/esm/{Plaid-BM3JUIG5.js → Plaid-l6nNIjab.js} +19 -15
  96. package/dist/esm/{additional-questions-form-step_15.entry.js → additional-questions-form-step_14.entry.js} +169 -377
  97. package/dist/esm/additional-questions_5.entry.js +8 -8
  98. package/dist/esm/additional-statement_8.entry.js +1 -1
  99. package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
  100. package/dist/esm/bank-account-form.entry.js +2 -2
  101. package/dist/esm/{business-form-options-DXjZp4Rl.js → business-form-options-DRalxlqN.js} +1 -51
  102. package/dist/esm/{business-identity-schema-D8L_UfWl.js → business-identity-schema-0Q3kck3C.js} +7 -11
  103. package/dist/esm/{business.service-C4BD3pf7.js → business.service-C31wbMVs.js} +1 -1
  104. package/dist/esm/card-form.entry.js +2 -2
  105. package/dist/esm/{check-pkg-version-C7cHTIM0.js → check-pkg-version-Dy2NK3Nn.js} +1 -1
  106. package/dist/esm/{checkout.service-DmWeKNQs.js → checkout.service-cVdOGDuI.js} +1 -1
  107. package/dist/esm/{country-config-BW2dUoTJ.js → country-config-CdvhLcnT.js} +0 -2
  108. package/dist/esm/dispute-notification_2.entry.js +6 -6
  109. package/dist/esm/{event-types-eIqsrwmW.js → event-types-DalU_6SB.js} +1 -1
  110. package/dist/esm/form-address-fields_3.entry.js +1 -1
  111. package/dist/esm/form-control-number_2.entry.js +4 -5
  112. package/dist/esm/{get-business-DtFHdc37.js → get-business-Gg6qn5on.js} +2 -2
  113. package/dist/esm/{get-payment-details-26GxiYgv.js → get-payment-details-BiWgSJau.js} +2 -2
  114. package/dist/esm/{get-subaccounts-xkGMPstt.js → get-subaccounts-CkjZeR9U.js} +2 -2
  115. package/dist/esm/hidden-input_2.entry.js +1 -1
  116. package/dist/esm/{index.esm-KCSohgHx.js → index.esm-BHdVU4hV.js} +18 -1
  117. package/dist/esm/justifi-apple-pay_11.entry.js +11 -10
  118. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  119. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  120. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  121. package/dist/esm/justifi-billing-form.entry.js +1 -1
  122. package/dist/esm/justifi-business-details.entry.js +8 -8
  123. package/dist/esm/justifi-business-form.entry.js +13 -13
  124. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  125. package/dist/esm/justifi-card-form.entry.js +5 -5
  126. package/dist/esm/justifi-checkout.entry.js +5 -5
  127. package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -3
  128. package/dist/esm/justifi-checkouts-list.entry.js +8 -8
  129. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  130. package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
  131. package/dist/esm/justifi-order-terminals.entry.js +9 -9
  132. package/dist/esm/justifi-payment-details.entry.js +8 -8
  133. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  134. package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
  135. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  136. package/dist/esm/justifi-payments-list.entry.js +7 -7
  137. package/dist/esm/justifi-payout-details.entry.js +8 -8
  138. package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
  139. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  140. package/dist/esm/justifi-payouts-list.entry.js +9 -9
  141. package/dist/esm/justifi-refund-payment.entry.js +9 -9
  142. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  143. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  144. package/dist/esm/justifi-skeleton.entry.js +1 -1
  145. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
  146. package/dist/esm/justifi-terminal-orders-list.entry.js +6 -6
  147. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  148. package/dist/esm/justifi-terminals-list.entry.js +8 -8
  149. package/dist/esm/loader.js +1 -1
  150. package/dist/esm/{lodash-CrGKVSPp.js → lodash-BF_QgjtL.js} +38 -27
  151. package/dist/esm/{package-8R9xLun-.js → package-DAZd_gFd.js} +1 -1
  152. package/dist/esm/payment-method-option.entry.js +1 -1
  153. package/dist/esm/{payment-provisioning-actions-fWdNDUdq.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
  154. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -3
  155. package/dist/esm/{payment.service-CWR7jF-K.js → payment.service-5_u-UzTY.js} +1 -1
  156. package/dist/esm/{payout.service-CFU362cH.js → payout.service-D2zS5y8N.js} +1 -1
  157. package/dist/esm/{payouts-status-D2G7FKu1.js → payouts-status-DCjCGTaa.js} +2 -2
  158. package/dist/esm/{plaid.service-0hd1i5Ga.js → plaid.service-BiJ65YG8.js} +1 -1
  159. package/dist/esm/{schema-validations-CjqWFLKt.js → schema-validations-A1o1biOB.js} +8 -11
  160. package/dist/esm/styled-host-D6byRazK.js +9 -0
  161. package/dist/esm/{terminal.service-Dr6dERcJ.js → terminal.service-CIxDfM7V.js} +1 -1
  162. package/dist/esm/{utils-q7KOrlSX.js → utils-C1B2hVAB.js} +1 -1
  163. package/dist/esm/webcomponents.js +1 -1
  164. package/dist/module/Plaid.js +19 -15
  165. package/dist/module/additional-questions-form-step2.js +5 -11
  166. package/dist/module/bank-account-document-form-inputs.js +1 -55
  167. package/dist/module/bank-account-document-form-inputs2.js +57 -0
  168. package/dist/module/business-bank-account-form-step2.js +177 -24
  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 +1 -51
  174. package/dist/module/business-identity-schema.js +3 -7
  175. package/dist/module/business-owners-form-step2.js +0 -8
  176. package/dist/module/business-representative-form-inputs2.js +3 -5
  177. package/dist/module/business-representative2.js +5 -6
  178. package/dist/module/button.js +1 -1
  179. package/dist/module/country-config.js +0 -2
  180. package/dist/module/form-control-number2.js +1 -1
  181. package/dist/module/form-control-textarea2.js +1 -1
  182. package/dist/module/form.js +18 -1
  183. package/dist/module/hidden-input2.js +1 -1
  184. package/dist/module/iframe-input2.js +1 -1
  185. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  186. package/dist/module/justifi-checkouts-list.js +2 -2
  187. package/dist/module/justifi-dispute-management.js +1 -1
  188. package/dist/module/justifi-google-pay2.js +4 -3
  189. package/dist/module/justifi-modular-checkout2.js +1 -1
  190. package/dist/module/justifi-order-terminals.js +2 -2
  191. package/dist/module/justifi-payment-details.js +1 -1
  192. package/dist/module/justifi-payment-provisioning.js +27 -33
  193. package/dist/module/justifi-payment-transactions-list.js +2 -2
  194. package/dist/module/justifi-payments-list.js +1 -1
  195. package/dist/module/justifi-payout-details.js +1 -1
  196. package/dist/module/justifi-payout-transactions-list.js +2 -2
  197. package/dist/module/justifi-payouts-list-filters.js +1 -1
  198. package/dist/module/justifi-payouts-list.js +2 -2
  199. package/dist/module/justifi-refund-payment.js +1 -1
  200. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  201. package/dist/module/justifi-terminal-orders-list.js +2 -2
  202. package/dist/module/justifi-terminals-list-filters.js +1 -1
  203. package/dist/module/justifi-terminals-list.js +2 -2
  204. package/dist/module/lodash.js +38 -27
  205. package/dist/module/owner-form-inputs2.js +3 -5
  206. package/dist/module/owner-form2.js +1 -10
  207. package/dist/module/package.js +1 -1
  208. package/dist/module/parts.js +1 -1
  209. package/dist/module/payment-provisioning-actions.js +1 -1
  210. package/dist/module/payment-provisioning-form-steps2.js +28 -35
  211. package/dist/module/plaid-verification2.js +1 -1
  212. package/dist/module/schema-validations.js +5 -8
  213. package/dist/module/skeleton.js +1 -1
  214. package/dist/module/styled-host.js +1 -1
  215. package/dist/module/table.js +1 -1
  216. package/dist/module/terminal-quantity-selector2.js +1 -1
  217. package/dist/types/api/Document.d.ts +2 -15
  218. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -2
  219. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +12 -1
  220. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -1
  221. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +4 -4
  222. package/dist/types/components/business-forms/utils/business-form-options.d.ts +0 -1
  223. package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +1 -1
  224. package/dist/types/components.d.ts +10 -71
  225. package/dist/webcomponents/p-034fa691.entry.js +1 -0
  226. package/dist/webcomponents/{p-086f7eea.entry.js → p-07eaee91.entry.js} +1 -1
  227. package/dist/webcomponents/{p-2e063c5d.entry.js → p-08ab97ce.entry.js} +1 -1
  228. package/dist/webcomponents/{p-80fdd013.entry.js → p-1f34b2f7.entry.js} +1 -1
  229. package/dist/webcomponents/{p-3bcac405.entry.js → p-279c17ac.entry.js} +1 -1
  230. package/dist/webcomponents/{p-29b82954.entry.js → p-2a5ee558.entry.js} +1 -1
  231. package/dist/webcomponents/p-2aac2ab6.entry.js +1 -0
  232. package/dist/webcomponents/p-37254105.entry.js +1 -0
  233. package/dist/webcomponents/{p-a7e0ab9b.entry.js → p-38209a25.entry.js} +1 -1
  234. package/dist/webcomponents/{p-4b14b7e7.entry.js → p-3cefb032.entry.js} +1 -1
  235. package/dist/webcomponents/{p-8ed1bc07.entry.js → p-3ef07f42.entry.js} +1 -1
  236. package/dist/webcomponents/{p-a5ad9183.entry.js → p-41637e4a.entry.js} +1 -1
  237. package/dist/webcomponents/{p-92d8a14b.entry.js → p-4b39a470.entry.js} +1 -1
  238. package/dist/webcomponents/{p-6b21947c.entry.js → p-4ee55e7d.entry.js} +1 -1
  239. package/dist/webcomponents/p-5G1OMxZz.js +1 -0
  240. package/dist/webcomponents/p-6904c62c.entry.js +1 -0
  241. package/dist/webcomponents/{p-5f071ee0.entry.js → p-7377f7d1.entry.js} +1 -1
  242. package/dist/webcomponents/{p-48a866ae.entry.js → p-78c4668b.entry.js} +1 -1
  243. package/dist/webcomponents/{p-c2e09203.entry.js → p-8e56430a.entry.js} +1 -1
  244. package/dist/webcomponents/{p-947950cc.entry.js → p-9153c121.entry.js} +1 -1
  245. package/dist/webcomponents/p-9b5ca32c.entry.js +1 -0
  246. package/dist/webcomponents/{p-04d6d725.entry.js → p-9d676f54.entry.js} +1 -1
  247. package/dist/webcomponents/{p-BrFax4_P.js → p-APOabprT.js} +1 -1
  248. package/dist/webcomponents/p-Aacb4jqT.js +1 -0
  249. package/dist/webcomponents/{p-CeW0EPHy.js → p-Axa3cgnH.js} +1 -1
  250. package/dist/webcomponents/{p-CL8LyqRI.js → p-BJu1-9kE.js} +1 -1
  251. package/dist/webcomponents/{p-czJ2qSU1.js → p-BXyADlAH.js} +1 -1
  252. package/dist/webcomponents/{p-xWuaNtJy.js → p-Ba8jdOkX.js} +1 -1
  253. package/dist/webcomponents/{p-DvnFba1A.js → p-BdpSLMs7.js} +1 -1
  254. package/dist/webcomponents/p-BqNNwq6C.js +1 -0
  255. package/dist/webcomponents/{p-BBSnDYJw.js → p-Bt4GjEWL.js} +1 -1
  256. package/dist/webcomponents/{p-C-zuQNNP.js → p-BxKbnILQ.js} +1 -1
  257. package/dist/webcomponents/{p-D9sqTVmd.js → p-CKiAlBsU.js} +1 -1
  258. package/dist/webcomponents/{p-CDu7TeCZ.js → p-Cm9f5fyh.js} +1 -1
  259. package/dist/webcomponents/p-D8ytux5N.js +1 -0
  260. package/dist/webcomponents/p-DAZd_gFd.js +1 -0
  261. package/dist/webcomponents/{p-DdeBubpX.js → p-Dk26hk5T.js} +1 -1
  262. package/dist/webcomponents/p-DrMJliVY.js +1 -0
  263. package/dist/webcomponents/{p-Dzv0P2Ly.js → p-NZS8uCtH.js} +1 -1
  264. package/dist/webcomponents/p-OeJ-3w3l.js +9 -0
  265. package/dist/webcomponents/p-XIWgia4J.js +1 -0
  266. package/dist/webcomponents/{p-8db8d7e7.entry.js → p-a2c25cc4.entry.js} +1 -1
  267. package/dist/webcomponents/{p-de1ccbea.entry.js → p-a56e43a1.entry.js} +1 -1
  268. package/dist/webcomponents/{p-a3b48ba3.entry.js → p-a7a1b168.entry.js} +1 -1
  269. package/dist/webcomponents/{p-85c0abdb.entry.js → p-a9e82502.entry.js} +1 -1
  270. package/dist/webcomponents/{p-BSyTbuZy.js → p-av6jyzyC.js} +1 -1
  271. package/dist/webcomponents/{p-0b169fac.entry.js → p-b0b6083f.entry.js} +1 -1
  272. package/dist/webcomponents/{p-86eb32d8.entry.js → p-b21010cb.entry.js} +1 -1
  273. package/dist/webcomponents/{p-1e34c488.entry.js → p-b62ff001.entry.js} +1 -1
  274. package/dist/webcomponents/{p-c1b48216.entry.js → p-b8351983.entry.js} +1 -1
  275. package/dist/webcomponents/{p-3960e6b7.entry.js → p-bc2dddf3.entry.js} +1 -1
  276. package/dist/webcomponents/{p-3e10a0de.entry.js → p-c4767c7b.entry.js} +1 -1
  277. package/dist/webcomponents/p-c8bc235f.entry.js +1 -0
  278. package/dist/webcomponents/{p-0a4fcb15.entry.js → p-ca87c609.entry.js} +1 -1
  279. package/dist/webcomponents/{p-ba2ab989.entry.js → p-cf3e3394.entry.js} +1 -1
  280. package/dist/webcomponents/{p-e0e6c2df.entry.js → p-d01a1076.entry.js} +1 -1
  281. package/dist/webcomponents/{p-a4520dba.entry.js → p-d5edbea3.entry.js} +1 -1
  282. package/dist/webcomponents/{p-b17ce21d.entry.js → p-d79c5ee4.entry.js} +1 -1
  283. package/dist/webcomponents/{p-562447ad.entry.js → p-e02d7751.entry.js} +4 -4
  284. package/dist/webcomponents/{p-c3cc4ad6.entry.js → p-e07506b7.entry.js} +1 -1
  285. package/dist/webcomponents/{p-cc558e25.entry.js → p-e17b92ec.entry.js} +1 -1
  286. package/dist/webcomponents/p-ea254f14.entry.js +1 -0
  287. package/dist/webcomponents/{p-ca1c2048.entry.js → p-ebb7b693.entry.js} +1 -1
  288. package/dist/webcomponents/{p-0e4cda77.entry.js → p-f1b9cbf0.entry.js} +1 -1
  289. package/dist/webcomponents/{p-Cz0yhyYu.js → p-fE5A37L5.js} +1 -1
  290. package/dist/webcomponents/p-ff8cf16c.entry.js +1 -0
  291. package/dist/webcomponents/p-nb_LhbJq.js +1 -0
  292. package/dist/webcomponents/{p--RbNhyet.js → p-oTtn8xDw.js} +1 -1
  293. package/dist/webcomponents/webcomponents.esm.js +1 -1
  294. package/package.json +14 -14
  295. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +0 -21
  296. package/dist/cjs/styled-host-Ch0-dxF-.js +0 -11
  297. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +0 -435
  298. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-list.js +0 -52
  299. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-options.js +0 -72
  300. package/dist/esm/bank-account-document-form-inputs.entry.js +0 -19
  301. package/dist/esm/styled-host-D84RBv1W.js +0 -9
  302. package/dist/module/document-upload-form-step.d.ts +0 -11
  303. package/dist/module/document-upload-form-step.js +0 -6
  304. package/dist/module/document-upload-form-step2.js +0 -397
  305. package/dist/module/document-upload-list.d.ts +0 -11
  306. package/dist/module/document-upload-list.js +0 -6
  307. package/dist/module/document-upload-list2.js +0 -46
  308. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.d.ts +0 -44
  309. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-list.d.ts +0 -6
  310. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-options.d.ts +0 -44
  311. package/dist/webcomponents/p-37676092.entry.js +0 -1
  312. package/dist/webcomponents/p-54ee2a30.entry.js +0 -1
  313. package/dist/webcomponents/p-58adef16.entry.js +0 -1
  314. package/dist/webcomponents/p-8R9xLun-.js +0 -1
  315. package/dist/webcomponents/p-92e7ce54.entry.js +0 -1
  316. package/dist/webcomponents/p-9ce2a98a.entry.js +0 -1
  317. package/dist/webcomponents/p-B1yVkh15.js +0 -1
  318. package/dist/webcomponents/p-BzXQDB0t.js +0 -1
  319. package/dist/webcomponents/p-C_ifLmT1.js +0 -9
  320. package/dist/webcomponents/p-D9ZHVy-j.js +0 -1
  321. package/dist/webcomponents/p-DV4n8kZd.js +0 -1
  322. package/dist/webcomponents/p-DzEdYT8R.js +0 -1
  323. package/dist/webcomponents/p-a2ed63df.entry.js +0 -1
  324. package/dist/webcomponents/p-a9976353.entry.js +0 -1
  325. package/dist/webcomponents/p-c9599fc7.entry.js +0 -1
  326. package/dist/webcomponents/p-cab840bd.entry.js +0 -1
  327. package/dist/webcomponents/p-n_pmf4AT.js +0 -1
  328. package/dist/webcomponents/p-vUN_uvAi.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { ComponentErrorCodes, ComponentErrorSeverity, BankAccount } from "../../../../api";
3
- import { makeGetBusiness, makePostBankAccount } from "../payment-provisioning-actions";
4
- import { BusinessService, BusinessBankAccountService } from "../../../../api/services/business.service";
2
+ import { ComponentErrorCodes, ComponentErrorSeverity, BankAccount, EntityDocument, EntityDocumentStorage } from "../../../../api";
3
+ import { makeGetBusiness, makePostBankAccount, makePostDocumentRecord } from "../payment-provisioning-actions";
4
+ import { BusinessService, BusinessBankAccountService, DocumentRecordService } from "../../../../api/services/business.service";
5
5
  import { CountryCode } from "../../../../utils/country-codes";
6
6
  import { bankAccountSchemaByCountry } from "../../schemas/business-bank-account-schema";
7
7
  import { FormController } from "../../../../ui-components/form/form";
@@ -13,13 +13,15 @@ export class BusinessBankAccountFormStep {
13
13
  constructor() {
14
14
  this.errors = {};
15
15
  this.bankAccount = {};
16
+ this.existingDocuments = [];
17
+ this.documentData = new EntityDocumentStorage();
16
18
  this.isLoading = false;
17
19
  this.viewMode = 'manual';
18
20
  this.bankAccountVerification = false;
19
21
  this.platformAccountId = null;
20
22
  this.getSchema = () => {
21
23
  const schema = bankAccountSchemaByCountry[this.country];
22
- return schema(this.allowOptionalFields);
24
+ return schema(this.allowOptionalFields, this.existingDocuments);
23
25
  };
24
26
  this.initializeFormController = () => {
25
27
  this.formController = new FormController(this.getSchema());
@@ -36,6 +38,12 @@ export class BusinessBankAccountFormStep {
36
38
  this.inputHandler = (name, value) => {
37
39
  this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
38
40
  };
41
+ this.storeFiles = (e) => {
42
+ const fileList = Array.from(e.detail.fileList);
43
+ const docType = e.detail.document_type;
44
+ const documentList = fileList.map(file => new EntityDocument({ file, document_type: docType }, this.businessId));
45
+ this.documentData[docType] = documentList;
46
+ };
39
47
  this.getData = () => {
40
48
  this.isLoading = true;
41
49
  this.getBusiness({
@@ -58,10 +66,12 @@ export class BusinessBankAccountFormStep {
58
66
  };
59
67
  this.handleChangeBankAccount = () => {
60
68
  this.viewMode = this.plaidAvailable ? 'plaid' : 'manual';
69
+ this.documentData = new EntityDocumentStorage();
61
70
  this.initializeFormController();
62
71
  };
63
72
  this.handleCancel = () => {
64
73
  this.viewMode = this.existingBankAccount ? 'readonly' : 'plaid';
74
+ this.documentData = new EntityDocumentStorage();
65
75
  this.initializeFormController();
66
76
  };
67
77
  this.handleToggleToManualEntry = () => {
@@ -77,6 +87,66 @@ export class BusinessBankAccountFormStep {
77
87
  });
78
88
  });
79
89
  };
90
+ this.postDocumentRecordData = async (docData) => {
91
+ this.isLoading = true;
92
+ const payload = docData.record_data;
93
+ return new Promise((resolve) => {
94
+ this.postDocumentRecord({
95
+ payload,
96
+ onSuccess: (response) => {
97
+ resolve(this.handleDocRecordResponse(docData, response));
98
+ },
99
+ onError: ({ error, code, severity }) => {
100
+ this.errorEvent.emit({
101
+ message: error,
102
+ errorCode: code,
103
+ severity: severity
104
+ });
105
+ resolve(false);
106
+ },
107
+ });
108
+ });
109
+ };
110
+ this.handleDocRecordResponse = (docData, response) => {
111
+ if (response.error) {
112
+ this.errorEvent.emit({
113
+ errorCode: ComponentErrorCodes.POST_ERROR,
114
+ message: response.error.message,
115
+ severity: ComponentErrorSeverity.ERROR,
116
+ data: response.error,
117
+ });
118
+ return false;
119
+ }
120
+ else {
121
+ docData.setPresignedUrl(response.data.presigned_url);
122
+ return true;
123
+ }
124
+ };
125
+ this.uploadDocument = async (docData) => {
126
+ if (!docData.presigned_url) {
127
+ throw new Error('Presigned URL is not set');
128
+ }
129
+ const fileData = await docData.getFileData();
130
+ const response = await fetch(docData.presigned_url, {
131
+ method: 'PUT',
132
+ body: fileData
133
+ });
134
+ return this.handleUploadResponse(response);
135
+ };
136
+ this.handleUploadResponse = (response) => {
137
+ if (response.error) {
138
+ this.errorEvent.emit({
139
+ errorCode: ComponentErrorCodes.POST_ERROR,
140
+ message: response.error.message,
141
+ severity: ComponentErrorSeverity.ERROR,
142
+ data: response.error,
143
+ });
144
+ return false;
145
+ }
146
+ else {
147
+ return true;
148
+ }
149
+ };
80
150
  }
81
151
  propChanged() {
82
152
  this.initializeApi();
@@ -115,6 +185,10 @@ export class BusinessBankAccountFormStep {
115
185
  authToken: this.authToken,
116
186
  service: new BusinessBankAccountService()
117
187
  });
188
+ this.postDocumentRecord = makePostDocumentRecord({
189
+ authToken: this.authToken,
190
+ service: new DocumentRecordService()
191
+ });
118
192
  }
119
193
  else {
120
194
  this.errorEvent.emit({
@@ -140,7 +214,7 @@ export class BusinessBankAccountFormStep {
140
214
  return this.bankAccountVerification || this.existingBankAccount;
141
215
  }
142
216
  processBusinessResponse(data) {
143
- const { bank_accounts, settings, platform_account_id } = data;
217
+ const { bank_accounts, documents, settings, platform_account_id } = data;
144
218
  if (bank_accounts.length > 0) {
145
219
  this.bankAccount = new BankAccount(bank_accounts[bank_accounts.length - 1]);
146
220
  }
@@ -148,6 +222,7 @@ export class BusinessBankAccountFormStep {
148
222
  this.bankAccount = new BankAccount({});
149
223
  this.bankAccount.business_id = this.businessId;
150
224
  }
225
+ this.existingDocuments = documents;
151
226
  this.bankAccountVerification = settings.bank_account_verification === true;
152
227
  this.platformAccountId = platform_account_id;
153
228
  }
@@ -168,6 +243,11 @@ export class BusinessBankAccountFormStep {
168
243
  const bankAccountPosted = await this.postBankAccountData();
169
244
  if (!bankAccountPosted)
170
245
  return;
246
+ }
247
+ const documentsUploaded = await this.postBusinessDocuments();
248
+ if (!documentsUploaded)
249
+ return;
250
+ if (this.viewMode === 'manual') {
171
251
  this.viewMode = 'readonly';
172
252
  await this.refreshBankAccountData();
173
253
  }
@@ -231,6 +311,27 @@ export class BusinessBankAccountFormStep {
231
311
  });
232
312
  });
233
313
  }
314
+ async postBusinessDocuments() {
315
+ this.isLoading = true;
316
+ try {
317
+ const docArray = Object.values(this.documentData).flat();
318
+ if (!docArray.length) {
319
+ return true;
320
+ }
321
+ const recordsCreated = await Promise.all(docArray.map((docData) => this.postDocumentRecordData(docData))); // Create document records
322
+ if (recordsCreated.includes(false)) {
323
+ return false;
324
+ } // Exit if document record creation fails
325
+ const uploadsCompleted = await Promise.all(docArray.map((docData) => this.uploadDocument(docData))); // Upload documents to AWS presigned URLs
326
+ if (uploadsCompleted.includes(false)) {
327
+ return false;
328
+ } // Exit if any upload fails
329
+ return true;
330
+ }
331
+ finally {
332
+ this.isLoading = false;
333
+ }
334
+ }
234
335
  renderBankAccountInputs(disabled) {
235
336
  const defaultValue = this.formController.getInitialValues();
236
337
  return this.country === CountryCode.CAN ? (h("bank-account-form-inputs-canada", { defaultValue: defaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: disabled })) : (h("bank-account-form-inputs", { defaultValue: defaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: disabled }));
@@ -247,11 +348,14 @@ export class BusinessBankAccountFormStep {
247
348
  renderManualEntryView() {
248
349
  return (h("div", null, this.plaidAvailable && (h("div", { class: "mb-3" }, h(Button, { type: "button", variant: "secondary", onClick: this.handleToggleToPlaidVerification, disabled: this.isLoading, part: buttonSecondary }, "Link bank account with Plaid instead"))), this.renderBankAccountInputs(false), h("div", { class: "mt-3 d-flex gap-2" }, this.showCancel && (h(Button, { variant: "secondary", type: "button", onClick: this.handleCancel, disabled: this.isLoading, part: buttonSecondary }, "Cancel")), h(Button, { variant: "primary", type: "button", onClick: this.handleSaveBankAccount, disabled: this.isLoading, isLoading: this.isLoading }, "Save Bank Account"))));
249
350
  }
351
+ renderDocumentUploads() {
352
+ return (h("fieldset", { class: "mt-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { helpText: "One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category." })), h("hr", { class: "mt-2" }), h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles })));
353
+ }
250
354
  render() {
251
355
  if (this.isLoading) {
252
356
  return h(PaymentProvisioningLoading, null);
253
357
  }
254
- return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), this.viewMode === 'readonly' && this.renderReadonlyView(), this.viewMode === 'plaid' && this.renderPlaidView(), this.viewMode === 'manual' && this.renderManualEntryView())));
358
+ return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), this.viewMode === 'readonly' && this.renderReadonlyView(), this.viewMode === 'plaid' && this.renderPlaidView(), this.viewMode === 'manual' && this.renderManualEntryView()), this.viewMode !== 'plaid' && this.renderDocumentUploads()));
255
359
  }
256
360
  static get is() { return "business-bank-account-form-step"; }
257
361
  static get properties() {
@@ -345,10 +449,14 @@ export class BusinessBankAccountFormStep {
345
449
  "formController": {},
346
450
  "errors": {},
347
451
  "bankAccount": {},
452
+ "existingDocuments": {},
453
+ "documentData": {},
348
454
  "isLoading": {},
349
455
  "viewMode": {},
350
456
  "getBusiness": {},
351
457
  "postBankAccount": {},
458
+ "postDocumentRecord": {},
459
+ "postDocument": {},
352
460
  "bankAccountVerification": {},
353
461
  "platformAccountId": {}
354
462
  };
@@ -128,7 +128,7 @@ export class BusinessCoreInfoFormStep {
128
128
  if (this.isLoading) {
129
129
  return h(PaymentProvisioningLoading, null);
130
130
  }
131
- return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Registration", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, (!((_a = this.coreInfo) === null || _a === void 0 ? void 0 : _a.tax_id_last4) || this.isEditingTaxId) ? (h("form-control-number-masked", { name: "tax_id", label: countryLabels[this.country].taxIdLabelOptional || countryLabels[this.country].taxIdLabel, defaultValue: this.isEditingTaxId ? '' : coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: '000000000', helpText: countryLabels[this.country].taxIdHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].taxIdLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_b = this.coreInfo) === null || _b === void 0 ? void 0 : _b.tax_id_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
131
+ return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Registration", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, (!((_a = this.coreInfo) === null || _a === void 0 ? void 0 : _a.tax_id_last4) || this.isEditingTaxId) ? (h("form-control-number-masked", { name: "tax_id", label: countryLabels[this.country].taxIdLabel, defaultValue: this.isEditingTaxId ? '' : coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: '000000000', helpText: countryLabels[this.country].taxIdHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].taxIdLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_b = this.coreInfo) === null || _b === void 0 ? void 0 : _b.tax_id_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
132
132
  this.isEditingTaxId = true;
133
133
  // Clear last4-equivalent and current value if any future conditional validation depends on it
134
134
  this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { tax_id: '', tax_id_last4: null }));
@@ -122,14 +122,6 @@ export class BusinessOwnersFormStep {
122
122
  if (!formsValid) {
123
123
  return;
124
124
  }
125
- if (!this.allowOptionalFields) {
126
- const percentages = await Promise.all(this.refs.map(ref => ref.getOwnershipPercentage()));
127
- const total = percentages.reduce((sum, p) => sum + (parseFloat(p) || 0), 0);
128
- if (total !== 100) {
129
- await Promise.all(this.refs.map(ref => ref.setOwnershipPercentageError('Ownership percentages must total 100%')));
130
- return;
131
- }
132
- }
133
125
  const formSubmissions = this.refs.map(ref => ref.submit());
134
126
  const submissionsValid = (await Promise.all(formSubmissions)).every(result => result);
135
127
  if (!submissionsValid) {
@@ -2,9 +2,7 @@ import { h } from "@stencil/core";
2
2
  import { updateAddressFormValues, updateDateOfBirthFormValues, updateFormValues } from "../../utils/input-handlers";
3
3
  import { PHONE_MASKS, IDENTITY_MASKS } from "../../../../utils/form-input-masks";
4
4
  import { heading2, label, inputDisabled, buttonSecondary } from "../../../../styles/parts";
5
- import { CountryCode } from "../../../../utils/country-codes";
6
5
  import { countryLabels } from "../../utils/country-config";
7
- import { businessTitleOptions } from "../../utils/business-form-options";
8
6
  export class BusinessRepresentativeFormInputs {
9
7
  constructor() {
10
8
  this.isEditingIdentification = false;
@@ -17,14 +15,14 @@ export class BusinessRepresentativeFormInputs {
17
15
  }
18
16
  render() {
19
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
20
- return (h("form", { key: '2346f250e4e2982b5b5b2624d039f551b5b5ed4e' }, h("fieldset", { key: '7b496e6157e5eec02ef0d263c68fbd1e001c75ac' }, h("div", { key: 'b86d993c7fbee2269e48c7d4ea51826f199fecd4', class: "d-flex align-items-center gap-2" }, h("legend", { key: '2b013e6068bbbca54a0852093ab4a2fae4ce64d2', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '01e0f1d6ba2d5ee852593f7015a3ba7e0d980df9', helpText: "The representative for your business needs to be someone who has significant control over managing your business's finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '4bec34756ec7081e01809175bc3d2b6af0532537', class: "mt-2" }), h("div", { key: '6965720fabb1f12c6bb3c5a81f74ae12f44037b2', class: "row gy-3" }, h("div", { key: 'efbb768ba1e66d5ef47f792c39a17921b40e0eba', class: "col-12 col-md-8" }, h("form-control-text", { key: '28477d3798ba7d14aee9201e84b276d8e85a21df', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '28f17ccbe4da476256acd9c5a4e78a6a641ba6e9', class: "col-12 col-md-4" }, h("form-control-select", { key: 'dae6a93a0bc057abb97024277be0f10de01514e2', name: "title", label: "Title", options: businessTitleOptions, defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '2f9a45774adaa0040df2da1a8000d1ee61e16bf5', class: "col-12 col-md-6" }, h("form-control-text", { key: '66a2a1ea8b54c03c012d76a74654ee19a9f958a7', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '3b34f0cb11d358db2220c01aac90e8b7ba3cc01b', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '52c62ec653fb917a248a302f7cb5ad46dc7bcc23', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'd287ec225af1541cca227d3b8bc54466cbb86b07', class: "col-12 col-md-4" }, h("form-control-date", { key: '7e1ff6cc40b01dc7f6ad0ad84d73c0e59eea0d6f', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: '283b09c845f1a12f4974f82a26fffbf7c5f608ba', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: this.country === CountryCode.CAN ? countryLabels[this.country].idNumberLabelOptional : countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].identityHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, this.country === CountryCode.CAN ? countryLabels[this.country].idNumberLabelOptional : countryLabels[this.country].idNumberLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
18
+ return (h("form", { key: 'ef49167cc726b3d4efa128503553a77a7627ebee' }, h("fieldset", { key: '3714ce7eab6e9cee062911564d1c2635b68dfc8b' }, h("div", { key: '4f27236b0438e29d7449bf5e9f71c00c7245effa', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'adc144da314549264571b245c5388ab56c1dbbf1', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: 'bcc76add04febe984427103a594aa63cab17bd27', helpText: "The representative for your business needs to be someone who has significant control over managing your business's finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '98bfed19989ee57e451a7005f3e60af16cc5d3b5', class: "mt-2" }), h("div", { key: '8f5e0e3deed2627ecf9f77290f268c0e2ee68bfa', class: "row gy-3" }, h("div", { key: 'b1205284a54a608b9c3b6be386e134849c9c6b25', class: "col-12 col-md-8" }, h("form-control-text", { key: '36fcd91ca263adfd9fb69dc88f15404f93a8bc13', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '879337d3c6a120f5dc9de3cd3364b34b9c4689df', class: "col-12 col-md-4" }, h("form-control-text", { key: 'ff2e4d29e76b93693735b35cbaca4416f0cd28a0', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '2a011b74b4c203ae4a309d7d76ea8fd0631a5f2c', class: "col-12 col-md-6" }, h("form-control-text", { key: '1ef20c59829ed3abe81cc53355bbafd5d4894360', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '460dad175238fdfea8c79666343943a95aac0fd5', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '7bd3ad79f6da1d33e38c2246d9c0378c2ef8b7d7', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'cda84bfc9f88a35177a42b7f9ec4c58292600c0b', class: "col-12 col-md-4" }, h("form-control-date", { key: '5ed66fabc97afc94a5839135add25dbcb5237900', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: '0e19619fd081ea9dacd0eb25388a4c7b2c993312', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].identityHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].idNumberLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
21
19
  this.isEditingIdentification = true;
22
20
  // Clear current value to force validation
23
21
  updateFormValues(this.formController, {
24
22
  identification_number: '',
25
23
  ssn_last4: null
26
24
  });
27
- } }, "Change"))))), h("div", { key: '0a40679570df7b85faa7530797ebc21ca8794263', class: "col-12" }, h("identity-address-form", { key: '5a1590251365260413ab63ce9a417d3d71c71e84', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
25
+ } }, "Change"))))), h("div", { key: '6647390b209f5a630bf60e8952a7b0e70c92ca8a', class: "col-12" }, h("identity-address-form", { key: '9755d0450fc8d83ba0a98a304455df346ff33e7f', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
28
26
  }
29
27
  static get is() { return "business-representative-form-inputs"; }
30
28
  static get properties() {
@@ -111,7 +111,7 @@ export class JustifiPaymentProvisioning {
111
111
  else {
112
112
  this.businessLoading = false;
113
113
  }
114
- this.refs = new Array(8);
114
+ this.refs = new Array(7);
115
115
  }
116
116
  disconnectedCallback() {
117
117
  var _a;
@@ -11,15 +11,14 @@ export class PaymentProvisioningFormSteps {
11
11
  3: () => h("business-representative-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[3] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
12
12
  4: () => h("business-owners-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[4] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
13
13
  5: () => h("business-bank-account-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[5] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
14
- 6: () => h("document-upload-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[6] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
15
- 7: () => h("business-terms-conditions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[7] = el, onFormLoading: this.handleFormLoading, allowOptionalFields: this.allowOptionalFields }),
14
+ 6: () => h("business-terms-conditions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[6] = el, onFormLoading: this.handleFormLoading, allowOptionalFields: this.allowOptionalFields }),
16
15
  };
17
16
  }
18
17
  get currentStepComponent() {
19
18
  return this.componentStepMapping[this.currentStep]();
20
19
  }
21
20
  render() {
22
- return (h("div", { key: 'a249d66ac8348900e21998c4cf89bd02cfeec7c1', class: 'col-12 mb-4' }, this.currentStepComponent));
21
+ return (h("div", { key: '6bd8ebe91fefb364dd29a741e2cdf8a90aa1351b', class: 'col-12 mb-4' }, this.currentStepComponent));
23
22
  }
24
23
  static get is() { return "payment-provisioning-form-steps"; }
25
24
  static get properties() {
@@ -1,7 +1,11 @@
1
- import { object, string } from "yup";
1
+ import { object, mixed, string } from "yup";
2
2
  import { CountryCode } from "../../../utils/country-codes";
3
+ import { EntityDocumentType } from "../../../api/Document";
3
4
  import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation, } from "./schema-validations";
4
5
  import { numbersOnlyRegex } from "./schema-helpers";
6
+ const checkExistingDocs = (documents, documentType) => {
7
+ return documents.some((doc) => doc.document_type === documentType);
8
+ };
5
9
  const buildCommonFieldRules = (allowOptionalFields) => {
6
10
  if (allowOptionalFields) {
7
11
  return {
@@ -20,6 +24,30 @@ const buildCommonFieldRules = (allowOptionalFields) => {
20
24
  account_number: accountNumberValidation.required('Enter account number'),
21
25
  };
22
26
  };
27
+ const buildDocumentRules = (documents, allowOptionalFields) => {
28
+ if (allowOptionalFields) {
29
+ return {
30
+ voided_check: mixed().nullable(),
31
+ bank_statement: mixed().nullable(),
32
+ };
33
+ }
34
+ const existingVoidedCheck = checkExistingDocs(documents, EntityDocumentType.voidedCheck);
35
+ const existingBankStatement = checkExistingDocs(documents, EntityDocumentType.bankStatement);
36
+ const existingDocument = existingVoidedCheck || existingBankStatement;
37
+ const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
38
+ return {
39
+ voided_check: mixed().when('bank_statement', {
40
+ is: (val) => !val && !existingDocument,
41
+ then: (schema) => schema.required(documentErrorText),
42
+ otherwise: (schema) => schema.notRequired(),
43
+ }),
44
+ bank_statement: mixed().when('voided_check', {
45
+ is: (val) => !val && !existingDocument,
46
+ then: (schema) => schema.required(documentErrorText),
47
+ otherwise: (schema) => schema.notRequired(),
48
+ }),
49
+ };
50
+ };
23
51
  const buildUSARules = (allowOptionalFields) => {
24
52
  if (allowOptionalFields) {
25
53
  return { routing_number: routingNumberValidation.nullable() };
@@ -44,17 +72,17 @@ const buildCANRules = (allowOptionalFields) => {
44
72
  transit_number: transitNumberValidation.required('Enter transit number'),
45
73
  };
46
74
  };
47
- export const businessBankAccountSchemaUSA = (allowOptionalFields) => {
48
- const shape = Object.assign(Object.assign({}, buildCommonFieldRules(allowOptionalFields)), buildUSARules(allowOptionalFields));
49
- return object().shape(shape);
75
+ export const businessBankAccountSchemaUSA = (documents, allowOptionalFields) => {
76
+ const shape = Object.assign(Object.assign(Object.assign({}, buildCommonFieldRules(allowOptionalFields)), buildUSARules(allowOptionalFields)), buildDocumentRules(documents, allowOptionalFields));
77
+ return object().shape(shape, [['voided_check', 'bank_statement']]);
50
78
  };
51
- export const businessBankAccountSchemaCAN = (allowOptionalFields) => {
52
- const shape = Object.assign(Object.assign({}, buildCommonFieldRules(allowOptionalFields)), buildCANRules(allowOptionalFields));
53
- return object().shape(shape);
79
+ export const businessBankAccountSchemaCAN = (documents, allowOptionalFields) => {
80
+ const shape = Object.assign(Object.assign(Object.assign({}, buildCommonFieldRules(allowOptionalFields)), buildCANRules(allowOptionalFields)), buildDocumentRules(documents, allowOptionalFields));
81
+ return object().shape(shape, [['voided_check', 'bank_statement']]);
54
82
  };
55
83
  // For backward compatibility, default to USA
56
- export const businessBankAccountSchema = (allowOptionalFields) => businessBankAccountSchemaUSA(allowOptionalFields);
84
+ export const businessBankAccountSchema = (documents, allowOptionalFields) => businessBankAccountSchemaUSA(documents, allowOptionalFields);
57
85
  export const bankAccountSchemaByCountry = {
58
- [CountryCode.USA]: (allowOptionalFields) => businessBankAccountSchemaUSA(allowOptionalFields),
59
- [CountryCode.CAN]: (allowOptionalFields) => businessBankAccountSchemaCAN(allowOptionalFields),
86
+ [CountryCode.USA]: (allowOptionalFields, documents = []) => businessBankAccountSchemaUSA(documents, allowOptionalFields),
87
+ [CountryCode.CAN]: (allowOptionalFields, documents = []) => businessBankAccountSchemaCAN(documents, allowOptionalFields),
60
88
  };
@@ -42,7 +42,7 @@ export const businessCoreInfoSchemaCAN = (allowOptionalFields) => baseBusinessCo
42
42
  tax_id: makeTaxIdValidation(CountryCode.CAN)
43
43
  .when('tax_id_last4', {
44
44
  is: (val) => !val,
45
- then: (schema) => schema.notRequired().nullable(),
45
+ then: (schema) => schema.required(`Enter valid ${countryLabels.CAN.taxIdLabel} without dashes`),
46
46
  otherwise: (schema) => schema.nullable(),
47
47
  }),
48
48
  }));
@@ -23,9 +23,7 @@ const strictSchemaUSA = (role) => object({
23
23
  ssn_last4: string().nullable(),
24
24
  // ssn required unless last4 provided (handled inside ssnValidation)
25
25
  identification_number: ssnValidation,
26
- ownership_percentage: role === 'owner'
27
- ? ownershipPercentageValidation.required('Enter ownership percentage')
28
- : ownershipPercentageValidation.nullable(),
26
+ ownership_percentage: ownershipPercentageValidation.nullable(),
29
27
  address: addressSchemaUSA(false),
30
28
  });
31
29
  // Internal CAN schemas
@@ -47,10 +45,8 @@ const strictSchemaCAN = (role) => object({
47
45
  phone: phoneValidation.required('Enter phone number'),
48
46
  dob_full: dobValidation(role).required('Enter date of birth'),
49
47
  ssn_last4: string().nullable(),
50
- identification_number: makeIdentityNumberValidation(CountryCode.CAN).nullable(),
51
- ownership_percentage: role === 'owner'
52
- ? ownershipPercentageValidation.required('Enter ownership percentage')
53
- : ownershipPercentageValidation.nullable(),
48
+ identification_number: makeIdentityNumberValidation(CountryCode.CAN),
49
+ ownership_percentage: ownershipPercentageValidation.nullable(),
54
50
  address: addressSchemaCAN(false),
55
51
  });
56
52
  export const identitySchemaUSA = (role, allowOptionalFields) => allowOptionalFields ? schemaUSA(role) : strictSchemaUSA(role);
@@ -46,6 +46,11 @@ export const makeIdentityNumberValidation = (country) => {
46
46
  return string()
47
47
  .matches(numbersOnlyRegex, 'Enter valid SIN')
48
48
  .length(countryValidation[country].identityDigits, 'Enter valid SIN')
49
+ .when('ssn_last4', {
50
+ is: (val) => !val || val.length === 0,
51
+ then: (schema) => schema.required('Enter SIN'),
52
+ otherwise: (schema) => schema.nullable(),
53
+ })
49
54
  .test('not-repeat', 'Enter valid SIN', (value) => {
50
55
  return !/^(\d)\1+$/.test(value);
51
56
  })
@@ -63,13 +68,9 @@ export const makeTaxIdValidation = (country) => {
63
68
  .matches(numbersOnlyRegex, 'Enter valid Business Number (BN)')
64
69
  .length(countryValidation[country].taxIdDigits, 'Enter valid Business Number (BN)')
65
70
  .test('not-repeat', 'Enter valid Business Number (BN)', (value) => {
66
- if (!value)
67
- return true;
68
71
  return !/^(\d)\1+$/.test(value);
69
72
  })
70
73
  .test('not-seq', 'Enter valid Business Number (BN)', (value) => {
71
- if (!value)
72
- return true;
73
74
  return value !== '123456789';
74
75
  })
75
76
  .transform(transformEmptyString);
@@ -197,13 +198,9 @@ export const routingNumberValidation = string()
197
198
  .length(9, 'Routing number must be 9 digits')
198
199
  .matches(numbersOnlyRegex, 'Enter valid routing number')
199
200
  .test('not-repeat', 'Enter valid routing number', (value) => {
200
- if (!value)
201
- return true;
202
201
  return !/^(\d)\1+$/.test(value);
203
202
  })
204
203
  .test('valid', 'Enter valid routing number', (value) => {
205
- if (!value)
206
- return true;
207
204
  return validateRoutingNumber(value);
208
205
  })
209
206
  .transform(transformEmptyString);
@@ -75,56 +75,6 @@ export const seasonalBusinessOptions = [
75
75
  value: 'No',
76
76
  }
77
77
  ];
78
- export const businessTitleOptions = [
79
- {
80
- label: 'Choose title',
81
- value: '',
82
- },
83
- {
84
- label: 'Vice President',
85
- value: 'Vice President',
86
- },
87
- {
88
- label: 'President',
89
- value: 'President',
90
- },
91
- {
92
- label: 'Treasurer',
93
- value: 'Treasurer',
94
- },
95
- {
96
- label: 'Owner',
97
- value: 'Owner',
98
- },
99
- {
100
- label: 'Partner',
101
- value: 'Partner',
102
- },
103
- {
104
- label: 'CEO',
105
- value: 'CEO',
106
- },
107
- {
108
- label: 'Member LLC',
109
- value: 'Member LLC',
110
- },
111
- {
112
- label: 'Secretary',
113
- value: 'Secretary',
114
- },
115
- {
116
- label: 'Director',
117
- value: 'Director',
118
- },
119
- {
120
- label: 'COO',
121
- value: 'COO',
122
- },
123
- {
124
- label: 'CFO',
125
- value: 'CFO',
126
- },
127
- ];
128
78
  export const bankAccountTypeOptions = [
129
79
  {
130
80
  label: 'Checking',
@@ -9,7 +9,6 @@ export const countryLabels = {
9
9
  idNumberLabelOptional: 'SSN (optional)',
10
10
  identityHelpText: 'Enter your full Social Security Number. It is required for Federal OFAC check.',
11
11
  taxIdLabel: 'Tax ID (EIN or SSN)',
12
- taxIdLabelOptional: '',
13
12
  taxIdHelpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes.",
14
13
  },
15
14
  CAN: {
@@ -19,7 +18,6 @@ export const countryLabels = {
19
18
  idNumberLabelOptional: 'SIN (optional)',
20
19
  identityHelpText: 'Enter your full Social Insurance Number.',
21
20
  taxIdLabel: 'Business Number (BN)',
22
- taxIdLabelOptional: 'Business Number (BN) (optional)',
23
21
  taxIdHelpText: 'Business Numbers (BN) are nine digits. Enter value without spaces or dashes.',
24
22
  },
25
23
  };
@@ -17,7 +17,8 @@ var GooglePayEventTypes;
17
17
  })(GooglePayEventTypes || (GooglePayEventTypes = {}));
18
18
  export class JustifiGooglePay {
19
19
  constructor() {
20
- this.environment = "TEST";
20
+ this.environment = "PRODUCTION";
21
+ this.merchantDisplayName = "JustiFi Checkout";
21
22
  this.iframeReady = false;
22
23
  this.sdkLoaded = false;
23
24
  this.isReadyToPay = false;
@@ -82,7 +83,7 @@ export class JustifiGooglePay {
82
83
  const config = {
83
84
  environment: this.environment,
84
85
  gatewayMerchantId: checkoutStore.accountId,
85
- merchantName: this.merchantName,
86
+ merchantName: this.merchantDisplayName,
86
87
  authToken: checkoutStore.authToken,
87
88
  accountId: checkoutStore.accountId,
88
89
  };
@@ -142,9 +143,9 @@ export class JustifiGooglePay {
142
143
  "setter": false,
143
144
  "reflect": false,
144
145
  "attribute": "environment",
145
- "defaultValue": "\"TEST\""
146
+ "defaultValue": "\"PRODUCTION\""
146
147
  },
147
- "merchantName": {
148
+ "merchantDisplayName": {
148
149
  "type": "string",
149
150
  "mutable": false,
150
151
  "complexType": {
@@ -153,7 +154,7 @@ export class JustifiGooglePay {
153
154
  "references": {}
154
155
  },
155
156
  "required": false,
156
- "optional": true,
157
+ "optional": false,
157
158
  "docs": {
158
159
  "tags": [],
159
160
  "text": ""
@@ -161,7 +162,8 @@ export class JustifiGooglePay {
161
162
  "getter": false,
162
163
  "setter": false,
163
164
  "reflect": false,
164
- "attribute": "merchant-name"
165
+ "attribute": "merchant-display-name",
166
+ "defaultValue": "\"JustiFi Checkout\""
165
167
  }
166
168
  };
167
169
  }
@@ -149,7 +149,7 @@ export class FormControlFile {
149
149
  "mutable": false,
150
150
  "complexType": {
151
151
  "original": "EntityDocumentType",
152
- "resolved": "EntityDocumentType.articlesOfIncorporation | EntityDocumentType.balanceSheet | EntityDocumentType.bankStatement | EntityDocumentType.birthCertificate | EntityDocumentType.businessRegistration | EntityDocumentType.citizenshipCard | EntityDocumentType.driverLicense | EntityDocumentType.foreignPassport | EntityDocumentType.governmentId | EntityDocumentType.nexusCard | EntityDocumentType.other | EntityDocumentType.passport | EntityDocumentType.profitAndLossStatement | EntityDocumentType.residentCard | EntityDocumentType.sinCard | EntityDocumentType.ssnCard | EntityDocumentType.statusCard | EntityDocumentType.taxReturn | EntityDocumentType.voidedCheck",
152
+ "resolved": "EntityDocumentType.balanceSheet | EntityDocumentType.bankStatement | EntityDocumentType.governmentId | EntityDocumentType.other | EntityDocumentType.profitAndLossStatement | EntityDocumentType.taxReturn | EntityDocumentType.voidedCheck",
153
153
  "references": {
154
154
  "EntityDocumentType": {
155
155
  "location": "import",