@justifi/webcomponents 4.8.3 → 4.9.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 (327) hide show
  1. package/dist/cjs/{Business-42d0c522.js → Business-64dffab7.js} +6 -7
  2. package/dist/cjs/{BusinessFormEventTypes-863f48e9.js → BusinessFormEventTypes-62990815.js} +1 -1
  3. package/dist/cjs/{Payout-44b49b2d.js → Payment-89a8bc21.js} +0 -43
  4. package/dist/cjs/Payout-a2dd7b01.js +45 -0
  5. package/dist/cjs/{SubAccount-2a803b22.js → SubAccount-f8144025.js} +1 -1
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +24 -10
  7. package/dist/{webcomponents/p-4ee44c76.entry.js → cjs/business-details-core.cjs.entry.js} +55 -1
  8. package/dist/cjs/form-control-datepart_3.cjs.entry.js +1 -1
  9. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  10. package/dist/cjs/form-control-select_2.cjs.entry.js +1 -1
  11. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +11036 -0
  12. package/dist/cjs/{index-55950669.js → index-07ddbad2.js} +0 -3
  13. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
  15. package/dist/cjs/{select-input_2.cjs.entry.js → justifi-billing-form_4.cjs.entry.js} +1811 -1
  16. package/dist/cjs/justifi-business-details.cjs.entry.js +43 -57
  17. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +5 -4
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +5 -4
  19. package/dist/cjs/justifi-business-list.cjs.entry.js +5 -4
  20. package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
  22. package/dist/cjs/justifi-checkout-core.cjs.entry.js +95 -0
  23. package/dist/cjs/justifi-checkout.cjs.entry.js +99 -0
  24. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +39 -11008
  26. package/dist/cjs/justifi-new-payment-method_3.cjs.entry.js +168 -0
  27. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +5 -4
  28. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
  29. package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -4
  30. package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → justifi-payment-method-selector.cjs.entry.js} +4 -79
  31. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -5
  32. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
  33. package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
  34. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -3
  35. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
  36. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -5
  37. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +5 -4
  38. package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
  39. package/dist/cjs/loader.cjs.js +2 -2
  40. package/dist/cjs/payment-details-core.cjs.entry.js +10 -4
  41. package/dist/cjs/{payment.service-605896dc.js → payment.service-0b0086dc.js} +2 -1
  42. package/dist/cjs/payments-list-core.cjs.entry.js +4 -3
  43. package/dist/cjs/payout-details-core.cjs.entry.js +4 -4
  44. package/dist/cjs/{payout.service-b39f2739.js → payout.service-5cc3b4e9.js} +2 -1
  45. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -3
  46. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +7 -7
  47. package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -3
  48. package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -3
  49. package/dist/cjs/{utils-d126d17c.js → utils-5c3e442d.js} +5 -5
  50. package/dist/cjs/{utils-29a8a91d.js → utils-84208d99.js} +11 -2
  51. package/dist/cjs/webcomponents.cjs.js +2 -2
  52. package/dist/collection/api/Business.js +6 -7
  53. package/dist/collection/api/Checkout.js +1 -0
  54. package/dist/collection/api/index.js +1 -0
  55. package/dist/collection/api/services/business.service.js +8 -0
  56. package/dist/collection/api/services/checkout.service.js +12 -0
  57. package/dist/collection/api/services/reports.service.js +9 -0
  58. package/dist/collection/collection-manifest.json +7 -0
  59. package/dist/collection/components/billing-form/billing-form.js +1 -2
  60. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +5 -2
  61. package/dist/collection/components/business-details/additional-questions-details/test/additional-questions.spec.js +16 -0
  62. package/dist/collection/components/business-details/business-details-core.js +86 -0
  63. package/dist/collection/components/business-details/business-details.js +20 -65
  64. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +4 -2
  65. package/dist/collection/components/business-details/generic-info-details/test/generic-info-details.spec.js +16 -0
  66. package/dist/collection/components/business-details/get-business.js +17 -0
  67. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +5 -2
  68. package/dist/collection/components/business-details/legal-address-details/test/legal-address-details.spec.js +16 -0
  69. package/dist/collection/components/business-details/owner-details/owner-details.js +10 -12
  70. package/dist/collection/components/business-details/owner-details/test/owner-details.spec.js +16 -0
  71. package/dist/collection/components/business-details/representative-details/representative-details.js +5 -3
  72. package/dist/collection/components/business-details/representative-details/test/representative-details.spec.js +16 -0
  73. package/dist/collection/components/business-details/test/busines-details-core.spec.js +53 -0
  74. package/dist/collection/components/business-details/test/business-details.spec.js +40 -0
  75. package/dist/collection/components/business-details/test/get-business.spec.js +60 -0
  76. package/dist/collection/components/checkout/checkout-actions.js +33 -0
  77. package/dist/collection/components/checkout/checkout-core.css +2604 -0
  78. package/dist/collection/components/checkout/checkout-core.js +248 -0
  79. package/dist/collection/components/checkout/checkout.js +112 -0
  80. package/dist/collection/components/checkout/new-payment-method.js +188 -0
  81. package/dist/collection/components/checkout/payment-method-option-utils.js +19 -0
  82. package/dist/collection/components/checkout/payment-method-options.css +7073 -0
  83. package/dist/collection/components/checkout/payment-method-options.js +248 -0
  84. package/dist/collection/components/checkout/saved-payment-method.js +123 -0
  85. package/dist/collection/components/checkout/test/checkout.js +22 -0
  86. package/dist/collection/components/checkout/test/checkout.spec.js +166 -0
  87. package/dist/collection/components/checkout/test/mockCheckout.js +19 -0
  88. package/dist/collection/components/details/utils.js +4 -1
  89. package/dist/collection/components/gross-payment-chart/get-gross-payment-chart-data.js +14 -0
  90. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +119 -0
  91. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +25 -73
  92. package/dist/collection/components/gross-payment-chart/test/get-gross-payment-chart-data.spec.js +69 -0
  93. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart-core.spec.js +64 -0
  94. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +23 -8
  95. package/dist/collection/components/payment-details/payment-details-core.js +8 -2
  96. package/dist/collection/components/payment-details/payment-details.js +0 -1
  97. package/dist/collection/components/payment-form/payment-form.js +1 -1
  98. package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
  99. package/dist/collection/components/payout-details/payout-details-core.js +2 -2
  100. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +2 -2
  101. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +2 -2
  102. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +2 -2
  103. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +2 -2
  104. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +2 -2
  105. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +2 -2
  106. package/dist/collection/utils/utils.js +9 -3
  107. package/dist/docs.json +1152 -187
  108. package/dist/esm/{Business-e9340f6b.js → Business-9921d35f.js} +6 -7
  109. package/dist/esm/{BusinessFormEventTypes-989960ba.js → BusinessFormEventTypes-182e20be.js} +1 -1
  110. package/dist/esm/{Payout-dc5f009c.js → Payment-55886c86.js} +1 -43
  111. package/dist/esm/Payout-dfe15b00.js +43 -0
  112. package/dist/esm/{SubAccount-46b4c2b1.js → SubAccount-76f6d565.js} +1 -1
  113. package/dist/esm/additional-questions-details_5.entry.js +24 -10
  114. package/dist/esm/business-details-core.entry.js +51 -0
  115. package/dist/esm/form-control-datepart_3.entry.js +1 -1
  116. package/dist/esm/form-control-monetary.entry.js +1 -1
  117. package/dist/esm/form-control-select_2.entry.js +1 -1
  118. package/dist/esm/gross-payment-chart-core.entry.js +11032 -0
  119. package/dist/esm/{index-62b8aa8a.js → index-fb5ca346.js} +0 -3
  120. package/dist/esm/justifi-additional-questions_5.entry.js +2 -2
  121. package/dist/esm/justifi-bank-account-form.entry.js +1 -1
  122. package/dist/esm/{select-input_2.entry.js → justifi-billing-form_4.entry.js} +1810 -2
  123. package/dist/esm/justifi-business-details.entry.js +42 -56
  124. package/dist/esm/justifi-business-form-stepped.entry.js +5 -4
  125. package/dist/esm/justifi-business-form.entry.js +5 -4
  126. package/dist/esm/justifi-business-list.entry.js +5 -4
  127. package/dist/esm/justifi-business-owners.entry.js +1 -1
  128. package/dist/esm/justifi-card-form.entry.js +1 -1
  129. package/dist/esm/justifi-checkout-core.entry.js +91 -0
  130. package/dist/esm/justifi-checkout.entry.js +95 -0
  131. package/dist/esm/justifi-details.entry.js +2 -2
  132. package/dist/esm/justifi-gross-payment-chart.entry.js +39 -11008
  133. package/dist/esm/justifi-new-payment-method_3.entry.js +162 -0
  134. package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -3
  135. package/dist/esm/justifi-payment-details.entry.js +5 -4
  136. package/dist/esm/justifi-payment-form.entry.js +4 -3
  137. package/dist/esm/{justifi-billing-form_2.entry.js → justifi-payment-method-selector.entry.js} +4 -78
  138. package/dist/esm/justifi-payments-list.entry.js +5 -4
  139. package/dist/esm/justifi-payout-details.entry.js +5 -4
  140. package/dist/esm/justifi-payouts-list.entry.js +5 -4
  141. package/dist/esm/justifi-proceeds-list.entry.js +4 -3
  142. package/dist/esm/justifi-refund-form.entry.js +3 -2
  143. package/dist/esm/justifi-subaccount-details.entry.js +6 -5
  144. package/dist/esm/justifi-subaccounts-list.entry.js +5 -4
  145. package/dist/esm/justifi-table_2.entry.js +1 -1
  146. package/dist/esm/loader.js +3 -3
  147. package/dist/esm/payment-details-core.entry.js +10 -4
  148. package/dist/esm/{payment.service-bea02ccf.js → payment.service-f274ef98.js} +2 -1
  149. package/dist/esm/payments-list-core.entry.js +4 -3
  150. package/dist/esm/payout-details-core.entry.js +4 -4
  151. package/dist/esm/{payout.service-92e56814.js → payout.service-af293f61.js} +2 -1
  152. package/dist/esm/payouts-list-core.entry.js +4 -3
  153. package/dist/esm/subaccount-account-details_4.entry.js +7 -7
  154. package/dist/esm/subaccount-bank-details.entry.js +3 -3
  155. package/dist/esm/subaccount-terms-details.entry.js +3 -3
  156. package/dist/esm/{utils-76a93600.js → utils-5193fcd7.js} +10 -3
  157. package/dist/esm/{utils-576874df.js → utils-a3e96d9f.js} +5 -5
  158. package/dist/esm/webcomponents.js +3 -3
  159. package/dist/module/Business.js +6 -7
  160. package/dist/module/Payment.js +138 -0
  161. package/dist/module/Payout.js +1 -138
  162. package/dist/module/SubAccount.js +1 -1
  163. package/dist/module/additional-questions-details2.js +5 -2
  164. package/dist/module/billing-form.js +1 -2
  165. package/dist/module/business-details-core.d.ts +11 -0
  166. package/dist/module/business-details-core.js +6 -0
  167. package/dist/module/business-details-core2.js +101 -0
  168. package/dist/module/checkout-core.js +163 -0
  169. package/dist/module/generic-info-details2.js +4 -2
  170. package/dist/module/gross-payment-chart-core.d.ts +11 -0
  171. package/dist/module/gross-payment-chart-core.js +6 -0
  172. package/dist/module/gross-payment-chart-core2.js +11055 -0
  173. package/dist/module/justifi-business-details.js +51 -60
  174. package/dist/module/justifi-business-form-stepped.js +1 -0
  175. package/dist/module/justifi-business-form.js +1 -0
  176. package/dist/module/justifi-business-list.js +2 -1
  177. package/dist/module/justifi-checkout-core.d.ts +11 -0
  178. package/dist/module/justifi-checkout-core.js +6 -0
  179. package/dist/module/justifi-checkout.d.ts +11 -0
  180. package/dist/module/justifi-checkout.js +172 -0
  181. package/dist/module/justifi-gross-payment-chart.js +49 -11016
  182. package/dist/module/justifi-new-payment-method.d.ts +11 -0
  183. package/dist/module/justifi-new-payment-method.js +6 -0
  184. package/dist/module/justifi-payment-balance-transactions.js +3 -2
  185. package/dist/module/justifi-payment-details.js +2 -1
  186. package/dist/module/justifi-payment-form.js +2 -1
  187. package/dist/module/justifi-payment-method-options.d.ts +11 -0
  188. package/dist/module/justifi-payment-method-options.js +6 -0
  189. package/dist/module/justifi-payments-list.js +2 -1
  190. package/dist/module/justifi-payout-details.js +2 -1
  191. package/dist/module/justifi-payouts-list.js +2 -1
  192. package/dist/module/justifi-proceeds-list.js +2 -1
  193. package/dist/module/justifi-refund-form.js +1 -0
  194. package/dist/module/justifi-saved-payment-method.d.ts +11 -0
  195. package/dist/module/justifi-saved-payment-method.js +6 -0
  196. package/dist/module/justifi-subaccount-details.js +2 -1
  197. package/dist/module/justifi-subaccounts-list.js +2 -1
  198. package/dist/module/legal-address-details2.js +5 -2
  199. package/dist/module/new-payment-method.js +105 -0
  200. package/dist/module/owner-details2.js +10 -4
  201. package/dist/module/payment-details-core2.js +9 -3
  202. package/dist/module/payment-method-form.js +4 -10
  203. package/dist/module/payment-method-options.js +128 -0
  204. package/dist/module/payment-method-selector.js +2 -1
  205. package/dist/module/payment.service.js +1 -0
  206. package/dist/module/payments-list-core2.js +2 -1
  207. package/dist/module/payout-details-core2.js +3 -3
  208. package/dist/module/payout.service.js +1 -0
  209. package/dist/module/payouts-list-core2.js +3 -2
  210. package/dist/module/representative-details2.js +5 -3
  211. package/dist/module/saved-payment-method.js +66 -0
  212. package/dist/module/subaccount-account-details2.js +2 -2
  213. package/dist/module/subaccount-bank-details.js +2 -2
  214. package/dist/module/subaccount-merchant-details2.js +3 -3
  215. package/dist/module/subaccount-owners-details2.js +2 -2
  216. package/dist/module/subaccount-representative-details2.js +2 -2
  217. package/dist/module/subaccount-terms-details.js +2 -2
  218. package/dist/module/utils.js +4 -4
  219. package/dist/module/utils2.js +10 -3
  220. package/dist/types/api/Api.d.ts +1 -1
  221. package/dist/types/api/Checkout.d.ts +14 -0
  222. package/dist/types/api/index.d.ts +1 -0
  223. package/dist/types/api/services/business.service.d.ts +8 -0
  224. package/dist/types/api/services/checkout.service.d.ts +9 -0
  225. package/dist/types/api/services/reports.service.d.ts +5 -0
  226. package/dist/types/components/billing-form/billing-form.d.ts +0 -1
  227. package/dist/types/components/business-details/business-details-core.d.ts +16 -0
  228. package/dist/types/components/business-details/business-details.d.ts +3 -13
  229. package/dist/types/components/business-details/get-business.d.ts +8 -0
  230. package/dist/types/components/business-details/owner-details/owner-details.d.ts +0 -8
  231. package/dist/types/components/checkout/checkout-actions.d.ts +17 -0
  232. package/dist/types/components/checkout/checkout-core.d.ts +28 -0
  233. package/dist/types/components/checkout/checkout.d.ts +12 -0
  234. package/dist/types/components/checkout/new-payment-method.d.ts +17 -0
  235. package/dist/types/components/checkout/payment-method-option-utils.d.ts +16 -0
  236. package/dist/types/components/checkout/payment-method-options.d.ts +18 -0
  237. package/dist/types/components/checkout/saved-payment-method.d.ts +11 -0
  238. package/dist/types/components/checkout/test/checkout.d.ts +1 -0
  239. package/dist/types/components/checkout/test/mockCheckout.d.ts +19 -0
  240. package/dist/types/components/details/utils.d.ts +1 -1
  241. package/dist/types/components/gross-payment-chart/get-gross-payment-chart-data.d.ts +11 -0
  242. package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +18 -0
  243. package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +4 -14
  244. package/dist/types/components/payment-details/payment-details.d.ts +0 -1
  245. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +3 -9
  246. package/dist/types/components.d.ts +217 -32
  247. package/dist/types/utils/utils.d.ts +1 -0
  248. package/dist/webcomponents/p-018b71f5.entry.js +1 -0
  249. package/dist/webcomponents/p-0923e39c.js +1 -0
  250. package/dist/webcomponents/{p-7a1a06c0.entry.js → p-09b94d22.entry.js} +1 -1
  251. package/dist/webcomponents/p-1b04d091.entry.js +1 -0
  252. package/dist/webcomponents/{p-0a0cf2e6.entry.js → p-1bac1674.entry.js} +1 -1
  253. package/dist/webcomponents/p-1cbdca15.entry.js +1 -0
  254. package/dist/webcomponents/p-2f0653f4.entry.js +1 -0
  255. package/dist/webcomponents/p-3134ab82.entry.js +1 -0
  256. package/dist/webcomponents/{p-22c1acd6.js → p-34f9fe6b.js} +1 -1
  257. package/dist/webcomponents/p-3bae0ed3.entry.js +1 -0
  258. package/dist/webcomponents/p-41031759.entry.js +1 -0
  259. package/dist/webcomponents/p-41490d96.entry.js +1 -0
  260. package/dist/webcomponents/{p-081cf5f6.entry.js → p-4ed3a9f5.entry.js} +1 -1
  261. package/dist/webcomponents/{p-6478f3ca.js → p-4edd9721.js} +1 -1
  262. package/dist/webcomponents/p-51b0bf2a.entry.js +1 -0
  263. package/dist/webcomponents/p-531844f6.entry.js +1 -0
  264. package/dist/webcomponents/{p-4fa27a28.entry.js → p-591e29bf.entry.js} +1 -1
  265. package/dist/webcomponents/p-5d5d7550.entry.js +1 -0
  266. package/dist/webcomponents/{p-810b72b5.js → p-5ea274b8.js} +1 -1
  267. package/dist/webcomponents/{p-4ba2c711.entry.js → p-5f785ede.entry.js} +1 -1
  268. package/dist/webcomponents/p-63296409.js +1 -0
  269. package/dist/webcomponents/{p-4f14df36.js → p-6d05174c.js} +1 -1
  270. package/dist/webcomponents/p-72d1ad98.entry.js +1 -0
  271. package/dist/webcomponents/{p-40349ffc.entry.js → p-796cf44f.entry.js} +1 -1
  272. package/dist/webcomponents/p-7b2cddc7.js +1 -0
  273. package/dist/webcomponents/{p-7c0f91fa.entry.js → p-7cd06ada.entry.js} +1 -1
  274. package/dist/webcomponents/p-8f895ec3.entry.js +1 -0
  275. package/dist/webcomponents/p-92a55427.entry.js +1 -0
  276. package/dist/webcomponents/p-97c42345.entry.js +1 -0
  277. package/dist/webcomponents/p-99a8b7d0.entry.js +1 -0
  278. package/dist/webcomponents/p-9a63eec9.entry.js +1 -0
  279. package/dist/webcomponents/p-9c310f5c.entry.js +1 -0
  280. package/dist/webcomponents/p-9e3771b7.entry.js +19 -0
  281. package/dist/webcomponents/{p-6d0725ef.entry.js → p-a81229a5.entry.js} +1 -1
  282. package/dist/webcomponents/{p-234bc840.entry.js → p-adc96df1.entry.js} +1 -1
  283. package/dist/webcomponents/p-baafa7f5.js +1 -0
  284. package/dist/webcomponents/p-babd292f.entry.js +1 -0
  285. package/dist/webcomponents/{p-5c0310ee.js → p-bb037696.js} +1 -1
  286. package/dist/webcomponents/p-bb7f6095.entry.js +1 -0
  287. package/dist/webcomponents/p-c032b216.entry.js +1 -0
  288. package/dist/webcomponents/{p-08833966.entry.js → p-c2c3d5d1.entry.js} +1 -1
  289. package/dist/webcomponents/p-c8d51336.entry.js +1 -0
  290. package/dist/webcomponents/{p-4c01df65.entry.js → p-dc05b5c5.entry.js} +1 -1
  291. package/dist/webcomponents/p-e3fab0e2.js +1 -0
  292. package/dist/webcomponents/p-e536a4c1.entry.js +1 -0
  293. package/dist/webcomponents/p-e6939585.entry.js +1 -0
  294. package/dist/webcomponents/p-ec358d69.entry.js +1 -0
  295. package/dist/webcomponents/p-f55ac955.entry.js +1 -0
  296. package/dist/webcomponents/p-f64a85cf.entry.js +1 -0
  297. package/dist/webcomponents/webcomponents.esm.js +1 -1
  298. package/package.json +3 -2
  299. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1747
  300. package/dist/esm/justifi-payment-method-form.entry.js +0 -1743
  301. package/dist/webcomponents/p-0bc8b02e.entry.js +0 -1
  302. package/dist/webcomponents/p-112acd3c.entry.js +0 -1
  303. package/dist/webcomponents/p-1555e6b1.js +0 -1
  304. package/dist/webcomponents/p-16f41fd0.entry.js +0 -1
  305. package/dist/webcomponents/p-17715325.js +0 -1
  306. package/dist/webcomponents/p-3a4d4869.entry.js +0 -1
  307. package/dist/webcomponents/p-3cb0b96d.js +0 -1
  308. package/dist/webcomponents/p-5422a24b.entry.js +0 -1
  309. package/dist/webcomponents/p-578e0a05.entry.js +0 -1
  310. package/dist/webcomponents/p-640d90dc.entry.js +0 -1
  311. package/dist/webcomponents/p-663bfe87.js +0 -1
  312. package/dist/webcomponents/p-696396c7.entry.js +0 -1
  313. package/dist/webcomponents/p-6ab67031.entry.js +0 -1
  314. package/dist/webcomponents/p-8516d602.entry.js +0 -1
  315. package/dist/webcomponents/p-894a7475.entry.js +0 -19
  316. package/dist/webcomponents/p-94ebfafb.entry.js +0 -1
  317. package/dist/webcomponents/p-9cb3ff78.entry.js +0 -1
  318. package/dist/webcomponents/p-9e81808f.entry.js +0 -1
  319. package/dist/webcomponents/p-a432110c.entry.js +0 -1
  320. package/dist/webcomponents/p-b1881723.entry.js +0 -1
  321. package/dist/webcomponents/p-b5aba473.entry.js +0 -1
  322. package/dist/webcomponents/p-bd099662.entry.js +0 -1
  323. package/dist/webcomponents/p-bfd917b8.entry.js +0 -1
  324. package/dist/webcomponents/p-c90fa055.entry.js +0 -1
  325. package/dist/webcomponents/p-ebb91944.entry.js +0 -1
  326. package/dist/webcomponents/p-ec4f27e7.entry.js +0 -1
  327. package/dist/webcomponents/p-fa495a43.entry.js +0 -1
@@ -3887,7 +3887,9 @@ function formatMediumDate(input) {
3887
3887
  }
3888
3888
  function formatDisplayDate(value, endDate) {
3889
3889
  const isEndingDate = value === endDate;
3890
- return (isEndingDate) ? 'Today' : format(new Date(value.replace(/-/g, '/')), 'MMM d');
3890
+ return isEndingDate
3891
+ ? 'Today'
3892
+ : format(new Date(value.replace(/-/g, '/')), 'MMM d');
3891
3893
  }
3892
3894
  function formatTime(dateString) {
3893
3895
  if (!dateString)
@@ -3972,9 +3974,11 @@ const MapSubAccountStatusToBadge = (status) => {
3972
3974
  * console.log(readable); // Outputs: "Sole Proprietorship"
3973
3975
  */
3974
3976
  function snakeCaseToHumanReadable(snakeCaseStr) {
3977
+ if (!snakeCaseStr)
3978
+ return '';
3975
3979
  return snakeCaseStr
3976
3980
  .split('_')
3977
- .map(word => word.charAt(0).toUpperCase() + word.slice(1))
3981
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
3978
3982
  .join(' ');
3979
3983
  }
3980
3984
  function composeQueryParams(values) {
@@ -4008,5 +4012,8 @@ async function loadFontsOnParent() {
4008
4012
  fonts.href = fontHref;
4009
4013
  parent.append(fonts);
4010
4014
  }
4015
+ function isEmptyObject(obj) {
4016
+ return Object.keys(obj).length === 0 && obj.constructor === Object;
4017
+ }
4011
4018
 
4012
- export { MapPaymentStatusToBadge as M, formatDate as a, formatCurrency as b, composeQueryParams as c, formatDisplayDate as d, formatTime as e, formatMediumDate as f, MapPayoutStatusToBadge as g, MapSubAccountStatusToBadge as h, formatPercentage as i, formatLegalAddress as j, loadFontsOnParent as l, snakeCaseToHumanReadable as s };
4019
+ export { MapPaymentStatusToBadge as M, formatCurrency as a, formatDisplayDate as b, composeQueryParams as c, formatDate as d, extractComputedFontsToLoad as e, formatMediumDate as f, formatTime as g, MapPayoutStatusToBadge as h, isEmptyObject as i, MapSubAccountStatusToBadge as j, formatPercentage as k, loadFontsOnParent as l, formatLegalAddress as m, snakeCaseToHumanReadable as s };
@@ -4,7 +4,7 @@ export interface IApiResponse<T> {
4
4
  error?: IErrorObject | IServerError;
5
5
  page_info?: PagingInfo;
6
6
  errors?: string[];
7
- id: number;
7
+ id: number | string;
8
8
  type: string;
9
9
  }
10
10
  export type IServerError = string;
@@ -0,0 +1,14 @@
1
+ export interface ICheckout {
2
+ payment_intent_id: string;
3
+ account_id: string;
4
+ platform_account_id: string;
5
+ payment_amount: string;
6
+ payment_client_id: string;
7
+ payment_description: string;
8
+ payment_methods: string[];
9
+ payment_method_group_id: string | null;
10
+ payment_settings: {
11
+ credit_card_payments: boolean;
12
+ ach_payments: boolean;
13
+ };
14
+ }
@@ -1,5 +1,6 @@
1
1
  export { default as Api } from './Api';
2
2
  export * from './Api';
3
+ export * from './Checkout';
3
4
  export * from './Pagination';
4
5
  export * from './Payment';
5
6
  export * from './Payout';
@@ -0,0 +1,8 @@
1
+ import { IApiResponse } from '../Api';
2
+ import { IBusiness } from '../Business';
3
+ export interface IBusinessService {
4
+ fetchBusiness(businessId: string, authToken: string): Promise<IApiResponse<IBusiness>>;
5
+ }
6
+ export declare class BusinessService implements IBusinessService {
7
+ fetchBusiness(businessId: string, authToken: string): Promise<IApiResponse<IBusiness>>;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { IApiResponse, ICheckout } from '..';
2
+ export interface ICheckoutService {
3
+ fetchCheckout(authToken: string, checkoutId: string): Promise<IApiResponse<ICheckout>>;
4
+ pay(authToken: string, checkoutId: string, tokenizedPaymentMethod: string): Promise<IApiResponse<ICheckout>>;
5
+ }
6
+ export declare class CheckoutService implements ICheckoutService {
7
+ fetchCheckout(authToken: string, checkoutId: string): Promise<IApiResponse<ICheckout>>;
8
+ pay(authToken: string, checkoutId: string, paymentMethodToken: string): Promise<IApiResponse<ICheckout>>;
9
+ }
@@ -0,0 +1,5 @@
1
+ import { IApiResponse } from '../Api';
2
+ import { GrossVolumeReport } from '../GrossVolume';
3
+ export declare class ReportsService {
4
+ fetchGrossVolumeChartData(accountId: string, authToken: string): Promise<IApiResponse<GrossVolumeReport>>;
5
+ }
@@ -28,6 +28,5 @@ export declare class BillingForm {
28
28
  * @returns {Promise<BillingFormFields>} The values of the form
29
29
  */
30
30
  getValues(): Promise<BillingFormFields>;
31
- legendBlock: any;
32
31
  render(): any;
33
32
  }
@@ -0,0 +1,16 @@
1
+ import { Business } from '../../api/Business';
2
+ declare enum RENDER_STATES {
3
+ LOADING = "loading",
4
+ READY = "ready",
5
+ ERROR = "error"
6
+ }
7
+ export declare class BusinessDetailsCore {
8
+ getBusiness: Function;
9
+ business: Business;
10
+ renderState: RENDER_STATES;
11
+ errorMessage: string;
12
+ componentWillLoad(): Promise<void>;
13
+ fetchData(): void;
14
+ render(): any;
15
+ }
16
+ export {};
@@ -1,9 +1,3 @@
1
- import { Business } from '../../api/Business';
2
- declare enum RENDER_STATES {
3
- LOADING = "loading",
4
- READY = "ready",
5
- ERROR = "error"
6
- }
7
1
  /**
8
2
  *
9
3
  * @exportedPart detail-section
@@ -15,13 +9,9 @@ declare enum RENDER_STATES {
15
9
  export declare class BusinessDetails {
16
10
  businessId: string;
17
11
  authToken: string;
18
- business: Business;
19
- renderState: RENDER_STATES;
20
12
  errorMessage: string;
21
- private api;
22
- constructor();
23
- componentWillLoad(): Promise<void>;
24
- fetchBusiness(businessId: any): Promise<void>;
13
+ getBusiness: Function;
14
+ componentWillLoad(): void;
15
+ private initializeGetBusiness;
25
16
  render(): any;
26
17
  }
27
- export {};
@@ -0,0 +1,8 @@
1
+ export declare const makeGetBusiness: ({ id, authToken, service }: {
2
+ id: any;
3
+ authToken: any;
4
+ service: any;
5
+ }) => ({ onSuccess, onError }: {
6
+ onSuccess: any;
7
+ onError: any;
8
+ }) => Promise<any>;
@@ -1,12 +1,4 @@
1
1
  import { Identity } from '../../../api/Business';
2
- /**
3
- *
4
- * @exportedPart detail-section
5
- * @exportedPart detail-section-title
6
- * @exportedPart detail-section-item-title
7
- * @exportedPart detail-section-item-data
8
- * @exportedPart detail-empty-state
9
- */
10
2
  export declare class OwnerDetails {
11
3
  owners: Identity[];
12
4
  render(): any;
@@ -0,0 +1,17 @@
1
+ export declare const makeGetCheckout: ({ authToken, checkoutId, service }: {
2
+ authToken: any;
3
+ checkoutId: any;
4
+ service: any;
5
+ }) => ({ onSuccess, onError }: {
6
+ onSuccess: any;
7
+ onError: any;
8
+ }) => Promise<any>;
9
+ export declare const makePay: ({ authToken, checkoutId, service }: {
10
+ authToken: any;
11
+ checkoutId: any;
12
+ service: any;
13
+ }) => ({ paymentMethodToken, onSuccess, onError }: {
14
+ paymentMethodToken: any;
15
+ onSuccess: any;
16
+ onError: any;
17
+ }) => Promise<any>;
@@ -0,0 +1,28 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { CreatePaymentMethodResponse } from '../payment-method-form/payment-method-responses';
3
+ export declare class CheckoutCore {
4
+ /**
5
+ * URL for the rendered iFrame. End-users need not use this.
6
+ */
7
+ iframeOrigin?: string;
8
+ authToken: string;
9
+ getCheckout: Function;
10
+ pay: Function;
11
+ checkoutId: string;
12
+ hasLoadedFonts: boolean;
13
+ isLoading: boolean;
14
+ checkout: any;
15
+ serverError: boolean;
16
+ errorMessage: string;
17
+ creatingNewPaymentMethod: boolean;
18
+ selectedPaymentMethodToken: string;
19
+ submitted: EventEmitter<CreatePaymentMethodResponse>;
20
+ private paymentMethodOptionsRef?;
21
+ componentWillLoad(): void;
22
+ connectedCallback(): void;
23
+ fetchData(): void;
24
+ loadFontsOnParent(): Promise<any>;
25
+ submit(event: any): Promise<void>;
26
+ private loadingSpinner;
27
+ render(): any;
28
+ }
@@ -0,0 +1,12 @@
1
+ export declare class Checkout {
2
+ iframeOrigin?: string;
3
+ authToken: string;
4
+ checkoutId: string;
5
+ getCheckout: Function;
6
+ pay: Function;
7
+ errorMessage: string;
8
+ componentWillLoad(): void;
9
+ private initializeGetCheckout;
10
+ propChanged(): void;
11
+ render(): any;
12
+ }
@@ -0,0 +1,17 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { PaymentMethodOption } from './payment-method-option-utils';
3
+ export declare class NewPaymentMethod {
4
+ iframeOrigin?: string;
5
+ clientId: string;
6
+ accountId: string;
7
+ paymentMethodOption: PaymentMethodOption;
8
+ isSelected: boolean;
9
+ paymentMethodOptionSelected: EventEmitter;
10
+ private billingFormRef?;
11
+ private paymentMethodFormRef?;
12
+ getPaymentMethodToken(): Promise<string>;
13
+ tokenize(): Promise<any>;
14
+ onPaymentMethodOptionClick: () => void;
15
+ showNewPaymentMethodForm(): any;
16
+ render(): any;
17
+ }
@@ -0,0 +1,16 @@
1
+ export declare class PaymentMethodOption {
2
+ id: string;
3
+ brand?: string;
4
+ acct_last_four?: string;
5
+ constructor(paymentMethod: any);
6
+ }
7
+ export declare enum CardBrandLabels {
8
+ 'american_express' = "American Express",
9
+ 'diners_club' = "Diners Club",
10
+ 'discover' = "Discover",
11
+ 'jcb' = "JCB",
12
+ 'mastercard' = "Mastercard",
13
+ 'china_unionpay' = "UnionPay",
14
+ 'visa' = "Visa",
15
+ 'unknown' = "Unknown"
16
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { PaymentMethodOption } from './payment-method-option-utils';
3
+ export declare class PaymentMethodOptions {
4
+ showCard: boolean;
5
+ showAch: boolean;
6
+ clientId: string;
7
+ accountId: string;
8
+ iframeOrigin?: string;
9
+ savedPaymentMethods: any[];
10
+ selectedPaymentMethodId: string;
11
+ paymentMethodOptions: PaymentMethodOption[];
12
+ toggleCreatingNewPaymentMethod: EventEmitter;
13
+ private selectedPaymentMethodOptionRef?;
14
+ paymentMethodsChanged(): void;
15
+ paymentMethodOptionSelected(event: CustomEvent<PaymentMethodOption>): void;
16
+ getPaymentMethodToken(): Promise<string>;
17
+ render(): any;
18
+ }
@@ -0,0 +1,11 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { PaymentMethodOption } from './payment-method-option-utils';
3
+ export declare class SavedPaymentMethod {
4
+ iframeOrigin?: string;
5
+ paymentMethodOption: PaymentMethodOption;
6
+ isSelected: boolean;
7
+ paymentMethodOptionSelected: EventEmitter;
8
+ getPaymentMethodToken(): Promise<string>;
9
+ onPaymentMethodOptionClick: () => void;
10
+ render(): any;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ export declare const mockCheckout: {
2
+ id: string;
3
+ type: string;
4
+ page_info: any;
5
+ data: {
6
+ payment_intent_id: string;
7
+ account_id: string;
8
+ platform_account_id: string;
9
+ payment_amount: string;
10
+ payment_client_id: string;
11
+ payment_description: string;
12
+ payment_methods: any[];
13
+ payment_method_group_id: any;
14
+ payment_settings: {
15
+ credit_card_payments: boolean;
16
+ ach_payments: boolean;
17
+ };
18
+ };
19
+ };
@@ -1,7 +1,7 @@
1
1
  import { FunctionalComponent } from '../../stencil-public-runtime';
2
2
  export declare const LoadingState: () => any;
3
3
  export declare const ErrorState: (errorMessage: string) => any;
4
- export declare const DetailSection: FunctionalComponent<{
4
+ export declare const DetailSectionTitle: FunctionalComponent<{
5
5
  sectionTitle: string;
6
6
  }>;
7
7
  export declare const DetailItem: ({ title, value, }: {
@@ -0,0 +1,11 @@
1
+ import { ReportsService } from '../../api/services/reports.service';
2
+ interface MakeGetGrossPaymentChartDataProps {
3
+ id: string;
4
+ authToken: string;
5
+ service: ReportsService;
6
+ }
7
+ export declare const makeGetGrossPaymentChartData: ({ id, authToken, service }: MakeGetGrossPaymentChartDataProps) => ({ onSuccess, onError }: {
8
+ onSuccess: any;
9
+ onError: any;
10
+ }) => Promise<void>;
11
+ export {};
@@ -0,0 +1,18 @@
1
+ import { Chart } from 'chart.js';
2
+ import { GrossVolumeReport } from '../../api/GrossVolume';
3
+ export declare class GrossPaymentChartCore {
4
+ chart: Chart;
5
+ chartRef: HTMLCanvasElement;
6
+ getGrossPayment: Function;
7
+ grossVolumeReport: GrossVolumeReport;
8
+ loading: boolean;
9
+ errorMessage: string;
10
+ componentDidLoad(): void;
11
+ propChanged(): void;
12
+ grossVolumeReportChanged(grossVolumeReport: GrossVolumeReport): void;
13
+ fetchData(): Promise<void>;
14
+ initChart(grossVolumeReport: GrossVolumeReport): void;
15
+ updateChartData(grossVolumeReport: GrossVolumeReport): void;
16
+ disconnectedCallback(): void;
17
+ render(): any;
18
+ }
@@ -1,20 +1,10 @@
1
- import { Chart } from 'chart.js';
2
- import { GrossVolumeReport, GrossVolumeReportDate } from '../../api/GrossVolume';
3
1
  export declare class GrossPaymentChart {
4
- chart: Chart;
5
- chartRef: HTMLCanvasElement;
6
2
  accountId: string;
7
3
  authToken: string;
8
- data: GrossVolumeReport;
9
- total: number;
10
- dates: GrossVolumeReportDate[];
11
- endDate: string;
12
- loading: boolean;
4
+ getGrossPayment: Function;
13
5
  errorMessage: string;
14
- updateOnPropChange(): void;
15
- connectedCallback(): void;
16
- componentDidRender(): void;
17
- fetchData(): Promise<void>;
18
- renderChart(): void;
6
+ componentWillLoad(): void;
7
+ propChanged(): void;
8
+ private initializeGetGrossPayment;
19
9
  render(): any;
20
10
  }
@@ -14,7 +14,6 @@ import { PaymentService } from '../../api/services/payment.service';
14
14
  * @exportedPart detail-metadata-title
15
15
  * @exportedPart detail-method-title
16
16
  * @exportedPart detail-method-data
17
- * @exportedPart detail-section
18
17
  * @exportedPart detail-section-title
19
18
  * @exportedPart detail-section-item-title
20
19
  * @exportedPart detail-section-item-data
@@ -7,7 +7,7 @@ interface PaymentMethodCreateResponseWrapper {
7
7
  };
8
8
  page_info: string;
9
9
  }
10
- interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
10
+ export interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
11
11
  data?: {
12
12
  signature: string;
13
13
  customer_id: string;
@@ -34,7 +34,7 @@ interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
34
34
  };
35
35
  };
36
36
  }
37
- interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
37
+ export interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
38
38
  data?: {
39
39
  signature: string;
40
40
  customer_id: string;
@@ -50,11 +50,5 @@ interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
50
50
  };
51
51
  };
52
52
  }
53
- interface PaymentMethodErrorResponse {
54
- error: {
55
- code: string;
56
- message: string;
57
- };
58
- }
59
- export type CreatePaymentMethodResponse = CardCreateResponse | BankAccountCreateResponse | PaymentMethodErrorResponse;
53
+ export type CreatePaymentMethodResponse = CardCreateResponse | BankAccountCreateResponse;
60
54
  export {};