@justifi/webcomponents 4.0.5 → 4.2.0

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 (268) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/Api-11362403.js +111 -0
  3. package/dist/cjs/Api-11362403.js.map +1 -0
  4. package/dist/cjs/Payment-ac4dea02.js +2 -0
  5. package/dist/cjs/Payment-ac4dea02.js.map +1 -0
  6. package/dist/cjs/{index-051b6dd0.js → index-34312a38.js} +185 -21
  7. package/dist/cjs/index-34312a38.js.map +1 -0
  8. package/dist/cjs/index.cjs.js +2 -0
  9. package/dist/cjs/index.cjs.js.map +1 -0
  10. package/dist/cjs/{index.esm-8df4906e.js → index.esm-bcf90c56.js} +2 -244
  11. package/dist/cjs/index.esm-bcf90c56.js.map +1 -0
  12. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +12 -1
  13. package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -0
  14. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +8 -5
  15. package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -0
  16. package/dist/cjs/justifi-business-address.cjs.entry.js +7 -4
  17. package/dist/cjs/justifi-business-address.cjs.entry.js.map +1 -0
  18. package/dist/cjs/justifi-business-info.cjs.entry.js +174 -0
  19. package/dist/cjs/justifi-business-info.cjs.entry.js.map +1 -0
  20. package/dist/cjs/justifi-card-form.cjs.entry.js +12 -1
  21. package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -0
  22. package/dist/cjs/justifi-payment-form.cjs.entry.js +10 -4
  23. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -0
  24. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +15 -7
  25. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -0
  26. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -108
  27. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -0
  28. package/dist/cjs/loader.cjs.js +6 -3
  29. package/dist/cjs/loader.cjs.js.map +1 -0
  30. package/dist/cjs/select-input_2.cjs.entry.js +5 -3
  31. package/dist/cjs/select-input_2.cjs.entry.js.map +1 -0
  32. package/dist/cjs/state-options-efeaa587.js +248 -0
  33. package/dist/cjs/state-options-efeaa587.js.map +1 -0
  34. package/dist/cjs/webcomponents.cjs.js +12 -3
  35. package/dist/cjs/webcomponents.cjs.js.map +1 -0
  36. package/dist/collection/api/Api.js +2 -1
  37. package/dist/collection/api/Api.js.map +1 -0
  38. package/dist/collection/api/Pagination.js +1 -0
  39. package/dist/collection/api/Pagination.js.map +1 -0
  40. package/dist/collection/api/Payment.js +1 -0
  41. package/dist/collection/api/Payment.js.map +1 -0
  42. package/dist/collection/api/index.js +1 -0
  43. package/dist/collection/api/index.js.map +1 -0
  44. package/dist/collection/api/mockData/MockPayments.js +1 -0
  45. package/dist/collection/api/mockData/MockPayments.js.map +1 -0
  46. package/dist/collection/collection-manifest.json +4 -3
  47. package/dist/collection/components/bank-account-form/bank-account-form.js +26 -0
  48. package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -0
  49. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +11 -1
  50. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -0
  51. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +14 -0
  52. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js.map +1 -0
  53. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +48 -0
  54. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js.map +1 -0
  55. package/dist/collection/components/billing-form/billing-form-schema.js +1 -0
  56. package/dist/collection/components/billing-form/billing-form-schema.js.map +1 -0
  57. package/dist/collection/components/billing-form/billing-form.css +337 -0
  58. package/dist/collection/components/billing-form/billing-form.js +1 -0
  59. package/dist/collection/components/billing-form/billing-form.js.map +1 -0
  60. package/dist/collection/components/billing-form/billing-form.stories.js +1 -0
  61. package/dist/collection/components/billing-form/billing-form.stories.js.map +1 -0
  62. package/dist/collection/components/billing-form/state-options.js +1 -0
  63. package/dist/collection/components/billing-form/state-options.js.map +1 -0
  64. package/dist/collection/components/billing-form/test/billing-form.spec.js +31 -0
  65. package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -0
  66. package/dist/collection/components/business-address/business-address-schema.js +1 -0
  67. package/dist/collection/components/business-address/business-address-schema.js.map +1 -0
  68. package/dist/collection/components/business-address/business-address.css +337 -0
  69. package/dist/collection/components/business-address/business-address.js +1 -0
  70. package/dist/collection/components/business-address/business-address.js.map +1 -0
  71. package/dist/collection/components/business-address/test/business-address.e2e.js +10 -0
  72. package/dist/collection/components/business-address/test/business-address.e2e.js.map +1 -0
  73. package/dist/collection/components/business-address/test/business-address.spec.js +18 -0
  74. package/dist/collection/components/business-address/test/business-address.spec.js.map +1 -0
  75. package/dist/collection/components/business-info/business-info-schema.js +94 -0
  76. package/dist/collection/components/business-info/business-info-schema.js.map +1 -0
  77. package/dist/collection/components/business-info/business-info.css +2274 -0
  78. package/dist/collection/components/business-info/business-info.js +168 -0
  79. package/dist/collection/components/business-info/business-info.js.map +1 -0
  80. package/dist/collection/components/card-form/card-form.js +26 -0
  81. package/dist/collection/components/card-form/card-form.js.map +1 -0
  82. package/dist/collection/components/card-form/card-form.stories.js +11 -1
  83. package/dist/collection/components/card-form/card-form.stories.js.map +1 -0
  84. package/dist/collection/components/card-form/test/card-form.e2e.js +14 -0
  85. package/dist/collection/components/card-form/test/card-form.e2e.js.map +1 -0
  86. package/dist/collection/components/card-form/test/card-form.spec.js +56 -0
  87. package/dist/collection/components/card-form/test/card-form.spec.js.map +1 -0
  88. package/dist/collection/components/payment-form/payment-form.css +412 -0
  89. package/dist/collection/components/payment-form/payment-form.js +8 -2
  90. package/dist/collection/components/payment-form/payment-form.js.map +1 -0
  91. package/dist/collection/components/payment-form/payment-form.stories.js +3 -1
  92. package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -0
  93. package/dist/collection/components/payment-form/payment-method-selector.css +337 -0
  94. package/dist/collection/components/payment-form/payment-method-selector.js +1 -0
  95. package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -0
  96. package/dist/collection/components/payment-form/test/payment-form.e2e.js +23 -0
  97. package/dist/collection/components/payment-form/test/payment-form.e2e.js.map +1 -0
  98. package/dist/collection/components/payment-form/test/payment-form.spec.js +182 -0
  99. package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -0
  100. package/dist/collection/components/payment-form/tokenize.js +1 -0
  101. package/dist/collection/components/payment-form/tokenize.js.map +1 -0
  102. package/dist/collection/components/payment-method-form/get-computed-theme.js +1 -0
  103. package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -0
  104. package/dist/collection/components/payment-method-form/message-event-types.js +1 -0
  105. package/dist/collection/components/payment-method-form/message-event-types.js.map +1 -0
  106. package/dist/collection/components/payment-method-form/payment-method-form.js +21 -2
  107. package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -0
  108. package/dist/collection/components/payment-method-form/payment-method-responses.js +1 -0
  109. package/dist/collection/components/payment-method-form/payment-method-responses.js.map +1 -0
  110. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +22 -0
  111. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js.map +1 -0
  112. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +83 -0
  113. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +1 -0
  114. package/dist/collection/components/payment-method-form/theme.js +1 -0
  115. package/dist/collection/components/payment-method-form/theme.js.map +1 -0
  116. package/dist/collection/components/payments-list/payments-list.js +1 -0
  117. package/dist/collection/components/payments-list/payments-list.js.map +1 -0
  118. package/dist/collection/components/payments-list/test/payments-list.spec.js +21 -0
  119. package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -0
  120. package/dist/collection/components/select-input/select-input.css +337 -0
  121. package/dist/collection/components/select-input/select-input.js +1 -0
  122. package/dist/collection/components/select-input/select-input.js.map +1 -0
  123. package/dist/collection/components/select-input/test/select-input.spec.js +36 -0
  124. package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -0
  125. package/dist/collection/components/text-input/test/text-input.spec.js +19 -0
  126. package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -0
  127. package/dist/collection/components/text-input/text-input.css +337 -0
  128. package/dist/collection/components/text-input/text-input.js +1 -0
  129. package/dist/collection/components/text-input/text-input.js.map +1 -0
  130. package/dist/collection/index.js +1 -0
  131. package/dist/collection/index.js.map +1 -0
  132. package/dist/collection/utils/utils.js +1 -0
  133. package/dist/collection/utils/utils.js.map +1 -0
  134. package/dist/components/Api.js +109 -0
  135. package/dist/components/Api.js.map +1 -0
  136. package/dist/components/Payment.js +2 -0
  137. package/dist/components/Payment.js.map +1 -0
  138. package/dist/components/billing-form.js +6 -3
  139. package/dist/components/billing-form.js.map +1 -0
  140. package/dist/components/index.d.ts +9 -13
  141. package/dist/{esm/index.esm-c6a89005.js → components/index.esm.js} +3 -244
  142. package/dist/components/index.esm.js.map +1 -0
  143. package/dist/components/index.js +3 -11
  144. package/dist/components/index.js.map +1 -0
  145. package/dist/components/justifi-bank-account-form.js +14 -2
  146. package/dist/components/justifi-bank-account-form.js.map +1 -0
  147. package/dist/components/justifi-billing-form.js +2 -0
  148. package/dist/components/justifi-billing-form.js.map +1 -0
  149. package/dist/components/justifi-business-address.js +6 -3
  150. package/dist/components/justifi-business-address.js.map +1 -0
  151. package/dist/components/justifi-business-info.d.ts +11 -0
  152. package/dist/components/justifi-business-info.js +207 -0
  153. package/dist/components/justifi-business-info.js.map +1 -0
  154. package/dist/components/justifi-card-form.js +14 -2
  155. package/dist/components/justifi-card-form.js.map +1 -0
  156. package/dist/components/justifi-payment-form.js +11 -4
  157. package/dist/components/justifi-payment-form.js.map +1 -0
  158. package/dist/components/justifi-payment-method-form.js +2 -0
  159. package/dist/components/justifi-payment-method-form.js.map +1 -0
  160. package/dist/components/justifi-payment-method-selector.js +2 -0
  161. package/dist/components/justifi-payment-method-selector.js.map +1 -0
  162. package/dist/components/justifi-payments-list.js +4 -107
  163. package/dist/components/justifi-payments-list.js.map +1 -0
  164. package/dist/components/payment-method-form.js +17 -8
  165. package/dist/components/payment-method-form.js.map +1 -0
  166. package/dist/components/payment-method-selector.js +4 -2
  167. package/dist/components/payment-method-selector.js.map +1 -0
  168. package/dist/components/select-input.js +2 -0
  169. package/dist/components/select-input.js.map +1 -0
  170. package/dist/components/select-input2.js +4 -2
  171. package/dist/components/select-input2.js.map +1 -0
  172. package/dist/components/state-options.js +3 -1845
  173. package/dist/components/state-options.js.map +1 -0
  174. package/dist/components/text-input.js +2 -0
  175. package/dist/components/text-input.js.map +1 -0
  176. package/dist/components/text-input2.js +4 -2
  177. package/dist/components/text-input2.js.map +1 -0
  178. package/dist/esm/Api-a07f0057.js +109 -0
  179. package/dist/esm/Api-a07f0057.js.map +1 -0
  180. package/dist/esm/Payment-c86e1e84.js +2 -0
  181. package/dist/esm/Payment-c86e1e84.js.map +1 -0
  182. package/dist/esm/{index-605b421a.js → index-044f93fc.js} +185 -22
  183. package/dist/esm/index-044f93fc.js.map +1 -0
  184. package/dist/esm/index.esm-5624a5ed.js +1847 -0
  185. package/dist/esm/index.esm-5624a5ed.js.map +1 -0
  186. package/dist/esm/index.js +2 -0
  187. package/dist/esm/index.js.map +1 -0
  188. package/dist/esm/justifi-bank-account-form.entry.js +12 -1
  189. package/dist/esm/justifi-bank-account-form.entry.js.map +1 -0
  190. package/dist/esm/justifi-billing-form_2.entry.js +7 -4
  191. package/dist/esm/justifi-billing-form_2.entry.js.map +1 -0
  192. package/dist/esm/justifi-business-address.entry.js +6 -3
  193. package/dist/esm/justifi-business-address.entry.js.map +1 -0
  194. package/dist/esm/justifi-business-info.entry.js +170 -0
  195. package/dist/esm/justifi-business-info.entry.js.map +1 -0
  196. package/dist/esm/justifi-card-form.entry.js +12 -1
  197. package/dist/esm/justifi-card-form.entry.js.map +1 -0
  198. package/dist/esm/justifi-payment-form.entry.js +10 -4
  199. package/dist/esm/justifi-payment-form.entry.js.map +1 -0
  200. package/dist/esm/justifi-payment-method-form.entry.js +15 -7
  201. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -0
  202. package/dist/esm/justifi-payments-list.entry.js +4 -107
  203. package/dist/esm/justifi-payments-list.entry.js.map +1 -0
  204. package/dist/esm/loader.js +6 -3
  205. package/dist/esm/loader.js.map +1 -0
  206. package/dist/esm/polyfills/css-shim.js +1 -1
  207. package/dist/esm/select-input_2.entry.js +5 -3
  208. package/dist/esm/select-input_2.entry.js.map +1 -0
  209. package/dist/esm/state-options-188acc34.js +246 -0
  210. package/dist/esm/state-options-188acc34.js.map +1 -0
  211. package/dist/esm/webcomponents.js +9 -3
  212. package/dist/esm/webcomponents.js.map +1 -0
  213. package/dist/types/api/Api.d.ts +1 -1
  214. package/dist/types/api/Payment.d.ts +1 -1
  215. package/dist/types/components/bank-account-form/bank-account-form.d.ts +4 -0
  216. package/dist/types/components/business-info/business-info-schema.d.ts +42 -0
  217. package/dist/types/components/business-info/business-info.d.ts +20 -0
  218. package/dist/types/components/card-form/card-form.d.ts +4 -0
  219. package/dist/types/components/payment-form/payment-form.d.ts +1 -0
  220. package/dist/types/components/payment-method-form/payment-method-form.d.ts +1 -0
  221. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +1 -1
  222. package/dist/types/components.d.ts +72 -0
  223. package/dist/types/stencil-public-runtime.d.ts +72 -15
  224. package/dist/webcomponents/index.esm.js +2 -0
  225. package/dist/webcomponents/index.esm.js.map +1 -0
  226. package/dist/webcomponents/p-0969db8f.entry.js +2 -0
  227. package/dist/webcomponents/p-0969db8f.entry.js.map +1 -0
  228. package/dist/webcomponents/p-0ea23153.js +2 -0
  229. package/dist/webcomponents/p-0ea23153.js.map +1 -0
  230. package/dist/webcomponents/p-1ca0646b.js +2 -1
  231. package/dist/webcomponents/p-1ca0646b.js.map +1 -0
  232. package/dist/webcomponents/p-1f151d49.js +2 -0
  233. package/dist/webcomponents/p-1f151d49.js.map +1 -0
  234. package/dist/webcomponents/p-255b1284.entry.js +2 -0
  235. package/dist/webcomponents/p-255b1284.entry.js.map +1 -0
  236. package/dist/webcomponents/p-3aa91155.js +3 -0
  237. package/dist/webcomponents/p-3aa91155.js.map +1 -0
  238. package/dist/webcomponents/p-68e82f00.entry.js +2 -0
  239. package/dist/webcomponents/p-68e82f00.entry.js.map +1 -0
  240. package/dist/webcomponents/p-90c0d9e1.entry.js +2 -0
  241. package/dist/webcomponents/p-90c0d9e1.entry.js.map +1 -0
  242. package/dist/webcomponents/p-bd5352d6.entry.js +2 -0
  243. package/dist/webcomponents/p-bd5352d6.entry.js.map +1 -0
  244. package/dist/webcomponents/p-c903cc5a.entry.js +2 -0
  245. package/dist/webcomponents/p-c903cc5a.entry.js.map +1 -0
  246. package/dist/webcomponents/p-d87b0711.entry.js +2 -0
  247. package/dist/webcomponents/p-d87b0711.entry.js.map +1 -0
  248. package/dist/webcomponents/p-dbf7100f.entry.js +2 -0
  249. package/dist/webcomponents/p-dbf7100f.entry.js.map +1 -0
  250. package/dist/webcomponents/p-e0054bc3.js +2 -0
  251. package/dist/webcomponents/p-e0054bc3.js.map +1 -0
  252. package/dist/webcomponents/p-f30d1567.entry.js +2 -0
  253. package/dist/webcomponents/p-f30d1567.entry.js.map +1 -0
  254. package/dist/webcomponents/webcomponents.css +1 -1
  255. package/dist/webcomponents/webcomponents.esm.js +2 -1
  256. package/dist/webcomponents/webcomponents.esm.js.map +1 -0
  257. package/loader/index.d.ts +9 -0
  258. package/package.json +9 -5
  259. package/dist/webcomponents/p-039e3540.entry.js +0 -1
  260. package/dist/webcomponents/p-11e5bef9.entry.js +0 -1
  261. package/dist/webcomponents/p-20732337.js +0 -1
  262. package/dist/webcomponents/p-24409e8e.entry.js +0 -1
  263. package/dist/webcomponents/p-4a406704.js +0 -2
  264. package/dist/webcomponents/p-5774e36e.entry.js +0 -1
  265. package/dist/webcomponents/p-5b5e8351.entry.js +0 -1
  266. package/dist/webcomponents/p-5b68fa52.entry.js +0 -1
  267. package/dist/webcomponents/p-7747c086.entry.js +0 -1
  268. package/dist/webcomponents/p-bc35e124.entry.js +0 -1
@@ -0,0 +1,246 @@
1
+ const StateOptions = [
2
+ {
3
+ label: 'Choose state',
4
+ value: '',
5
+ },
6
+ {
7
+ label: 'Alabama',
8
+ value: 'AL',
9
+ },
10
+ {
11
+ label: 'Alaska',
12
+ value: 'AK',
13
+ },
14
+ {
15
+ label: 'American Samoa',
16
+ value: 'AS',
17
+ },
18
+ {
19
+ label: 'Arizona',
20
+ value: 'AZ',
21
+ },
22
+ {
23
+ label: 'Arkansas',
24
+ value: 'AR',
25
+ },
26
+ {
27
+ label: 'California',
28
+ value: 'CA',
29
+ },
30
+ {
31
+ label: 'Colorado',
32
+ value: 'CO',
33
+ },
34
+ {
35
+ label: 'Connecticut',
36
+ value: 'CT',
37
+ },
38
+ {
39
+ label: 'Delaware',
40
+ value: 'DE',
41
+ },
42
+ {
43
+ label: 'District Of Columbia',
44
+ value: 'DC',
45
+ },
46
+ {
47
+ label: 'Federated States Of Micronesia',
48
+ value: 'FM',
49
+ },
50
+ {
51
+ label: 'Florida',
52
+ value: 'FL',
53
+ },
54
+ {
55
+ label: 'Georgia',
56
+ value: 'GA',
57
+ },
58
+ {
59
+ label: 'Guam',
60
+ value: 'GU',
61
+ },
62
+ {
63
+ label: 'Hawaii',
64
+ value: 'HI',
65
+ },
66
+ {
67
+ label: 'Idaho',
68
+ value: 'ID',
69
+ },
70
+ {
71
+ label: 'Illinois',
72
+ value: 'IL',
73
+ },
74
+ {
75
+ label: 'Indiana',
76
+ value: 'IN',
77
+ },
78
+ {
79
+ label: 'Iowa',
80
+ value: 'IA',
81
+ },
82
+ {
83
+ label: 'Kansas',
84
+ value: 'KS',
85
+ },
86
+ {
87
+ label: 'Kentucky',
88
+ value: 'KY',
89
+ },
90
+ {
91
+ label: 'Louisiana',
92
+ value: 'LA',
93
+ },
94
+ {
95
+ label: 'Maine',
96
+ value: 'ME',
97
+ },
98
+ {
99
+ label: 'Marshall Islands',
100
+ value: 'MH',
101
+ },
102
+ {
103
+ label: 'Maryland',
104
+ value: 'MD',
105
+ },
106
+ {
107
+ label: 'Massachusetts',
108
+ value: 'MA',
109
+ },
110
+ {
111
+ label: 'Michigan',
112
+ value: 'MI',
113
+ },
114
+ {
115
+ label: 'Minnesota',
116
+ value: 'MN',
117
+ },
118
+ {
119
+ label: 'Mississippi',
120
+ value: 'MS',
121
+ },
122
+ {
123
+ label: 'Missouri',
124
+ value: 'MO',
125
+ },
126
+ {
127
+ label: 'Montana',
128
+ value: 'MT',
129
+ },
130
+ {
131
+ label: 'Nebraska',
132
+ value: 'NE',
133
+ },
134
+ {
135
+ label: 'Nevada',
136
+ value: 'NV',
137
+ },
138
+ {
139
+ label: 'New Hampshire',
140
+ value: 'NH',
141
+ },
142
+ {
143
+ label: 'New Jersey',
144
+ value: 'NJ',
145
+ },
146
+ {
147
+ label: 'New Mexico',
148
+ value: 'NM',
149
+ },
150
+ {
151
+ label: 'New York',
152
+ value: 'NY',
153
+ },
154
+ {
155
+ label: 'North Carolina',
156
+ value: 'NC',
157
+ },
158
+ {
159
+ label: 'North Dakota',
160
+ value: 'ND',
161
+ },
162
+ {
163
+ label: 'Northern Mariana Islands',
164
+ value: 'MP',
165
+ },
166
+ {
167
+ label: 'Ohio',
168
+ value: 'OH',
169
+ },
170
+ {
171
+ label: 'Oklahoma',
172
+ value: 'OK',
173
+ },
174
+ {
175
+ label: 'Oregon',
176
+ value: 'OR',
177
+ },
178
+ {
179
+ label: 'Palau',
180
+ value: 'PW',
181
+ },
182
+ {
183
+ label: 'Pennsylvania',
184
+ value: 'PA',
185
+ },
186
+ {
187
+ label: 'Puerto Rico',
188
+ value: 'PR',
189
+ },
190
+ {
191
+ label: 'Rhode Island',
192
+ value: 'RI',
193
+ },
194
+ {
195
+ label: 'South Carolina',
196
+ value: 'SC',
197
+ },
198
+ {
199
+ label: 'South Dakota',
200
+ value: 'SD',
201
+ },
202
+ {
203
+ label: 'Tennessee',
204
+ value: 'TN',
205
+ },
206
+ {
207
+ label: 'Texas',
208
+ value: 'TX',
209
+ },
210
+ {
211
+ label: 'Utah',
212
+ value: 'UT',
213
+ },
214
+ {
215
+ label: 'Vermont',
216
+ value: 'VT',
217
+ },
218
+ {
219
+ label: 'Virgin Islands',
220
+ value: 'VI',
221
+ },
222
+ {
223
+ label: 'Virginia',
224
+ value: 'VA',
225
+ },
226
+ {
227
+ label: 'Washington',
228
+ value: 'WA',
229
+ },
230
+ {
231
+ label: 'West Virginia',
232
+ value: 'WV',
233
+ },
234
+ {
235
+ label: 'Wisconsin',
236
+ value: 'WI',
237
+ },
238
+ {
239
+ label: 'Wyoming',
240
+ value: 'WY',
241
+ },
242
+ ];
243
+
244
+ export { StateOptions as S };
245
+
246
+ //# sourceMappingURL=state-options-188acc34.js.map
@@ -0,0 +1 @@
1
+ {"file":"state-options-188acc34.js","mappings":"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","names":[],"sources":["./src/components/billing-form/state-options.ts"],"sourcesContent":["const StateOptions = [\n {\n label: 'Choose state',\n value: '',\n },\n {\n label: 'Alabama',\n value: 'AL',\n },\n {\n label: 'Alaska',\n value: 'AK',\n },\n {\n label: 'American Samoa',\n value: 'AS',\n },\n {\n label: 'Arizona',\n value: 'AZ',\n },\n {\n label: 'Arkansas',\n value: 'AR',\n },\n {\n label: 'California',\n value: 'CA',\n },\n {\n label: 'Colorado',\n value: 'CO',\n },\n {\n label: 'Connecticut',\n value: 'CT',\n },\n {\n label: 'Delaware',\n value: 'DE',\n },\n {\n label: 'District Of Columbia',\n value: 'DC',\n },\n {\n label: 'Federated States Of Micronesia',\n value: 'FM',\n },\n {\n label: 'Florida',\n value: 'FL',\n },\n {\n label: 'Georgia',\n value: 'GA',\n },\n {\n label: 'Guam',\n value: 'GU',\n },\n {\n label: 'Hawaii',\n value: 'HI',\n },\n {\n label: 'Idaho',\n value: 'ID',\n },\n {\n label: 'Illinois',\n value: 'IL',\n },\n {\n label: 'Indiana',\n value: 'IN',\n },\n {\n label: 'Iowa',\n value: 'IA',\n },\n {\n label: 'Kansas',\n value: 'KS',\n },\n {\n label: 'Kentucky',\n value: 'KY',\n },\n {\n label: 'Louisiana',\n value: 'LA',\n },\n {\n label: 'Maine',\n value: 'ME',\n },\n {\n label: 'Marshall Islands',\n value: 'MH',\n },\n {\n label: 'Maryland',\n value: 'MD',\n },\n {\n label: 'Massachusetts',\n value: 'MA',\n },\n {\n label: 'Michigan',\n value: 'MI',\n },\n {\n label: 'Minnesota',\n value: 'MN',\n },\n {\n label: 'Mississippi',\n value: 'MS',\n },\n {\n label: 'Missouri',\n value: 'MO',\n },\n {\n label: 'Montana',\n value: 'MT',\n },\n {\n label: 'Nebraska',\n value: 'NE',\n },\n {\n label: 'Nevada',\n value: 'NV',\n },\n {\n label: 'New Hampshire',\n value: 'NH',\n },\n {\n label: 'New Jersey',\n value: 'NJ',\n },\n {\n label: 'New Mexico',\n value: 'NM',\n },\n {\n label: 'New York',\n value: 'NY',\n },\n {\n label: 'North Carolina',\n value: 'NC',\n },\n {\n label: 'North Dakota',\n value: 'ND',\n },\n {\n label: 'Northern Mariana Islands',\n value: 'MP',\n },\n {\n label: 'Ohio',\n value: 'OH',\n },\n {\n label: 'Oklahoma',\n value: 'OK',\n },\n {\n label: 'Oregon',\n value: 'OR',\n },\n {\n label: 'Palau',\n value: 'PW',\n },\n {\n label: 'Pennsylvania',\n value: 'PA',\n },\n {\n label: 'Puerto Rico',\n value: 'PR',\n },\n {\n label: 'Rhode Island',\n value: 'RI',\n },\n {\n label: 'South Carolina',\n value: 'SC',\n },\n {\n label: 'South Dakota',\n value: 'SD',\n },\n {\n label: 'Tennessee',\n value: 'TN',\n },\n {\n label: 'Texas',\n value: 'TX',\n },\n {\n label: 'Utah',\n value: 'UT',\n },\n {\n label: 'Vermont',\n value: 'VT',\n },\n {\n label: 'Virgin Islands',\n value: 'VI',\n },\n {\n label: 'Virginia',\n value: 'VA',\n },\n {\n label: 'Washington',\n value: 'WA',\n },\n {\n label: 'West Virginia',\n value: 'WV',\n },\n {\n label: 'Wisconsin',\n value: 'WI',\n },\n {\n label: 'Wyoming',\n value: 'WY',\n },\n];\n\nexport default StateOptions;\n"],"version":3}
@@ -1,17 +1,23 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-605b421a.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-044f93fc.js';
2
+ export { s as setNonce } from './index-044f93fc.js';
2
3
 
3
4
  /*
4
- Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v3.3.0 | MIT Licensed | https://stenciljs.com
5
6
  */
6
7
  const patchBrowser = () => {
7
8
  const importMeta = import.meta.url;
8
9
  const opts = {};
10
+ // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
9
11
  if (importMeta !== '') {
10
12
  opts.resourcesUrl = new URL('.', importMeta).href;
13
+ // TODO(STENCIL-661): Remove code related to the dynamic import shim
14
+ // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
11
15
  }
12
16
  return promiseResolve(opts);
13
17
  };
14
18
 
15
19
  patchBrowser().then(options => {
16
- return bootstrapLazy([["justifi-payment-form",[[1,"justifi-payment-form",{"bankAccount":[4,"bank-account"],"card":[4],"email":[1],"iframeOrigin":[1,"iframe-origin"],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"submitButtonText":[1,"submit-button-text"],"submitButtonEnabled":[32],"selectedPaymentMethodType":[32],"allowedPaymentMethodTypes":[32],"fillBillingForm":[64],"enableSubmitButton":[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["justifi-business-address",[[1,"justifi-business-address",{"businessAddress":[32],"businessAddressErrors":[32],"submit":[64]},[[0,"fieldReceivedInput","setFormValue"]]]]],["justifi-payment-method-form",[[0,"justifi-payment-method-form",{"paymentMethodFormType":[1,"payment-method-form-type"],"paymentMethodFormValidationMode":[1025,"payment-method-form-validation-mode"],"iframeOrigin":[1,"iframe-origin"],"singleLine":[4,"single-line"],"height":[32],"tokenize":[64],"validate":[64]}]]],["justifi-bank-account-form",[[0,"justifi-bank-account-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["justifi-card-form",[[0,"justifi-card-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"singleLine":[4,"single-line"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["justifi-payments-list",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"auth":[16],"payments":[32]}]]],["select-input_2",[[1,"select-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"options":[16],"internalValue":[32]}],[1,"text-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"internalValue":[32]}]]],["justifi-billing-form_2",[[1,"justifi-billing-form",{"legend":[1],"billingFields":[32],"billingFieldsErrors":[32],"fill":[64],"validate":[64],"getValues":[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{"paymentMethodTypes":[16],"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]]], options);
20
+ return bootstrapLazy([["justifi-payment-form",[[1,"justifi-payment-form",{"bankAccount":[4,"bank-account"],"card":[4],"email":[1],"iframeOrigin":[1,"iframe-origin"],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"submitButtonText":[1,"submit-button-text"],"submitButtonEnabled":[32],"isLoading":[32],"selectedPaymentMethodType":[32],"allowedPaymentMethodTypes":[32],"fillBillingForm":[64],"enableSubmitButton":[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["justifi-business-address",[[1,"justifi-business-address",{"businessAddress":[32],"businessAddressErrors":[32],"submit":[64]},[[0,"fieldReceivedInput","setFormValue"]]]]],["justifi-business-info",[[1,"justifi-business-info",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"businessInfoPrefillData":[32],"businessInfo":[32],"businessInfoFieldsErrors":[32],"submit":[64]},[[0,"fieldReceivedInput","setFormValue"]]]]],["justifi-payment-method-form",[[0,"justifi-payment-method-form",{"paymentMethodFormType":[1,"payment-method-form-type"],"paymentMethodFormValidationMode":[1025,"payment-method-form-validation-mode"],"iframeOrigin":[1,"iframe-origin"],"singleLine":[4,"single-line"],"height":[32],"tokenize":[64],"validate":[64],"resize":[64]}]]],["justifi-bank-account-form",[[0,"justifi-bank-account-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["justifi-card-form",[[0,"justifi-card-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"singleLine":[4,"single-line"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenize","tokenizeHandler"],[0,"paymentMethodFormValidate","validateHandler"]]]]],["justifi-payments-list",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"auth":[16],"payments":[32]}]]],["select-input_2",[[1,"select-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"options":[16],"internalValue":[32]}],[1,"text-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"internalValue":[32]}]]],["justifi-billing-form_2",[[1,"justifi-billing-form",{"legend":[1],"billingFields":[32],"billingFieldsErrors":[32],"fill":[64],"validate":[64],"getValues":[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{"paymentMethodTypes":[16],"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]]], options);
17
21
  });
22
+
23
+ //# sourceMappingURL=webcomponents.js.map
@@ -0,0 +1 @@
1
+ {"file":"webcomponents.js","mappings":";;;AAAA;AACA;AACA;AAiBA,MAAM,YAAY,GAAG,MAAM;AAkC3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAgBlF;AACA,IAAI,IAAuB,UAAU,KAAK,EAAE,EAAE;AAC9C,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D;AACA;AACA,KAaK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACtFD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.3.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
@@ -7,7 +7,7 @@ export interface IApiResponse<T> {
7
7
  id: number;
8
8
  type: string;
9
9
  }
10
- export declare type IServerError = string;
10
+ export type IServerError = string;
11
11
  export interface IErrorObject {
12
12
  message: string;
13
13
  code: string;
@@ -22,7 +22,7 @@ export declare enum PaymentDisputedStatuses {
22
22
  export interface IPaymentMethod {
23
23
  card?: ICard;
24
24
  }
25
- export declare type CardBrand = 'american_express' | 'diners_club' | 'discover' | 'jcb' | 'mastercard' | 'china_unionpay' | 'visa' | 'unknown';
25
+ export type CardBrand = 'american_express' | 'diners_club' | 'discover' | 'jcb' | 'mastercard' | 'china_unionpay' | 'visa' | 'unknown';
26
26
  export interface ICard {
27
27
  id: string;
28
28
  acct_last_four: string;
@@ -48,5 +48,9 @@ export declare class BankAccountForm {
48
48
  * Runs a validation on the form and shows errors if any
49
49
  */
50
50
  validate(): Promise<any>;
51
+ /**
52
+ * Manually resizes the iframe to fit the contents of the iframe
53
+ */
54
+ resize(): Promise<void>;
51
55
  render(): any;
52
56
  }
@@ -0,0 +1,42 @@
1
+ export declare const RegExZip: RegExp;
2
+ type BusinessType = 'for_profit' | 'non_profit' | 'government_entity' | 'individual' | '';
3
+ type BusinessStructure = 'sole_proprietorship' | 'single_llc' | 'multi_llc' | 'private_partnership' | 'private_corporation' | 'unincorporated_association' | 'public_partnership' | 'public_corporation' | 'incorporated' | 'unincorporated' | 'government_unit' | 'government_instrumentality' | 'tax_exempt_government_instrumentality' | '';
4
+ export interface IBusinessInfo {
5
+ legal_name: string;
6
+ website_url: string;
7
+ email: string;
8
+ phone: string;
9
+ doing_business_as: string;
10
+ business_type: string;
11
+ business_structure: string;
12
+ industry: string;
13
+ metadata: any;
14
+ }
15
+ export declare const BusinessTypeOptions: {
16
+ label: string;
17
+ value: BusinessType;
18
+ }[];
19
+ export declare const BusinessStructureOptions: {
20
+ label: string;
21
+ value: BusinessStructure;
22
+ }[];
23
+ declare const BusinessInfoSchema: import("yup").ObjectSchema<{
24
+ legal_name: string;
25
+ website_url: string;
26
+ email: string;
27
+ phone: string;
28
+ doing_business_as: string;
29
+ business_type: string;
30
+ business_structure: string;
31
+ industry: string;
32
+ }, import("yup").AnyObject, {
33
+ legal_name: undefined;
34
+ website_url: undefined;
35
+ email: undefined;
36
+ phone: undefined;
37
+ doing_business_as: undefined;
38
+ business_type: undefined;
39
+ business_structure: undefined;
40
+ industry: undefined;
41
+ }, "">;
42
+ export default BusinessInfoSchema;
@@ -0,0 +1,20 @@
1
+ import { IBusinessInfo } from './business-info-schema';
2
+ /**
3
+ * @exportedPart label: Label for inputs
4
+ * @exportedPart input: The input fields
5
+ * @exportedPart input-invalid: Invalid state for inputfs
6
+ */
7
+ export declare class BusinessInfo {
8
+ authToken: string;
9
+ businessId?: string;
10
+ businessInfoPrefillData: any;
11
+ businessInfo: IBusinessInfo;
12
+ businessInfoFieldsErrors: any;
13
+ private endpoint;
14
+ componentDidMount(): void;
15
+ fetchBusinessInfo(): Promise<void>;
16
+ sendBusinessInfo(data: any): Promise<void>;
17
+ setFormValue(event: any): void;
18
+ submit(event: any): Promise<void>;
19
+ render(): any;
20
+ }
@@ -54,5 +54,9 @@ export declare class CardForm {
54
54
  validate(): Promise<{
55
55
  isValid: boolean;
56
56
  }>;
57
+ /**
58
+ * Manually resizes the iframe to fit the contents of the iframe
59
+ */
60
+ resize(): Promise<void>;
57
61
  render(): any;
58
62
  }
@@ -12,6 +12,7 @@ export declare class PaymentForm {
12
12
  submitButtonText?: string;
13
13
  submitted: EventEmitter<CreatePaymentMethodResponse>;
14
14
  submitButtonEnabled: boolean;
15
+ isLoading: boolean;
15
16
  selectedPaymentMethodType: PaymentMethodTypes;
16
17
  allowedPaymentMethodTypes: PaymentMethodTypes[];
17
18
  private paymentMethodFormRef?;
@@ -21,6 +21,7 @@ export declare class PaymentMethodForm {
21
21
  private postMessageWithResponseListener;
22
22
  tokenize(clientId: string, paymentMethodMetadata: any, account?: string): Promise<CreatePaymentMethodResponse>;
23
23
  validate(): Promise<any>;
24
+ resize(): Promise<any>;
24
25
  private composeQueryParams;
25
26
  private getIframeSrc;
26
27
  render(): any;
@@ -42,5 +42,5 @@ interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
42
42
  };
43
43
  };
44
44
  }
45
- export declare type CreatePaymentMethodResponse = CardCreateResponse | BankAccountCreateResponse;
45
+ export type CreatePaymentMethodResponse = CardCreateResponse | BankAccountCreateResponse;
46
46
  export {};
@@ -10,12 +10,21 @@ import { BillingFormFields } from "./components/billing-form/billing-form-schema
10
10
  import { ValidationError } from "yup";
11
11
  import { BusinessAddressFormFields } from "./components/business-address/business-address-schema";
12
12
  import { PaymentMethodTypes } from "./api";
13
+ export { CreatePaymentMethodResponse } from "./components/payment-method-form/payment-method-responses";
14
+ export { BillingFormFields } from "./components/billing-form/billing-form-schema";
15
+ export { ValidationError } from "yup";
16
+ export { BusinessAddressFormFields } from "./components/business-address/business-address-schema";
17
+ export { PaymentMethodTypes } from "./api";
13
18
  export namespace Components {
14
19
  interface JustifiBankAccountForm {
15
20
  /**
16
21
  * URL for the rendered iFrame. End-users need not use this.
17
22
  */
18
23
  "iframeOrigin"?: string;
24
+ /**
25
+ * Manually resizes the iframe to fit the contents of the iframe
26
+ */
27
+ "resize": () => Promise<void>;
19
28
  /**
20
29
  * Makes a tokenization request to the iframe
21
30
  */
@@ -29,6 +38,11 @@ export namespace Components {
29
38
  */
30
39
  "validationMode": 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';
31
40
  }
41
+ /**
42
+ * @exportedPart label: Label for inputs
43
+ * @exportedPart input: The input fields
44
+ * @exportedPart input-invalid: Invalid state for inputs
45
+ */
32
46
  interface JustifiBillingForm {
33
47
  /**
34
48
  * Method for filling the form with provided data
@@ -52,11 +66,25 @@ export namespace Components {
52
66
  interface JustifiBusinessAddress {
53
67
  "submit": () => Promise<{ isValid: boolean; values: BusinessAddressFormFields; }>;
54
68
  }
69
+ /**
70
+ * @exportedPart label: Label for inputs
71
+ * @exportedPart input: The input fields
72
+ * @exportedPart input-invalid: Invalid state for inputfs
73
+ */
74
+ interface JustifiBusinessInfo {
75
+ "authToken": string;
76
+ "businessId"?: string;
77
+ "submit": (event: any) => Promise<void>;
78
+ }
55
79
  interface JustifiCardForm {
56
80
  /**
57
81
  * URL for the rendered iFrame. End-users need not use this.
58
82
  */
59
83
  "iframeOrigin"?: string;
84
+ /**
85
+ * Manually resizes the iframe to fit the contents of the iframe
86
+ */
87
+ "resize": () => Promise<void>;
60
88
  /**
61
89
  * Boolean indicating if the Card Form should render in a single line
62
90
  */
@@ -89,6 +117,7 @@ export namespace Components {
89
117
  "iframeOrigin"?: string;
90
118
  "paymentMethodFormType": 'card' | 'bankAccount';
91
119
  "paymentMethodFormValidationMode": 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';
120
+ "resize": () => Promise<any>;
92
121
  "singleLine": boolean;
93
122
  "tokenize": (clientId: string, paymentMethodMetadata: any, account?: string) => Promise<CreatePaymentMethodResponse>;
94
123
  "validate": () => Promise<any>;
@@ -150,6 +179,11 @@ declare global {
150
179
  prototype: HTMLJustifiBankAccountFormElement;
151
180
  new (): HTMLJustifiBankAccountFormElement;
152
181
  };
182
+ /**
183
+ * @exportedPart label: Label for inputs
184
+ * @exportedPart input: The input fields
185
+ * @exportedPart input-invalid: Invalid state for inputs
186
+ */
153
187
  interface HTMLJustifiBillingFormElement extends Components.JustifiBillingForm, HTMLStencilElement {
154
188
  }
155
189
  var HTMLJustifiBillingFormElement: {
@@ -162,6 +196,17 @@ declare global {
162
196
  prototype: HTMLJustifiBusinessAddressElement;
163
197
  new (): HTMLJustifiBusinessAddressElement;
164
198
  };
199
+ /**
200
+ * @exportedPart label: Label for inputs
201
+ * @exportedPart input: The input fields
202
+ * @exportedPart input-invalid: Invalid state for inputfs
203
+ */
204
+ interface HTMLJustifiBusinessInfoElement extends Components.JustifiBusinessInfo, HTMLStencilElement {
205
+ }
206
+ var HTMLJustifiBusinessInfoElement: {
207
+ prototype: HTMLJustifiBusinessInfoElement;
208
+ new (): HTMLJustifiBusinessInfoElement;
209
+ };
165
210
  interface HTMLJustifiCardFormElement extends Components.JustifiCardForm, HTMLStencilElement {
166
211
  }
167
212
  var HTMLJustifiCardFormElement: {
@@ -208,6 +253,7 @@ declare global {
208
253
  "justifi-bank-account-form": HTMLJustifiBankAccountFormElement;
209
254
  "justifi-billing-form": HTMLJustifiBillingFormElement;
210
255
  "justifi-business-address": HTMLJustifiBusinessAddressElement;
256
+ "justifi-business-info": HTMLJustifiBusinessInfoElement;
211
257
  "justifi-card-form": HTMLJustifiCardFormElement;
212
258
  "justifi-payment-form": HTMLJustifiPaymentFormElement;
213
259
  "justifi-payment-method-form": HTMLJustifiPaymentMethodFormElement;
@@ -243,6 +289,11 @@ declare namespace LocalJSX {
243
289
  */
244
290
  "validationMode"?: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';
245
291
  }
292
+ /**
293
+ * @exportedPart label: Label for inputs
294
+ * @exportedPart input: The input fields
295
+ * @exportedPart input-invalid: Invalid state for inputs
296
+ */
246
297
  interface JustifiBillingForm {
247
298
  /**
248
299
  * (Optional) A label for the form.
@@ -251,6 +302,15 @@ declare namespace LocalJSX {
251
302
  }
252
303
  interface JustifiBusinessAddress {
253
304
  }
305
+ /**
306
+ * @exportedPart label: Label for inputs
307
+ * @exportedPart input: The input fields
308
+ * @exportedPart input-invalid: Invalid state for inputfs
309
+ */
310
+ interface JustifiBusinessInfo {
311
+ "authToken"?: string;
312
+ "businessId"?: string;
313
+ }
254
314
  interface JustifiCardForm {
255
315
  /**
256
316
  * URL for the rendered iFrame. End-users need not use this.
@@ -326,6 +386,7 @@ declare namespace LocalJSX {
326
386
  "justifi-bank-account-form": JustifiBankAccountForm;
327
387
  "justifi-billing-form": JustifiBillingForm;
328
388
  "justifi-business-address": JustifiBusinessAddress;
389
+ "justifi-business-info": JustifiBusinessInfo;
329
390
  "justifi-card-form": JustifiCardForm;
330
391
  "justifi-payment-form": JustifiPaymentForm;
331
392
  "justifi-payment-method-form": JustifiPaymentMethodForm;
@@ -340,8 +401,19 @@ declare module "@stencil/core" {
340
401
  export namespace JSX {
341
402
  interface IntrinsicElements {
342
403
  "justifi-bank-account-form": LocalJSX.JustifiBankAccountForm & JSXBase.HTMLAttributes<HTMLJustifiBankAccountFormElement>;
404
+ /**
405
+ * @exportedPart label: Label for inputs
406
+ * @exportedPart input: The input fields
407
+ * @exportedPart input-invalid: Invalid state for inputs
408
+ */
343
409
  "justifi-billing-form": LocalJSX.JustifiBillingForm & JSXBase.HTMLAttributes<HTMLJustifiBillingFormElement>;
344
410
  "justifi-business-address": LocalJSX.JustifiBusinessAddress & JSXBase.HTMLAttributes<HTMLJustifiBusinessAddressElement>;
411
+ /**
412
+ * @exportedPart label: Label for inputs
413
+ * @exportedPart input: The input fields
414
+ * @exportedPart input-invalid: Invalid state for inputfs
415
+ */
416
+ "justifi-business-info": LocalJSX.JustifiBusinessInfo & JSXBase.HTMLAttributes<HTMLJustifiBusinessInfoElement>;
345
417
  "justifi-card-form": LocalJSX.JustifiCardForm & JSXBase.HTMLAttributes<HTMLJustifiCardFormElement>;
346
418
  "justifi-payment-form": LocalJSX.JustifiPaymentForm & JSXBase.HTMLAttributes<HTMLJustifiPaymentFormElement>;
347
419
  "justifi-payment-method-form": LocalJSX.JustifiPaymentMethodForm & JSXBase.HTMLAttributes<HTMLJustifiPaymentMethodFormElement>;