@justifi/webcomponents 5.3.6 → 5.4.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 (605) hide show
  1. package/dist/cjs/{Api-f5280a80.js → Api-83d93333.js} +2 -2
  2. package/dist/cjs/{Checkout-eef27045.js → Checkout-f10bed8c.js} +1 -1
  3. package/dist/cjs/{Payment-c47ed1e1.js → Payment-3f483b7a.js} +1 -1
  4. package/dist/cjs/{SubAccount-df3d28dc.js → SubAccount-a27d4e9f.js} +8 -6
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  6. package/dist/cjs/{badge-79e56b99.js → badge-364e6311.js} +1 -1
  7. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +11 -11
  8. package/dist/cjs/bank-account-form_9.cjs.entry.js +16 -16
  9. package/dist/cjs/billing-form_3.cjs.entry.js +11 -11
  10. package/dist/cjs/{business-additional-questions-schema-5c100f58.js → business-additional-questions-schema-8568cb79.js} +2 -2
  11. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  12. package/dist/cjs/{business-identity-schema-3b4d16f1.js → business-identity-schema-518ab6eb.js} +2 -2
  13. package/dist/cjs/{business.service-776142b1.js → business.service-6e8a29a2.js} +3 -3
  14. package/dist/cjs/{button-797bb3cc.js → button-4a9fd41e.js} +1 -1
  15. package/dist/cjs/{check-pkg-version-1f8b660c.js → check-pkg-version-75cc34ca.js} +2 -2
  16. package/dist/cjs/{checkout.service-c01e2cd7.js → checkout.service-61616349.js} +4 -4
  17. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
  18. package/dist/cjs/{checkouts-table-61543249.js → checkouts-table-14fcebd0.js} +3 -3
  19. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_4.cjs.entry.js} +141 -2
  20. package/dist/cjs/{dispute.service-399de502.js → dispute.service-b68fdcc4.js} +4 -4
  21. package/dist/cjs/{event-types-666f1f22.js → event-types-5a6ce2b0.js} +2 -2
  22. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  23. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  24. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  25. package/dist/cjs/{form-control-error-text-b782cdd0.js → form-control-error-text-3cff9b7b.js} +1 -1
  26. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  27. package/dist/cjs/{form-control-help-text-ca3c8155.js → form-control-help-text-94ffed2c.js} +1 -1
  28. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +85 -0
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +27 -40
  30. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  32. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  33. package/dist/cjs/{get-business-0bd063d2.js → get-business-d8f5db51.js} +2 -2
  34. package/dist/cjs/{get-payout-csv-11a983a0.js → get-payout-csv-f0c04d96.js} +4 -4
  35. package/dist/cjs/{get-subaccounts-224f9497.js → get-subaccounts-330a9e85.js} +4 -4
  36. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  37. package/dist/cjs/{header-1-ff669f3f.js → header-1-43b2b905.js} +1 -1
  38. package/dist/cjs/{header-3-f6642390.js → header-3-eb250a04.js} +1 -1
  39. package/dist/cjs/{index.esm-a397536a.js → index.esm-544c08fd.js} +0 -122
  40. package/dist/cjs/{insurance-state-66c9bea7.js → insurance-state-71f8b653.js} +1 -1
  41. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +12 -12
  42. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +18 -18
  43. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  44. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -7
  45. package/dist/cjs/justifi-business-form.cjs.entry.js +15 -15
  46. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  47. package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
  48. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -10
  49. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  50. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
  51. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  52. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
  54. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -14
  55. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  56. package/dist/cjs/justifi-order-terminals.cjs.entry.js +22 -24
  57. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  60. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
  61. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  62. package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
  63. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  64. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  65. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -14
  66. package/dist/cjs/justifi-refund-payment.cjs.entry.js +122 -0
  67. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
  68. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
  69. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +70 -0
  70. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
  71. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -6
  72. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -13
  73. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +10 -10
  74. package/dist/cjs/loader.cjs.js +1 -1
  75. package/dist/cjs/{package-d34fcfa5.js → package-459e93fd.js} +2 -2
  76. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  77. package/dist/cjs/{parts-1fb925c2.js → parts-5ca90f9a.js} +14 -0
  78. package/dist/cjs/payment-details-core.cjs.entry.js +13 -13
  79. package/dist/cjs/{payment.service-f369b33c.js → payment.service-ff43bfc4.js} +4 -4
  80. package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
  81. package/dist/cjs/{payments-status-ffdc54ff.js → payments-status-075aad0a.js} +1 -1
  82. package/dist/cjs/{payments-table-98b4e5e3.js → payments-table-802d767d.js} +3 -3
  83. package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
  84. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
  85. package/dist/cjs/{payouts-status-64fd0c68.js → payouts-status-ced97c2b.js} +1 -1
  86. package/dist/cjs/{payouts-table-ecfb826b.js → payouts-table-194a4343.js} +3 -3
  87. package/dist/cjs/{schema-validations-47a256f4.js → schema-validations-a7cefbdf.js} +1 -1
  88. package/dist/cjs/{skeleton-2ae76f16.js → skeleton-e8aa41d0.js} +1 -1
  89. package/dist/cjs/{spinner-15764f3c.js → spinner-580453f2.js} +1 -1
  90. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  91. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +25 -11
  92. package/dist/cjs/terminal-orders-list-params-state-c419078f.js +22 -0
  93. package/dist/cjs/{terminal-orders-table-f1bed365.js → terminal-orders-table-4df19497.js} +3 -3
  94. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  95. package/dist/cjs/{terminal.service-4fd34835.js → terminal.service-56397d88.js} +6 -5
  96. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
  97. package/dist/cjs/{terminals-table-30298ce4.js → terminals-table-9b313566.js} +14 -2
  98. package/dist/cjs/{utils-337befa9.js → utils-54719fda.js} +8 -2
  99. package/dist/cjs/{utils-3e3b8061.js → utils-f8714daa.js} +1 -1
  100. package/dist/cjs/webcomponents.cjs.js +1 -1
  101. package/dist/collection/actions/business/get-business.js +2 -2
  102. package/dist/collection/actions/terminal/get-terminal-models.js +2 -2
  103. package/dist/collection/actions/terminal/order-terminals.js +2 -2
  104. package/dist/collection/api/Api.js +2 -2
  105. package/dist/collection/api/Terminal.js +3 -1
  106. package/dist/collection/api/TerminalOrder.js +2 -2
  107. package/dist/collection/api/services/business.service.js +2 -2
  108. package/dist/collection/api/services/terminal.service.js +2 -1
  109. package/dist/collection/collection-manifest.json +7 -5
  110. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  111. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  112. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  113. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  114. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  115. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  116. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  117. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +1 -1
  119. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  121. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  122. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  123. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +255 -0
  128. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  132. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  133. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  134. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  135. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form/billing-form.js +6 -6
  136. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form-schema.js +6 -2
  137. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form-wrapper.js +7 -7
  138. package/dist/collection/components/{billing-forms → checkout/billing-forms}/postal-form/postal-form.js +5 -5
  139. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  140. package/dist/collection/components/checkout/checkout-core.js +5 -5
  141. package/dist/collection/components/checkout/checkout.js +6 -6
  142. package/dist/collection/components/checkout/new-payment-method.js +5 -5
  143. package/dist/collection/components/checkout/payment-method-options.js +5 -5
  144. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  145. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  146. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  147. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  148. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  149. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  158. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  160. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  161. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  162. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  163. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  164. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  165. package/dist/collection/components/order-terminals/order-terminals.js +24 -8
  166. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  167. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  168. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  169. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  170. package/dist/collection/components/payments-list/payments-list.js +1 -1
  171. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  172. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  173. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  174. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  175. package/dist/collection/components/refund-payment/refund-payment-schema.js +16 -0
  176. package/dist/collection/components/{refund-form/refund-form.js → refund-payment/refund-payment.js} +26 -65
  177. package/dist/collection/components/refund-payment/refund-reason-options.js +19 -0
  178. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +15 -2
  179. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +141 -0
  180. package/dist/collection/components/terminal-orders-list/terminal-orders-list-params-state.js +14 -0
  181. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  182. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  183. package/dist/collection/components/terminals-list/terminals-list-filters.js +23 -3
  184. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  185. package/dist/collection/components/terminals-list/terminals-status.js +5 -0
  186. package/dist/collection/components/terminals-list/terminals-table.js +7 -0
  187. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -3
  188. package/dist/collection/styles/parts.js +8 -0
  189. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  190. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  191. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  192. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  193. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  194. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  195. package/dist/collection/ui-components/form/form-control-monetary.js +72 -70
  196. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  198. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  199. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  200. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  202. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  203. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  204. package/dist/collection/{components → ui-components}/pagination-menu/pagination-menu.js +4 -4
  205. package/dist/collection/utils/utils.js +8 -2
  206. package/dist/docs.json +568 -143
  207. package/dist/esm/{Api-391d00e2.js → Api-52242eb0.js} +2 -2
  208. package/dist/esm/{Checkout-2bc873fb.js → Checkout-ba139944.js} +1 -1
  209. package/dist/esm/{Payment-82d2f453.js → Payment-39bfdd06.js} +1 -1
  210. package/dist/esm/{SubAccount-dbd4e50c.js → SubAccount-68403637.js} +7 -5
  211. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  212. package/dist/esm/{badge-6f5acf30.js → badge-1be14e8c.js} +1 -1
  213. package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -11
  214. package/dist/esm/bank-account-form_9.entry.js +16 -16
  215. package/dist/esm/billing-form_3.entry.js +11 -11
  216. package/dist/esm/{business-additional-questions-schema-df76728f.js → business-additional-questions-schema-56308a54.js} +2 -2
  217. package/dist/esm/business-details-core.entry.js +3 -3
  218. package/dist/esm/{business-identity-schema-0a78fc59.js → business-identity-schema-24fcc4ef.js} +2 -2
  219. package/dist/esm/{business.service-f7c3b9f7.js → business.service-999196a4.js} +3 -3
  220. package/dist/esm/{button-79dcea75.js → button-fcee4da7.js} +1 -1
  221. package/dist/esm/{check-pkg-version-8e7e585e.js → check-pkg-version-b4d631be.js} +2 -2
  222. package/dist/esm/{checkout.service-382a16ec.js → checkout.service-e59354cc.js} +4 -4
  223. package/dist/esm/checkouts-list-core.entry.js +10 -10
  224. package/dist/esm/{checkouts-table-8a53cef9.js → checkouts-table-58604210.js} +3 -3
  225. package/dist/esm/{custom-popper.entry.js → custom-popper_4.entry.js} +140 -4
  226. package/dist/esm/{dispute.service-97887804.js → dispute.service-8312d46a.js} +4 -4
  227. package/dist/esm/{event-types-82515a49.js → event-types-1bc52f1f.js} +2 -2
  228. package/dist/esm/form-alert_5.entry.js +5 -5
  229. package/dist/esm/form-control-checkbox.entry.js +5 -5
  230. package/dist/esm/form-control-date.entry.js +4 -4
  231. package/dist/esm/{form-control-error-text-466c252b.js → form-control-error-text-176d20d8.js} +1 -1
  232. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  233. package/dist/esm/{form-control-help-text-242916e3.js → form-control-help-text-83764e14.js} +1 -1
  234. package/dist/esm/form-control-monetary-provisioning.entry.js +81 -0
  235. package/dist/esm/form-control-monetary.entry.js +27 -40
  236. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  237. package/dist/esm/form-control-number.entry.js +5 -5
  238. package/dist/esm/form-control-radio.entry.js +3 -3
  239. package/dist/esm/{get-business-464419f6.js → get-business-b7511690.js} +2 -2
  240. package/dist/esm/{get-payout-csv-6826271a.js → get-payout-csv-74397995.js} +4 -4
  241. package/dist/esm/{get-subaccounts-f21220dc.js → get-subaccounts-f8bd5c96.js} +4 -4
  242. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  243. package/dist/esm/{header-1-b43590e5.js → header-1-215a146f.js} +1 -1
  244. package/dist/esm/{header-3-b90e161e.js → header-3-afd16f23.js} +1 -1
  245. package/dist/esm/{index.esm-0b6849c2.js → index.esm-feedf26f.js} +1 -122
  246. package/dist/esm/{insurance-state-9e4a3359.js → insurance-state-d2df8e88.js} +1 -1
  247. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -12
  248. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +18 -18
  249. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  250. package/dist/esm/justifi-business-details.entry.js +7 -7
  251. package/dist/esm/justifi-business-form.entry.js +15 -15
  252. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  253. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  254. package/dist/esm/justifi-checkout.entry.js +10 -10
  255. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  256. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  257. package/dist/esm/justifi-details.entry.js +2 -2
  258. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  259. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  260. package/dist/esm/justifi-dispute-notification_3.entry.js +14 -14
  261. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  262. package/dist/esm/justifi-order-terminals.entry.js +22 -24
  263. package/dist/esm/justifi-owner-form_3.entry.js +10 -10
  264. package/dist/esm/justifi-payment-details.entry.js +10 -10
  265. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  266. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  267. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  268. package/dist/esm/justifi-payments-list.entry.js +13 -13
  269. package/dist/esm/justifi-payout-details.entry.js +10 -10
  270. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  271. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  272. package/dist/esm/justifi-refund-payment.entry.js +118 -0
  273. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  274. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
  275. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +66 -0
  276. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  277. package/dist/esm/justifi-terminals-list-filters.entry.js +9 -6
  278. package/dist/esm/justifi-terminals-list.entry.js +13 -13
  279. package/dist/esm/justifi-tokenize-payment-method.entry.js +10 -10
  280. package/dist/esm/loader.js +1 -1
  281. package/dist/esm/{package-46c7f3a6.js → package-53180f2a.js} +2 -2
  282. package/dist/esm/pagination-menu.entry.js +1 -1
  283. package/dist/esm/{parts-2c5c609b.js → parts-fd740f54.js} +9 -1
  284. package/dist/esm/payment-details-core.entry.js +13 -13
  285. package/dist/esm/{payment.service-a8aa5be7.js → payment.service-b9ec64c9.js} +4 -4
  286. package/dist/esm/payments-list-core.entry.js +11 -11
  287. package/dist/esm/{payments-status-6e203ce4.js → payments-status-74d22728.js} +1 -1
  288. package/dist/esm/{payments-table-4c6093e1.js → payments-table-26054032.js} +3 -3
  289. package/dist/esm/payout-details-core.entry.js +8 -8
  290. package/dist/esm/payouts-list-core.entry.js +11 -11
  291. package/dist/esm/{payouts-status-66e830f1.js → payouts-status-29d31099.js} +1 -1
  292. package/dist/esm/{payouts-table-46fbedb6.js → payouts-table-7f31db9d.js} +3 -3
  293. package/dist/esm/{schema-validations-b1aec6a0.js → schema-validations-5af4266a.js} +1 -1
  294. package/dist/esm/{skeleton-122648e6.js → skeleton-ab3f676e.js} +1 -1
  295. package/dist/esm/{spinner-14cd9ac7.js → spinner-27479716.js} +1 -1
  296. package/dist/esm/table-filters-menu.entry.js +3 -3
  297. package/dist/esm/terminal-orders-list-core.entry.js +25 -11
  298. package/dist/esm/terminal-orders-list-params-state-8fec0a0b.js +16 -0
  299. package/dist/esm/{terminal-orders-table-83b905fd.js → terminal-orders-table-1f6156c9.js} +3 -3
  300. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  301. package/dist/esm/{terminal.service-20445fc1.js → terminal.service-fff19896.js} +6 -5
  302. package/dist/esm/terminals-list-core.entry.js +10 -10
  303. package/dist/esm/{terminals-table-dbbf9a99.js → terminals-table-7d54e359.js} +14 -2
  304. package/dist/esm/{utils-4cb0d852.js → utils-96d9c205.js} +1 -1
  305. package/dist/esm/{utils-c37124fc.js → utils-dc86cdde.js} +8 -3
  306. package/dist/esm/webcomponents.js +1 -1
  307. package/dist/module/Api.js +2 -2
  308. package/dist/module/SubAccount.js +6 -4
  309. package/dist/module/additional-questions.js +4 -4
  310. package/dist/module/additional-statement.js +1 -1
  311. package/dist/module/bank-account-document-inputs.js +1 -1
  312. package/dist/module/bank-account-form-inputs2.js +1 -1
  313. package/dist/module/bank-account-form2.js +2 -2
  314. package/dist/module/billing-form-wrapper.js +1 -1
  315. package/dist/module/billing-form2.js +3 -3
  316. package/dist/module/business-additional-questions-form-step-core.js +4 -4
  317. package/dist/module/business-additional-questions-form-step.js +4 -4
  318. package/dist/module/business-bank-account-form-step.js +1 -1
  319. package/dist/module/business-core-info-form-step.js +1 -1
  320. package/dist/module/business-core-info.js +1 -1
  321. package/dist/module/business-owners-form-step.js +1 -1
  322. package/dist/module/business-representative-form-inputs.js +1 -1
  323. package/dist/module/business-representative-form-step.js +1 -1
  324. package/dist/module/business-representative.js +1 -1
  325. package/dist/module/business-terms-conditions-form-step.js +1 -1
  326. package/dist/module/business.service.js +2 -2
  327. package/dist/module/cancellation-policy.js +1 -1
  328. package/dist/module/card-form2.js +2 -2
  329. package/dist/module/checkout-core.js +1 -1
  330. package/dist/module/checkouts-list-core2.js +1 -1
  331. package/dist/module/custom-popper2.js +2 -2
  332. package/dist/module/customer-details.js +1 -1
  333. package/dist/module/dispute-management-core.js +1 -1
  334. package/dist/module/dispute-notification.js +1 -1
  335. package/dist/module/dispute-response-core.js +1 -1
  336. package/dist/module/dispute-response.js +1 -1
  337. package/dist/module/duplicate-charge.js +1 -1
  338. package/dist/module/electronic-evidence.js +1 -1
  339. package/dist/module/form-control-checkbox2.js +2 -2
  340. package/dist/module/form-control-date2.js +2 -2
  341. package/dist/module/form-control-file-v22.js +1 -1
  342. package/dist/module/form-control-file2.js +2 -2
  343. package/dist/module/form-control-monetary-provisioning.d.ts +11 -0
  344. package/dist/module/form-control-monetary-provisioning.js +6 -0
  345. package/dist/module/form-control-monetary-provisioning2.js +109 -0
  346. package/dist/module/form-control-monetary2.js +30 -42
  347. package/dist/module/form-control-number-masked2.js +2 -2
  348. package/dist/module/form-control-number.js +2 -2
  349. package/dist/module/form-control-radio2.js +2 -2
  350. package/dist/module/form-control-select2.js +2 -2
  351. package/dist/module/form-control-text2.js +2 -2
  352. package/dist/module/form-control-textarea2.js +2 -2
  353. package/dist/module/form.js +1 -122
  354. package/dist/module/get-business.js +2 -2
  355. package/dist/module/gross-payment-chart-core2.js +1 -1
  356. package/dist/module/hidden-input2.js +1 -1
  357. package/dist/module/identity-address-form.js +1 -1
  358. package/dist/module/iframe-input2.js +3 -3
  359. package/dist/module/justifi-business-form.js +3 -3
  360. package/dist/module/justifi-checkout.js +2 -2
  361. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  362. package/dist/module/justifi-checkouts-list.js +1 -1
  363. package/dist/module/justifi-dispute-management.js +1 -1
  364. package/dist/module/justifi-order-terminals.js +11 -12
  365. package/dist/module/justifi-payment-provisioning.js +4 -4
  366. package/dist/module/justifi-payments-list-filters.js +2 -2
  367. package/dist/module/justifi-payments-list.js +1 -1
  368. package/dist/module/justifi-payouts-list-filters.js +2 -2
  369. package/dist/module/justifi-payouts-list.js +1 -1
  370. package/dist/module/justifi-refund-payment.d.ts +11 -0
  371. package/dist/module/justifi-refund-payment.js +180 -0
  372. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  373. package/dist/module/justifi-terminal-orders-list-filters.d.ts +11 -0
  374. package/dist/module/justifi-terminal-orders-list-filters.js +119 -0
  375. package/dist/module/justifi-terminal-orders-list.js +1 -1
  376. package/dist/module/justifi-terminals-list-filters.js +6 -2
  377. package/dist/module/justifi-terminals-list.js +2 -2
  378. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  379. package/dist/module/legal-address-form-step.js +1 -1
  380. package/dist/module/legal-address-form.js +1 -1
  381. package/dist/module/new-payment-method.js +1 -1
  382. package/dist/module/owner-form-core2.js +1 -1
  383. package/dist/module/owner-form-inputs2.js +1 -1
  384. package/dist/module/owner-form.js +1 -1
  385. package/dist/module/package.js +2 -2
  386. package/dist/module/parts.js +9 -1
  387. package/dist/module/payment-details-core2.js +7 -7
  388. package/dist/module/payment-method-options.js +1 -1
  389. package/dist/module/payment-provisioning-core.js +4 -4
  390. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  391. package/dist/module/payment-provisioning-form-steps.js +4 -4
  392. package/dist/module/payments-list-core2.js +1 -1
  393. package/dist/module/payout-details-core2.js +1 -1
  394. package/dist/module/payouts-list-core2.js +1 -1
  395. package/dist/module/postal-form2.js +1 -1
  396. package/dist/module/product-or-service.js +1 -1
  397. package/dist/module/refund-policy.js +1 -1
  398. package/dist/module/save-new-payment-method.js +1 -1
  399. package/dist/module/saved-payment-method.js +1 -1
  400. package/dist/module/sezzle-payment-method.js +1 -1
  401. package/dist/module/shipping-details.js +1 -1
  402. package/dist/module/table-filters-menu2.js +1 -1
  403. package/dist/module/terminal-orders-list-core2.js +15 -2
  404. package/dist/module/terminal-orders-list-params-state.js +16 -0
  405. package/dist/module/terminal-quantity-selector2.js +1 -1
  406. package/dist/module/terminal.service.js +2 -1
  407. package/dist/module/terminals-list-core2.js +13 -1
  408. package/dist/module/utils2.js +8 -3
  409. package/dist/types/actions/business/get-business.d.ts +2 -1
  410. package/dist/types/actions/terminal/get-terminal-models.d.ts +2 -1
  411. package/dist/types/actions/terminal/order-terminals.d.ts +2 -1
  412. package/dist/types/api/Api.d.ts +1 -1
  413. package/dist/types/api/Terminal.d.ts +8 -3
  414. package/dist/types/api/TerminalOrder.d.ts +9 -3
  415. package/dist/types/api/services/business.service.d.ts +1 -1
  416. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +24 -0
  417. package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form/billing-form.d.ts +1 -1
  418. package/dist/types/components/{billing-forms → checkout/billing-forms}/postal-form/postal-form.d.ts +1 -1
  419. package/dist/types/components/checkout/checkout-core.d.ts +1 -1
  420. package/dist/types/components/checkout/checkout.d.ts +1 -1
  421. package/dist/types/components/checkout/new-payment-method.d.ts +1 -1
  422. package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
  423. package/dist/types/components/order-terminals/order-terminals.d.ts +1 -1
  424. package/dist/types/components/refund-payment/refund-payment-schema.d.ts +11 -0
  425. package/dist/types/components/{refund-form/refund-form.d.ts → refund-payment/refund-payment.d.ts} +6 -13
  426. package/dist/types/components/refund-payment/refund-reason-options.d.ts +5 -0
  427. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +1 -0
  428. package/dist/types/components/terminal-orders-list/terminal-orders-list-filters.d.ts +19 -0
  429. package/dist/types/components/terminal-orders-list/terminal-orders-list-params-state.d.ts +6 -0
  430. package/dist/types/components/terminals-list/terminals-list-filters.d.ts +1 -0
  431. package/dist/types/components/terminals-list/terminals-status.d.ts +2 -1
  432. package/dist/types/components/terminals-list/terminals-table.d.ts +6 -0
  433. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
  434. package/dist/types/components.d.ts +111 -53
  435. package/dist/types/styles/parts.d.ts +7 -0
  436. package/dist/types/ui-components/form/form-control-monetary.d.ts +9 -10
  437. package/dist/types/utils/utils.d.ts +2 -1
  438. package/dist/webcomponents/p-00ae938e.entry.js +1 -0
  439. package/dist/webcomponents/p-01033194.js +1 -0
  440. package/dist/webcomponents/p-0151a19f.entry.js +1 -0
  441. package/dist/webcomponents/{p-694078d2.js → p-03c2261c.js} +1 -1
  442. package/dist/webcomponents/{p-2ca5b5e4.js → p-08b64251.js} +1 -1
  443. package/dist/webcomponents/p-0b61d4d3.entry.js +1 -0
  444. package/dist/webcomponents/{p-547b51e9.js → p-12074378.js} +1 -1
  445. package/dist/webcomponents/p-142bfae3.js +1 -0
  446. package/dist/webcomponents/p-1aa973c4.entry.js +1 -0
  447. package/dist/webcomponents/p-2123c150.js +1 -0
  448. package/dist/webcomponents/p-23cd76af.entry.js +1 -0
  449. package/dist/webcomponents/{p-087758d3.js → p-26a2e837.js} +1 -1
  450. package/dist/webcomponents/p-27546fa9.entry.js +1 -0
  451. package/dist/webcomponents/p-275c3dc9.js +1 -0
  452. package/dist/webcomponents/p-2b8aaa7d.entry.js +1 -0
  453. package/dist/webcomponents/p-2c65389c.entry.js +1 -0
  454. package/dist/webcomponents/p-31dcaeaf.entry.js +1 -0
  455. package/dist/webcomponents/p-373a19fe.entry.js +1 -0
  456. package/dist/webcomponents/{p-3947a309.entry.js → p-375657fe.entry.js} +1 -1
  457. package/dist/webcomponents/{p-6ef3de11.entry.js → p-385d3637.entry.js} +1 -1
  458. package/dist/webcomponents/{p-f3061f2a.entry.js → p-38900c29.entry.js} +1 -1
  459. package/dist/webcomponents/{p-daf0303f.js → p-422948eb.js} +1 -1
  460. package/dist/webcomponents/{p-b92aac9b.entry.js → p-43e225d2.entry.js} +1 -1
  461. package/dist/webcomponents/{p-8c461ebc.entry.js → p-4484aa3b.entry.js} +1 -1
  462. package/dist/webcomponents/p-45f48dce.entry.js +1 -0
  463. package/dist/webcomponents/{p-9894484a.js → p-4e010557.js} +1 -1
  464. package/dist/webcomponents/p-4ef98c7a.js +1 -0
  465. package/dist/webcomponents/p-4fc263b2.js +1 -0
  466. package/dist/webcomponents/{p-4acf8ca2.js → p-537bce77.js} +1 -1
  467. package/dist/webcomponents/p-56c7fc8d.js +1 -0
  468. package/dist/webcomponents/{p-cd68707b.entry.js → p-58476602.entry.js} +1 -1
  469. package/dist/webcomponents/{p-71897cbc.js → p-58ee6ce9.js} +1 -1
  470. package/dist/webcomponents/p-59eef054.entry.js +1 -0
  471. package/dist/webcomponents/{p-2027145a.entry.js → p-5a9d7ca0.entry.js} +1 -1
  472. package/dist/webcomponents/{p-a173ccd5.entry.js → p-5ae9faf6.entry.js} +1 -1
  473. package/dist/webcomponents/p-5b459422.entry.js +1 -0
  474. package/dist/webcomponents/p-5b76dbe1.entry.js +1 -0
  475. package/dist/webcomponents/{p-046ecd01.js → p-5efe6236.js} +1 -1
  476. package/dist/webcomponents/{p-0e180654.js → p-5f6b4bc9.js} +1 -1
  477. package/dist/webcomponents/p-64443fc0.js +1 -0
  478. package/dist/webcomponents/p-673c1bca.js +1 -0
  479. package/dist/webcomponents/p-6c79e7c3.entry.js +1 -0
  480. package/dist/webcomponents/p-6d3611b6.entry.js +1 -0
  481. package/dist/webcomponents/{p-0cefd846.entry.js → p-745a577c.entry.js} +1 -1
  482. package/dist/webcomponents/p-76549a24.js +1 -0
  483. package/dist/webcomponents/{p-7ed52fbc.entry.js → p-7a6feb58.entry.js} +1 -1
  484. package/dist/webcomponents/p-80867635.entry.js +1 -0
  485. package/dist/webcomponents/p-86605101.js +1 -0
  486. package/dist/webcomponents/{p-8066b866.js → p-927cb6df.js} +1 -1
  487. package/dist/webcomponents/{p-030a8806.entry.js → p-92e96b57.entry.js} +1 -1
  488. package/dist/webcomponents/{p-8971f9da.entry.js → p-942d5e8f.entry.js} +1 -1
  489. package/dist/webcomponents/p-a1be025c.entry.js +1 -0
  490. package/dist/webcomponents/p-a3cced75.entry.js +1 -0
  491. package/dist/webcomponents/{p-c54f54ed.js → p-a5579f53.js} +1 -1
  492. package/dist/webcomponents/{p-fa987dcf.js → p-a5b52c1d.js} +1 -1
  493. package/dist/webcomponents/{p-0a60d356.entry.js → p-a5f5cc2e.entry.js} +1 -1
  494. package/dist/webcomponents/{p-b69beb1c.js → p-a99525c5.js} +1 -1
  495. package/dist/webcomponents/p-ac40e667.js +1 -0
  496. package/dist/webcomponents/p-adecb91a.entry.js +1 -0
  497. package/dist/webcomponents/p-ae891abb.entry.js +1 -0
  498. package/dist/webcomponents/p-ae9ef225.js +1 -0
  499. package/dist/webcomponents/p-b323bbde.entry.js +1 -0
  500. package/dist/webcomponents/p-ba6fd830.entry.js +1 -0
  501. package/dist/webcomponents/{p-e4514af8.entry.js → p-bae35151.entry.js} +1 -1
  502. package/dist/webcomponents/p-bb4b3f79.entry.js +1 -0
  503. package/dist/webcomponents/{p-69ac2640.entry.js → p-bdbbee07.entry.js} +1 -1
  504. package/dist/webcomponents/p-bdcf3a3c.entry.js +1 -0
  505. package/dist/webcomponents/p-beec0b60.js +1 -0
  506. package/dist/webcomponents/{p-95e55bb1.js → p-bf12999f.js} +1 -1
  507. package/dist/webcomponents/p-bf195b35.js +1 -0
  508. package/dist/webcomponents/{p-e60867c6.js → p-bfc2d88a.js} +1 -1
  509. package/dist/webcomponents/p-c4f8ed38.js +1 -0
  510. package/dist/webcomponents/{p-b5addd78.js → p-c8b78136.js} +1 -1
  511. package/dist/webcomponents/p-c8fa00fd.entry.js +1 -0
  512. package/dist/webcomponents/p-c93d643b.js +1 -0
  513. package/dist/webcomponents/p-cc2f75a3.entry.js +1 -0
  514. package/dist/webcomponents/p-ccb9ee53.js +1 -0
  515. package/dist/webcomponents/{p-ee9d433f.js → p-cd5883b9.js} +1 -1
  516. package/dist/webcomponents/p-cedad1b6.entry.js +1 -0
  517. package/dist/webcomponents/{p-8fad4359.entry.js → p-d70610de.entry.js} +1 -1
  518. package/dist/webcomponents/p-d757fcf5.js +1 -0
  519. package/dist/webcomponents/p-d7bf921d.entry.js +1 -0
  520. package/dist/webcomponents/{p-10a14943.entry.js → p-d903d838.entry.js} +1 -1
  521. package/dist/webcomponents/{p-5efe9572.entry.js → p-d9b5140e.entry.js} +1 -1
  522. package/dist/webcomponents/{p-fd4607f9.entry.js → p-d9dc15d4.entry.js} +1 -1
  523. package/dist/webcomponents/p-db973fa9.entry.js +1 -0
  524. package/dist/webcomponents/p-dbc1a95b.js +1 -0
  525. package/dist/webcomponents/{p-1e300d41.js → p-dbf21732.js} +1 -1
  526. package/dist/webcomponents/{p-e754d8e7.entry.js → p-ddb642a4.entry.js} +2 -2
  527. package/dist/webcomponents/p-df20bbb3.entry.js +1 -0
  528. package/dist/webcomponents/p-e9867f8b.entry.js +1 -0
  529. package/dist/webcomponents/p-ed9d22d5.entry.js +1 -0
  530. package/dist/webcomponents/p-ee539373.entry.js +1 -0
  531. package/dist/webcomponents/{p-685c7028.entry.js → p-f20466f7.entry.js} +1 -1
  532. package/dist/webcomponents/p-f247b169.entry.js +1 -0
  533. package/dist/webcomponents/p-f930504f.entry.js +1 -0
  534. package/dist/webcomponents/p-fc43d1c8.entry.js +1 -0
  535. package/dist/webcomponents/{p-e8fc36c1.entry.js → p-fca89e9b.entry.js} +1 -1
  536. package/dist/webcomponents/webcomponents.esm.js +1 -1
  537. package/package.json +2 -2
  538. package/dist/cjs/form-control-select_3.cjs.entry.js +0 -145
  539. package/dist/cjs/justifi-refund-form.cjs.entry.js +0 -106
  540. package/dist/collection/components/refund-form/refund-form-schema.js +0 -13
  541. package/dist/collection/components/refund-form/refund-form.stories.js +0 -109
  542. package/dist/esm/form-control-select_3.entry.js +0 -139
  543. package/dist/esm/justifi-refund-form.entry.js +0 -102
  544. package/dist/module/justifi-refund-form.d.ts +0 -11
  545. package/dist/module/justifi-refund-form.js +0 -153
  546. package/dist/types/components/refund-form/refund-form-schema.d.ts +0 -11
  547. package/dist/types/components/refund-form/refund-form.stories.d.ts +0 -27
  548. package/dist/webcomponents/p-0137575f.entry.js +0 -1
  549. package/dist/webcomponents/p-039a09b8.entry.js +0 -1
  550. package/dist/webcomponents/p-0ba77d53.entry.js +0 -1
  551. package/dist/webcomponents/p-0c22225c.entry.js +0 -1
  552. package/dist/webcomponents/p-10e32428.entry.js +0 -1
  553. package/dist/webcomponents/p-1705af62.js +0 -1
  554. package/dist/webcomponents/p-19b8c3c8.entry.js +0 -1
  555. package/dist/webcomponents/p-1a48d917.entry.js +0 -1
  556. package/dist/webcomponents/p-222fa126.entry.js +0 -1
  557. package/dist/webcomponents/p-33a17e80.entry.js +0 -1
  558. package/dist/webcomponents/p-34e18d17.entry.js +0 -1
  559. package/dist/webcomponents/p-36edba41.entry.js +0 -1
  560. package/dist/webcomponents/p-3732aa87.js +0 -1
  561. package/dist/webcomponents/p-382ab4e8.js +0 -1
  562. package/dist/webcomponents/p-3cbdca1b.js +0 -1
  563. package/dist/webcomponents/p-4d5c553d.entry.js +0 -1
  564. package/dist/webcomponents/p-5844a0f0.js +0 -1
  565. package/dist/webcomponents/p-5ee67fad.js +0 -1
  566. package/dist/webcomponents/p-638b91ff.entry.js +0 -1
  567. package/dist/webcomponents/p-6a2d6298.entry.js +0 -1
  568. package/dist/webcomponents/p-759f25a1.entry.js +0 -1
  569. package/dist/webcomponents/p-7dc9fb75.js +0 -1
  570. package/dist/webcomponents/p-7e93eac9.entry.js +0 -1
  571. package/dist/webcomponents/p-830f0971.entry.js +0 -1
  572. package/dist/webcomponents/p-833ef79e.entry.js +0 -1
  573. package/dist/webcomponents/p-9dc9aaba.js +0 -1
  574. package/dist/webcomponents/p-9f1a3199.js +0 -1
  575. package/dist/webcomponents/p-a07afdcc.entry.js +0 -1
  576. package/dist/webcomponents/p-a3d75257.js +0 -1
  577. package/dist/webcomponents/p-a957612b.entry.js +0 -1
  578. package/dist/webcomponents/p-aa21cdb1.entry.js +0 -1
  579. package/dist/webcomponents/p-aa923138.entry.js +0 -1
  580. package/dist/webcomponents/p-ad473d5c.entry.js +0 -1
  581. package/dist/webcomponents/p-b11468b5.entry.js +0 -1
  582. package/dist/webcomponents/p-b4ed5a2c.js +0 -1
  583. package/dist/webcomponents/p-b62403c2.entry.js +0 -1
  584. package/dist/webcomponents/p-b76f755a.entry.js +0 -1
  585. package/dist/webcomponents/p-b8ee505d.entry.js +0 -1
  586. package/dist/webcomponents/p-b92f125b.entry.js +0 -1
  587. package/dist/webcomponents/p-bd2340f7.entry.js +0 -1
  588. package/dist/webcomponents/p-bd2d9d29.entry.js +0 -1
  589. package/dist/webcomponents/p-bdf0ab42.js +0 -1
  590. package/dist/webcomponents/p-c406c0fa.js +0 -1
  591. package/dist/webcomponents/p-c5cc443e.entry.js +0 -1
  592. package/dist/webcomponents/p-d43a38a4.js +0 -1
  593. package/dist/webcomponents/p-d5a481e4.entry.js +0 -1
  594. package/dist/webcomponents/p-e366ef1e.js +0 -1
  595. package/dist/webcomponents/p-e400e31f.entry.js +0 -1
  596. package/dist/webcomponents/p-eb05bd1e.entry.js +0 -1
  597. package/dist/webcomponents/p-ede13cc8.js +0 -1
  598. package/dist/webcomponents/p-f04dbd80.entry.js +0 -1
  599. package/dist/webcomponents/p-f2111e68.js +0 -1
  600. package/dist/webcomponents/p-f30cb232.js +0 -1
  601. package/dist/webcomponents/p-fae67ab3.js +0 -1
  602. package/dist/webcomponents/p-ffd0c24b.entry.js +0 -1
  603. /package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form-schema.d.ts +0 -0
  604. /package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form-wrapper.d.ts +0 -0
  605. /package/dist/types/{components → ui-components}/pagination-menu/pagination-menu.d.ts +0 -0
@@ -54,7 +54,7 @@ export class PayoutDetailsCore {
54
54
  }
55
55
  render() {
56
56
  var _a;
57
- return (h(StyledHost, { key: '6aab170bbe708372d913c14bcb58b3b0d60dafd8' }, this.loading && h(PayoutDetailsLoading, { key: '0aee9ad36b3c4e74b1cb3f8251d0488cede1355c' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'c9ad74b0385260d4b1f2d2f7b3e66563b2d706a4', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '6b67e623a6cb67207007ba4319aa437996118dd9', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: 'ff1c335e90ad0403a607491e4ff0b0adac52f255', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '0c2e9555136ce806bc744dd2a83c7a1e10fa7ea7', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '0c813d23ddbe26f29f1ad03dc43b9c5fbf2d6ab6', title: "ID", value: this.payout.id }), h("div", { key: '762b4fc60643def05b7f8e84ce170d6295654631', class: "m-4" }, h(Button, { key: 'c5f304fb7f54838da6785a0bf19c423a98bdbf34', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'b307f177086cd6b1eeb0f384cce772cd04ff33ad', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'bad67a9d2cde5bff23b5c959f9b7564fdc996300', sectionTitle: "Details" }), h("div", { key: '6986bef4813aadb505acaf5cdd07b853c271e442', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'dad10fde82b1009a9821f1e1cc2c2e65baa5f6b7', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'bf21ac446b54bdfcec020d6086546a0b20f42d01', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '30f7609216b42f3918929a6a02b30a6a23689921', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'e7d93fa8d865162098e105d4041c12af757db68b', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: '99b76f8abc8f0077df988cf38cfb74e77a7e881f', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'cfef47442eeb83514ca10fab25d12f1439414fc0', sectionTitle: "Account" }), h("div", { key: '901423f1ca47bf79ab6daa63368fea0032e46d58', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'f3e215b7aad43a3a3914b885189700e87758cca6', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '795054cd2f8bda2a735e9ac64652da92dac34f61', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '9c190036635aed95d74bce36ec257ada41b57cba', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'c1002cff85b80024804a858ef519feb4a86d46ff', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '0183bef106233f302cd8762c7483482bea849ac2', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'e87d57050d5dee72a8dccfe2ca2deee385e6dc61', sectionTitle: 'Metadata' }), h("div", { key: '9aefd212e7aa680b34f5af6a373a47997238496e', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a9c9337a788cb2611787278768968e638a8c000d', metadata: this.payout.metadata })))))));
57
+ return (h(StyledHost, { key: '061c711344ca86e94a8fcc9d3d5f7de97e5c2179' }, this.loading && h(PayoutDetailsLoading, { key: '697e0405c5287731c6b5349f89919e6ca167a7b8' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'baf48186beef6db33ca09cc62f48e1d6233cc087', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '2ad1ac98d7b7613c017ce94d5f970c599e385857', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: '356ae84a31ba8d28d4b00c5a019c9f6f169c16bb', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '9bc19f40ab8c1c75acf8771d2e939c9b86c81352', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: 'adda5e8e83511030ab0998b9093d3f73879b1b34', title: "ID", value: this.payout.id }), h("div", { key: 'a8e3eb9c2ac80d09078adb19107106d2952c4995', class: "m-4" }, h(Button, { key: '039196e6cb3d5600eb60343eb073739b262adb89', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '7076fed938660f113e41d0f1cf29410df02bd9d5', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'bd3fbd6c010d62a3db20b05eb09b6e1144675978', sectionTitle: "Details" }), h("div", { key: '6f5faf48a2fa1a49265e8c7454889ad007efea77', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '7f426b472de86bc4948bb4722f5f59190a8816fc', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: '9c985e1faaac021bb49c15064edb7cdacb53b285', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '819e4ce2b8a2aa34eee35994bd395cfbd358a08b', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'de6ef451dba0364a2d531b82ed5a8a3cfc865fce', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: 'ab3705265c4d05f3e157e5beb338239e99be687d', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'ceef5bbeeb73858eea8643a50107288e87280c15', sectionTitle: "Account" }), h("div", { key: '6652445ecf1819d85b8642af02ded44cde934979', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '53b1e17717881ee14bbac8ff5941d8ee850675c2', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: 'afc5c48aef9715ef55f1aaa207f0af427679f8a4', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'd78fe12043891c7a76b9c1d590cff1cfb45bf1f3', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '5c8d4c492a4f0ccb2d1b7c721be7426e6b46e143', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '9ecc3872af10c9cfc380b1f4382a1ac980fff0fd', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'd38fdfd6754a68ff340a3e6456418c2ee0cd0672', sectionTitle: 'Metadata' }), h("div", { key: 'e45b2a4681556d276eaeed35e5c8a3b90e3235f0', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '1c2b19619b1997ee8f12116d1ffe822fd5ce09ce', metadata: this.payout.metadata })))))));
58
58
  }
59
59
  static get is() { return "payout-details-core"; }
60
60
  static get properties() {
@@ -142,7 +142,7 @@ export class PayoutsListCore {
142
142
  return !this.showEmptyState && !this.showErrorState && !this.loading;
143
143
  }
144
144
  render() {
145
- return (h("div", { key: 'ed85d9ce4cc88007b8c623ba57cb8dfbd4de7874' }, h("div", { key: '5760742d19653abb6ce3e45f4f773cd1bd5e612f', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: 'f09a0ea7fff83b23e8e82fda18c73b25e0a46b07', class: "table table-hover", part: table }, h("thead", { key: 'b056f2ef2b6a229cd436ed0e4789f9d19849e956', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '16e6651c934d1d4120ceaeb4732e807666f0404d', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '4b552d171131958f696077a66c4256e45ccaf7b2', class: "table-body" }, h(TableLoadingState, { key: 'aded291b5961c14d828ecff475120e48d3913293', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a3044be9a44798a4f8800978fd0734de31de6809', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: '98c909ea58a0dd7f0cbbd8ac9842380b91b92386', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '0c58d215c797798f87affb37d1f7622de3ca7407', class: "sticky-bottom" }, h("tr", { key: '9a3b39c8836bb817428bd307110fee62db8d7589', class: "table-light align-middle" }, h("td", { key: 'a3eef122632c9459d5fa31d4542b6b085645b738', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '8d77a7e40f9e7c6770812ba8b45a6e0f5f57193e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
145
+ return (h("div", { key: 'ff5859c3d61ab7b2d532541c383c2478b9efc391' }, h("div", { key: 'cb50816020bfd324fae4f5f0d1a151ab04600b64', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: '69cf5b76a95dd9396b97c6dd54aab8c067522102', class: "table table-hover", part: table }, h("thead", { key: '086161ba08d930efaf431571fa7670ad74a1ec88', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '659d524600aec47afa5dc75cce808da945408536', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: 'bf665357df28983b110565b8556f1cf1a022f164', class: "table-body" }, h(TableLoadingState, { key: 'c789d5b153a377ca1d2e0244e4480fe118ffa2d2', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '80ab61d7e68e50ad88ad5a7f8e11464418006a59', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: '195c41c6e0a91d09ca0440002e2883fe49626c07', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'd9094830c7572cfbbfe0a17d55d9ad0daffd319f', class: "sticky-bottom" }, h("tr", { key: '658d6a380abc8085f5ec26b1423e0b9487b962d6', class: "table-light align-middle" }, h("td", { key: '962ddd1a6873a7206126e145d6772bacd4197cbf', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '28c37545fe9fdce46302a9cc6d370d95e7d03d7b', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
146
146
  }
147
147
  static get is() { return "payouts-list-core"; }
148
148
  static get properties() {
@@ -28,8 +28,8 @@ export class PayoutsListFilters {
28
28
  }
29
29
  render() {
30
30
  const filterMenuParams = Object.assign({}, filterParams);
31
- return (h(StyledHost, { key: 'fca8f3d0daf92026b7d3cccdd096c8650eb31d28' }, h("table-filters-menu", { key: 'b166ff52682804bd241866ffbe53ada0cf6133e8', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: 'f72774348aac13463934af8c8bfb3aa9b29a3942', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '87ee14df90cd83394e573f1f4e75d315cd48b2d3', class: "p-2" }, h("form-control-date", { key: 'f14e2dd16a24d8f6ac41ed110bdf2e5f0e7b0389', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
32
- convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'fe9b41fcc98571f9f5f477a0006a2a00a5bdba1c', class: "p-2" }, h("form-control-date", { key: '9ab09d81f389f410ea7d1d533a0f25995d261aef', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
31
+ return (h(StyledHost, { key: '30857b318a635a1420f56799c572f39da85d6317' }, h("table-filters-menu", { key: 'c3b0bdc3d50d9cc3e2cef3adfbba7f0fe7539044', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: '9be791ebd77eb197e18e7663c30fa2a12c1e9a4f', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '3e172e7f255b4e78b48cb03d2b921b01fdefc4b0', class: "p-2" }, h("form-control-date", { key: '875f2202358370bec6df4b724dbc2db7070b1ff7', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
32
+ convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'ce324f47aa1b38b6d24f200a7b468076c6998faf', class: "p-2" }, h("form-control-date", { key: '3d2543d40d2f3ac60c7f3f09d905c102425dffc6', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
33
33
  convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
34
34
  }
35
35
  static get is() { return "justifi-payouts-list-filters"; }
@@ -70,7 +70,7 @@ export class PayoutsList {
70
70
  }
71
71
  }
72
72
  render() {
73
- return (h(StyledHost, { key: '7456971cf903af6fd77385fd01dac69760b9df11', exportedparts: tableExportedParts }, h("payouts-list-core", { key: '6bf911cb5a793f49fb19903013c48e6df93f9866', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
73
+ return (h(StyledHost, { key: '434171dee57c7d639a894133b36f7dc727e28381', exportedparts: tableExportedParts }, h("payouts-list-core", { key: 'e4ed849e1c839dcdd3990a1b64d2bd132cda86f8', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
74
74
  }
75
75
  static get is() { return "justifi-payouts-list"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,16 @@
1
+ import * as yup from "yup";
2
+ import { formatCurrency } from "../../utils/utils";
3
+ const RefundPaymentSchema = (maxRefundAmount) => {
4
+ const maxAmount = +maxRefundAmount;
5
+ return yup.object().shape({
6
+ amount: yup
7
+ .string()
8
+ .required('Amount is required')
9
+ .typeError('Amount must be a number')
10
+ .test('amount', `Refund amount cannot be more than ${formatCurrency(maxAmount)}`, function (value) {
11
+ return +value <= maxAmount;
12
+ })
13
+ .nullable(),
14
+ });
15
+ };
16
+ export default RefundPaymentSchema;
@@ -1,32 +1,31 @@
1
1
  import { h, } from "@stencil/core";
2
- import RefundFormSchema from "./refund-form-schema";
2
+ import RefundPaymentSchema from "./refund-payment-schema";
3
3
  import { Api } from "../../api";
4
4
  import { FormController } from "../../ui-components/form/form";
5
- import { CURRENCY_MASK } from "../../utils/form-input-masks";
6
- import { StyledHost } from "../../ui-components";
7
- export class RefundForm {
5
+ import { Header1, StyledHost } from "../../ui-components";
6
+ import { formatCurrency } from "../../utils/utils";
7
+ import refundReasonOptions from "./refund-reason-options";
8
+ export class RefundPayment {
8
9
  constructor() {
9
10
  this.authToken = undefined;
10
11
  this.paymentId = undefined;
11
- this.amount = 0;
12
- this.submitButtonText = 'Submit';
12
+ this.paymentAmountRefundable = 0;
13
13
  this.withButton = undefined;
14
- this.refundInfoText = undefined;
15
14
  this.errors = {};
15
+ this.values = {};
16
16
  this.isSubmitting = false;
17
17
  }
18
18
  componentWillLoad() {
19
- this.formController = new FormController(RefundFormSchema);
20
- this.formController.setInitialValues({
21
- amount: this.amount,
22
- message: '',
23
- });
19
+ this.formController = new FormController(RefundPaymentSchema(this.paymentAmountRefundable.toString()));
24
20
  this.initializeApi();
25
21
  }
26
22
  componentDidLoad() {
27
23
  this.formController.errors.subscribe(errors => {
28
24
  this.errors = Object.assign({}, errors);
29
25
  });
26
+ this.formController.values.subscribe(values => {
27
+ this.values = Object.assign({}, values);
28
+ });
30
29
  }
31
30
  /**
32
31
  * Handles the form submission.
@@ -34,19 +33,16 @@ export class RefundForm {
34
33
  */
35
34
  async handleSubmit(event) {
36
35
  event.preventDefault();
37
- this.formController.validateAndSubmit(this.submitRefund.bind(this), {
38
- amount: this.amount,
39
- });
36
+ this.formController.validateAndSubmit(this.submitRefund);
40
37
  }
41
38
  /**
42
39
  * Submits the refund request to the API.
43
40
  */
44
- async submitRefund() {
41
+ async submitRefund(values) {
45
42
  this.isSubmitting = true;
46
- const refundFields = this.formController.values.getValue();
47
43
  try {
48
- await this.api.post(`payments/${this.paymentId}/refunds`, refundFields);
49
- this.submitted.emit(refundFields);
44
+ const response = await this.api.post(`payments/${this.paymentId}/refunds`, values);
45
+ this.submitted.emit(response);
50
46
  }
51
47
  catch (error) {
52
48
  console.error('Error submitting refund:', error);
@@ -73,10 +69,9 @@ export class RefundForm {
73
69
  this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
74
70
  }
75
71
  render() {
76
- var _a;
77
- return (h(StyledHost, { key: '7becd3fcc3a0beefef5efdb860616aa60f7e61ad' }, h("h1", { key: '7125ac0e8452db4013d9065054aca8d65ead0138' }, "Refund"), this.refundInfoText && (h("div", { key: 'b60dbcac95e75469bab9e575efe5eba40d629693', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '231e5bcb4fdd82ea4e9bb0597bfe194759eb8e22', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '21faa4040e99ee142e0f06246fc8317dcc5dfa28', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '4a8671c7f833279c14e29ae0f4054586fa7ecbba', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: 'd4296520cb377a6b61547615a2b95a3088ace83a', class: "form-group" }, h("form-control-monetary", { key: 'dbe00249e022722aea24f9967408625b7460f0f7', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '765d36337fc31bd6ade5b9a94397b83e7f46e2a8', class: "form-group" }, h("form-control-text", { key: '3f3bc7e95568944d876fcf95e98ba9d871479096', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '4576ce0e5d04f063fd53045845fa5a4cf5bc6383', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '6165726b003006432d82ce5792a961ea2f42d654', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
72
+ return (h(StyledHost, { key: 'f9aa3650a61fce55ce094e48cb23cc62caf4c434' }, h(Header1, { key: 'def40858b3cf9188362848703e6425cc1273b1ee', text: "Refund Payment", class: "fs-5 fw-bold pb-3" }), h("form", { key: '20fcdff2467713eb3502959d0186de900a400207', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '5e838c432e5e0fafdfd153de327548a2d2d7f388', class: "form-group" }, h("form-control-monetary", { key: '151d529e7422073da4244f9bc81166f6a54ad9b0', name: "amount", label: "Refund Amount", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount, defaultValue: this.paymentAmountRefundable.toString() })), h("div", { key: '7d69e721b5f346d854f8b1914199c56fb062694d', class: "form-group" }, h("form-control-select", { key: '791d41bf86e856a7694afb0db20607ba792459b9', label: "Reason for refund (optional)", options: refundReasonOptions, name: "reason", defaultValue: '' })), h("div", { key: 'b8a67a5d091ad11a410d157cf6706023b3af139c', class: "form-group" }, h("form-control-textarea", { key: 'eee0ab29c728a64435c2836361eb2c2645fce1ea', name: "description", label: "Note (optional)", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.description, maxLength: 250 })), this.withButton && (h("div", { key: '3504774504825ffdace54ebf41f496aa58395648', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '27179c019afbec3d136c959657e6e6cbec892a27', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, `Refund ${formatCurrency(+this.values.amount)}`))))));
78
73
  }
79
- static get is() { return "justifi-refund-form"; }
74
+ static get is() { return "justifi-refund-payment"; }
80
75
  static get encapsulation() { return "shadow"; }
81
76
  static get properties() {
82
77
  return {
@@ -114,7 +109,7 @@ export class RefundForm {
114
109
  "attribute": "payment-id",
115
110
  "reflect": false
116
111
  },
117
- "amount": {
112
+ "paymentAmountRefundable": {
118
113
  "type": "number",
119
114
  "mutable": false,
120
115
  "complexType": {
@@ -126,30 +121,12 @@ export class RefundForm {
126
121
  "optional": true,
127
122
  "docs": {
128
123
  "tags": [],
129
- "text": "The amount of the payment to be refunded."
124
+ "text": "The amount of the payment to be refunded. This should be equal to the Payment `amount_refundable` property."
130
125
  },
131
- "attribute": "amount",
126
+ "attribute": "payment-amount-refundable",
132
127
  "reflect": false,
133
128
  "defaultValue": "0"
134
129
  },
135
- "submitButtonText": {
136
- "type": "string",
137
- "mutable": false,
138
- "complexType": {
139
- "original": "string",
140
- "resolved": "string",
141
- "references": {}
142
- },
143
- "required": false,
144
- "optional": true,
145
- "docs": {
146
- "tags": [],
147
- "text": "Custom text for the submit button. Defaults to 'Submit'."
148
- },
149
- "attribute": "submit-button-text",
150
- "reflect": false,
151
- "defaultValue": "'Submit'"
152
- },
153
130
  "withButton": {
154
131
  "type": "boolean",
155
132
  "mutable": false,
@@ -166,29 +143,13 @@ export class RefundForm {
166
143
  },
167
144
  "attribute": "with-button",
168
145
  "reflect": false
169
- },
170
- "refundInfoText": {
171
- "type": "string",
172
- "mutable": false,
173
- "complexType": {
174
- "original": "string",
175
- "resolved": "string",
176
- "references": {}
177
- },
178
- "required": false,
179
- "optional": true,
180
- "docs": {
181
- "tags": [],
182
- "text": "Optional information text displayed above the form."
183
- },
184
- "attribute": "refund-info-text",
185
- "reflect": false
186
146
  }
187
147
  };
188
148
  }
189
149
  static get states() {
190
150
  return {
191
151
  "errors": {},
152
+ "values": {},
192
153
  "isSubmitting": {}
193
154
  };
194
155
  }
@@ -204,13 +165,13 @@ export class RefundForm {
204
165
  "text": "Event emitted when the refund form is successfully submitted.\nThe submitted refund fields are passed as the event detail."
205
166
  },
206
167
  "complexType": {
207
- "original": "RefundFormFields",
208
- "resolved": "RefundFormFields",
168
+ "original": "RefundPaymentFields",
169
+ "resolved": "RefundPaymentFields",
209
170
  "references": {
210
- "RefundFormFields": {
171
+ "RefundPaymentFields": {
211
172
  "location": "import",
212
- "path": "./refund-form-schema",
213
- "id": "src/components/refund-form/refund-form-schema.ts::RefundFormFields"
173
+ "path": "./refund-payment-schema",
174
+ "id": "src/components/refund-payment/refund-payment-schema.ts::RefundPaymentFields"
214
175
  }
215
176
  }
216
177
  }
@@ -0,0 +1,19 @@
1
+ const refundReasonOptions = [
2
+ {
3
+ label: 'Select a reason',
4
+ value: '',
5
+ },
6
+ {
7
+ label: 'Customer requested a refund',
8
+ value: 'customer_request',
9
+ },
10
+ {
11
+ label: 'Customer was double-charged',
12
+ value: 'duplicate',
13
+ },
14
+ {
15
+ label: 'Payment was reported as fraud',
16
+ value: 'fraudulent',
17
+ }
18
+ ];
19
+ export default refundReasonOptions;
@@ -5,6 +5,7 @@ import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-co
5
5
  import { pagingDefaults } from "../../api";
6
6
  import { terminalOrdersTableCells, terminalOrdersTableColumns } from "./terminal-orders-table";
7
7
  import { TableClickActions } from "../../ui-components/table/event-types";
8
+ import { getRequestParams, onQueryParamsChange } from "./terminal-orders-list-params-state";
8
9
  export class TerminalOrdersListCore {
9
10
  constructor() {
10
11
  this.handleClickPrevious = (beforeCursor) => {
@@ -39,11 +40,18 @@ export class TerminalOrdersListCore {
39
40
  if (this.getTerminalOrders) {
40
41
  this.fetchData();
41
42
  }
43
+ onQueryParamsChange('set', () => {
44
+ this.pagingParams = {};
45
+ });
46
+ onQueryParamsChange('reset', () => {
47
+ this.pagingParams = {};
48
+ this.errorMessage = '';
49
+ });
42
50
  }
43
51
  fetchData() {
44
52
  this.loading = true;
45
53
  this.getTerminalOrders({
46
- params: {},
54
+ params: this.terminalOrderParams,
47
55
  onSuccess: async ({ terminalOrders, pagingInfo }) => {
48
56
  this.terminalOrders = terminalOrders;
49
57
  this.paging = pagingInfo;
@@ -60,6 +68,11 @@ export class TerminalOrdersListCore {
60
68
  final: () => { this.loading = false; },
61
69
  });
62
70
  }
71
+ get terminalOrderParams() {
72
+ const requestParams = getRequestParams();
73
+ const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
74
+ return params;
75
+ }
63
76
  get entityId() {
64
77
  return this.terminalOrders.map((terminalOrder) => terminalOrder.id);
65
78
  }
@@ -73,7 +86,7 @@ export class TerminalOrdersListCore {
73
86
  return !this.showEmptyState && !this.showErrorState && !this.loading;
74
87
  }
75
88
  render() {
76
- return (h("div", { key: 'ceeaed5590e1586fdbb568ae3e3efd0b9569bfe2' }, h("div", { key: '1324282d71ced0bc43e73722f0286ce35141d122', class: "table-wrapper" }, h("table", { key: '15648ceb92e0a0461809e8a64539935c6b095515', class: "table table-hover", part: table }, h("thead", { key: '15aff763ff1b972c8f578ae927459afdbd6544f9', class: "table-head sticky-top" }, h("tr", { key: '912564fcbdc5e827beacd09832fe0bb69408aee2', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '2aa023da48163f637eabf32ed662e722e1ea0129', class: "table-body" }, h(TableLoadingState, { key: 'db59bd7cdbd9d955a7310134ffa7133a1aecac61', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '7396924a0bb453d13c709ff692c09a5d42a29389', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: '7d53ab680cd832c4b8b58297b9aa7e4d35c28fd1', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'b4a1ca8efb71e67a5d41cebbf45367abe53a8943', class: "sticky-bottom" }, h("tr", { key: 'b3b2e69b93316738593fc6e30101266dc30a5af9', class: "table-light align-middle" }, h("td", { key: '5a2782c37a1606b34b1055088eb943dc2f93cce8', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '015d4d7aef4ab85b5dd3dac7563520d498747c04', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
89
+ return (h("div", { key: '029644a4c7e2f8957ffafb9ff62390b6b6869fce' }, h("div", { key: 'c6d0ae6e68f45252bbc276da1ed853fc6b9b5338', class: "table-wrapper" }, h("table", { key: '1809d7ddfd9b9c6834498115ac43df8f7b4ea5d9', class: "table table-hover", part: table }, h("thead", { key: 'bcd8f0c82e5aa97ba1bd1207353bc09a4c21bd05', class: "table-head sticky-top" }, h("tr", { key: 'bfe9dc35dc30acf4f483c0359989db9ff82ceb7a', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '5181c615bbc06bf347c9e567064fcbbf6b518d2d', class: "table-body" }, h(TableLoadingState, { key: 'a48ee705634008f203e01327ea6f9efdf980fdc5', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ae1daed5464b7719e4f4e7c116a408b6b37cb997', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: '9496b60d37f5ad699083f3cd305e14550a4b6770', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '0ac98a7e41add32367010e0c09f99c4328f2d717', class: "sticky-bottom" }, h("tr", { key: 'a8fda69087663a8707ef16c2fa153d351426fe0c', class: "table-light align-middle" }, h("td", { key: 'f805502e404b69e86f3ec0963321bd9989c035b8', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '93848e212dce3b8e00b4e44e4907045c2ca5fd67', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
77
90
  }
78
91
  static get is() { return "terminal-orders-list-core"; }
79
92
  static get properties() {
@@ -0,0 +1,141 @@
1
+ import { h } from "@stencil/core";
2
+ import { filterParams, propsParams, clearParams } from "./terminal-orders-list-params-state";
3
+ import { StyledHost } from "../../ui-components";
4
+ import { TerminalOrderStatus, TerminalOrderType } from "../../api";
5
+ import { convertToLocal, convertToUTC } from "../../utils/utils";
6
+ import { terminalOrdersListFilterMenu, orderStatusTerminalOrdersListFilterParam, orderTypeTerminalOrdersListFilterParam, createdAfterTerminalOrdersListFilterParam, createdBeforeTerminalOrdersListFilterParam } from "../../styles/parts";
7
+ export class TerminalOrdersListFilters {
8
+ constructor() {
9
+ this.setParamsOnChange = (name, value) => {
10
+ filterParams[name] = value;
11
+ };
12
+ this.handleDateInput = (name, value) => {
13
+ const utcDate = convertToUTC(value, { setExactTime: true });
14
+ this.setParamsOnChange(name, utcDate);
15
+ };
16
+ this.orderStatus = undefined;
17
+ this.orderType = undefined;
18
+ this.createdAfter = undefined;
19
+ this.createdBefore = undefined;
20
+ }
21
+ componentWillLoad() {
22
+ const propsToSet = {
23
+ order_status: this.orderStatus,
24
+ order_type: this.orderType,
25
+ created_after: this.createdAfter,
26
+ created_before: this.createdBefore
27
+ };
28
+ Object.entries(propsToSet).forEach(([key, value]) => {
29
+ if (value) {
30
+ propsParams[key] = value;
31
+ }
32
+ });
33
+ }
34
+ get terminalOrderStatusOptions() {
35
+ return [
36
+ { label: 'All', value: '' },
37
+ { label: 'Created', value: TerminalOrderStatus.created },
38
+ { label: 'Completed', value: TerminalOrderStatus.completed },
39
+ { label: 'Submitted', value: TerminalOrderStatus.submitted },
40
+ ];
41
+ }
42
+ get terminalOrderTypeOptions() {
43
+ return [
44
+ { label: 'All', value: '' },
45
+ { label: 'Boarding Only', value: TerminalOrderType.boardingOnly },
46
+ { label: 'Boarding Shipping', value: TerminalOrderType.boardingShipping },
47
+ ];
48
+ }
49
+ render() {
50
+ const filterMenuParams = Object.assign({}, filterParams);
51
+ return (h(StyledHost, { key: 'fa53c48c1a916781c8fffe7910f524ea334cdf27' }, h("table-filters-menu", { key: 'e8ba7a019f92234775acbaf2dafb817fb98f8d70', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: '67e0b83350c37c7fa73f8e2808266fb8fda96838', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '08fd58b47b35fcb073b116c827ad2bb07c17f879', class: "p-2" }, h("form-control-select", { key: '1a6a468d37afb5a25d37e4f9e43d6bd23414c6a3', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '92c8b10d0c48811a63d0ed796637dfadb85b00c4', class: "p-2" }, h("form-control-select", { key: 'f8d7e96f8c0a9215ebb5b7a1f581b4dc60e5ad10', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: '2d5b3262a022d3122d533ef7f7e886dec5c2b701', class: "p-2" }, h("form-control-date", { key: '4b1e799b9a99ce9046ea3a3e0b3249d566448ae6', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
52
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '93019260d2befe0ca3d99c17a769f2ebb1b6f07f', class: "p-2" }, h("form-control-date", { key: '3aba4879d8998c90a36f2fa5326c230792768403', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
53
+ convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
54
+ }
55
+ static get is() { return "justifi-terminal-orders-list-filters"; }
56
+ static get encapsulation() { return "shadow"; }
57
+ static get properties() {
58
+ return {
59
+ "orderStatus": {
60
+ "type": "string",
61
+ "mutable": false,
62
+ "complexType": {
63
+ "original": "TerminalOrderStatus",
64
+ "resolved": "TerminalOrderStatus.completed | TerminalOrderStatus.created | TerminalOrderStatus.submitted",
65
+ "references": {
66
+ "TerminalOrderStatus": {
67
+ "location": "import",
68
+ "path": "../../api",
69
+ "id": "src/api/index.ts::TerminalOrderStatus"
70
+ }
71
+ }
72
+ },
73
+ "required": false,
74
+ "optional": true,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": ""
78
+ },
79
+ "attribute": "order-status",
80
+ "reflect": false
81
+ },
82
+ "orderType": {
83
+ "type": "string",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "TerminalOrderType",
87
+ "resolved": "TerminalOrderType.boardingOnly | TerminalOrderType.boardingShipping",
88
+ "references": {
89
+ "TerminalOrderType": {
90
+ "location": "import",
91
+ "path": "../../api",
92
+ "id": "src/api/index.ts::TerminalOrderType"
93
+ }
94
+ }
95
+ },
96
+ "required": false,
97
+ "optional": true,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": ""
101
+ },
102
+ "attribute": "order-type",
103
+ "reflect": false
104
+ },
105
+ "createdAfter": {
106
+ "type": "string",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "string",
110
+ "resolved": "string",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": ""
118
+ },
119
+ "attribute": "created-after",
120
+ "reflect": false
121
+ },
122
+ "createdBefore": {
123
+ "type": "string",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "string",
127
+ "resolved": "string",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": true,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": ""
135
+ },
136
+ "attribute": "created-before",
137
+ "reflect": false
138
+ }
139
+ };
140
+ }
141
+ }
@@ -0,0 +1,14 @@
1
+ import { createStore } from "@stencil/store";
2
+ const filterParamsInitialState = {};
3
+ const propsParamsInitialState = {};
4
+ const filterParamsStore = createStore(() => filterParamsInitialState);
5
+ const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
6
+ const propsParamsStore = createStore(() => propsParamsInitialState);
7
+ const { state: propsParams } = propsParamsStore;
8
+ const getRequestParams = () => {
9
+ return Object.assign(Object.assign({}, filterParams), propsParams);
10
+ };
11
+ const clearParams = () => {
12
+ filterParamsStore.reset();
13
+ };
14
+ export { filterParams, propsParams, onQueryParamsChange, clearParams, getRequestParams };
@@ -43,7 +43,7 @@ export class TerminalOrdersList {
43
43
  }
44
44
  }
45
45
  render() {
46
- return (h(StyledHost, { key: '2a268ef2e2128e8a0ed23092c78caa7f59539c6f' }, h("terminal-orders-list-core", { key: 'a56b31da3f4672a7f63aaff473dbdcb985eed3fc', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
46
+ return (h(StyledHost, { key: 'beb7ebe2397c43c28b818133294b6c972d2834ac' }, h("terminal-orders-list-core", { key: '87db98176b2a462b9446170c348352958d4e3a05', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
47
47
  }
48
48
  static get is() { return "justifi-terminal-orders-list"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -124,7 +124,7 @@ export class TerminalsListCore {
124
124
  return !this.showEmptyState && !this.showErrorState && !this.loading;
125
125
  }
126
126
  render() {
127
- return (h("div", { key: '8831cfa38f962ba4dcf8903eca44931a800a9285' }, h("div", { key: '01d26a4aff98204ccc0fd4db8beb2cc2b021e386', class: "table-wrapper" }, h("table", { key: '036d4a14c61db9b406157425504112dabf4b04bd', class: "table table-hover", part: table }, h("thead", { key: '3782f1b66e447836d93e8b3cc28c09e4fe466ac7', class: "table-head sticky-top" }, h("tr", { key: '3842ccaaadbc3acf0c6caf8e8407aad17d91cae4', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: 'e9f5f7ef0eca1da8ba7e684ba937f7357c8b341a', class: "table-body" }, h(TableLoadingState, { key: '2902cbb3cfa87cdc2ae242ef2cd1001b9b491503', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'f596f3498b67dd40d3a93cd6dfa091cbc67a4cc1', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: 'e6e67b174a7d8ca353990ae85decbe89539ea504', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '353ba88161fe40528c8ef21271b0ec1a23237264', class: "sticky-bottom" }, h("tr", { key: '6f16d82697452ef4bc1aafa27bb5076e1bb1af54', class: "table-light align-middle" }, h("td", { key: 'bec74cc91feea7eef3bdcd290c2d2e77f6852ad1', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: 'a7667abca02d28a40ef4c58d8b869b48f9746105', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
127
+ return (h("div", { key: 'dab480902928e4dbcdbf0c8ada95fdc4d186f211' }, h("div", { key: '8fd8ce93ac16676d4ea9de2588467df5feb18e71', class: "table-wrapper" }, h("table", { key: '02a58d1f233bec3cd40877c4cfeba55b345876b7', class: "table table-hover", part: table }, h("thead", { key: '64d3d4cdb0c97a0628da1935386e9cb430a71ea7', class: "table-head sticky-top" }, h("tr", { key: 'a52c8d1a59adfa1d18dc8dfa3a70a6318f52f4c2', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '476983a5b8dcb65d62953de2a8a7a24c47cb83be', class: "table-body" }, h(TableLoadingState, { key: 'ecae363863cb7ab6b2d8226f8f39bc682333af29', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'f8fb01d5048fc0143546344b65a9018aeab8b688', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: 'cd40cb1696624e20b9cad238d43be902538ce4cd', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '29ebf6d4d3537f25545fa9e67416c52ee1223b12', class: "sticky-bottom" }, h("tr", { key: 'a732f3d809a4f97b926b0e978e32c919f36c13b1', class: "table-light align-middle" }, h("td", { key: '2e66c17f57a08d4e0f4da693caf0ea44f5ec7484', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: 'e3544088964b15242d710223a76208217bffab3f', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
128
128
  }
129
129
  static get is() { return "terminals-list-core"; }
130
130
  static get properties() {
@@ -3,13 +3,14 @@ import { debounce } from "lodash";
3
3
  import { filterParams, propsParams, clearParams } from "./terminals-list-params-state";
4
4
  import { StyledHost } from "../../ui-components";
5
5
  import { ITerminalStatus } from "../../api";
6
- import { terminalsListFilterMenu, terminalIdTerminalsListFilterParam, terminalStatusTerminalsListFilterParam } from "../../styles/parts";
6
+ import { terminalsListFilterMenu, terminalIdTerminalsListFilterParam, terminalOrderIdTerminalsListFilterParam, terminalStatusTerminalsListFilterParam } from "../../styles/parts";
7
7
  export class TerminalsListFilters {
8
8
  constructor() {
9
9
  this.setParamsOnChange = (name, value) => {
10
10
  filterParams[name] = value;
11
11
  };
12
12
  this.terminalId = undefined;
13
+ this.terminalOrderId = undefined;
13
14
  this.terminalStatus = undefined;
14
15
  }
15
16
  componentWillLoad() {
@@ -18,6 +19,7 @@ export class TerminalsListFilters {
18
19
  const propsToSet = {
19
20
  terminal_id: this.terminalId,
20
21
  status: this.terminalStatus,
22
+ terminal_order_id: this.terminalOrderId
21
23
  };
22
24
  Object.entries(propsToSet).forEach(([key, value]) => {
23
25
  if (value) {
@@ -31,11 +33,12 @@ export class TerminalsListFilters {
31
33
  { label: 'Connected', value: ITerminalStatus.connected },
32
34
  { label: 'Disconnected', value: ITerminalStatus.disconnected },
33
35
  { label: 'Unknown', value: ITerminalStatus.unknown },
36
+ { label: 'Pending Configuration', value: ITerminalStatus.pending_configuration }
34
37
  ];
35
38
  }
36
39
  render() {
37
40
  const filterMenuParams = Object.assign({}, filterParams);
38
- return (h(StyledHost, { key: '2fc002da23470b942ac8885ba0ee205478a3e975' }, h("table-filters-menu", { key: '8591f53c5e105d26955940ae7e0be64b084f31ec', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: 'e2f0de98ac031d768529654d3b8a5ba43e62269b', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'a62823375c9f3b214f5ceff4163468fa91136cf6', class: "p-2" }, h("form-control-text", { key: '8a314678ce052a5f59e2c590d73df72a46caf0db', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: '8462f83b1ba4f76044567f7c8da4fb84a8b932f7', class: "p-2" }, h("form-control-select", { key: '40cc106e9a37f76d4e072ede96b0633e5fb7c1e9', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
41
+ return (h(StyledHost, { key: '390b8788e785bc81711a1b0f68203fce5a348c4c' }, h("table-filters-menu", { key: 'ab37f284aad5b828c2a3d0ce78e5c49fe86c8ec7', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: '9f06d2199885d1cb8d9a4310fc94366717ca092c', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '146fb3fa0a146c8011e1fc609f885ec3de0af8bf', class: "p-2" }, h("form-control-text", { key: 'f9d33f3facd5af88761033256e9bcdee772d187b', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: '59b8af61f98c01e0cd04299780817b9a497d33bc', class: "p-2" }, h("form-control-text", { key: '80c6ed5f37f4429aac0451f1b2c76fd99c52d246', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: terminalOrderIdTerminalsListFilterParam })), h("div", { key: '4452ff9cbeb157408fdd8569af5792d32f0d1aa9', class: "p-2" }, h("form-control-select", { key: '52406f154a9d5f7a01831047eedf09b909d1bc0d', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
39
42
  }
40
43
  static get is() { return "justifi-terminals-list-filters"; }
41
44
  static get encapsulation() { return "shadow"; }
@@ -58,12 +61,29 @@ export class TerminalsListFilters {
58
61
  "attribute": "terminal-id",
59
62
  "reflect": false
60
63
  },
64
+ "terminalOrderId": {
65
+ "type": "string",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "string",
69
+ "resolved": "string",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": true,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": ""
77
+ },
78
+ "attribute": "terminal-order-id",
79
+ "reflect": false
80
+ },
61
81
  "terminalStatus": {
62
82
  "type": "string",
63
83
  "mutable": false,
64
84
  "complexType": {
65
85
  "original": "ITerminalStatus",
66
- "resolved": "ITerminalStatus.connected | ITerminalStatus.disconnected | ITerminalStatus.unknown",
86
+ "resolved": "ITerminalStatus.connected | ITerminalStatus.disconnected | ITerminalStatus.pending_configuration | ITerminalStatus.unknown",
67
87
  "references": {
68
88
  "ITerminalStatus": {
69
89
  "location": "import",
@@ -66,7 +66,7 @@ export class TerminalsList {
66
66
  }
67
67
  }
68
68
  render() {
69
- return (h(StyledHost, { key: '1765197e56fd03442cc4d30a24d090b4dfd86405' }, h("terminals-list-core", { key: '4e880db7702649486b2cb8e743b0f7d7e78a72c0', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
69
+ return (h(StyledHost, { key: '008b4bd549c228dbf8972e5ce08764c40e0b45a7' }, h("terminals-list-core", { key: 'e57f76fa1560c97d76068503b48e92a5fa9a02ec', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
70
70
  }
71
71
  static get is() { return "justifi-terminals-list"; }
72
72
  static get encapsulation() { return "shadow"; }
@@ -17,6 +17,11 @@ export const MapTerminalStatusToBadge = (status) => {
17
17
  title: 'The status of this terminal is unknown',
18
18
  text: 'Unknown',
19
19
  },
20
+ pending_configuration: {
21
+ variant: BadgeVariant.WARNING,
22
+ title: 'This terminal is pending configuration',
23
+ text: 'Pending configuration',
24
+ },
20
25
  };
21
26
  const badgeProps = statusToBadgeProps[status];
22
27
  return h(Badge, Object.assign({}, badgeProps));