@justifi/webcomponents 4.16.0 → 4.18.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 (445) hide show
  1. package/dist/cjs/{Analytics-423b2bb5.js → Analytics-d4aa8c07.js} +1 -1
  2. package/dist/cjs/{SubAccount-4f4fac22.js → SubAccount-135ff8c8.js} +1 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +13 -13
  4. package/dist/cjs/{business-additional-questions-schema-606d1292.js → business-additional-questions-schema-cf545610.js} +2 -2
  5. package/dist/cjs/business-details-core.cjs.entry.js +6 -9
  6. package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
  7. package/dist/cjs/form-control-checkbox_5.cjs.entry.js +10 -13
  8. package/dist/cjs/form-control-date.cjs.entry.js +43 -0
  9. package/dist/cjs/form-control-error-text_2.cjs.entry.js +36 -0
  10. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  11. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  12. package/dist/cjs/{form-control-date_3.cjs.entry.js → form-control-number-masked_2.cjs.entry.js} +3 -40
  13. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  14. package/dist/cjs/{form-control-error-text_4.cjs.entry.js → form-control-select_2.cjs.entry.js} +3 -33
  15. package/dist/cjs/get-payout-csv-e4e4771a.js +48 -0
  16. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  17. package/dist/cjs/{index-b4498996.js → index-fb499e95.js} +15 -3
  18. package/dist/cjs/{insurance-state-3f044af7.js → insurance-state-80e24caf.js} +1 -1
  19. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +9 -12
  20. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  21. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +16 -1680
  22. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
  23. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
  24. package/dist/cjs/justifi-business-list.cjs.entry.js +4 -7
  25. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-checkout-core.cjs.entry.js +21 -9
  27. package/dist/cjs/justifi-checkout.cjs.entry.js +12 -4
  28. package/dist/cjs/justifi-details.cjs.entry.js +4 -7
  29. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  30. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +73 -28
  31. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +4 -7
  32. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
  33. package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -8
  34. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1688 -0
  35. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -3
  36. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +7 -2
  37. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -8
  38. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
  39. package/dist/cjs/justifi-payout-details.cjs.entry.js +15 -10
  40. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -12
  41. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -7
  42. package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
  43. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +14 -9
  44. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -3
  45. package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
  46. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -9
  47. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -4
  48. package/dist/cjs/justifi-table_2.cjs.entry.js +8 -12
  49. package/dist/cjs/loader.cjs.js +2 -2
  50. package/dist/cjs/{package-b40227dd.js → package-5fee1ffb.js} +1 -1
  51. package/dist/cjs/{payload-parsers-6e4cf5d7.js → payload-parsers-1cbc3b57.js} +3 -1
  52. package/dist/cjs/payment-details-core.cjs.entry.js +11 -14
  53. package/dist/cjs/payments-list-core.cjs.entry.js +7 -7
  54. package/dist/cjs/payout-details-core.cjs.entry.js +19 -8
  55. package/dist/cjs/payouts-list-core.cjs.entry.js +29 -8
  56. package/dist/cjs/{schema-validations-9668fd79.js → schema-validations-2733de42.js} +3 -4
  57. package/dist/cjs/styled-host-b8bed12a.js +14 -0
  58. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +7 -23
  59. package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -7
  60. package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -7
  61. package/dist/cjs/{utils-17869710.js → utils-80191fbe.js} +6 -0
  62. package/dist/cjs/{utils-fd644316.js → utils-8c3bf659.js} +13 -4
  63. package/dist/cjs/{utils-0c3168ef.js → utils-c1d2e426.js} +1 -1
  64. package/dist/cjs/webcomponents.cjs.js +2 -2
  65. package/dist/collection/api/Checkout.js +0 -1
  66. package/dist/collection/api/services/payout.service.js +5 -0
  67. package/dist/collection/assets/download-icon.js +2 -0
  68. package/dist/collection/collection-manifest.json +1 -0
  69. package/dist/collection/components/billing-form/billing-form.css +2 -8162
  70. package/dist/collection/components/billing-form/billing-form.js +5 -4
  71. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -3
  72. package/dist/collection/components/business-details/business-details-core.js +5 -14
  73. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -3
  74. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +2 -3
  75. package/dist/collection/components/business-details/owner-details/owner-details.js +2 -3
  76. package/dist/collection/components/business-details/representative-details/representative-details.js +2 -3
  77. package/dist/collection/components/business-details/shared-business-details.css +3 -0
  78. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  79. package/dist/collection/components/business-forms/business-form/business-form.css +5 -8768
  80. package/dist/collection/components/business-forms/business-form/business-form.js +4 -3
  81. package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -5
  82. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  83. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
  84. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -4
  85. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +14 -2
  86. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +4 -9155
  87. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -12
  88. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +5 -763
  89. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -2
  90. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  91. package/dist/collection/components/business-forms/schemas/schema-helpers.js +0 -1
  92. package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -4
  93. package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
  94. package/dist/collection/components/business-list/business-list.js +3 -12
  95. package/dist/collection/components/checkout/checkout-core.css +3 -8147
  96. package/dist/collection/components/checkout/checkout-core.js +68 -8
  97. package/dist/collection/components/checkout/checkout.js +59 -1
  98. package/dist/collection/components/checkout/form-check-input.css +20 -0
  99. package/dist/collection/components/checkout/header.css +4 -0
  100. package/dist/collection/components/checkout/new-payment-method.js +95 -15
  101. package/dist/collection/components/checkout/payment-method-option-utils.js +2 -0
  102. package/dist/collection/components/checkout/payment-method-options.css +1 -7080
  103. package/dist/collection/components/checkout/payment-method-options.js +101 -17
  104. package/dist/collection/components/checkout/save-new-payment-method.js +38 -0
  105. package/dist/collection/components/checkout/saved-payment-method.js +12 -5
  106. package/dist/collection/components/checkout/sezzle-payment-method.js +12 -5
  107. package/dist/collection/components/details/details.js +3 -12
  108. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  109. package/dist/collection/components/form/form-control-date.js +1 -1
  110. package/dist/collection/components/form/form-control-file.js +1 -1
  111. package/dist/collection/components/form/form-control-monetary.js +1 -1
  112. package/dist/collection/components/form/form-control-number-masked.js +1 -1
  113. package/dist/collection/components/form/form-control-number.js +1 -1
  114. package/dist/collection/components/form/form-control-select.js +1 -1
  115. package/dist/collection/components/form/form-control-text.js +1 -1
  116. package/dist/collection/components/form/utils.js +12 -3
  117. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  118. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +1 -573
  119. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +6 -8183
  120. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +6 -7
  121. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -2
  122. package/dist/collection/components/pagination-menu/pagination-menu.js +3 -14
  123. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +3 -13
  124. package/dist/collection/components/payment-details/payment-details-core.js +9 -18
  125. package/dist/collection/components/payment-form/payment-form.css +3 -2513
  126. package/dist/collection/components/payment-form/payment-form.js +6 -5
  127. package/dist/collection/components/payment-form/payment-method-selector.css +5 -1881
  128. package/dist/collection/components/payment-form/payment-method-selector.js +2 -3
  129. package/dist/collection/components/payments-list/payments-list-core.js +6 -12
  130. package/dist/collection/components/payments-list/payments-list.js +3 -0
  131. package/dist/collection/components/payout-details/get-payout-csv.js +19 -0
  132. package/dist/collection/components/payout-details/payout-details-core.js +37 -12
  133. package/dist/collection/components/payout-details/payout-details.js +11 -4
  134. package/dist/collection/components/payouts-list/payouts-list-core.js +45 -14
  135. package/dist/collection/components/payouts-list/payouts-list.js +14 -6
  136. package/dist/collection/components/proceeds-list/proceeds-list.js +3 -12
  137. package/dist/collection/components/refund-form/refund-form.css +1 -7737
  138. package/dist/collection/components/refund-form/refund-form.js +4 -3
  139. package/dist/collection/components/skeleton/skeleton.css +1 -573
  140. package/dist/collection/components/skeleton/skeleton.js +2 -2
  141. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +1 -12
  142. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +1 -12
  143. package/dist/collection/components/subaccount-details/subaccount-details.js +3 -12
  144. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +1 -12
  145. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +1 -12
  146. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +1 -12
  147. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +1 -12
  148. package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
  149. package/dist/collection/components/table/table.css +0 -8085
  150. package/dist/collection/components/table/table.js +3 -4
  151. package/dist/collection/utils/styled-host/styled-host.js +6 -0
  152. package/dist/collection/utils/utils.js +5 -0
  153. package/dist/docs.json +546 -64
  154. package/dist/esm/{Analytics-17c33e9e.js → Analytics-29fac206.js} +1 -1
  155. package/dist/esm/{SubAccount-8bf9cb0c.js → SubAccount-7fcb1450.js} +1 -1
  156. package/dist/esm/additional-questions-details_5.entry.js +13 -13
  157. package/dist/esm/{business-additional-questions-schema-b00a73ba.js → business-additional-questions-schema-956e3caf.js} +2 -2
  158. package/dist/esm/business-details-core.entry.js +6 -9
  159. package/dist/esm/form-alert_5.entry.js +3 -3
  160. package/dist/esm/form-control-checkbox_5.entry.js +10 -13
  161. package/dist/esm/form-control-date.entry.js +39 -0
  162. package/dist/esm/form-control-error-text_2.entry.js +31 -0
  163. package/dist/esm/form-control-file.entry.js +2 -2
  164. package/dist/esm/form-control-monetary.entry.js +2 -2
  165. package/dist/esm/{form-control-date_3.entry.js → form-control-number-masked_2.entry.js} +4 -40
  166. package/dist/esm/form-control-number.entry.js +2 -2
  167. package/dist/esm/{form-control-error-text_4.entry.js → form-control-select_2.entry.js} +4 -32
  168. package/dist/esm/get-payout-csv-9b4aaada.js +45 -0
  169. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  170. package/dist/esm/{index-4bd1eae9.js → index-57431c24.js} +15 -3
  171. package/dist/esm/{insurance-state-09754ab9.js → insurance-state-8ce01e59.js} +1 -1
  172. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -13
  173. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  174. package/dist/esm/justifi-billing-form_2.entry.js +16 -1680
  175. package/dist/esm/justifi-business-details.entry.js +4 -4
  176. package/dist/esm/justifi-business-form.entry.js +9 -8
  177. package/dist/esm/justifi-business-list.entry.js +4 -7
  178. package/dist/esm/justifi-card-form.entry.js +3 -3
  179. package/dist/esm/justifi-checkout-core.entry.js +21 -9
  180. package/dist/esm/justifi-checkout.entry.js +12 -4
  181. package/dist/esm/justifi-details.entry.js +4 -7
  182. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  183. package/dist/esm/justifi-new-payment-method_4.entry.js +73 -28
  184. package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -7
  185. package/dist/esm/justifi-payment-details.entry.js +4 -4
  186. package/dist/esm/justifi-payment-form.entry.js +9 -8
  187. package/dist/esm/justifi-payment-method-form.entry.js +1684 -0
  188. package/dist/esm/justifi-payment-method-selector.entry.js +3 -3
  189. package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -2
  190. package/dist/esm/justifi-payment-provisioning.entry.js +4 -8
  191. package/dist/esm/justifi-payments-list.entry.js +4 -4
  192. package/dist/esm/justifi-payout-details.entry.js +14 -9
  193. package/dist/esm/justifi-payouts-list.entry.js +14 -11
  194. package/dist/esm/justifi-proceeds-list.entry.js +4 -7
  195. package/dist/esm/justifi-refund-form.entry.js +4 -3
  196. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +14 -9
  197. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -3
  198. package/dist/esm/justifi-skeleton.entry.js +3 -3
  199. package/dist/esm/justifi-subaccount-details.entry.js +6 -9
  200. package/dist/esm/justifi-subaccounts-list.entry.js +4 -4
  201. package/dist/esm/justifi-table_2.entry.js +8 -12
  202. package/dist/esm/loader.js +3 -3
  203. package/dist/esm/{package-02a6e473.js → package-1123f528.js} +1 -1
  204. package/dist/esm/{payload-parsers-a9e8f8cc.js → payload-parsers-acb719d1.js} +3 -1
  205. package/dist/esm/payment-details-core.entry.js +11 -14
  206. package/dist/esm/payments-list-core.entry.js +7 -7
  207. package/dist/esm/payout-details-core.entry.js +19 -8
  208. package/dist/esm/payouts-list-core.entry.js +29 -8
  209. package/dist/esm/{schema-validations-770bdf3e.js → schema-validations-a83ff220.js} +3 -4
  210. package/dist/esm/styled-host-57aae7fa.js +12 -0
  211. package/dist/esm/subaccount-account-details_4.entry.js +7 -23
  212. package/dist/esm/subaccount-bank-details.entry.js +3 -7
  213. package/dist/esm/subaccount-terms-details.entry.js +3 -7
  214. package/dist/esm/{utils-1e583166.js → utils-56719d07.js} +1 -1
  215. package/dist/esm/{utils-61a21dea.js → utils-5f4c4faa.js} +6 -1
  216. package/dist/esm/{utils-8de964da.js → utils-f4c4ba7d.js} +13 -4
  217. package/dist/esm/webcomponents.js +3 -3
  218. package/dist/module/SubAccount.js +1 -1
  219. package/dist/module/additional-questions-details2.js +3 -4
  220. package/dist/module/additional-questions.js +1 -1
  221. package/dist/module/billing-form.js +5 -4
  222. package/dist/module/business-additional-questions-form-step.js +1 -1
  223. package/dist/module/business-core-info-form-step.js +3 -2
  224. package/dist/module/business-core-info-schema.js +1 -1
  225. package/dist/module/business-details-core2.js +5 -8
  226. package/dist/module/business-representative-form-step.js +1 -4
  227. package/dist/module/business-terms-conditions-text.js +2 -2
  228. package/dist/module/checkout-core.js +44 -24
  229. package/dist/module/details.js +3 -6
  230. package/dist/module/form-control-checkbox2.js +1 -1
  231. package/dist/module/form-control-date2.js +1 -1
  232. package/dist/module/form-control-file2.js +1 -1
  233. package/dist/module/form-control-monetary2.js +1 -1
  234. package/dist/module/form-control-number-masked2.js +1 -1
  235. package/dist/module/form-control-number.js +1 -1
  236. package/dist/module/form-control-select2.js +1 -1
  237. package/dist/module/form-control-text2.js +1 -1
  238. package/dist/module/generic-info-details2.js +3 -4
  239. package/dist/module/get-payout-csv.js +45 -0
  240. package/dist/module/gross-payment-chart-core2.js +2 -2
  241. package/dist/module/justifi-business-form.js +4 -3
  242. package/dist/module/justifi-business-list.js +3 -6
  243. package/dist/module/justifi-checkout.js +35 -20
  244. package/dist/module/justifi-payment-balance-transactions.js +5 -9
  245. package/dist/module/justifi-payment-form.js +6 -5
  246. package/dist/module/justifi-payment-provisioning.js +2 -7
  247. package/dist/module/justifi-payments-list.js +19 -1
  248. package/dist/module/justifi-payout-details.js +11 -5
  249. package/dist/module/justifi-payouts-list.js +30 -8
  250. package/dist/module/justifi-proceeds-list.js +3 -6
  251. package/dist/module/justifi-refund-form.js +4 -3
  252. package/dist/module/justifi-save-new-payment-method.d.ts +11 -0
  253. package/dist/module/justifi-save-new-payment-method.js +6 -0
  254. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  255. package/dist/module/justifi-subaccount-details.js +4 -7
  256. package/dist/module/justifi-subaccounts-list.js +2 -2
  257. package/dist/module/legal-address-details2.js +3 -4
  258. package/dist/module/new-payment-method.js +52 -24
  259. package/dist/module/owner-details2.js +3 -4
  260. package/dist/module/owner-form.js +2 -5
  261. package/dist/module/package.js +1 -1
  262. package/dist/module/pagination-menu2.js +4 -9
  263. package/dist/module/payload-parsers.js +2 -0
  264. package/dist/module/payment-details-core2.js +10 -13
  265. package/dist/module/payment-method-options.js +56 -28
  266. package/dist/module/payment-method-selector.js +3 -4
  267. package/dist/module/payment-provisioning-core.js +9 -3
  268. package/dist/module/payments-list-core2.js +26 -8
  269. package/dist/module/payout-details-core2.js +19 -7
  270. package/dist/module/payouts-list-core2.js +49 -9
  271. package/dist/module/representative-details2.js +3 -4
  272. package/dist/module/save-new-payment-method.js +36 -0
  273. package/dist/module/saved-payment-method.js +7 -2
  274. package/dist/module/schema-validations.js +3 -4
  275. package/dist/module/season-interruption-insurance-core.js +12 -7
  276. package/dist/module/sezzle-payment-method.js +5 -2
  277. package/dist/module/skeleton.js +2 -2
  278. package/dist/module/styled-host.js +12 -0
  279. package/dist/module/subaccount-account-details2.js +2 -7
  280. package/dist/module/subaccount-bank-details.js +2 -7
  281. package/dist/module/subaccount-merchant-details2.js +3 -8
  282. package/dist/module/subaccount-owners-details2.js +2 -7
  283. package/dist/module/subaccount-representative-details2.js +2 -7
  284. package/dist/module/subaccount-terms-details.js +2 -7
  285. package/dist/module/table.js +4 -5
  286. package/dist/module/utils2.js +6 -1
  287. package/dist/module/utils3.js +12 -3
  288. package/dist/types/api/Checkout.d.ts +6 -0
  289. package/dist/types/api/services/payout.service.d.ts +2 -0
  290. package/dist/types/assets/download-icon.d.ts +1 -0
  291. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -1
  292. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -1
  293. package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +0 -1
  294. package/dist/types/components/checkout/checkout-core.d.ts +5 -1
  295. package/dist/types/components/checkout/checkout.d.ts +5 -0
  296. package/dist/types/components/checkout/new-payment-method.d.ts +8 -2
  297. package/dist/types/components/checkout/payment-method-option-utils.d.ts +1 -0
  298. package/dist/types/components/checkout/payment-method-options.d.ts +6 -2
  299. package/dist/types/components/checkout/payment-method-payload.d.ts +1 -0
  300. package/dist/types/components/checkout/save-new-payment-method.d.ts +7 -0
  301. package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
  302. package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
  303. package/dist/types/components/form/utils.d.ts +1 -1
  304. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +6 -4
  305. package/dist/types/components/payments-list/payments-list-core.d.ts +1 -0
  306. package/dist/types/components/payments-list/payments-list.d.ts +3 -0
  307. package/dist/types/components/payout-details/get-payout-csv.d.ts +7 -0
  308. package/dist/types/components/payout-details/payout-details-core.d.ts +2 -0
  309. package/dist/types/components/payout-details/payout-details.d.ts +2 -1
  310. package/dist/types/components/payouts-list/payouts-list-core.d.ts +3 -0
  311. package/dist/types/components/payouts-list/payouts-list.d.ts +5 -1
  312. package/dist/types/components.d.ts +83 -12
  313. package/dist/types/utils/styled-host/styled-host.d.ts +3 -0
  314. package/dist/types/utils/utils.d.ts +1 -0
  315. package/dist/webcomponents/{p-851e57f4.js → p-092e080c.js} +1 -1
  316. package/dist/webcomponents/p-09affce4.entry.js +1 -0
  317. package/dist/webcomponents/p-0a4a9ccd.entry.js +1 -0
  318. package/dist/webcomponents/{p-7c28a80d.entry.js → p-0dca0770.entry.js} +1 -1
  319. package/dist/webcomponents/p-0e4a54c8.entry.js +1 -0
  320. package/dist/webcomponents/p-0ed3c1d2.entry.js +1 -0
  321. package/dist/webcomponents/p-10b57ac6.entry.js +1 -0
  322. package/dist/webcomponents/p-1737f6bf.entry.js +1 -0
  323. package/dist/webcomponents/{p-ebce7b2f.entry.js → p-2244e679.entry.js} +1 -1
  324. package/dist/webcomponents/p-2306d44d.entry.js +1 -0
  325. package/dist/webcomponents/{p-f7b6dcc4.js → p-2338affa.js} +1 -1
  326. package/dist/webcomponents/p-2af3672b.entry.js +1 -0
  327. package/dist/webcomponents/p-3294856b.entry.js +1 -0
  328. package/dist/webcomponents/p-3514b616.entry.js +1 -0
  329. package/dist/webcomponents/p-390157c9.entry.js +1 -0
  330. package/dist/webcomponents/p-3fd13ca3.js +1 -0
  331. package/dist/webcomponents/p-412c7a22.entry.js +1 -0
  332. package/dist/webcomponents/p-464e4dfe.entry.js +1 -0
  333. package/dist/webcomponents/p-49b8e112.js +1 -0
  334. package/dist/webcomponents/{p-808c8988.entry.js → p-4b9587ec.entry.js} +1 -1
  335. package/dist/webcomponents/p-531d873a.entry.js +1 -0
  336. package/dist/webcomponents/p-54287db6.entry.js +1 -0
  337. package/dist/webcomponents/p-547a2cd0.entry.js +1 -0
  338. package/dist/webcomponents/p-571d7f1a.entry.js +1 -0
  339. package/dist/webcomponents/p-5963bcdc.entry.js +1 -0
  340. package/dist/webcomponents/p-5b1451e7.entry.js +1 -0
  341. package/dist/webcomponents/p-66758365.entry.js +1 -0
  342. package/dist/webcomponents/{p-3394ff6c.js → p-667a5aa8.js} +1 -1
  343. package/dist/webcomponents/p-67e497aa.entry.js +1 -0
  344. package/dist/webcomponents/p-68fd8283.js +1 -0
  345. package/dist/webcomponents/p-6bcf621a.entry.js +1 -0
  346. package/dist/webcomponents/p-6bd5d569.entry.js +1 -0
  347. package/dist/webcomponents/p-76180bb4.entry.js +1 -0
  348. package/dist/webcomponents/p-77dc159c.entry.js +1 -0
  349. package/dist/webcomponents/{p-3a7e0753.entry.js → p-7a346c0b.entry.js} +1 -1
  350. package/dist/webcomponents/p-7d6aba64.entry.js +1 -0
  351. package/dist/webcomponents/p-81d3eda6.entry.js +1 -0
  352. package/dist/webcomponents/p-85fc69e5.js +1 -0
  353. package/dist/webcomponents/p-87932e16.js +1 -0
  354. package/dist/webcomponents/p-88c7ef46.entry.js +1 -0
  355. package/dist/webcomponents/p-89887332.js +1 -0
  356. package/dist/webcomponents/p-8cc7a418.entry.js +1 -0
  357. package/dist/webcomponents/p-8dd22c8d.entry.js +1 -0
  358. package/dist/webcomponents/p-959b478a.entry.js +19 -0
  359. package/dist/webcomponents/{p-3f06ce2f.entry.js → p-9631b768.entry.js} +1 -1
  360. package/dist/webcomponents/p-9e7c3231.entry.js +1 -0
  361. package/dist/webcomponents/{p-9601cf9d.entry.js → p-bb32b91c.entry.js} +1 -1
  362. package/dist/webcomponents/p-bbc18b9f.entry.js +1 -0
  363. package/dist/webcomponents/{p-4b4fc43d.js → p-c4264aaf.js} +1 -1
  364. package/dist/webcomponents/p-cb9ee476.entry.js +1 -0
  365. package/dist/webcomponents/p-d083a342.entry.js +1 -0
  366. package/dist/webcomponents/{p-288c95b3.entry.js → p-d5612f35.entry.js} +1 -1
  367. package/dist/webcomponents/p-debeefbb.entry.js +1 -0
  368. package/dist/webcomponents/{p-e3a31451.entry.js → p-df38dd21.entry.js} +1 -1
  369. package/dist/webcomponents/p-e0bcfdb5.entry.js +1 -0
  370. package/dist/webcomponents/{p-cb68e8fa.js → p-e1651130.js} +1 -1
  371. package/dist/webcomponents/p-e46929a1.entry.js +1 -0
  372. package/dist/webcomponents/{p-fee616cf.entry.js → p-e85ef4af.entry.js} +1 -1
  373. package/dist/webcomponents/{p-fb53112b.js → p-e8c651b8.js} +1 -1
  374. package/dist/webcomponents/p-ea7c77a3.entry.js +1 -0
  375. package/dist/webcomponents/{p-2451611d.entry.js → p-f3555f0b.entry.js} +1 -1
  376. package/dist/webcomponents/p-fad19d75.js +2 -0
  377. package/dist/webcomponents/webcomponents.css +1 -1
  378. package/dist/webcomponents/webcomponents.esm.js +1 -1
  379. package/package.json +1 -1
  380. package/dist/cjs/payout.service-eec372aa.js +0 -22
  381. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +0 -7348
  382. package/dist/collection/components/business-details/business-details.css +0 -6446
  383. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +0 -7348
  384. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +0 -7348
  385. package/dist/collection/components/business-details/owner-details/owner-details.css +0 -7348
  386. package/dist/collection/components/business-details/representative-details/representative-details.css +0 -7348
  387. package/dist/collection/components/business-list/business-list.css +0 -579
  388. package/dist/collection/components/details/details.css +0 -7993
  389. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
  390. package/dist/collection/components/payment-details/payment-details.css +0 -7993
  391. package/dist/collection/components/payments-list/payments-list.css +0 -579
  392. package/dist/collection/components/payout-details/payout-details.css +0 -7993
  393. package/dist/collection/components/payouts-list/payouts-list.css +0 -579
  394. package/dist/collection/components/proceeds-list/proceeds-list.css +0 -579
  395. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +0 -7352
  396. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +0 -7352
  397. package/dist/collection/components/subaccount-details/subaccount-details.css +0 -7993
  398. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +0 -7352
  399. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +0 -7352
  400. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +0 -7352
  401. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +0 -7352
  402. package/dist/esm/payout.service-28b9594f.js +0 -20
  403. package/dist/module/payout.service.js +0 -20
  404. package/dist/webcomponents/p-023fe908.entry.js +0 -1
  405. package/dist/webcomponents/p-038fb958.entry.js +0 -1
  406. package/dist/webcomponents/p-06baf263.entry.js +0 -1
  407. package/dist/webcomponents/p-0f10316f.entry.js +0 -1
  408. package/dist/webcomponents/p-144e4bda.js +0 -1
  409. package/dist/webcomponents/p-1e53021d.entry.js +0 -1
  410. package/dist/webcomponents/p-1feebf9c.entry.js +0 -1
  411. package/dist/webcomponents/p-26779944.entry.js +0 -1
  412. package/dist/webcomponents/p-306aea52.entry.js +0 -1
  413. package/dist/webcomponents/p-31031d15.entry.js +0 -1
  414. package/dist/webcomponents/p-4791c1f2.entry.js +0 -1
  415. package/dist/webcomponents/p-4b260a52.entry.js +0 -1
  416. package/dist/webcomponents/p-56275f64.entry.js +0 -1
  417. package/dist/webcomponents/p-64d1aeb8.entry.js +0 -1
  418. package/dist/webcomponents/p-65969627.entry.js +0 -19
  419. package/dist/webcomponents/p-68f3a7b0.entry.js +0 -1
  420. package/dist/webcomponents/p-6b05f357.entry.js +0 -1
  421. package/dist/webcomponents/p-6ce586e0.entry.js +0 -1
  422. package/dist/webcomponents/p-71800e4c.js +0 -1
  423. package/dist/webcomponents/p-7ae2d26f.entry.js +0 -1
  424. package/dist/webcomponents/p-88d68804.entry.js +0 -1
  425. package/dist/webcomponents/p-8a6049ed.js +0 -1
  426. package/dist/webcomponents/p-8e8f5033.entry.js +0 -1
  427. package/dist/webcomponents/p-9228912b.entry.js +0 -1
  428. package/dist/webcomponents/p-923c37a2.entry.js +0 -1
  429. package/dist/webcomponents/p-9b1e7f5e.entry.js +0 -1
  430. package/dist/webcomponents/p-9c00adf1.entry.js +0 -1
  431. package/dist/webcomponents/p-9e5d765c.js +0 -1
  432. package/dist/webcomponents/p-a33c3e1c.entry.js +0 -1
  433. package/dist/webcomponents/p-a63a6fb9.js +0 -2
  434. package/dist/webcomponents/p-b01c0120.entry.js +0 -1
  435. package/dist/webcomponents/p-b94bf537.entry.js +0 -1
  436. package/dist/webcomponents/p-bacd9d6e.entry.js +0 -1
  437. package/dist/webcomponents/p-c85fb952.entry.js +0 -1
  438. package/dist/webcomponents/p-ca39c89f.js +0 -1
  439. package/dist/webcomponents/p-d42e284d.entry.js +0 -1
  440. package/dist/webcomponents/p-e673e681.entry.js +0 -1
  441. package/dist/webcomponents/p-eefe2f29.entry.js +0 -1
  442. package/dist/webcomponents/p-f14db665.entry.js +0 -1
  443. package/dist/webcomponents/p-f18e63c3.entry.js +0 -1
  444. package/dist/webcomponents/p-f3ae3cb6.entry.js +0 -1
  445. package/dist/webcomponents/p-fa9773c0.entry.js +0 -1
@@ -13,13 +13,12 @@ export class PaymentMethodSelector {
13
13
  this.paymentMethodSelected.emit(event.target.value);
14
14
  }
15
15
  render() {
16
- return (h("div", { key: '2e7b9d75ee4823f1aead28b7a0ca4a2861ca0646', class: "btn-group jfi-btn-radio-group", role: "group", "aria-label": "Radio toggle group for payment method" }, this.paymentMethodTypes.map((paymentMethodType) => (h(Fragment, null, h("input", { id: paymentMethodType, type: "radio", name: "paymentMethodType", value: paymentMethodType, onChange: (event) => this.onChangeHandler(event), checked: this.selectedPaymentMethodType === paymentMethodType, class: "btn-check jfi-btn-radio" }), h("label", { htmlFor: paymentMethodType, class: "btn btn-outline-primary jfi-btn-radio-label" }, PaymentMethodLabels[paymentMethodType]))))));
16
+ return (h("div", { key: '1076a0e9d658245823ace79acde858bdaec85e65', class: "btn-group jfi-btn-radio-group", role: "group", "aria-label": "Radio toggle group for payment method" }, this.paymentMethodTypes.map((paymentMethodType) => (h(Fragment, null, h("input", { id: paymentMethodType, type: "radio", name: "paymentMethodType", value: paymentMethodType, onChange: (event) => this.onChangeHandler(event), checked: this.selectedPaymentMethodType === paymentMethodType, class: "btn-check jfi-btn-radio" }), h("label", { htmlFor: paymentMethodType, class: "btn btn-outline-primary jfi-btn-radio-label" }, PaymentMethodLabels[paymentMethodType]))))));
17
17
  }
18
18
  static get is() { return "justifi-payment-method-selector"; }
19
- static get encapsulation() { return "shadow"; }
20
19
  static get originalStyleUrls() {
21
20
  return {
22
- "$": ["payment-method-selector.scss"]
21
+ "$": ["payment-method-selector.css"]
23
22
  };
24
23
  }
25
24
  static get styleUrls() {
@@ -1,6 +1,7 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { pagingDefaults } from "../../api";
3
3
  import { MapPaymentStatusToBadge, formatCurrency, formatDate, formatTime } from "../../utils/utils";
4
+ import StyledHost from "../../utils/styled-host/styled-host";
4
5
  export class PaymentsListCore {
5
6
  constructor() {
6
7
  this.handleClickPrevious = (beforeCursor) => {
@@ -13,6 +14,9 @@ export class PaymentsListCore {
13
14
  delete newParams.before_cursor;
14
15
  this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
15
16
  };
17
+ this.handleDateChange = (name, value) => {
18
+ this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
19
+ };
16
20
  this.getPayments = undefined;
17
21
  this.payments = [];
18
22
  this.loading = true;
@@ -50,7 +54,7 @@ export class PaymentsListCore {
50
54
  }
51
55
  ;
52
56
  render() {
53
- return (h(Host, { key: 'df03cbe50691cb0059217171b0b1a1920d3c95a3' }, h("justifi-table", { key: 'bda00f35a632e0bdc53e049d5af65fba44236693', rowClickHandler: e => {
57
+ return (h(StyledHost, { key: '84fde18eaf36e21f2b9107bc0527d3ca48d0bf49' }, h("div", { key: '57a7084b5b9fa143209131534119407ed22a6df9', class: "row gy-3 mb-4" }, h("div", { key: 'af0f206b7b2d330614e3c70dc32425a66637b47e', class: "col-2" }, h("form-control-date", { key: '277748b548069199308c2263dffb57bf5327cc1f', name: "created_after", label: "Start Date", inputHandler: this.handleDateChange })), h("div", { key: '8ec2b609f01fe8ab57572cfcefc2842e191579bc', class: "col-2" }, h("form-control-date", { key: 'b646dab8c653b31b2810083335f3e581e86e0344', name: "created_before", label: "End Date", inputHandler: this.handleDateChange }))), h("justifi-table", { key: '1f79a0d94391cdf9a86af65aeeccd9bf7d832af3', rowClickHandler: e => {
54
58
  const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
55
59
  if (!clickedPaymentID) {
56
60
  return;
@@ -84,16 +88,6 @@ export class PaymentsListCore {
84
88
  ])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
85
89
  }
86
90
  static get is() { return "payments-list-core"; }
87
- static get originalStyleUrls() {
88
- return {
89
- "$": ["payments-list.scss"]
90
- };
91
- }
92
- static get styleUrls() {
93
- return {
94
- "$": ["payments-list.css"]
95
- };
96
- }
97
91
  static get properties() {
98
92
  return {
99
93
  "getPayments": {
@@ -5,6 +5,9 @@ import { ErrorState } from "../details/utils";
5
5
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
6
6
  import JustifiAnalytics from "../../api/Analytics";
7
7
  /**
8
+ * @exportedPart label: Label for inputs
9
+ * @exportedPart input: The input fields
10
+ * @exportedPart input-invalid: Invalid state for inputs
8
11
  * @exportedPart table-head: Table head
9
12
  * @exportedPart table-head-row: Head row
10
13
  * @exportedPart table-head-cell: Individual head cell
@@ -0,0 +1,19 @@
1
+ import { ComponentErrorSeverity } from "../../api/ComponentError";
2
+ import { getErrorCode, getErrorMessage } from "../../api/services/utils";
3
+ export const makeGetPayoutCSV = ({ authToken, service }) => async ({ payoutId, onError }) => {
4
+ try {
5
+ const { data } = await service.fetchCSV(payoutId, authToken);
6
+ const a = document.createElement('a');
7
+ a.href = data.csv_url;
8
+ a.click();
9
+ }
10
+ catch (error) {
11
+ const errorMessage = getErrorMessage(error);
12
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
13
+ onError({
14
+ error: errorMessage,
15
+ code,
16
+ severity: ComponentErrorSeverity.ERROR,
17
+ });
18
+ }
19
+ };
@@ -1,9 +1,24 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { MapPayoutStatusToBadge, formatCurrency, formatDate, formatTime } from "../../utils/utils";
3
3
  import { CodeBlock, DetailItem, DetailSectionTitle, EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from "../details/utils";
4
+ import StyledHost from "../../utils/styled-host/styled-host";
4
5
  export class PayoutDetailsCore {
5
6
  constructor() {
7
+ this.downloadCSV = () => {
8
+ this.getPayoutCSV({
9
+ payoutId: this.payout.id,
10
+ onError: ({ error, code, severity }) => {
11
+ this.errorMessage = error;
12
+ this.errorEvent.emit({
13
+ message: error,
14
+ errorCode: code,
15
+ severity,
16
+ });
17
+ },
18
+ });
19
+ };
6
20
  this.getPayout = undefined;
21
+ this.getPayoutCSV = undefined;
7
22
  this.payout = undefined;
8
23
  this.loading = true;
9
24
  this.errorMessage = null;
@@ -37,19 +52,9 @@ export class PayoutDetailsCore {
37
52
  }
38
53
  render() {
39
54
  var _a;
40
- return (h(Host, { key: '2f9a8760ad7629e894cea1bd6e595df184123587' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'fb409148e4fd6856cd643da159ce5ee8cdf53b6c', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '44f2600c2914b962b202c160d6a6e687aab240c3', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: 'c46150dd232d4d817f037d9f4a0a3932733c56c6', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '660a71491d69aa29367ca68af6609ea9109fcfec', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: 'b30cc79498c03b0d3e8d2178067534ed19681908', title: "ID", value: this.payout.id })), h("div", { key: '7aea03e4206ef6c578055d289b1674a3e4cabb6c', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '8d4a7dcc120999cbe0f55caf00c16e54e8eb7a6a', sectionTitle: "Details" }), h("div", { key: '8a4ae9df85e3974692b49efc5184675e3989d516', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '2c06519ee2600ade45d719f3b5c93032e702dcd9', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: '89096d355e5b21eb47444eadfc9dbc50730e0c74', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: 'e06ffbc17132d9efe624e9aa295e2cf070a3771e', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'c30dffd25c18a6d7e25828c51202d7695f6681e0', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: '635dc85d93419c1a61e0460f09dfc26927110623', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'c7a438841e8caef51e8fe9f9a291b082f281722c', sectionTitle: "Account" }), h("div", { key: '179ed86bab9a564d8f174cf1561605278e93c4e6', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '30cd1ecfcbd1d8c1f535bc2270b1f2526bd60c16', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '59b1885d0b19706808ff0c8de16f77724b0f2df9', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '651f8a31fc61c97614be47ce49da000235775a80', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '72fcca239bde20d0caf044b1e1c73eb1c1372b32', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '438a724f5fddcde519b0c0d8c68a119809be1b50', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: '4628fb72059df52662ce7d3b260eafd02310a7a7', sectionTitle: 'Metadata' }), h("div", { key: 'bc538a18cec8021317d243542abd3e964baf312d', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'add1f93295b045d6f00e617ccbf34ae05b49f50a', metadata: this.payout.metadata })))))));
55
+ return (h(StyledHost, { key: 'da7690d5e4b21e8cb32651080ef2c8df29440c1b' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '4d9a7636e345bc5dd88b910add3a340e22589c52', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '91d6eb90ec40052d858f4736a9c60d9c9a96d40d', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: 'be9f9b43c294b76326f1ce63af79217b8abf5b0d', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '2c8fb8d4a4b8f1517028acc410bdb4adbafe67a4', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '4ca663f7bbfa9bdf8fa01fe0b40fc5f6dc65dfbb', title: "ID", value: this.payout.id }), h("div", { key: '44b484491b5ec470270b469de15076d6d55e61d0', class: "m-4" }, h("button", { key: 'ca8b6cb61b56caebbec1eeb01e6de638865219bd', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '2f959d7c549dc1f8e4df2e8d12ab9988255aba03', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '741717a3e056163ee88452998f2d6e5b7dc0ccc1', sectionTitle: "Details" }), h("div", { key: 'd456b3a372525a0eff6c724e507ff325951fa430', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'a27cf5fbc2851f74bb4813d0bd49718dfe2f7d8d', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: '90f49509ff399a9c164a7aeaf7307077b59e8559', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '52ef8b50065db1a111b003e9ceadfa1cc4076b74', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'ee73a34d15af0cc677fc6d903706df3f10249bdf', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: '229827b98fd76bd1dec1beeac0d99517d09dc677', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: '1f4bb886e4a07b5054107aa00c2b98644e87859b', sectionTitle: "Account" }), h("div", { key: '78181a7ae216bf3b0013eee0494b4b149a2ec9c3', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '273cabd55194c104d1d421db53030601f5efa83c', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '1751e4b9d5453bc41fd3b29cf7e5d3955e375bb7', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '1d5489f81d96025bdf7d7391623ddcc1ff3a7978', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'f17d8096799b7eeba7c550ad828f2ffa97b65f56', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'cf3c83de7f119738940951a9481253ed855c768e', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: '458186b5bd7fb0aa954c283dee08e5090b164b27', sectionTitle: 'Metadata' }), h("div", { key: '90866a28028af6c7e46ab89c221016cd698299f2', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'ed25523342b6a751e48d2d7c11cef7e541b6ed3b', metadata: this.payout.metadata })))))));
41
56
  }
42
57
  static get is() { return "payout-details-core"; }
43
- static get originalStyleUrls() {
44
- return {
45
- "$": ["payout-details.scss"]
46
- };
47
- }
48
- static get styleUrls() {
49
- return {
50
- "$": ["payout-details.css"]
51
- };
52
- }
53
58
  static get properties() {
54
59
  return {
55
60
  "getPayout": {
@@ -71,6 +76,26 @@ export class PayoutDetailsCore {
71
76
  "tags": [],
72
77
  "text": ""
73
78
  }
79
+ },
80
+ "getPayoutCSV": {
81
+ "type": "unknown",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "Function",
85
+ "resolved": "Function",
86
+ "references": {
87
+ "Function": {
88
+ "location": "global",
89
+ "id": "global::Function"
90
+ }
91
+ }
92
+ },
93
+ "required": false,
94
+ "optional": false,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": ""
98
+ }
74
99
  }
75
100
  };
76
101
  }
@@ -4,6 +4,7 @@ import { makeGetPayoutDetails } from "./get-payout-details";
4
4
  import { ErrorState } from "../details/utils";
5
5
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
6
6
  import JustifiAnalytics from "../../api/Analytics";
7
+ import { makeGetPayoutCSV } from "./get-payout-csv";
7
8
  export class PayoutDetails {
8
9
  constructor() {
9
10
  this.handleErrorEvent = (event) => {
@@ -13,25 +14,30 @@ export class PayoutDetails {
13
14
  this.payoutId = undefined;
14
15
  this.authToken = undefined;
15
16
  this.getPayout = undefined;
17
+ this.getPayoutCSV = undefined;
16
18
  this.errorMessage = null;
17
19
  }
18
20
  componentWillLoad() {
19
21
  this.analytics = new JustifiAnalytics(this);
20
- this.initializeGetPayout();
22
+ this.initializeServices();
21
23
  }
22
24
  disconnectedCallback() {
23
25
  this.analytics.cleanup();
24
26
  }
25
27
  propChanged() {
26
- this.initializeGetPayout();
28
+ this.initializeServices();
27
29
  }
28
- initializeGetPayout() {
30
+ initializeServices() {
29
31
  if (this.payoutId && this.authToken) {
30
32
  this.getPayout = makeGetPayoutDetails({
31
33
  id: this.payoutId,
32
34
  authToken: this.authToken,
33
35
  service: new PayoutService()
34
36
  });
37
+ this.getPayoutCSV = makeGetPayoutCSV({
38
+ authToken: this.authToken,
39
+ service: new PayoutService()
40
+ });
35
41
  }
36
42
  else {
37
43
  this.errorMessage = 'Failed to load payout details. payoutId or authToken is not provided.';
@@ -46,7 +52,7 @@ export class PayoutDetails {
46
52
  if (this.errorMessage) {
47
53
  return ErrorState(this.errorMessage);
48
54
  }
49
- return (h("payout-details-core", { getPayout: this.getPayout, "onError-event": this.handleErrorEvent }));
55
+ return (h("payout-details-core", { getPayout: this.getPayout, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleErrorEvent }));
50
56
  }
51
57
  static get is() { return "justifi-payout-details"; }
52
58
  static get encapsulation() { return "shadow"; }
@@ -91,6 +97,7 @@ export class PayoutDetails {
91
97
  static get states() {
92
98
  return {
93
99
  "getPayout": {},
100
+ "getPayoutCSV": {},
94
101
  "errorMessage": {}
95
102
  };
96
103
  }
@@ -1,7 +1,10 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { PayoutStatuses, PayoutStatusesSafeNames, pagingDefaults } from "../../api";
3
3
  import { formatCurrency, formatDate, formatTime } from "../../utils/utils";
4
4
  import { tableExportedParts } from "../table/exported-parts";
5
+ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
6
+ import StyledHost from "../../utils/styled-host/styled-host";
7
+ import { DownloadIcon } from "../../assets/download-icon";
5
8
  export class PayoutsListCore {
6
9
  constructor() {
7
10
  this.mapStatusToBadge = (status) => {
@@ -30,7 +33,23 @@ export class PayoutsListCore {
30
33
  delete newParams.before_cursor;
31
34
  this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
32
35
  };
36
+ this.downloadCSV = (payoutId) => {
37
+ this.getPayoutCSV({
38
+ payoutId,
39
+ onError: () => {
40
+ this.errorEvent.emit({
41
+ errorCode: ComponentErrorCodes.FETCH_ERROR,
42
+ message: 'Failed to download CSV',
43
+ severity: ComponentErrorSeverity.ERROR
44
+ });
45
+ }
46
+ });
47
+ };
48
+ this.handleDateChange = (name, value) => {
49
+ this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
50
+ };
33
51
  this.getPayouts = undefined;
52
+ this.getPayoutCSV = undefined;
34
53
  this.payouts = [];
35
54
  this.loading = true;
36
55
  this.errorMessage = undefined;
@@ -67,7 +86,7 @@ export class PayoutsListCore {
67
86
  }
68
87
  ;
69
88
  render() {
70
- return (h(Host, { key: 'ccb86be280ebe0d399eca546b37d476dd730998b', exportedparts: tableExportedParts }, h("justifi-table", { key: '171e00ed81766bec7651702b66bdd7986bd3cffe', rowClickHandler: (e) => {
89
+ return (h(StyledHost, { key: '469e4d0a5fcb7370d0d076e9f27cf5102235324e', exportedparts: tableExportedParts }, h("div", { key: '883f193b2da3cdd3da3f31422def69d206ead983', class: "row gy-3 mb-4" }, h("div", { key: '585684441aeded4619f9a0f03151b5e8dd2219d8', class: "col-2" }, h("form-control-date", { key: 'bc69d932f1d32074b3f0fdd2c9dba6f9601db891', name: "created_after", label: "Date from:", inputHandler: this.handleDateChange })), h("div", { key: 'd026150a6a09ad49f549ea2b5174a1ed311987dc', class: "col-2" }, h("form-control-date", { key: '2621b14359b8159270d67e53f9ad2f6464cbb467', name: "created_before", label: "Date to:", inputHandler: this.handleDateChange }))), h("justifi-table", { key: '757c9bbee39356ee23819f0e7e4d3b096bdf38f6', rowClickHandler: (e) => {
71
90
  const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
72
91
  if (!clickedPayoutID) {
73
92
  return;
@@ -83,7 +102,8 @@ export class PayoutsListCore {
83
102
  ['Fees', 'Sum of fees in each payout'],
84
103
  ['Other', 'Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],
85
104
  ['Payout Amount', 'The net sum of all transactions in each payout. This is the amount you\'ll see reflected on your bank statement'],
86
- ['Status', 'The real-time status of each payout']
105
+ ['Status', 'The real-time status of each payout'],
106
+ ['Actions', '']
87
107
  ], entityId: this.payouts.map((payout) => payout.id), rowData: this.payouts.map((payout) => ([
88
108
  {
89
109
  type: 'head',
@@ -103,20 +123,11 @@ export class PayoutsListCore {
103
123
  {
104
124
  type: 'inner',
105
125
  value: this.mapStatusToBadge(payout.status)
106
- }
126
+ },
127
+ (h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } }))
107
128
  ])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
108
129
  }
109
130
  static get is() { return "payouts-list-core"; }
110
- static get originalStyleUrls() {
111
- return {
112
- "$": ["payouts-list.scss"]
113
- };
114
- }
115
- static get styleUrls() {
116
- return {
117
- "$": ["payouts-list.css"]
118
- };
119
- }
120
131
  static get properties() {
121
132
  return {
122
133
  "getPayouts": {
@@ -138,6 +149,26 @@ export class PayoutsListCore {
138
149
  "tags": [],
139
150
  "text": ""
140
151
  }
152
+ },
153
+ "getPayoutCSV": {
154
+ "type": "unknown",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "Function",
158
+ "resolved": "Function",
159
+ "references": {
160
+ "Function": {
161
+ "location": "global",
162
+ "id": "global::Function"
163
+ }
164
+ }
165
+ },
166
+ "required": false,
167
+ "optional": false,
168
+ "docs": {
169
+ "tags": [],
170
+ "text": ""
171
+ }
141
172
  }
142
173
  };
143
174
  }
@@ -5,7 +5,11 @@ import { makeGetPayouts } from "./get-payouts";
5
5
  import { ErrorState } from "../details/utils";
6
6
  import { ComponentErrorCodes } from "../../api/ComponentError";
7
7
  import JustifiAnalytics from "../../api/Analytics";
8
+ import { makeGetPayoutCSV } from "../payout-details/get-payout-csv";
8
9
  /**
10
+ * @exportedPart label: Label for inputs
11
+ * @exportedPart input: The input fields
12
+ * @exportedPart input-invalid: Invalid state for inputs
9
13
  * @exportedPart table-head: Table head
10
14
  * @exportedPart table-head-row: Head row
11
15
  * @exportedPart table-head-cell: Individual head cell
@@ -33,25 +37,28 @@ export class PayoutsList {
33
37
  this.accountId = undefined;
34
38
  this.authToken = undefined;
35
39
  this.getPayouts = undefined;
40
+ this.getPayoutCSV = undefined;
36
41
  this.errorMessage = null;
37
42
  }
38
43
  componentWillLoad() {
39
44
  this.analytics = new JustifiAnalytics(this);
40
- this.initializeGetPayouts();
45
+ this.initializeServices();
41
46
  }
42
47
  disconnectedCallback() {
43
48
  this.analytics.cleanup();
44
49
  }
45
50
  propChanged() {
46
- this.initializeGetPayouts();
51
+ this.initializeServices();
47
52
  }
48
- initializeGetPayouts() {
53
+ initializeServices() {
49
54
  if (this.accountId && this.authToken) {
50
- this.getPayouts = makeGetPayouts({
55
+ const serviceParams = {
51
56
  id: this.accountId,
52
57
  authToken: this.authToken,
53
58
  service: new PayoutService(),
54
- });
59
+ };
60
+ this.getPayouts = makeGetPayouts(serviceParams);
61
+ this.getPayoutCSV = makeGetPayoutCSV(serviceParams);
55
62
  }
56
63
  else {
57
64
  this.errorMessage = 'Account ID and Auth Token are required';
@@ -65,7 +72,7 @@ export class PayoutsList {
65
72
  if (this.errorMessage) {
66
73
  return ErrorState(this.errorMessage);
67
74
  }
68
- return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, "onError-event": this.handleOnError })));
75
+ return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleOnError })));
69
76
  }
70
77
  static get is() { return "justifi-payouts-list"; }
71
78
  static get encapsulation() { return "shadow"; }
@@ -110,6 +117,7 @@ export class PayoutsList {
110
117
  static get states() {
111
118
  return {
112
119
  "getPayouts": {},
120
+ "getPayoutCSV": {},
113
121
  "errorMessage": {}
114
122
  };
115
123
  }
@@ -1,8 +1,9 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { Api, pagingDefaults } from "../../api";
3
3
  import { formatCurrency, formatDate } from "../../utils/utils";
4
4
  import { Proceed, ProceedStatuses, ProceedStatusesSafeNames } from "../../api/Proceed";
5
5
  import { config } from "../../../config";
6
+ import StyledHost from "../../utils/styled-host/styled-host";
6
7
  /**
7
8
  * @exportedPart table-head: Table head
8
9
  * @exportedPart table-head-row: Head row
@@ -86,7 +87,7 @@ export class ProceedsList {
86
87
  this.loading = false;
87
88
  }
88
89
  render() {
89
- return (h(Host, { key: 'a8a71597e9af52dc31faf77d3eb0adcae8d3345c' }, h("justifi-table", { key: '59a7f7eb404bc307f332e6d45b0162853f9bfcb1', rowClickHandler: (e) => {
90
+ return (h(StyledHost, { key: 'ea9ee482e1b439490ed258c37e75c47e5dc5f3bf' }, h("justifi-table", { key: 'a26da8b6e884e00bc0a8eac24025397fdc925d14', rowClickHandler: (e) => {
90
91
  const clickedProceedID = e.target.closest('tr').dataset.rowEntityId;
91
92
  if (!clickedProceedID) {
92
93
  return;
@@ -118,16 +119,6 @@ export class ProceedsList {
118
119
  }
119
120
  static get is() { return "justifi-proceeds-list"; }
120
121
  static get encapsulation() { return "shadow"; }
121
- static get originalStyleUrls() {
122
- return {
123
- "$": ["proceeds-list.scss"]
124
- };
125
- }
126
- static get styleUrls() {
127
- return {
128
- "$": ["proceeds-list.css"]
129
- };
130
- }
131
122
  static get properties() {
132
123
  return {
133
124
  "accountId": {