@justifi/webcomponents 4.7.6 → 4.8.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 (276) hide show
  1. package/dist/cjs/Business-3c0aa22c.js +82 -0
  2. package/dist/cjs/BusinessFormEventTypes-863f48e9.js +42 -0
  3. package/dist/cjs/{Payout-7821eb61.js → Payout-44b49b2d.js} +2 -1
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +4 -4
  5. package/dist/cjs/{business-form-schema-a2b87e77.js → business-form-schema-37e5381d.js} +17 -17
  6. package/dist/cjs/{form-control-datepart_2.cjs.entry.js → form-control-datepart_3.cjs.entry.js} +45 -2
  7. package/dist/cjs/{form-control-number_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +0 -43
  8. package/dist/cjs/form-input-masks-e3bf2614.js +9 -0
  9. package/dist/cjs/{index.esm-c08c2adc.js → index.esm-d25bd7bf.js} +0 -259
  10. package/dist/cjs/{justifi-additional-questions_6.cjs.entry.js → justifi-additional-questions_5.cjs.entry.js} +10 -280
  11. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
  12. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
  13. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +46 -52
  14. package/dist/cjs/justifi-business-form.cjs.entry.js +31 -35
  15. package/dist/cjs/justifi-business-list.cjs.entry.js +3 -50
  16. package/dist/cjs/justifi-business-owners.cjs.entry.js +78 -0
  17. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  18. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +1 -1
  20. package/dist/cjs/justifi-payment-details.cjs.entry.js +43 -42
  21. package/dist/cjs/justifi-payment-form.cjs.entry.js +1 -1
  22. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +6 -4
  23. package/dist/cjs/justifi-payments-list.cjs.entry.js +46 -90
  24. package/dist/cjs/justifi-payout-details.cjs.entry.js +47 -45
  25. package/dist/cjs/justifi-payouts-list.cjs.entry.js +46 -112
  26. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +1 -1
  27. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +2 -2
  29. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-table_2.cjs.entry.js +2 -2
  31. package/dist/cjs/loader.cjs.js +1 -1
  32. package/dist/cjs/payment-details-core.cjs.entry.js +52 -0
  33. package/dist/cjs/payment.service-605896dc.js +20 -0
  34. package/dist/cjs/payments-list-core.cjs.entry.js +98 -0
  35. package/dist/cjs/payout-details-core.cjs.entry.js +52 -0
  36. package/dist/cjs/payout.service-b39f2739.js +21 -0
  37. package/dist/cjs/payouts-list-core.cjs.entry.js +121 -0
  38. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +1 -1
  39. package/dist/cjs/subaccount-bank-details.cjs.entry.js +1 -1
  40. package/dist/cjs/subaccount-terms-details.cjs.entry.js +1 -1
  41. package/dist/cjs/{utils-99c086ee.js → utils-d126d17c.js} +4 -4
  42. package/dist/cjs/utils-f5d82f21.js +10 -0
  43. package/dist/cjs/webcomponents.cjs.js +1 -1
  44. package/dist/collection/api/Business.js +32 -3
  45. package/dist/collection/api/Payment.js +2 -1
  46. package/dist/collection/api/mockData/MockPayments.js +25 -0
  47. package/dist/collection/api/services/payment.service.js +13 -0
  48. package/dist/collection/api/services/payout.service.js +14 -0
  49. package/dist/collection/api/services/utils.js +6 -0
  50. package/dist/collection/collection-manifest.json +4 -0
  51. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +8 -8
  52. package/dist/collection/components/business-details/business-details.js +3 -3
  53. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +4 -4
  54. package/dist/collection/components/business-form/BusinessFormEventTypes.js +6 -0
  55. package/dist/collection/components/business-form/business-address/business-address-form-schema.js +1 -1
  56. package/dist/collection/components/business-form/business-form-schema.js +16 -16
  57. package/dist/collection/components/business-form/business-form-stepped.js +77 -50
  58. package/dist/collection/components/business-form/business-form.js +62 -33
  59. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +7 -3
  60. package/dist/collection/components/business-form/business-owners/business-owners.js +6 -21
  61. package/dist/collection/components/business-form/business-representative/business-representative.js +1 -1
  62. package/dist/collection/components/business-form/helpers.js +21 -20
  63. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +1 -1
  64. package/dist/collection/components/business-form/legal-address-form/legal-address-form.js +3 -3
  65. package/dist/collection/components/business-form/test/business-form.spec.js +5 -14
  66. package/dist/collection/components/details/utils.js +2 -2
  67. package/dist/collection/components/pagination-menu/test/pagination-menu.spec.js +87 -0
  68. package/dist/collection/components/payment-details/get-payment-details.js +17 -0
  69. package/dist/collection/components/payment-details/payment-details-core.js +86 -0
  70. package/dist/collection/components/payment-details/payment-details.js +27 -52
  71. package/dist/collection/components/payment-details/test/get-payment-details.spec.js +64 -0
  72. package/dist/collection/components/payment-details/test/payment-details-core.spec.js +47 -0
  73. package/dist/collection/components/payment-details/test/payment-details.spec.js +31 -0
  74. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
  75. package/dist/collection/components/payments-list/get-payments.js +20 -0
  76. package/dist/collection/components/payments-list/payments-list-core.js +158 -0
  77. package/dist/collection/components/payments-list/payments-list.js +27 -127
  78. package/dist/collection/components/payments-list/test/get-payments.spec.js +70 -0
  79. package/dist/collection/components/payments-list/test/payments-list-core.spec.js +100 -0
  80. package/dist/collection/components/payments-list/test/payments-list.spec.js +17 -21
  81. package/dist/collection/components/payout-details/get-payout-details.js +20 -0
  82. package/dist/collection/components/payout-details/payout-details-core.js +86 -0
  83. package/dist/collection/components/payout-details/payout-details.js +27 -78
  84. package/dist/collection/components/payout-details/test/get-payout-details.spec.js +55 -0
  85. package/dist/collection/components/payout-details/test/payout-details-core.spec.js +72 -0
  86. package/dist/collection/components/payout-details/test/payout-details.spec.js +13 -0
  87. package/dist/collection/components/payouts-list/get-payouts.js +20 -0
  88. package/dist/collection/components/payouts-list/payouts-list-core.js +181 -0
  89. package/dist/collection/components/payouts-list/payouts-list.js +26 -148
  90. package/dist/collection/components/payouts-list/test/get-payouts.spec.js +64 -0
  91. package/dist/collection/components/payouts-list/test/payouts-list-core.spec.js +105 -0
  92. package/dist/collection/components/payouts-list/test/payouts-list.spec.js +29 -0
  93. package/dist/collection/components/table/table.js +1 -1
  94. package/dist/collection/components/table/test/table.spec.js +18 -0
  95. package/dist/collection/components/table/utils.js +1 -1
  96. package/dist/collection/utils/{phone-masks.js → form-input-masks.js} +1 -0
  97. package/dist/docs.json +397 -233
  98. package/dist/esm/Business-954e1c1b.js +78 -0
  99. package/dist/esm/BusinessFormEventTypes-989960ba.js +39 -0
  100. package/dist/esm/{Payout-c42e3877.js → Payout-dc5f009c.js} +2 -1
  101. package/dist/esm/{SubAccount-b3ce8720.js → SubAccount-bd59f646.js} +1 -1
  102. package/dist/esm/additional-questions-details_5.entry.js +5 -5
  103. package/dist/esm/{business-form-schema-997c585c.js → business-form-schema-f8f554d1.js} +17 -17
  104. package/dist/esm/{form-control-datepart_2.entry.js → form-control-datepart_3.entry.js} +46 -4
  105. package/dist/esm/{form-control-number_3.entry.js → form-control-select_2.entry.js} +1 -43
  106. package/dist/esm/form-input-masks-a8187c77.js +6 -0
  107. package/dist/esm/{index.esm-8ae36d07.js → index.esm-22b47398.js} +1 -258
  108. package/dist/esm/{justifi-additional-questions_6.entry.js → justifi-additional-questions_5.entry.js} +10 -279
  109. package/dist/esm/justifi-billing-form_2.entry.js +1 -1
  110. package/dist/esm/justifi-business-details.entry.js +5 -5
  111. package/dist/esm/justifi-business-form-stepped.entry.js +47 -53
  112. package/dist/esm/justifi-business-form.entry.js +32 -36
  113. package/dist/esm/justifi-business-list.entry.js +3 -50
  114. package/dist/{module/business-owners.js → esm/justifi-business-owners.entry.js} +13 -55
  115. package/dist/esm/justifi-details.entry.js +1 -1
  116. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  117. package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
  118. package/dist/esm/justifi-payment-details.entry.js +44 -43
  119. package/dist/esm/justifi-payment-form.entry.js +2 -2
  120. package/dist/esm/justifi-payment-method-form.entry.js +6 -4
  121. package/dist/esm/justifi-payments-list.entry.js +47 -91
  122. package/dist/esm/justifi-payout-details.entry.js +48 -46
  123. package/dist/esm/justifi-payouts-list.entry.js +47 -113
  124. package/dist/esm/justifi-proceeds-list.entry.js +2 -2
  125. package/dist/esm/justifi-refund-form.entry.js +2 -2
  126. package/dist/esm/justifi-subaccount-details.entry.js +4 -4
  127. package/dist/esm/justifi-subaccounts-list.entry.js +3 -3
  128. package/dist/esm/justifi-table_2.entry.js +2 -2
  129. package/dist/esm/loader.js +1 -1
  130. package/dist/esm/payment-details-core.entry.js +48 -0
  131. package/dist/esm/payment.service-bea02ccf.js +18 -0
  132. package/dist/esm/payments-list-core.entry.js +94 -0
  133. package/dist/{webcomponents/p-34c30022.entry.js → esm/payout-details-core.entry.js} +48 -1
  134. package/dist/esm/payout.service-92e56814.js +19 -0
  135. package/dist/esm/payouts-list-core.entry.js +117 -0
  136. package/dist/esm/subaccount-account-details_4.entry.js +2 -2
  137. package/dist/esm/subaccount-bank-details.entry.js +1 -1
  138. package/dist/esm/subaccount-terms-details.entry.js +1 -1
  139. package/dist/esm/utils-546ca6aa.js +8 -0
  140. package/dist/esm/{utils-f33f7e3c.js → utils-576874df.js} +4 -4
  141. package/dist/esm/{utils-26c7dd12.js → utils-dd428dba.js} +1 -1
  142. package/dist/esm/webcomponents.js +1 -1
  143. package/dist/module/Business.js +78 -0
  144. package/dist/module/BusinessFormEventTypes.js +39 -0
  145. package/dist/module/Payout.js +2 -1
  146. package/dist/module/additional-questions-details2.js +4 -4
  147. package/dist/module/business-generic-info.js +25 -27
  148. package/dist/module/business-representative.js +1 -1
  149. package/dist/module/form-input-masks.js +6 -0
  150. package/dist/module/index.esm.js +1 -258
  151. package/dist/module/justifi-business-details.js +3 -3
  152. package/dist/module/justifi-business-form-stepped.js +62 -74
  153. package/dist/module/justifi-business-form.js +47 -57
  154. package/dist/module/justifi-business-list.js +1 -48
  155. package/dist/module/justifi-business-owners.js +115 -1
  156. package/dist/module/justifi-payment-details.js +52 -48
  157. package/dist/module/justifi-payments-list.js +58 -102
  158. package/dist/module/justifi-payout-details.js +57 -52
  159. package/dist/module/justifi-payouts-list.js +59 -125
  160. package/dist/module/justifi-refund-form.js +1 -1
  161. package/dist/module/legal-address-form.js +3 -203
  162. package/dist/module/payment-details-core.d.ts +11 -0
  163. package/dist/module/payment-details-core.js +6 -0
  164. package/dist/module/payment-details-core2.js +76 -0
  165. package/dist/module/payment-method-form.js +6 -4
  166. package/dist/module/payment.service.js +18 -0
  167. package/dist/module/payments-list-core.d.ts +11 -0
  168. package/dist/module/payments-list-core.js +6 -0
  169. package/dist/module/payments-list-core2.js +131 -0
  170. package/dist/module/payout-details-core.d.ts +11 -0
  171. package/dist/module/payout-details-core.js +6 -0
  172. package/dist/module/payout-details-core2.js +76 -0
  173. package/dist/module/payout.service.js +19 -0
  174. package/dist/module/payouts-list-core.d.ts +11 -0
  175. package/dist/module/payouts-list-core.js +6 -0
  176. package/dist/module/payouts-list-core2.js +153 -0
  177. package/dist/module/table.js +2 -2
  178. package/dist/module/utils.js +4 -4
  179. package/dist/module/utils3.js +6 -29
  180. package/dist/types/api/Business.d.ts +64 -28
  181. package/dist/types/api/Payment.d.ts +33 -1
  182. package/dist/types/api/services/payment.service.d.ts +9 -0
  183. package/dist/types/api/services/payout.service.d.ts +9 -0
  184. package/dist/types/api/services/utils.d.ts +1 -0
  185. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +2 -2
  186. package/dist/types/components/business-details/business-details.d.ts +2 -2
  187. package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +2 -2
  188. package/dist/types/components/business-form/BusinessFormEventTypes.d.ts +5 -0
  189. package/dist/types/components/business-form/business-form-schema.d.ts +1 -19
  190. package/dist/types/components/business-form/business-form-stepped.d.ts +19 -5
  191. package/dist/types/components/business-form/business-form.d.ts +11 -2
  192. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +2 -0
  193. package/dist/types/components/business-form/business-owners/business-owners.d.ts +1 -1
  194. package/dist/types/components/business-form/helpers.d.ts +1 -1
  195. package/dist/types/components/details/utils.d.ts +4 -3
  196. package/dist/types/components/payment-details/get-payment-details.d.ts +8 -0
  197. package/dist/types/components/payment-details/payment-details-core.d.ts +11 -0
  198. package/dist/types/components/payment-details/payment-details.d.ts +6 -6
  199. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +10 -2
  200. package/dist/types/components/payments-list/get-payments.d.ts +9 -0
  201. package/dist/types/components/payments-list/payments-list-core.d.ts +17 -0
  202. package/dist/types/components/payments-list/payments-list.d.ts +4 -12
  203. package/dist/types/components/payout-details/get-payout-details.d.ts +8 -0
  204. package/dist/types/components/payout-details/payout-details-core.d.ts +11 -0
  205. package/dist/types/components/payout-details/payout-details.d.ts +5 -31
  206. package/dist/types/components/payouts-list/get-payouts.d.ts +9 -0
  207. package/dist/types/components/payouts-list/payouts-list-core.d.ts +18 -0
  208. package/dist/types/components/payouts-list/payouts-list.d.ts +4 -13
  209. package/dist/types/components.d.ts +136 -138
  210. package/dist/types/utils/form-input-masks.d.ts +6 -0
  211. package/dist/webcomponents/p-081cf5f6.entry.js +1 -0
  212. package/dist/webcomponents/p-0b9146cd.entry.js +1 -0
  213. package/dist/webcomponents/p-0e53f470.entry.js +1 -0
  214. package/dist/webcomponents/p-112acd3c.entry.js +1 -0
  215. package/dist/webcomponents/p-1555e6b1.js +1 -0
  216. package/dist/webcomponents/{p-ac8be2a8.entry.js → p-16f41fd0.entry.js} +1 -1
  217. package/dist/webcomponents/p-17715325.js +1 -0
  218. package/dist/webcomponents/p-19c5ddf1.entry.js +1 -0
  219. package/dist/webcomponents/{p-2b2f8162.entry.js → p-2e318b6a.entry.js} +1 -1
  220. package/dist/webcomponents/p-34de1c5d.entry.js +1 -0
  221. package/dist/webcomponents/p-3a4d4869.entry.js +1 -0
  222. package/dist/webcomponents/p-3cb0b96d.js +1 -0
  223. package/dist/webcomponents/p-4ba2c711.entry.js +1 -0
  224. package/dist/webcomponents/p-4c01df65.entry.js +1 -0
  225. package/dist/webcomponents/p-4fa27a28.entry.js +1 -0
  226. package/dist/webcomponents/{p-3bef762a.js → p-50730e69.js} +1 -1
  227. package/dist/webcomponents/p-5e142186.entry.js +1 -0
  228. package/dist/webcomponents/{p-85ddbe82.entry.js → p-5f8b9f64.entry.js} +1 -1
  229. package/dist/webcomponents/p-663bfe87.js +1 -0
  230. package/dist/webcomponents/p-6ab67031.entry.js +1 -0
  231. package/dist/webcomponents/p-6ed680e9.js +1 -0
  232. package/dist/webcomponents/{p-d8835e7a.entry.js → p-731cb109.entry.js} +1 -1
  233. package/dist/webcomponents/{p-525adabf.entry.js → p-7c0f91fa.entry.js} +1 -1
  234. package/dist/webcomponents/p-80140d5b.js +1 -0
  235. package/dist/webcomponents/p-810b72b5.js +1 -0
  236. package/dist/webcomponents/p-870c2e4d.entry.js +1 -0
  237. package/dist/webcomponents/{p-64a5126c.entry.js → p-896a9ddb.entry.js} +1 -1
  238. package/dist/webcomponents/{p-9ba0be02.entry.js → p-8a90b976.entry.js} +1 -1
  239. package/dist/webcomponents/p-9b99370e.js +1 -0
  240. package/dist/webcomponents/p-9cb3ff78.entry.js +1 -0
  241. package/dist/webcomponents/p-a5d662ac.entry.js +1 -0
  242. package/dist/webcomponents/p-ad9a6c20.entry.js +1 -0
  243. package/dist/webcomponents/p-ade12f56.js +1 -0
  244. package/dist/webcomponents/{p-45d2761d.entry.js → p-b5aba473.entry.js} +1 -1
  245. package/dist/webcomponents/p-b8a8b551.js +1 -0
  246. package/dist/webcomponents/{p-c950901c.entry.js → p-c0f882ce.entry.js} +1 -1
  247. package/dist/webcomponents/p-d66a6057.entry.js +1 -0
  248. package/dist/webcomponents/{p-9cec4a27.entry.js → p-d71ce1cd.entry.js} +1 -1
  249. package/dist/webcomponents/p-ea05d7c2.entry.js +1 -0
  250. package/dist/webcomponents/{p-c43e29ac.entry.js → p-ec4f27e7.entry.js} +1 -1
  251. package/dist/webcomponents/{p-40fb25c6.entry.js → p-eef5b15b.entry.js} +1 -1
  252. package/dist/webcomponents/{p-9a6e4749.js → p-f0c535ed.js} +1 -1
  253. package/dist/webcomponents/{p-c63a98f6.entry.js → p-f7a3fd12.entry.js} +1 -1
  254. package/dist/webcomponents/webcomponents.esm.js +1 -1
  255. package/package.json +6 -4
  256. package/dist/cjs/utils-931f4879.js +0 -34
  257. package/dist/esm/utils-8cc130a9.js +0 -31
  258. package/dist/module/phone-masks.js +0 -5
  259. package/dist/types/utils/phone-masks.d.ts +0 -3
  260. package/dist/webcomponents/p-0a1347cf.entry.js +0 -1
  261. package/dist/webcomponents/p-0f3e9483.js +0 -1
  262. package/dist/webcomponents/p-0fa49c38.entry.js +0 -1
  263. package/dist/webcomponents/p-1e2a98bf.js +0 -1
  264. package/dist/webcomponents/p-5a502ceb.entry.js +0 -1
  265. package/dist/webcomponents/p-5bf0ac1a.entry.js +0 -1
  266. package/dist/webcomponents/p-6e80f063.entry.js +0 -1
  267. package/dist/webcomponents/p-71679a41.js +0 -1
  268. package/dist/webcomponents/p-78baff54.js +0 -1
  269. package/dist/webcomponents/p-8bbb1b10.entry.js +0 -1
  270. package/dist/webcomponents/p-90926321.js +0 -1
  271. package/dist/webcomponents/p-9e0d2179.entry.js +0 -1
  272. package/dist/webcomponents/p-c4826a33.entry.js +0 -1
  273. package/dist/webcomponents/p-d4755024.entry.js +0 -1
  274. package/dist/webcomponents/p-e8e109bd.entry.js +0 -1
  275. package/dist/webcomponents/p-ead8cfc2.entry.js +0 -1
  276. package/dist/webcomponents/p-f74899b9.entry.js +0 -1
@@ -1,14 +1,14 @@
1
1
  import { h } from '@stencil/core/internal/client';
2
2
 
3
- const LoadingState = (h("main", { part: "detail-loading-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
3
+ const LoadingState = () => (h("main", { part: "detail-loading-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
4
4
  h("div", { part: "detail-loading-spinner", class: "spinner-border spinner-border-sm", role: "status" },
5
5
  h("span", { class: "visually-hidden" }, "Loading..."))));
6
6
  const ErrorState = (errorMessage) => (h("main", { part: "detail-empty-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
7
7
  h("div", null, errorMessage)));
8
- const DetailSection = ({ sectionTitle }, children) => (h("div", { part: "detail-section", class: "mt-4" },
9
- h("h5", { part: "detail-section-title" }, sectionTitle),
8
+ const DetailSection = (props, children) => (h("div", { part: "detail-section", class: "mt-4" },
9
+ h("h5", { part: "detail-section-title" }, props.sectionTitle),
10
10
  h("hr", null),
11
- h("div", { class: "d-table gap-2 w-100" }, children)));
11
+ h("div", { class: "d-table gap-2 w-100" }, ...children)));
12
12
  const DetailItem = ({ title, value, }) => title && value ? (h("div", { class: "d-table-row gap-2" },
13
13
  h("span", { part: "detail-section-item-title", class: "fw-bold d-table-cell px-2" }, title),
14
14
  h("span", { part: "detail-section-item-data", class: "flex-1 d-table-cell px-2 text-wrap", innerHTML: value }))) : null;
@@ -1,31 +1,8 @@
1
- import { h } from '@stencil/core/internal/client';
2
-
3
- // These props should not be sent to the server
4
- const parseForPatching = (data) => {
5
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
6
- delete data.id;
7
- delete data.documents;
8
- delete data.bank_accounts;
9
- delete data.product_categories;
10
- delete data.created_at;
11
- delete data.updated_at;
12
- (_a = data.legal_address) === null || _a === void 0 ? true : delete _a.id;
13
- (_b = data.legal_address) === null || _b === void 0 ? true : delete _b.created_at;
14
- (_c = data.legal_address) === null || _c === void 0 ? true : delete _c.updated_at;
15
- (_d = data.representative) === null || _d === void 0 ? true : delete _d.id;
16
- (_e = data.representative) === null || _e === void 0 ? true : delete _e.documents;
17
- (_f = data.representative) === null || _f === void 0 ? true : delete _f.created_at;
18
- (_g = data.representative) === null || _g === void 0 ? true : delete _g.updated_at;
19
- (_h = data.representative) === null || _h === void 0 ? true : delete _h.address.id;
20
- (_j = data.representative) === null || _j === void 0 ? true : delete _j.address.created_at;
21
- (_k = data.representative) === null || _k === void 0 ? true : delete _k.address.updated_at;
22
- delete data.owners;
23
- return data;
1
+ const getErrorMessage = (error) => {
2
+ if (typeof error === 'string') {
3
+ return error;
4
+ }
5
+ return error.message;
24
6
  };
25
7
 
26
- const FormAlert = (message) => (h("div", { class: 'alert alert-danger d-flex align-items-center', role: 'alert' },
27
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "currentColor", class: "bi bi-exclamation-triangle-fill flex-shrink-0 me-2", viewBox: "0 0 16 16", role: "img", "aria-label": "Warning:" },
28
- h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" })),
29
- h("div", null, message)));
30
-
31
- export { FormAlert as F, parseForPatching as p };
8
+ export { getErrorMessage as g };
@@ -20,7 +20,19 @@ export declare enum BusinessType {
20
20
  non_profit = "non_profit",
21
21
  government_entity = "government_entity"
22
22
  }
23
- export interface Address {
23
+ export interface IAddress {
24
+ id?: string;
25
+ platform_account_id?: string;
26
+ line1?: string;
27
+ line2?: string;
28
+ postal_code?: string;
29
+ city?: string;
30
+ state?: string;
31
+ country?: string;
32
+ created_at?: string;
33
+ updated_at?: string;
34
+ }
35
+ export declare class Address implements IAddress {
24
36
  id: string;
25
37
  platform_account_id: string;
26
38
  line1: string;
@@ -31,6 +43,7 @@ export interface Address {
31
43
  country: string;
32
44
  created_at: string;
33
45
  updated_at: string;
46
+ constructor(address: IAddress);
34
47
  }
35
48
  export interface Document {
36
49
  business_id: string;
@@ -48,22 +61,22 @@ export interface Document {
48
61
  updated_at: string;
49
62
  }
50
63
  export interface Identity {
51
- address: Address;
52
- created_at: string;
53
- dob_day: string;
54
- dob_month: string;
55
- dob_year: string;
56
- documents: Document[];
57
- email: string;
58
- id: string;
59
- is_owner: boolean;
60
- metadata: any;
61
- name: string;
62
- phone: string;
63
- platform_account_id: string;
64
- ssn_last4: string;
65
- title: string;
66
- updated_at: string;
64
+ address?: IAddress;
65
+ created_at?: string;
66
+ dob_day?: string;
67
+ dob_month?: string;
68
+ dob_year?: string;
69
+ documents?: Document[];
70
+ email?: string;
71
+ id?: string;
72
+ is_owner?: boolean;
73
+ metadata?: any;
74
+ name?: string;
75
+ phone?: string;
76
+ platform_account_id?: string;
77
+ ssn_last4?: string;
78
+ title?: string;
79
+ updated_at?: string;
67
80
  }
68
81
  export interface ProductCategories {
69
82
  credit: boolean;
@@ -72,12 +85,36 @@ export interface ProductCategories {
72
85
  payment: boolean;
73
86
  }
74
87
  export interface AdditionalQuestions {
75
- business_revenue: string;
76
- business_payment_volume: string;
77
- business_dispute_volume: string;
78
- business_receivable_volume: string;
88
+ business_revenue?: string;
89
+ business_payment_volume?: string;
90
+ business_dispute_volume?: string;
91
+ business_receivable_volume?: string;
92
+ }
93
+ export interface ICoreBusinessInfo {
94
+ business_structure?: BusinessStructure;
95
+ business_type?: BusinessType;
96
+ legal_name?: string;
97
+ doing_business_as?: string;
98
+ industry?: string;
99
+ tax_id?: string;
100
+ website_url?: string;
101
+ email?: string;
102
+ phone?: string;
103
+ }
104
+ export declare class CoreBusinessInfo implements ICoreBusinessInfo {
105
+ business_structure: BusinessStructure;
106
+ business_type: BusinessType;
107
+ legal_name: string;
108
+ doing_business_as: string;
109
+ industry: string;
110
+ tax_id: string;
111
+ website_url: string;
112
+ email: string;
113
+ phone: string;
114
+ constructor(coreBusinessInfo: ICoreBusinessInfo);
79
115
  }
80
116
  export interface IBusiness {
117
+ additional_questions: AdditionalQuestions | {};
81
118
  business_structure: BusinessStructure;
82
119
  business_type: BusinessType;
83
120
  bank_accounts: BankAccount[];
@@ -87,20 +124,20 @@ export interface IBusiness {
87
124
  email: string;
88
125
  id: string;
89
126
  industry: string;
90
- legal_address: Address;
127
+ legal_address: IAddress | {};
91
128
  legal_name: string;
92
129
  metadata: any;
93
130
  owners: Identity[];
94
131
  phone: string;
95
132
  platform_account_id: string;
96
- representative: Identity | null;
133
+ product_categories: ProductCategories;
134
+ representative: Identity | {};
97
135
  tax_id: string;
98
136
  updated_at: string;
99
137
  website_url: string;
100
- product_categories: ProductCategories;
101
- additional_questions: AdditionalQuestions;
102
138
  }
103
139
  export declare class Business implements IBusiness {
140
+ additional_questions: AdditionalQuestions | {};
104
141
  business_structure: BusinessStructure;
105
142
  business_type: BusinessType;
106
143
  bank_accounts: BankAccount[];
@@ -110,18 +147,17 @@ export declare class Business implements IBusiness {
110
147
  email: string;
111
148
  id: string;
112
149
  industry: string;
113
- legal_address: Address;
150
+ legal_address: IAddress | {};
114
151
  legal_name: string;
115
152
  metadata: any;
116
153
  owners: Identity[];
117
154
  phone: string;
118
155
  platform_account_id: string;
119
- representative: Identity | null;
156
+ representative: Identity | {};
120
157
  tax_id: string;
121
158
  updated_at: string;
122
159
  website_url: string;
123
160
  product_categories: ProductCategories;
124
- additional_questions: AdditionalQuestions;
125
161
  constructor(business: IBusiness);
126
162
  }
127
163
  export interface IProductReadiness {
@@ -8,6 +8,7 @@ export declare enum PaymentMethodTypes {
8
8
  }
9
9
  export declare enum PaymentStatuses {
10
10
  pending = "pending",
11
+ automatic = "automatic",
11
12
  authorized = "authorized",
12
13
  succeeded = "succeeded",
13
14
  failed = "failed",
@@ -87,6 +88,7 @@ export interface IPayment {
87
88
  amount_disputed: number;
88
89
  amount_refundable: number;
89
90
  amount_refunded: number;
91
+ amount_returned?: number;
90
92
  balance: number;
91
93
  captured: boolean;
92
94
  capture_strategy: CaptureStrategy;
@@ -100,11 +102,18 @@ export interface IPayment {
100
102
  is_test: boolean;
101
103
  metadata: Object | null;
102
104
  payment_method: IPaymentMethod;
103
- payment_intent_id: string | null;
105
+ payment_intent_id?: string | null;
104
106
  refunded: boolean;
105
107
  status: PaymentStatuses;
106
108
  created_at: string;
107
109
  updated_at: string;
110
+ financial_transaction_id: string;
111
+ returned: boolean;
112
+ application_fee: IApplicationFee;
113
+ application_fee_rate_id?: string;
114
+ refunds: IRefund[];
115
+ transaction_hold?: null;
116
+ statement_descriptor?: string;
108
117
  }
109
118
  export declare class Payment implements IPayment {
110
119
  id: string;
@@ -132,6 +141,11 @@ export declare class Payment implements IPayment {
132
141
  created_at: string;
133
142
  updated_at: string;
134
143
  statement_descriptor?: string;
144
+ financial_transaction_id: string;
145
+ returned: boolean;
146
+ application_fee: IApplicationFee;
147
+ refunds: IRefund[];
148
+ transaction_hold: null;
135
149
  constructor(payment: IPayment);
136
150
  get disputedStatus(): PaymentDisputedStatuses | null;
137
151
  }
@@ -163,3 +177,21 @@ export declare class PaymentBalanceTransaction implements IPaymentBalanceTransac
163
177
  constructor(balanceTransaction: IPaymentBalanceTransaction);
164
178
  get displayTransactionId(): string;
165
179
  }
180
+ export interface IRefund {
181
+ id: string;
182
+ payment_id: string;
183
+ amount: number;
184
+ description: string | null;
185
+ reason: string | null;
186
+ status: string;
187
+ metadata: null;
188
+ created_at: string;
189
+ updated_at: string;
190
+ }
191
+ export interface IApplicationFee {
192
+ id: string;
193
+ amount: number;
194
+ currency: string;
195
+ created_at: string;
196
+ updated_at: string;
197
+ }
@@ -0,0 +1,9 @@
1
+ import { IApiResponseCollection, IApiResponse, IPayment } from '..';
2
+ export interface IPaymentService {
3
+ fetchPayments(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayment[]>>;
4
+ fetchPayment(paymentId: string, authToken: string): Promise<IApiResponse<IPayment>>;
5
+ }
6
+ export declare class PaymentService implements IPaymentService {
7
+ fetchPayments(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayment[]>>;
8
+ fetchPayment(paymentId: string, authToken: string): Promise<IApiResponse<IPayment>>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { IApiResponse, IApiResponseCollection, IPayout } from '..';
2
+ export interface IPayoutService {
3
+ fetchPayouts(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayout[]>>;
4
+ fetchPayout(payoutId: string, authToken: string): Promise<IApiResponse<IPayout>>;
5
+ }
6
+ export declare class PayoutService implements IPayoutService {
7
+ fetchPayouts(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayout[]>>;
8
+ fetchPayout(payoutId: string, authToken: string): Promise<IApiResponse<IPayout>>;
9
+ }
@@ -0,0 +1 @@
1
+ export declare const getErrorMessage: (error: any) => any;
@@ -1,4 +1,4 @@
1
- import { IBusiness } from '../../../api/Business';
1
+ import { AdditionalQuestions } from '../../../api/Business';
2
2
  /**
3
3
  *
4
4
  * @exportedPart detail-section
@@ -8,6 +8,6 @@ import { IBusiness } from '../../../api/Business';
8
8
  * @exportedPart detail-empty-state
9
9
  */
10
10
  export declare class AdditionalQuestionsDetails {
11
- business: IBusiness;
11
+ additionalQuestions: AdditionalQuestions;
12
12
  render(): any;
13
13
  }
@@ -1,4 +1,4 @@
1
- import { IBusiness } from '../../api/Business';
1
+ import { Business } from '../../api/Business';
2
2
  declare enum RENDER_STATES {
3
3
  LOADING = "loading",
4
4
  READY = "ready",
@@ -15,7 +15,7 @@ declare enum RENDER_STATES {
15
15
  export declare class BusinessDetails {
16
16
  businessId: string;
17
17
  authToken: string;
18
- business: IBusiness;
18
+ business: Business;
19
19
  renderState: RENDER_STATES;
20
20
  errorMessage: string;
21
21
  private api;
@@ -1,5 +1,5 @@
1
- import { Address } from '../../../api/Business';
1
+ import { IAddress } from '../../../api/Business';
2
2
  export declare class LegalAddressDetails {
3
- legalAddress: Address;
3
+ legalAddress: IAddress;
4
4
  render(): any;
5
5
  }
@@ -0,0 +1,5 @@
1
+ export declare enum ClickEvents {
2
+ nextStep = "nextStep",
3
+ previousStep = "previousStep",
4
+ submit = "submit"
5
+ }
@@ -23,12 +23,12 @@ export declare const BusinessStructureOptions: {
23
23
  }[];
24
24
  declare const businessFormSchema: import("yup").ObjectSchema<{
25
25
  legal_address: {
26
+ country?: string;
26
27
  city?: string;
27
28
  state?: string;
28
29
  line1?: string;
29
30
  line2?: string;
30
31
  postal_code?: string;
31
- country?: string;
32
32
  };
33
33
  additional_questions: {
34
34
  business_revenue?: string;
@@ -51,23 +51,6 @@ declare const businessFormSchema: import("yup").ObjectSchema<{
51
51
  dob_year?: string;
52
52
  identification_number?: string;
53
53
  };
54
- owners: {
55
- name?: string;
56
- title?: string;
57
- address?: {
58
- city?: string;
59
- state?: string;
60
- line1?: string;
61
- postal_code?: string;
62
- };
63
- email?: string;
64
- phone?: string;
65
- dob_day?: string;
66
- dob_month?: string;
67
- dob_year?: string;
68
- identification_number?: string;
69
- is_owner?: boolean;
70
- }[];
71
54
  legal_name: unknown;
72
55
  website_url: unknown;
73
56
  email: unknown;
@@ -106,7 +89,6 @@ declare const businessFormSchema: import("yup").ObjectSchema<{
106
89
  postal_code: undefined;
107
90
  };
108
91
  };
109
- owners: "";
110
92
  legal_name: undefined;
111
93
  website_url: undefined;
112
94
  email: undefined;
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  /**
2
3
  * @exportedPart label: Label for inputs
3
4
  * @exportedPart input: The input fields
@@ -5,7 +6,7 @@
5
6
  */
6
7
  export declare class BusinessFormStepped {
7
8
  authToken: string;
8
- businessId?: string;
9
+ businessId: string;
9
10
  testMode: boolean;
10
11
  hideErrors?: boolean;
11
12
  isLoading: boolean;
@@ -13,12 +14,25 @@ export declare class BusinessFormStepped {
13
14
  totalSteps: number;
14
15
  serverError: boolean;
15
16
  errorMessage: string;
16
- get submitDisabled(): boolean;
17
- get nextDisabled(): boolean;
18
- get showErrors(): boolean;
17
+ clickEvent: EventEmitter<{
18
+ data?: any;
19
+ name: string;
20
+ }>;
21
+ submitted: EventEmitter<{
22
+ data: any;
23
+ }>;
19
24
  private formController;
20
25
  private api;
21
26
  constructor();
27
+ get disabledState(): boolean;
28
+ get showErrors(): boolean;
29
+ get businessEndpoint(): string;
30
+ componentStepMapping: {
31
+ 0: (formController: any) => any;
32
+ 1: (formController: any) => any;
33
+ 2: (formController: any) => any;
34
+ 3: (formController: any) => any;
35
+ };
22
36
  componentWillLoad(): void;
23
37
  handleResponse(response: any, onSuccess: any): void;
24
38
  private sendData;
@@ -27,7 +41,7 @@ export declare class BusinessFormStepped {
27
41
  showPreviousStepButton(): boolean;
28
42
  previousStepButtonOnClick(): void;
29
43
  showNextStepButton(): boolean;
30
- nextStepButtonOnClick(): void;
44
+ nextStepButtonOnClick(clickEventName: any): void;
31
45
  showSubmitButton(): boolean;
32
46
  currentStepComponent(): any;
33
47
  render(): any;
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  /**
2
3
  * @exportedPart label: Label for inputs
3
4
  * @exportedPart input: The input fields
@@ -5,13 +6,21 @@
5
6
  */
6
7
  export declare class BusinessForm {
7
8
  authToken: string;
8
- businessId?: string;
9
+ businessId: string;
9
10
  hideErrors?: boolean;
10
11
  isLoading: boolean;
11
12
  serverError: boolean;
12
13
  errorMessage: string;
13
- get submitDisabled(): boolean;
14
+ clickEvent: EventEmitter<{
15
+ data?: any;
16
+ name: string;
17
+ }>;
18
+ submitted: EventEmitter<{
19
+ data: any;
20
+ }>;
21
+ get disabledState(): boolean;
14
22
  get showErrors(): boolean;
23
+ get businessEndpoint(): string;
15
24
  private formController;
16
25
  private api;
17
26
  constructor();
@@ -1,4 +1,5 @@
1
1
  import { FormController } from '../../form/form';
2
+ import { ICoreBusinessInfo } from '../../../api/Business';
2
3
  /**
3
4
  *
4
5
  * The difference between this component and business-generic-info-details
@@ -12,6 +13,7 @@ import { FormController } from '../../form/form';
12
13
  export declare class BusinessGenericInfo {
13
14
  formController: FormController;
14
15
  errors: any;
16
+ genericInfo: ICoreBusinessInfo;
15
17
  constructor();
16
18
  componentDidLoad(): void;
17
19
  inputHandler(name: string, value: string): void;
@@ -19,9 +19,9 @@ declare class BusinessOwner {
19
19
  */
20
20
  export declare class BusinessOwners {
21
21
  formController: FormController;
22
- isEditing: boolean;
23
22
  errors: any[];
24
23
  owners: BusinessOwner[];
24
+ get disabledState(): boolean;
25
25
  constructor();
26
26
  componentDidLoad(): void;
27
27
  inputHandler(name: string, value: string, index: number): void;
@@ -1 +1 @@
1
- export declare const parseForPatching: (data: any) => any;
1
+ export declare const parseForPatching: (values: any, initialValues: any) => any;
@@ -1,8 +1,9 @@
1
- export declare const LoadingState: any;
1
+ import { FunctionalComponent } from '../../stencil-public-runtime';
2
+ export declare const LoadingState: () => any;
2
3
  export declare const ErrorState: (errorMessage: string) => any;
3
- export declare const DetailSection: ({ sectionTitle }: {
4
+ export declare const DetailSection: FunctionalComponent<{
4
5
  sectionTitle: string;
5
- }, children: any) => any;
6
+ }>;
6
7
  export declare const DetailItem: ({ title, value, }: {
7
8
  title: string;
8
9
  value: string;
@@ -0,0 +1,8 @@
1
+ export declare const makeGetPaymentDetails: ({ id, authToken, service }: {
2
+ id: any;
3
+ authToken: any;
4
+ service: any;
5
+ }) => ({ onSuccess, onError }: {
6
+ onSuccess: any;
7
+ onError: any;
8
+ }) => Promise<void>;
@@ -0,0 +1,11 @@
1
+ import { Payment } from '../../api';
2
+ export declare class PaymentDetailsCore {
3
+ getPaymentDetails: Function;
4
+ payment: Payment;
5
+ loading: boolean;
6
+ errorMessage: string;
7
+ componentWillLoad(): void;
8
+ updateOnPropChange(): void;
9
+ fetchData(): void;
10
+ render(): any;
11
+ }
@@ -1,4 +1,4 @@
1
- import { Payment } from '../../api';
1
+ import { PaymentService } from '../../api/services/payment.service';
2
2
  /**
3
3
  * @exportedPart detail-loading-spinner
4
4
  * @exportedPart detail-loading-state
@@ -26,11 +26,11 @@ import { Payment } from '../../api';
26
26
  export declare class PaymentDetails {
27
27
  paymentId: string;
28
28
  authToken: string;
29
- payment: Payment;
30
- loading: boolean;
29
+ getPaymentDetails: Function;
31
30
  errorMessage: string;
32
- updateOnPropChange(): void;
33
- connectedCallback(): void;
34
- fetchData(): Promise<void>;
31
+ componentWillLoad(): void;
32
+ propChanged(): void;
33
+ private initializeGetPaymentDetails;
34
+ paymentService: PaymentService;
35
35
  render(): any;
36
36
  }
@@ -1,6 +1,6 @@
1
1
  interface PaymentMethodCreateResponseWrapper {
2
2
  id: string;
3
- type: 'payment_method';
3
+ type: "payment_method";
4
4
  error?: {
5
5
  code: string;
6
6
  message: string;
@@ -23,6 +23,14 @@ interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
23
23
  metadata: any;
24
24
  address_line1_check: string;
25
25
  address_postal_code_check: string;
26
+ bin_details?: {
27
+ type: "Credit" | "Debit" | "Prepaid" | "Unknown";
28
+ card_brand: string;
29
+ card_class: string;
30
+ country: string;
31
+ issuer: string;
32
+ funding_source: "Charge" | "Credit" | "Debit" | "Deferred Debit (Visa Only)" | "Network Only" | "Prepaid";
33
+ };
26
34
  };
27
35
  };
28
36
  }
@@ -34,7 +42,7 @@ interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
34
42
  bank_account: {
35
43
  id: string;
36
44
  account_owner_name: string;
37
- account_type: 'checking' | 'savings';
45
+ account_type: "checking" | "savings";
38
46
  bank_name: string;
39
47
  acct_last_four: number;
40
48
  token: string;
@@ -0,0 +1,9 @@
1
+ export declare const makeGetPayments: ({ id, authToken, service }: {
2
+ id: any;
3
+ authToken: any;
4
+ service: any;
5
+ }) => ({ params, onSuccess, onError }: {
6
+ params: any;
7
+ onSuccess: any;
8
+ onError: any;
9
+ }) => Promise<any>;
@@ -0,0 +1,17 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { PagingInfo, Payment } from '../../api';
3
+ export declare class PaymentsListCore {
4
+ getPayments: Function;
5
+ payments: Payment[];
6
+ loading: boolean;
7
+ errorMessage: string;
8
+ paging: PagingInfo;
9
+ params: any;
10
+ rowClicked: EventEmitter<Payment>;
11
+ componentWillLoad(): void;
12
+ updateOnPropChange(): void;
13
+ handleClickPrevious: (beforeCursor: string) => void;
14
+ handleClickNext: (afterCursor: string) => void;
15
+ fetchData(): void;
16
+ render(): any;
17
+ }
@@ -1,5 +1,3 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { PagingInfo, Payment } from '../../api';
3
1
  /**
4
2
  * @exportedPart table-head: Table head
5
3
  * @exportedPart table-head-row: Head row
@@ -22,16 +20,10 @@ import { PagingInfo, Payment } from '../../api';
22
20
  export declare class PaymentsList {
23
21
  accountId: string;
24
22
  authToken: string;
25
- payments: Payment[];
26
- loading: boolean;
23
+ getPayments: Function;
27
24
  errorMessage: string;
28
- paging: PagingInfo;
29
- params: any;
30
- rowClicked: EventEmitter<Payment>;
31
- updateOnPropChange(): void;
32
- connectedCallback(): void;
33
- handleClickPrevious: (beforeCursor: string) => void;
34
- handleClickNext: (afterCursor: string) => void;
35
- fetchData(): Promise<void>;
25
+ componentWillLoad(): void;
26
+ propChanged(): void;
27
+ private initializeGetPayments;
36
28
  render(): any;
37
29
  }