@justifi/webcomponents 4.12.2 → 4.13.0-rc.1

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 (244) hide show
  1. package/dist/cjs/{Api-a06b996e.js → Api-ab34a402.js} +4 -1
  2. package/dist/cjs/{Business-21cef37d.js → Business-32a53780.js} +8 -3
  3. package/dist/cjs/{utils-f8079741.js → ComponentError-8ba0c0e7.js} +0 -25
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  5. package/dist/cjs/{business-additional-questions-schema-f5f303fb.js → business-additional-questions-schema-0a35f597.js} +17 -9
  6. package/dist/cjs/{business-form-types-a3cc374d.js → business-form-options-43366c9a.js} +50 -33
  7. package/dist/cjs/business-form-types-29b2bad9.js +26 -0
  8. package/dist/cjs/form-control-date_3.cjs.entry.js +1 -1
  9. package/dist/cjs/form-control-datepart_2.cjs.entry.js +1 -1
  10. package/dist/cjs/form-control-file.cjs.entry.js +44 -0
  11. package/dist/cjs/form-control-monetary.cjs.entry.js +7 -12
  12. package/dist/cjs/form-input-masks-0879c139.js +27 -0
  13. package/dist/cjs/{index-fc5339a5.js → index-d8e99b54.js} +352 -198
  14. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +10 -9
  15. package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +6 -6
  16. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -7
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -5
  19. package/dist/cjs/justifi-business-list.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-checkout-core.cjs.entry.js +30 -11
  22. package/dist/cjs/justifi-checkout.cjs.entry.js +36 -9
  23. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -6
  24. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +12 -12
  25. package/dist/cjs/justifi-owner-form.cjs.entry.js +6 -5
  26. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +1 -1
  27. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
  28. package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
  29. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +1 -3
  30. package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -7
  31. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -7
  32. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -6
  33. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
  35. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +1 -1
  36. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +1 -1
  37. package/dist/cjs/loader.cjs.js +1 -1
  38. package/dist/cjs/{payload-parsers-74693a97.js → payload-parsers-6c4b5323.js} +61 -6
  39. package/dist/cjs/{payment.service-9db24ab9.js → payment.service-336189d3.js} +1 -1
  40. package/dist/cjs/{payout.service-a0efb71a.js → payout.service-6012d576.js} +1 -1
  41. package/dist/cjs/utils-491248ca.js +28 -0
  42. package/dist/cjs/webcomponents.cjs.js +1 -1
  43. package/dist/collection/api/Api.js +4 -1
  44. package/dist/collection/api/Business.js +8 -3
  45. package/dist/collection/collection-manifest.json +1 -0
  46. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -2
  47. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +4 -2
  48. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  49. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -2
  50. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
  51. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +16 -9
  52. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +3 -1
  53. package/dist/collection/components/business-forms/schemas/schema-helpers.js +3 -0
  54. package/dist/collection/components/business-forms/schemas/schema-validations.js +51 -7
  55. package/dist/collection/components/business-forms/utils/business-form-options.js +119 -0
  56. package/dist/collection/components/business-forms/utils/business-form-types.js +0 -81
  57. package/dist/collection/components/checkout/checkout-actions.js +29 -7
  58. package/dist/collection/components/checkout/checkout-core.js +51 -14
  59. package/dist/collection/components/checkout/checkout.js +30 -2
  60. package/dist/collection/components/checkout/new-payment-method.js +11 -11
  61. package/dist/collection/components/checkout/payment-method-options.js +2 -18
  62. package/dist/collection/components/checkout/test/checkout-actions.spec.js +124 -0
  63. package/dist/collection/components/checkout/test/checkout-core.spec.js +127 -0
  64. package/dist/collection/components/checkout/test/checkout.spec.js +0 -153
  65. package/dist/collection/components/form/form-control-file.css +1806 -0
  66. package/dist/collection/components/form/form-control-file.js +169 -0
  67. package/dist/collection/components/form/form-control-monetary.css +1812 -0
  68. package/dist/collection/components/form/form-control-monetary.js +24 -11
  69. package/dist/collection/components/form/test/form-control-file.spec.js +84 -0
  70. package/dist/collection/components/form/test/form-control-monetary.spec.js +5 -3
  71. package/dist/collection/components/refund-form/refund-form.js +2 -1
  72. package/dist/collection/utils/form-input-masks.js +15 -0
  73. package/dist/docs.json +275 -33
  74. package/dist/esm/{Api-0e88671c.js → Api-e9d568c7.js} +4 -1
  75. package/dist/esm/{Business-0e8a9a3a.js → Business-d83fbdb4.js} +8 -3
  76. package/dist/esm/{utils-4609f32c.js → ComponentError-2a58dbbc.js} +1 -23
  77. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  78. package/dist/esm/{business-additional-questions-schema-a84dd641.js → business-additional-questions-schema-e96b0509.js} +18 -10
  79. package/dist/esm/{business-form-types-7420dc96.js → business-form-options-de11bc46.js} +46 -32
  80. package/dist/esm/business-form-types-0d76133c.js +26 -0
  81. package/dist/esm/form-control-date_3.entry.js +1 -1
  82. package/dist/esm/form-control-datepart_2.entry.js +1 -1
  83. package/dist/esm/form-control-file.entry.js +40 -0
  84. package/dist/esm/form-control-monetary.entry.js +7 -12
  85. package/dist/esm/form-input-masks-0e18300f.js +22 -0
  86. package/dist/esm/{index-5eb05747.js → index-dc1350b1.js} +352 -198
  87. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +10 -9
  88. package/dist/esm/justifi-additional-questions_4.entry.js +6 -6
  89. package/dist/esm/justifi-billing-form_4.entry.js +2 -2
  90. package/dist/esm/justifi-business-details.entry.js +4 -3
  91. package/dist/esm/justifi-business-form.entry.js +6 -5
  92. package/dist/esm/justifi-business-list.entry.js +2 -2
  93. package/dist/esm/justifi-business-owners.entry.js +1 -1
  94. package/dist/esm/justifi-checkout-core.entry.js +30 -11
  95. package/dist/esm/justifi-checkout.entry.js +37 -10
  96. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -2
  97. package/dist/esm/justifi-new-payment-method_4.entry.js +12 -12
  98. package/dist/esm/justifi-owner-form.entry.js +6 -5
  99. package/dist/esm/justifi-payment-balance-transactions.entry.js +1 -1
  100. package/dist/esm/justifi-payment-details.entry.js +4 -3
  101. package/dist/esm/justifi-payment-form.entry.js +2 -1
  102. package/dist/esm/justifi-payment-provisioning.entry.js +1 -3
  103. package/dist/esm/justifi-payments-list.entry.js +4 -3
  104. package/dist/esm/justifi-payout-details.entry.js +4 -3
  105. package/dist/esm/justifi-payouts-list.entry.js +4 -3
  106. package/dist/esm/justifi-proceeds-list.entry.js +1 -1
  107. package/dist/esm/justifi-refund-form.entry.js +3 -2
  108. package/dist/esm/justifi-subaccount-details.entry.js +1 -1
  109. package/dist/esm/justifi-subaccounts-list.entry.js +1 -1
  110. package/dist/esm/loader.js +1 -1
  111. package/dist/esm/{payload-parsers-0c4fc2b1.js → payload-parsers-32028700.js} +54 -7
  112. package/dist/esm/{payment.service-ec28a959.js → payment.service-2fdc5018.js} +1 -1
  113. package/dist/esm/{payout.service-5fd5986c.js → payout.service-15064bcc.js} +1 -1
  114. package/dist/esm/utils-f580d6b7.js +25 -0
  115. package/dist/esm/webcomponents.js +1 -1
  116. package/dist/module/Api.js +4 -1
  117. package/dist/module/Business.js +8 -3
  118. package/dist/module/ComponentError.js +16 -0
  119. package/dist/module/additional-questions-details2.js +2 -2
  120. package/dist/module/additional-questions.js +18 -4
  121. package/dist/module/business-additional-questions-form-step.js +18 -4
  122. package/dist/module/business-additional-questions-schema.js +16 -9
  123. package/dist/module/business-address-schema.js +1 -1
  124. package/dist/module/business-core-info-form-step.js +10 -3
  125. package/dist/module/business-core-info-schema.js +3 -1
  126. package/dist/module/business-core-info.js +9 -3
  127. package/dist/module/business-form-options.js +122 -0
  128. package/dist/module/business-form-types.js +153 -82
  129. package/dist/module/business-identity-schema.js +1 -1
  130. package/dist/module/business-representative-form-step.js +1 -1
  131. package/dist/module/checkout-core.js +30 -13
  132. package/dist/module/form-control-file.d.ts +11 -0
  133. package/dist/module/form-control-file.js +67 -0
  134. package/dist/module/form-control-monetary2.js +8 -12
  135. package/dist/module/form-input-masks.js +16 -1
  136. package/dist/module/index2.js +352 -198
  137. package/dist/module/justifi-business-details.js +2 -1
  138. package/dist/module/justifi-business-form.js +2 -2
  139. package/dist/module/justifi-checkout.js +37 -11
  140. package/dist/module/justifi-gross-payment-chart.js +2 -1
  141. package/dist/module/justifi-payment-details.js +2 -1
  142. package/dist/module/justifi-payment-form.js +2 -1
  143. package/dist/module/justifi-payment-provisioning.js +1 -1
  144. package/dist/module/justifi-payments-list.js +2 -1
  145. package/dist/module/justifi-payout-details.js +2 -1
  146. package/dist/module/justifi-payouts-list.js +2 -1
  147. package/dist/module/justifi-refund-form.js +2 -1
  148. package/dist/module/legal-address-form-step.js +1 -1
  149. package/dist/module/new-payment-method.js +11 -11
  150. package/dist/module/owner-form.js +2 -2
  151. package/dist/module/payload-parsers.js +1 -107
  152. package/dist/module/payment-method-form.js +2 -2
  153. package/dist/module/payment-method-options.js +2 -2
  154. package/dist/module/utils3.js +2 -15
  155. package/dist/types/api/Api.d.ts +1 -0
  156. package/dist/types/api/Business.d.ts +15 -5
  157. package/dist/types/api/services/checkout.service.d.ts +3 -3
  158. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +10 -4
  159. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +2 -0
  160. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +12 -4
  161. package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +3 -0
  162. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +8 -0
  163. package/dist/types/components/business-forms/utils/business-form-options.d.ts +21 -0
  164. package/dist/types/components/business-forms/utils/business-form-types.d.ts +0 -9
  165. package/dist/types/components/checkout/checkout-core.d.ts +8 -3
  166. package/dist/types/components/checkout/checkout.d.ts +3 -0
  167. package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
  168. package/dist/types/components/checkout/payment-method-payload.d.ts +5 -0
  169. package/dist/types/components/form/form-control-file.d.ts +17 -0
  170. package/dist/types/components/form/form-control-monetary.d.ts +1 -0
  171. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +1 -0
  172. package/dist/types/components.d.ts +61 -2
  173. package/dist/types/utils/form-input-masks.d.ts +15 -0
  174. package/dist/webcomponents/p-00ca94d1.js +1 -0
  175. package/dist/webcomponents/p-02b18979.entry.js +1 -0
  176. package/dist/webcomponents/p-0d80748f.js +1 -0
  177. package/dist/webcomponents/p-101b2648.entry.js +1 -0
  178. package/dist/webcomponents/p-132ba228.js +1 -0
  179. package/dist/webcomponents/p-13e2f667.js +1 -0
  180. package/dist/webcomponents/{p-18cf5a16.entry.js → p-1885c478.entry.js} +1 -1
  181. package/dist/webcomponents/{p-8abba4c2.entry.js → p-23099f1f.entry.js} +1 -1
  182. package/dist/webcomponents/p-230b96df.entry.js +1 -0
  183. package/dist/webcomponents/{p-2fbe8823.entry.js → p-3367225e.entry.js} +1 -1
  184. package/dist/webcomponents/p-3917edbf.entry.js +1 -0
  185. package/dist/webcomponents/p-3da23f21.js +1 -0
  186. package/dist/webcomponents/p-41bdee27.entry.js +1 -0
  187. package/dist/webcomponents/{p-5ff7826e.entry.js → p-4c84952f.entry.js} +1 -1
  188. package/dist/webcomponents/p-4ff52695.entry.js +1 -0
  189. package/dist/webcomponents/p-525db3e8.js +1 -0
  190. package/dist/webcomponents/p-61fd33c7.js +1 -0
  191. package/dist/webcomponents/p-64710363.entry.js +1 -0
  192. package/dist/webcomponents/{p-9245777b.js → p-731085e3.js} +1 -1
  193. package/dist/webcomponents/p-78b32fb9.entry.js +1 -0
  194. package/dist/webcomponents/p-7e334dce.entry.js +1 -0
  195. package/dist/webcomponents/p-7faacb1e.entry.js +1 -0
  196. package/dist/webcomponents/{p-5f5e730c.entry.js → p-834cba99.entry.js} +1 -1
  197. package/dist/webcomponents/p-87d646c0.js +1 -0
  198. package/dist/webcomponents/p-935d6f55.js +1 -0
  199. package/dist/webcomponents/{p-e3946c2b.js → p-9ada56da.js} +1 -1
  200. package/dist/webcomponents/p-9ba31a6a.entry.js +1 -0
  201. package/dist/webcomponents/p-a9af8f40.entry.js +1 -0
  202. package/dist/webcomponents/p-b81afd51.entry.js +1 -0
  203. package/dist/webcomponents/{p-c556deda.entry.js → p-bb58e656.entry.js} +1 -1
  204. package/dist/webcomponents/p-bc12b8b9.js +1 -0
  205. package/dist/webcomponents/p-bfe7c55c.entry.js +1 -0
  206. package/dist/webcomponents/p-c1be3378.entry.js +1 -0
  207. package/dist/webcomponents/p-cb31488b.entry.js +1 -0
  208. package/dist/webcomponents/p-cf3151a3.entry.js +1 -0
  209. package/dist/webcomponents/p-d0a8c631.entry.js +1 -0
  210. package/dist/webcomponents/p-e6ab1f0d.entry.js +1 -0
  211. package/dist/webcomponents/p-ee68566f.entry.js +1 -0
  212. package/dist/webcomponents/{p-3adc0688.entry.js → p-efbc8ffc.entry.js} +1 -1
  213. package/dist/webcomponents/{p-b9f04fb0.entry.js → p-f152d6b8.entry.js} +1 -1
  214. package/dist/webcomponents/webcomponents.esm.js +1 -1
  215. package/package.json +2 -2
  216. package/dist/cjs/form-input-masks-efd44b8e.js +0 -11
  217. package/dist/esm/form-input-masks-84875967.js +0 -7
  218. package/dist/webcomponents/p-01913426.js +0 -1
  219. package/dist/webcomponents/p-04c7f8f8.js +0 -1
  220. package/dist/webcomponents/p-0c269feb.entry.js +0 -1
  221. package/dist/webcomponents/p-0eb77101.entry.js +0 -1
  222. package/dist/webcomponents/p-19001cc5.entry.js +0 -1
  223. package/dist/webcomponents/p-2319abaf.entry.js +0 -1
  224. package/dist/webcomponents/p-2bee72bd.entry.js +0 -1
  225. package/dist/webcomponents/p-51ee396f.entry.js +0 -1
  226. package/dist/webcomponents/p-52e4cc27.js +0 -1
  227. package/dist/webcomponents/p-602a1588.entry.js +0 -1
  228. package/dist/webcomponents/p-6ec77980.entry.js +0 -1
  229. package/dist/webcomponents/p-6f294d5d.js +0 -1
  230. package/dist/webcomponents/p-81c43ba5.entry.js +0 -1
  231. package/dist/webcomponents/p-927150b4.entry.js +0 -1
  232. package/dist/webcomponents/p-93579716.js +0 -1
  233. package/dist/webcomponents/p-9e35b0f6.entry.js +0 -1
  234. package/dist/webcomponents/p-9e3f9e05.entry.js +0 -1
  235. package/dist/webcomponents/p-9ec89299.entry.js +0 -1
  236. package/dist/webcomponents/p-a8caec98.entry.js +0 -1
  237. package/dist/webcomponents/p-a90f7ca0.js +0 -1
  238. package/dist/webcomponents/p-abc03d5a.entry.js +0 -1
  239. package/dist/webcomponents/p-b38baa84.entry.js +0 -1
  240. package/dist/webcomponents/p-bfc634c6.entry.js +0 -1
  241. package/dist/webcomponents/p-c1b92cec.entry.js +0 -1
  242. package/dist/webcomponents/p-cb86b2fd.js +0 -1
  243. package/dist/webcomponents/p-d2b7beac.js +0 -1
  244. package/dist/webcomponents/p-d69a485a.entry.js +0 -1
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-05-14T19:14:35",
2
+ "timestamp": "2024-05-23T19:20:23",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.10.0",
@@ -341,12 +341,20 @@
341
341
  }
342
342
  ],
343
343
  "dependents": [
344
+ "justifi-business-core-info",
345
+ "justifi-business-core-info-form-step",
344
346
  "justifi-business-representative",
345
347
  "justifi-business-representative-form-step",
346
348
  "justifi-owner-form"
347
349
  ],
348
350
  "dependencies": [],
349
351
  "dependencyGraph": {
352
+ "justifi-business-core-info": [
353
+ "form-control-date"
354
+ ],
355
+ "justifi-business-core-info-form-step": [
356
+ "form-control-date"
357
+ ],
350
358
  "justifi-business-representative": [
351
359
  "form-control-date"
352
360
  ],
@@ -574,6 +582,164 @@
574
582
  ]
575
583
  }
576
584
  },
585
+ {
586
+ "filePath": "src/components/form/form-control-file.tsx",
587
+ "encapsulation": "shadow",
588
+ "tag": "form-control-file",
589
+ "readme": "# form-control-text\n\n\n",
590
+ "docs": "",
591
+ "docsTags": [],
592
+ "usage": {},
593
+ "props": [
594
+ {
595
+ "name": "disabled",
596
+ "type": "boolean",
597
+ "complexType": {
598
+ "original": "boolean",
599
+ "resolved": "boolean",
600
+ "references": {}
601
+ },
602
+ "mutable": false,
603
+ "attr": "disabled",
604
+ "reflectToAttr": false,
605
+ "docs": "",
606
+ "docsTags": [],
607
+ "values": [
608
+ {
609
+ "type": "boolean"
610
+ }
611
+ ],
612
+ "optional": false,
613
+ "required": false
614
+ },
615
+ {
616
+ "name": "error",
617
+ "type": "string",
618
+ "complexType": {
619
+ "original": "string",
620
+ "resolved": "string",
621
+ "references": {}
622
+ },
623
+ "mutable": false,
624
+ "attr": "error",
625
+ "reflectToAttr": false,
626
+ "docs": "",
627
+ "docsTags": [],
628
+ "values": [
629
+ {
630
+ "type": "string"
631
+ }
632
+ ],
633
+ "optional": false,
634
+ "required": false
635
+ },
636
+ {
637
+ "name": "inputHandler",
638
+ "type": "(name: string, value: string) => void",
639
+ "complexType": {
640
+ "original": "(name: string, value: string) => void",
641
+ "resolved": "(name: string, value: string) => void",
642
+ "references": {}
643
+ },
644
+ "mutable": false,
645
+ "reflectToAttr": false,
646
+ "docs": "",
647
+ "docsTags": [],
648
+ "values": [
649
+ {
650
+ "type": "(name: string, value: string) => void"
651
+ }
652
+ ],
653
+ "optional": false,
654
+ "required": false
655
+ },
656
+ {
657
+ "name": "label",
658
+ "type": "string",
659
+ "complexType": {
660
+ "original": "string",
661
+ "resolved": "string",
662
+ "references": {}
663
+ },
664
+ "mutable": false,
665
+ "attr": "label",
666
+ "reflectToAttr": false,
667
+ "docs": "",
668
+ "docsTags": [],
669
+ "values": [
670
+ {
671
+ "type": "string"
672
+ }
673
+ ],
674
+ "optional": false,
675
+ "required": false
676
+ },
677
+ {
678
+ "name": "name",
679
+ "type": "any",
680
+ "complexType": {
681
+ "original": "any",
682
+ "resolved": "any",
683
+ "references": {}
684
+ },
685
+ "mutable": false,
686
+ "attr": "name",
687
+ "reflectToAttr": false,
688
+ "docs": "",
689
+ "docsTags": [],
690
+ "values": [
691
+ {
692
+ "type": "any"
693
+ }
694
+ ],
695
+ "optional": false,
696
+ "required": false
697
+ }
698
+ ],
699
+ "methods": [],
700
+ "events": [
701
+ {
702
+ "event": "formControlBlur",
703
+ "detail": "any",
704
+ "bubbles": true,
705
+ "complexType": {
706
+ "original": "any",
707
+ "resolved": "any",
708
+ "references": {}
709
+ },
710
+ "cancelable": true,
711
+ "composed": true,
712
+ "docs": "",
713
+ "docsTags": []
714
+ },
715
+ {
716
+ "event": "formControlInput",
717
+ "detail": "any",
718
+ "bubbles": true,
719
+ "complexType": {
720
+ "original": "any",
721
+ "resolved": "any",
722
+ "references": {}
723
+ },
724
+ "cancelable": true,
725
+ "composed": true,
726
+ "docs": "",
727
+ "docsTags": []
728
+ }
729
+ ],
730
+ "listeners": [],
731
+ "styles": [],
732
+ "slots": [],
733
+ "parts": [
734
+ {
735
+ "name": "label",
736
+ "docs": ""
737
+ }
738
+ ],
739
+ "dependents": [],
740
+ "dependencies": [],
741
+ "dependencyGraph": {}
742
+ },
577
743
  {
578
744
  "filePath": "src/components/form/form-control-monetary.tsx",
579
745
  "encapsulation": "shadow",
@@ -666,6 +832,28 @@
666
832
  "optional": false,
667
833
  "required": false
668
834
  },
835
+ {
836
+ "name": "maskOptions",
837
+ "type": "any",
838
+ "complexType": {
839
+ "original": "any",
840
+ "resolved": "any",
841
+ "references": {}
842
+ },
843
+ "mutable": false,
844
+ "attr": "mask-options",
845
+ "reflectToAttr": false,
846
+ "docs": "",
847
+ "docsTags": [],
848
+ "default": "CURRENCY_MASK.DECIMAL",
849
+ "values": [
850
+ {
851
+ "type": "any"
852
+ }
853
+ ],
854
+ "optional": false,
855
+ "required": false
856
+ },
669
857
  {
670
858
  "name": "name",
671
859
  "type": "string",
@@ -1353,6 +1541,8 @@
1353
1541
  }
1354
1542
  ],
1355
1543
  "dependents": [
1544
+ "justifi-additional-questions",
1545
+ "justifi-additional-questions-form-step",
1356
1546
  "justifi-business-core-info",
1357
1547
  "justifi-business-core-info-form-step",
1358
1548
  "justifi-identity-address-form",
@@ -1361,6 +1551,12 @@
1361
1551
  ],
1362
1552
  "dependencies": [],
1363
1553
  "dependencyGraph": {
1554
+ "justifi-additional-questions": [
1555
+ "form-control-select"
1556
+ ],
1557
+ "justifi-additional-questions-form-step": [
1558
+ "form-control-select"
1559
+ ],
1364
1560
  "justifi-business-core-info": [
1365
1561
  "form-control-select"
1366
1562
  ],
@@ -1595,6 +1791,8 @@
1595
1791
  }
1596
1792
  ],
1597
1793
  "dependents": [
1794
+ "justifi-additional-questions",
1795
+ "justifi-additional-questions-form-step",
1598
1796
  "justifi-business-core-info",
1599
1797
  "justifi-business-core-info-form-step",
1600
1798
  "justifi-business-owners",
@@ -1608,6 +1806,12 @@
1608
1806
  ],
1609
1807
  "dependencies": [],
1610
1808
  "dependencyGraph": {
1809
+ "justifi-additional-questions": [
1810
+ "form-control-text"
1811
+ ],
1812
+ "justifi-additional-questions-form-step": [
1813
+ "form-control-text"
1814
+ ],
1611
1815
  "justifi-business-core-info": [
1612
1816
  "form-control-text"
1613
1817
  ],
@@ -1823,11 +2027,15 @@
1823
2027
  "justifi-business-form"
1824
2028
  ],
1825
2029
  "dependencies": [
1826
- "form-control-monetary"
2030
+ "form-control-monetary",
2031
+ "form-control-select",
2032
+ "form-control-text"
1827
2033
  ],
1828
2034
  "dependencyGraph": {
1829
2035
  "justifi-additional-questions": [
1830
- "form-control-monetary"
2036
+ "form-control-monetary",
2037
+ "form-control-select",
2038
+ "form-control-text"
1831
2039
  ],
1832
2040
  "justifi-business-form": [
1833
2041
  "justifi-additional-questions"
@@ -2020,11 +2228,15 @@
2020
2228
  "justifi-payment-provisioning"
2021
2229
  ],
2022
2230
  "dependencies": [
2023
- "form-control-monetary"
2231
+ "form-control-monetary",
2232
+ "form-control-select",
2233
+ "form-control-text"
2024
2234
  ],
2025
2235
  "dependencyGraph": {
2026
2236
  "justifi-additional-questions-form-step": [
2027
- "form-control-monetary"
2237
+ "form-control-monetary",
2238
+ "form-control-select",
2239
+ "form-control-text"
2028
2240
  ],
2029
2241
  "justifi-payment-provisioning": [
2030
2242
  "justifi-additional-questions-form-step"
@@ -2549,12 +2761,14 @@
2549
2761
  ],
2550
2762
  "dependencies": [
2551
2763
  "form-control-text",
2764
+ "form-control-date",
2552
2765
  "form-control-select",
2553
2766
  "form-control-number-masked"
2554
2767
  ],
2555
2768
  "dependencyGraph": {
2556
2769
  "justifi-business-core-info": [
2557
2770
  "form-control-text",
2771
+ "form-control-date",
2558
2772
  "form-control-select",
2559
2773
  "form-control-number-masked"
2560
2774
  ],
@@ -2750,12 +2964,14 @@
2750
2964
  ],
2751
2965
  "dependencies": [
2752
2966
  "form-control-text",
2967
+ "form-control-date",
2753
2968
  "form-control-select",
2754
2969
  "form-control-number-masked"
2755
2970
  ],
2756
2971
  "dependencyGraph": {
2757
2972
  "justifi-business-core-info-form-step": [
2758
2973
  "form-control-text",
2974
+ "form-control-date",
2759
2975
  "form-control-select",
2760
2976
  "form-control-number-masked"
2761
2977
  ],
@@ -3095,6 +3311,7 @@
3095
3311
  ],
3096
3312
  "justifi-business-core-info": [
3097
3313
  "form-control-text",
3314
+ "form-control-date",
3098
3315
  "form-control-select",
3099
3316
  "form-control-number-masked"
3100
3317
  ],
@@ -3103,7 +3320,9 @@
3103
3320
  "form-control-select"
3104
3321
  ],
3105
3322
  "justifi-additional-questions": [
3106
- "form-control-monetary"
3323
+ "form-control-monetary",
3324
+ "form-control-select",
3325
+ "form-control-text"
3107
3326
  ],
3108
3327
  "justifi-business-representative": [
3109
3328
  "form-control-text",
@@ -4129,7 +4348,7 @@
4129
4348
  },
4130
4349
  {
4131
4350
  "filePath": "src/components/checkout/checkout.tsx",
4132
- "encapsulation": "shadow",
4351
+ "encapsulation": "none",
4133
4352
  "tag": "justifi-checkout",
4134
4353
  "readme": "<h1>\n <code><justifi-payment-form /></code>\n</h1>\n\n## Examples\n\n```html\n<!DOCTYPE html>\n<html dir=\"ltr\" lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0\" />\n <title>justifi-payment-form: Simple example</title>\n\n <!--\n If you are including the components via CDN the src should be the following:\n https://cdn.jsdelivr.net/npm/@justifi/webcomponents@2.1.0/dist/webcomponents/webcomponents.esm.js\n -->\n <script type=\"module\" src=\"/build/webcomponents.esm.js\"></script>\n <script nomodule src=\"/build/webcomponents.js\"></script>\n </head>\n\n <body>\n <h1>PaymentForm</h1>\n <hr />\n <justifi-payment-form></justifi-payment-form>\n </body>\n\n <script>\n (function () {})();\n </script>\n</html>\n```\n",
4135
4354
  "docs": "<h1>\n <code><justifi-payment-form /></code>\n</h1>",
@@ -4201,7 +4420,28 @@
4201
4420
  }
4202
4421
  ],
4203
4422
  "methods": [],
4204
- "events": [],
4423
+ "events": [
4424
+ {
4425
+ "event": "error-event",
4426
+ "detail": "ComponentError",
4427
+ "bubbles": true,
4428
+ "complexType": {
4429
+ "original": "ComponentError",
4430
+ "resolved": "ComponentError",
4431
+ "references": {
4432
+ "ComponentError": {
4433
+ "location": "import",
4434
+ "path": "../../api/ComponentError",
4435
+ "id": "src/api/ComponentError.ts::ComponentError"
4436
+ }
4437
+ }
4438
+ },
4439
+ "cancelable": true,
4440
+ "composed": true,
4441
+ "docs": "",
4442
+ "docsTags": []
4443
+ }
4444
+ ],
4205
4445
  "listeners": [],
4206
4446
  "styles": [],
4207
4447
  "slots": [],
@@ -4381,6 +4621,26 @@
4381
4621
  }
4382
4622
  ],
4383
4623
  "events": [
4624
+ {
4625
+ "event": "error-event",
4626
+ "detail": "ComponentError",
4627
+ "bubbles": true,
4628
+ "complexType": {
4629
+ "original": "ComponentError",
4630
+ "resolved": "ComponentError",
4631
+ "references": {
4632
+ "ComponentError": {
4633
+ "location": "import",
4634
+ "path": "../../api/ComponentError",
4635
+ "id": "src/api/ComponentError.ts::ComponentError"
4636
+ }
4637
+ }
4638
+ },
4639
+ "cancelable": true,
4640
+ "composed": true,
4641
+ "docs": "",
4642
+ "docsTags": []
4643
+ },
4384
4644
  {
4385
4645
  "event": "submitted",
4386
4646
  "detail": "IApiResponse<{ payment_mode: \"ecom\" | \"bnpl\"; payment_token: null; payment_status: string; payment_response: null; checkout_id: string; additional_transactions: any[]; checkout: ICheckout; }>",
@@ -6455,27 +6715,6 @@
6455
6715
  "optional": false,
6456
6716
  "required": false
6457
6717
  },
6458
- {
6459
- "name": "selectedPaymentMethodId",
6460
- "type": "string",
6461
- "complexType": {
6462
- "original": "string",
6463
- "resolved": "string",
6464
- "references": {}
6465
- },
6466
- "mutable": false,
6467
- "attr": "selected-payment-method-id",
6468
- "reflectToAttr": false,
6469
- "docs": "",
6470
- "docsTags": [],
6471
- "values": [
6472
- {
6473
- "type": "string"
6474
- }
6475
- ],
6476
- "optional": false,
6477
- "required": false
6478
- },
6479
6718
  {
6480
6719
  "name": "showAch",
6481
6720
  "type": "boolean",
@@ -6895,6 +7134,7 @@
6895
7134
  ],
6896
7135
  "justifi-business-core-info-form-step": [
6897
7136
  "form-control-text",
7137
+ "form-control-date",
6898
7138
  "form-control-select",
6899
7139
  "form-control-number-masked"
6900
7140
  ],
@@ -6903,7 +7143,9 @@
6903
7143
  "form-control-select"
6904
7144
  ],
6905
7145
  "justifi-additional-questions-form-step": [
6906
- "form-control-monetary"
7146
+ "form-control-monetary",
7147
+ "form-control-select",
7148
+ "form-control-text"
6907
7149
  ],
6908
7150
  "justifi-business-representative-form-step": [
6909
7151
  "form-control-text",
@@ -9789,12 +10031,12 @@
9789
10031
  "path": "src/api/ComponentError.ts"
9790
10032
  },
9791
10033
  "src/api/Business.ts::IAdditionalQuestions": {
9792
- "declaration": "export interface IAdditionalQuestions {\n business_revenue?: string;\n business_payment_volume?: string;\n business_dispute_volume?: string;\n business_receivable_volume?: string;\n}",
10034
+ "declaration": "export interface IAdditionalQuestions {\n business_revenue?: string;\n business_payment_volume?: string;\n business_when_service_received?: string;\n business_recurring_payments?: string;\n business_recurring_payments_percentage?: string;\n business_seasonal?: string;\n business_other_payment_details?: string;\n}",
9793
10035
  "docstring": "",
9794
10036
  "path": "src/api/Business.ts"
9795
10037
  },
9796
10038
  "src/api/Business.ts::IBusiness": {
9797
- "declaration": "export interface IBusiness {\n additional_questions: IAdditionalQuestions | {};\n business_type: BusinessType;\n business_structure: BusinessStructure;\n bank_accounts: BankAccount[];\n created_at: string;\n documents: Document[];\n doing_business_as: string;\n email: string;\n id: string;\n industry: string;\n legal_address: IAddress | {};\n legal_name: string;\n metadata: any;\n owners: Identity[];\n phone: string;\n platform_account_id: string;\n product_categories: ProductCategories;\n representative: Identity | {};\n tax_id: string;\n updated_at: string;\n website_url: string;\n}",
10039
+ "declaration": "export interface IBusiness {\n additional_questions: IAdditionalQuestions | {};\n business_type: BusinessType;\n business_structure: BusinessStructure;\n bank_accounts: BankAccount[];\n created_at: string;\n documents: Document[];\n doing_business_as: string;\n email: string;\n id: string;\n industry: string;\n legal_address: IAddress | {};\n legal_name: string;\n metadata: any;\n owners: Identity[];\n phone: string;\n platform_account_id: string;\n product_categories: ProductCategories;\n representative: Identity | {};\n tax_id: string;\n updated_at: string;\n website_url: string;\n date_of_incorporation?: string;\n}",
9798
10040
  "docstring": "",
9799
10041
  "path": "src/api/Business.ts"
9800
10042
  },
@@ -9854,7 +10096,7 @@
9854
10096
  "path": "src/components/checkout/payment-method-option-utils.tsx"
9855
10097
  },
9856
10098
  "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload": {
9857
- "declaration": "export interface PaymentMethodPayload {\n token?: string;\n bnpl?: {\n order_uuid: string;\n status: string;\n session_uuid: string;\n }\n}",
10099
+ "declaration": "export interface PaymentMethodPayload {\n token?: string;\n bnpl?: {\n order_uuid: string;\n status: string;\n session_uuid: string;\n },\n error?: {\n code: string;\n message: string;\n decline_code: string;\n };\n}",
9858
10100
  "docstring": "",
9859
10101
  "path": "src/components/checkout/payment-method-payload.ts"
9860
10102
  },
@@ -91,13 +91,16 @@ const Api = (authToken, apiOrigin) => {
91
91
  async function post(endpoint, body, params, signal) {
92
92
  return makeRequest(endpoint, 'POST', params, body, signal);
93
93
  }
94
+ async function put(endpoint, body, params, signal) {
95
+ return makeRequest(endpoint, 'PUT', params, body, signal);
96
+ }
94
97
  async function patch(endpoint, body, params, signal) {
95
98
  return makeRequest(endpoint, 'PATCH', params, body, signal);
96
99
  }
97
100
  async function destroy(endpoint, params, signal) {
98
101
  return makeRequest(endpoint, 'DELETE', params, null, signal);
99
102
  }
100
- return { get, post, patch, destroy };
103
+ return { get, post, put, patch, destroy };
101
104
  };
102
105
  function handleError(requestUrl) {
103
106
  console.error(`Error fetching from ${requestUrl}`);
@@ -110,8 +110,11 @@ class AdditionalQuestions {
110
110
  constructor(additionalQuestions) {
111
111
  this.business_revenue = additionalQuestions.business_revenue;
112
112
  this.business_payment_volume = additionalQuestions.business_payment_volume;
113
- this.business_dispute_volume = additionalQuestions.business_dispute_volume;
114
- this.business_receivable_volume = additionalQuestions.business_receivable_volume;
113
+ this.business_when_service_received = additionalQuestions.business_when_service_received;
114
+ this.business_recurring_payments = additionalQuestions.business_recurring_payments;
115
+ this.business_recurring_payments_percentage = additionalQuestions.business_recurring_payments_percentage;
116
+ this.business_seasonal = additionalQuestions.business_seasonal;
117
+ this.business_other_payment_details = additionalQuestions.business_other_payment_details;
115
118
  }
116
119
  }
117
120
  class CoreBusinessInfo {
@@ -125,11 +128,12 @@ class CoreBusinessInfo {
125
128
  this.website_url = coreBusinessInfo.website_url;
126
129
  this.email = coreBusinessInfo.email;
127
130
  this.phone = coreBusinessInfo.phone;
131
+ this.date_of_incorporation = coreBusinessInfo.date_of_incorporation;
128
132
  }
129
133
  }
130
134
  class Business {
131
135
  constructor(business) {
132
- this.additional_questions = business.additional_questions || {};
136
+ this.additional_questions = Object.assign({}, new AdditionalQuestions(business.additional_questions || {}));
133
137
  this.bank_accounts = business.bank_accounts;
134
138
  this.business_type = business.business_type;
135
139
  this.business_structure = business.business_structure;
@@ -150,6 +154,7 @@ class Business {
150
154
  this.tax_id = business.tax_id;
151
155
  this.updated_at = business.updated_at;
152
156
  this.website_url = business.website_url;
157
+ this.date_of_incorporation = business.date_of_incorporation;
153
158
  }
154
159
  }
155
160
 
@@ -13,26 +13,4 @@ var ComponentErrorSeverity;
13
13
  ComponentErrorSeverity["ERROR"] = "error";
14
14
  })(ComponentErrorSeverity || (ComponentErrorSeverity = {}));
15
15
 
16
- // Errors on [capital]/config/locales/en.yml
17
- // Add more errors as needed
18
- const API_ERRORS = {
19
- NOT_AUTHENTICATED: 'not_authenticated',
20
- };
21
-
22
- const getErrorMessage = (error) => {
23
- if (typeof error === 'string') {
24
- return error;
25
- }
26
- return error.message;
27
- };
28
- const getErrorCode = (code) => {
29
- switch (code) {
30
- case API_ERRORS.NOT_AUTHENTICATED:
31
- return ComponentErrorCodes.NOT_AUTHENTICATED;
32
- // add more cases as needed
33
- default:
34
- return ComponentErrorCodes.FETCH_ERROR;
35
- }
36
- };
37
-
38
- export { ComponentErrorSeverity as C, getErrorCode as a, ComponentErrorCodes as b, getErrorMessage as g };
16
+ export { ComponentErrorSeverity as C, ComponentErrorCodes as a };
@@ -10,10 +10,10 @@ const AdditionalQuestionsDetails = class {
10
10
  this.additionalQuestions = undefined;
11
11
  }
12
12
  render() {
13
- var _a, _b, _c, _d;
13
+ var _a, _b;
14
14
  if (isEmptyObject(this.additionalQuestions))
15
15
  return null;
16
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Dispute Volume", value: (_c = this.additionalQuestions.business_dispute_volume) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { title: "Business Receivable Volume", value: (_d = this.additionalQuestions.business_receivable_volume) === null || _d === void 0 ? void 0 : _d.toString() }))))));
16
+ return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() }))))));
17
17
  }
18
18
  };
19
19
  AdditionalQuestionsDetails.style = additionalQuestionsDetailsCss;
@@ -1,5 +1,5 @@
1
- import { c as create$3, a as create$6 } from './index.esm-22b47398.js';
2
- import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, c as phoneValidation, d as doingBusinessAsValidation, f as businessTypeValidation, g as businessStructureValidation, h as industryValidation, t as taxIdValidation } from './payload-parsers-0c4fc2b1.js';
1
+ import { c as create$3 } from './index.esm-22b47398.js';
2
+ import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, c as phoneValidation, d as doingBusinessAsValidation, f as businessTypeValidation, g as businessStructureValidation, h as industryValidation, t as taxIdValidation, j as dateOfIncorporationValidation, r as revenueValidation, k as paymentVolumeValidation, l as whenServiceReceivedValidation, m as recurringPaymentsValidation, n as recurringPaymentsPercentageValidation, s as seasonalBusinessValidation, o as otherPaymentDetailsValidation } from './payload-parsers-32028700.js';
3
3
 
4
4
  const businessCoreInfoSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -12,6 +12,7 @@ const businessCoreInfoSchema = (allowOptionalFields) => {
12
12
  business_structure: businessStructureValidation.required('Select business structure'),
13
13
  industry: industryValidation.required('Enter a business industry'),
14
14
  tax_id: taxIdValidation.required('Enter tax id'),
15
+ date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
15
16
  });
16
17
  const easySchema = create$3({
17
18
  legal_name: businessNameValidation.required('Enter legal name'),
@@ -23,22 +24,29 @@ const businessCoreInfoSchema = (allowOptionalFields) => {
23
24
  business_structure: businessStructureValidation.nullable(),
24
25
  industry: industryValidation.nullable(),
25
26
  tax_id: taxIdValidation.nullable(),
27
+ date_of_incorporation: dateOfIncorporationValidation.nullable(),
26
28
  });
27
29
  return allowOptionalFields ? easySchema : schema;
28
30
  };
29
31
 
30
32
  const additionalQuestionsSchema = (allowOptionalFields) => {
31
33
  const schema = create$3({
32
- business_revenue: create$6().required('Enter business revenue'),
33
- business_payment_volume: create$6().required('Enter business payment volume'),
34
- business_dispute_volume: create$6().required('Enter business dispute volume'),
35
- business_receivable_volume: create$6().required('Enter business receivable volume'),
34
+ business_revenue: revenueValidation.required('Enter business revenue'),
35
+ business_payment_volume: paymentVolumeValidation.required('Enter business payment volume'),
36
+ business_when_service_received: whenServiceReceivedValidation.required('Select when service is received'),
37
+ business_recurring_payments: recurringPaymentsValidation.required('Select recurring payments'),
38
+ business_recurring_payments_percentage: recurringPaymentsPercentageValidation,
39
+ business_seasonal: seasonalBusinessValidation.required('Select business seasonal'),
40
+ business_other_payment_details: otherPaymentDetailsValidation.nullable(),
36
41
  });
37
42
  const easySchema = create$3({
38
- business_revenue: create$6().nullable(),
39
- business_payment_volume: create$6().nullable(),
40
- business_dispute_volume: create$6().nullable(),
41
- business_receivable_volume: create$6().nullable()
43
+ business_revenue: revenueValidation.nullable(),
44
+ business_payment_volume: paymentVolumeValidation.nullable(),
45
+ business_when_service_received: whenServiceReceivedValidation.nullable(),
46
+ business_recurring_payments: recurringPaymentsValidation.nullable(),
47
+ business_recurring_payments_percentage: recurringPaymentsPercentageValidation,
48
+ business_seasonal: seasonalBusinessValidation.nullable(),
49
+ business_other_payment_details: otherPaymentDetailsValidation.nullable(),
42
50
  });
43
51
  return allowOptionalFields ? easySchema : schema;
44
52
  };