@justifi/webcomponents 6.12.2 → 6.12.4

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 (590) hide show
  1. package/dist/cjs/{Analytics-C1Wd9OW4.js → Analytics-BERGweGK.js} +2 -3
  2. package/dist/cjs/{Plaid-BlSGeGpn.js → Plaid-BRSyOOuw.js} +60 -4
  3. package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +151 -19
  4. package/dist/cjs/{justifi-additional-statement_8.cjs.entry.js → additional-statement_8.cjs.entry.js} +24 -24
  5. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  6. package/dist/cjs/{business-identity-schema-DWWtSiUF.js → business-identity-schema-DI9XFbaD.js} +67 -0
  7. package/dist/cjs/{business.service-BheJs82v.js → business.service-Z9OACEQL.js} +1 -2
  8. package/dist/cjs/card-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{check-pkg-version-DMXmPDqZ.js → check-pkg-version-ByKpJklZ.js} +1 -1
  10. package/dist/cjs/{checkout.service-DZKdHQQq.js → checkout.service-BZOyqXgW.js} +1 -2
  11. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  12. package/dist/cjs/{justifi-dispute-notification_3.cjs.entry.js → dispute-notification_2.cjs.entry.js} +67 -90
  13. package/dist/cjs/{event-types-BWQT2lwu.js → event-types-AU1B76Vm.js} +30 -0
  14. package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  17. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-number_2.cjs.entry.js +89 -0
  20. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  22. package/dist/cjs/{get-business-CKC1P4Qs.js → get-business-aR-C83KX.js} +6 -3
  23. package/dist/cjs/{get-payment-details-DL5FmIyF.js → get-payment-details-dwhA02Zl.js} +2 -3
  24. package/dist/cjs/{get-subaccounts-CVK4O7th.js → get-subaccounts-B1jmSa2d.js} +2 -3
  25. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  26. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  27. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +12 -13
  28. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
  29. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
  30. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  31. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
  32. package/dist/cjs/justifi-business-form.cjs.entry.js +10 -12
  33. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +190 -27
  38. package/dist/cjs/justifi-dispute-management.cjs.entry.js +65 -18
  39. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11071 -23
  40. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  41. package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -17
  42. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
  43. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
  44. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  45. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
  46. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
  47. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
  48. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
  49. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
  50. package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -6
  52. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
  54. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +178 -24
  55. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
  56. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/{package-CRaVpb0w.js → package-B6L3zyfG.js} +1 -1
  59. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  60. package/dist/cjs/{payment-provisioning-actions-BO7dzIm1.js → payment-provisioning-actions-BiSpysjW.js} +2 -2
  61. package/dist/cjs/{payment.service-sZKlg2Jq.js → payment.service-ByrgA_QZ.js} +1 -2
  62. package/dist/cjs/{payout.service-BcQVsMCS.js → payout.service-CnQm_BpU.js} +1 -2
  63. package/dist/cjs/{payouts-status-CwgOMz-S.js → payouts-status-AuS3Mp0V.js} +2 -2
  64. package/dist/cjs/{plaid.service-BcgO2VXC.js → plaid.service-Dlb8EUR8.js} +1 -2
  65. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  66. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  67. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  68. package/dist/cjs/{terminal.service-CjMMWSh3.js → terminal.service-BdwHQ3Vv.js} +1 -2
  69. package/dist/cjs/{utils-DbTucCTO.js → utils-FVGp6se3.js} +1 -1
  70. package/dist/cjs/webcomponents.cjs.js +1 -1
  71. package/dist/collection/actions/business/get-business.js +4 -1
  72. package/dist/collection/api/Terminal.js +1 -1
  73. package/dist/collection/collection-manifest.json +10 -16
  74. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
  75. package/dist/collection/components/business-forms/owner-form/owner-form.js +226 -12
  76. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  77. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +166 -16
  78. package/dist/collection/components/dispute-management/{justifi-dispute-notification.js → dispute-notification.js} +5 -6
  79. package/dist/collection/components/dispute-management/dispute-response/{justifi-additional-statement.js → additional-statement.js} +3 -3
  80. package/dist/collection/components/dispute-management/dispute-response/{justifi-cancellation-policy.js → cancellation-policy.js} +3 -3
  81. package/dist/collection/components/dispute-management/dispute-response/{justifi-customer-details.js → customer-details.js} +3 -3
  82. package/dist/collection/components/dispute-management/dispute-response/{dispute-response-core.js → dispute-response.js} +105 -77
  83. package/dist/collection/components/dispute-management/dispute-response/{justifi-duplicate-charge.js → duplicate-charge.js} +3 -3
  84. package/dist/collection/components/dispute-management/dispute-response/{justifi-electronic-evidence.js → electronic-evidence.js} +3 -3
  85. package/dist/collection/components/dispute-management/dispute-response/{justifi-product-or-service.js → product-or-service.js} +3 -3
  86. package/dist/collection/components/dispute-management/dispute-response/{justifi-refund-policy.js → refund-policy.js} +3 -3
  87. package/dist/collection/components/dispute-management/dispute-response/{justifi-shipping-details.js → shipping-details.js} +3 -3
  88. package/dist/collection/components/dispute-management/justifi-dispute-management.js +78 -11
  89. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  90. package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +79 -15
  91. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
  92. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  93. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
  94. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  95. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  96. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  97. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  98. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  99. package/dist/collection/components/order-terminals/justifi-order-terminals.js +4 -3
  100. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  101. package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
  102. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  103. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  104. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  105. package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
  106. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  107. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  108. package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
  109. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  110. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +134 -10
  111. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  112. package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
  113. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  114. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  115. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  116. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  117. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  118. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  119. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  120. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  121. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  122. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  123. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  124. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  125. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  126. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  127. package/dist/collection/ui-components/internal-button.js +1 -1
  128. package/dist/collection/ui-components/radio-list-item.js +1 -1
  129. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  130. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  131. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  132. package/dist/docs.json +5763 -6945
  133. package/dist/esm/{Analytics-qafLCOEU.js → Analytics-B1bQP71R.js} +2 -3
  134. package/dist/esm/{Plaid-BuKEVgbB.js → Plaid-l6nNIjab.js} +58 -3
  135. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  136. package/dist/esm/additional-questions-form-step_14.entry.js +156 -24
  137. package/dist/esm/additional-questions_5.entry.js +2 -2
  138. package/dist/esm/{justifi-additional-statement_8.entry.js → additional-statement_8.entry.js} +19 -19
  139. package/dist/esm/{badge-B6dp1XGV.js → badge-Dlcl9qdm.js} +1 -1
  140. package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
  141. package/dist/esm/bank-account-form.entry.js +4 -4
  142. package/dist/esm/bank-account-read-only-value.entry.js +1 -1
  143. package/dist/esm/business-identity-schema-D-Nk9aGV.js +163 -0
  144. package/dist/esm/{business.service-BPbZ5fxQ.js → business.service-C31wbMVs.js} +1 -2
  145. package/dist/esm/{button-DRdaAudE.js → button-BvzOzV4l.js} +1 -1
  146. package/dist/esm/card-form.entry.js +4 -4
  147. package/dist/esm/{check-pkg-version-BJtCbzf9.js → check-pkg-version-CNwUC4SV.js} +1 -1
  148. package/dist/esm/{checkout.service-CJMfFKyS.js → checkout.service-cVdOGDuI.js} +1 -2
  149. package/dist/esm/{country-config-P042rrI3.js → country-config-B_fuF6JU.js} +1 -1
  150. package/dist/esm/custom-popper_2.entry.js +3 -3
  151. package/dist/esm/{justifi-dispute-notification_3.entry.js → dispute-notification_2.entry.js} +68 -90
  152. package/dist/esm/{event-types-Bg2SZArf.js → event-types-DalU_6SB.js} +29 -1
  153. package/dist/esm/form-address-fields_3.entry.js +5 -5
  154. package/dist/esm/form-control-checkbox.entry.js +3 -3
  155. package/dist/esm/form-control-date.entry.js +4 -4
  156. package/dist/esm/{form-control-error-text-DVedKyhp.js → form-control-error-text-Di9QePY5.js} +1 -1
  157. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  158. package/dist/esm/form-control-file.entry.js +4 -4
  159. package/dist/esm/{form-control-help-text-D-349cNw.js → form-control-help-text-DGMpMuAm.js} +1 -1
  160. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  161. package/dist/esm/form-control-monetary.entry.js +5 -5
  162. package/dist/esm/form-control-number_2.entry.js +86 -0
  163. package/dist/esm/form-control-radio.entry.js +3 -3
  164. package/dist/esm/form-control-select_2.entry.js +6 -6
  165. package/dist/esm/{get-business-DpFRs5dE.js → get-business-Gg6qn5on.js} +6 -3
  166. package/dist/esm/{get-payment-details-DjBou5Fu.js → get-payment-details-BiWgSJau.js} +2 -3
  167. package/dist/esm/{get-subaccounts-CgDWE_5o.js → get-subaccounts-CkjZeR9U.js} +2 -3
  168. package/dist/esm/{header-1-Bl7MHW0w.js → header-1-evYxFIGN.js} +1 -1
  169. package/dist/esm/{header-3-C7JJVnMG.js → header-3-BUDap2xY.js} +1 -1
  170. package/dist/esm/hidden-input_2.entry.js +7 -7
  171. package/dist/esm/{index.esm-BHdVU4hV.js → index.esm-CgNcFueq.js} +1 -1
  172. package/dist/esm/{insurance-state-qTdpe84i.js → insurance-state-CLGc1-_4.js} +1 -1
  173. package/dist/esm/internal-button.entry.js +3 -3
  174. package/dist/esm/justifi-apple-pay_11.entry.js +17 -18
  175. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -6
  176. package/dist/esm/justifi-bank-account-form.entry.js +5 -6
  177. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  178. package/dist/esm/justifi-business-details.entry.js +10 -11
  179. package/dist/esm/justifi-business-form.entry.js +15 -17
  180. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  181. package/dist/esm/justifi-card-form.entry.js +5 -6
  182. package/dist/esm/justifi-checkout.entry.js +5 -6
  183. package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
  184. package/dist/esm/justifi-checkouts-list.entry.js +190 -27
  185. package/dist/esm/justifi-details.entry.js +2 -2
  186. package/dist/esm/justifi-dispute-management.entry.js +64 -17
  187. package/dist/esm/justifi-gross-payment-chart.entry.js +11071 -23
  188. package/dist/esm/justifi-order-terminals.entry.js +14 -14
  189. package/dist/esm/justifi-payment-details.entry.js +20 -21
  190. package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
  191. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -11
  192. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  193. package/dist/esm/justifi-payments-list.entry.js +12 -13
  194. package/dist/esm/justifi-payout-details.entry.js +15 -16
  195. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -11
  196. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
  197. package/dist/esm/justifi-payouts-list.entry.js +13 -14
  198. package/dist/esm/justifi-refund-payment.entry.js +11 -12
  199. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  200. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -9
  201. package/dist/esm/justifi-skeleton.entry.js +3 -3
  202. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
  203. package/dist/esm/justifi-terminal-orders-list.entry.js +175 -21
  204. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
  205. package/dist/esm/justifi-terminals-list.entry.js +12 -13
  206. package/dist/esm/loader.js +1 -1
  207. package/dist/esm/{package-BCgsLInF.js → package-OGt0dCJl.js} +1 -1
  208. package/dist/esm/pagination-menu.entry.js +1 -1
  209. package/dist/esm/{parts-DnrawQn3.js → parts-CPKMvyV_.js} +1 -1
  210. package/dist/esm/payment-method-option.entry.js +2 -2
  211. package/dist/esm/{payment-provisioning-actions-Dr0YIShV.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
  212. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -2
  213. package/dist/esm/{payment-provisioning-loading-DI2wDkhm.js → payment-provisioning-loading-Dve2xQA4.js} +1 -1
  214. package/dist/esm/{payment.service-Ckbb7gXA.js → payment.service-5_u-UzTY.js} +1 -2
  215. package/dist/esm/{payments-status-BIDoGw-m.js → payments-status-BlVUt4C1.js} +1 -1
  216. package/dist/esm/{payout.service-BgFKxEoL.js → payout.service-D2zS5y8N.js} +1 -2
  217. package/dist/esm/{payouts-status-1T2NZBoE.js → payouts-status-DCjCGTaa.js} +3 -3
  218. package/dist/esm/{plaid.service-BLguQHs_.js → plaid.service-BiJ65YG8.js} +1 -2
  219. package/dist/esm/radio-list-item.entry.js +2 -2
  220. package/dist/esm/{schema-validations-v6WGlZkq.js → schema-validations-u9_XnlUL.js} +2 -2
  221. package/dist/esm/{skeleton-CXGFVqDf.js → skeleton-BEHo2ypu.js} +1 -1
  222. package/dist/esm/{spinner-kSw6PcwU.js → spinner-DIiQZd6_.js} +1 -1
  223. package/dist/esm/{table-CcyuIutB.js → table-DqGfsdys.js} +3 -3
  224. package/dist/esm/table-filters-menu.entry.js +3 -3
  225. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  226. package/dist/esm/{terminal.service-0oISl5j-.js → terminal.service-CIxDfM7V.js} +1 -2
  227. package/dist/esm/{utils-DcfpJGDZ.js → utils-C1B2hVAB.js} +1 -1
  228. package/dist/esm/{utils-BxYS3WDw.js → utils-CX6puxwf.js} +1 -1
  229. package/dist/esm/webcomponents.js +1 -1
  230. package/dist/module/Plaid.js +2 -2
  231. package/dist/module/{justifi-refund-policy.d.ts → additional-statement.d.ts} +4 -4
  232. package/dist/module/additional-statement.js +6 -0
  233. package/dist/module/{justifi-additional-statement2.js → additional-statement2.js} +8 -8
  234. package/dist/module/badge.js +1 -1
  235. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  236. package/dist/module/billing-form-full2.js +1 -1
  237. package/dist/module/business-bank-account-form-step2.js +1 -1
  238. package/dist/module/business-owners-form-step2.js +20 -26
  239. package/dist/module/button.js +1 -1
  240. package/dist/module/cancellation-policy.d.ts +11 -0
  241. package/dist/module/cancellation-policy.js +6 -0
  242. package/dist/module/{justifi-cancellation-policy2.js → cancellation-policy2.js} +8 -8
  243. package/dist/module/card-billing-form-simple2.js +1 -1
  244. package/dist/module/custom-popper2.js +2 -2
  245. package/dist/module/{checkouts-list-core.d.ts → customer-details.d.ts} +4 -4
  246. package/dist/module/customer-details.js +6 -0
  247. package/dist/module/{justifi-customer-details2.js → customer-details2.js} +8 -8
  248. package/dist/module/dispute-notification.d.ts +11 -0
  249. package/dist/module/dispute-notification.js +6 -0
  250. package/dist/module/dispute-notification2.js +82 -0
  251. package/dist/module/dispute-response.d.ts +11 -0
  252. package/dist/module/dispute-response.js +6 -0
  253. package/dist/module/{dispute-response-core.js → dispute-response2.js} +105 -53
  254. package/dist/module/duplicate-charge.d.ts +11 -0
  255. package/dist/module/duplicate-charge.js +6 -0
  256. package/dist/module/{justifi-duplicate-charge2.js → duplicate-charge2.js} +8 -8
  257. package/dist/module/electronic-evidence.d.ts +11 -0
  258. package/dist/module/electronic-evidence.js +6 -0
  259. package/dist/module/{justifi-electronic-evidence2.js → electronic-evidence2.js} +8 -8
  260. package/dist/module/event-types3.js +119 -1
  261. package/dist/module/form-alert2.js +1 -1
  262. package/dist/module/form-control-date2.js +2 -2
  263. package/dist/module/form-control-file-v22.js +1 -1
  264. package/dist/module/form-control-file2.js +2 -2
  265. package/dist/module/form-control-monetary2.js +2 -2
  266. package/dist/module/form-control-number-masked2.js +2 -2
  267. package/dist/module/form-control-number2.js +3 -3
  268. package/dist/module/form-control-radio2.js +2 -2
  269. package/dist/module/form-control-select2.js +2 -2
  270. package/dist/module/form-control-text2.js +2 -2
  271. package/dist/module/form-control-textarea2.js +3 -3
  272. package/dist/module/get-business.js +4 -1
  273. package/dist/module/get-payment-details.js +1 -1
  274. package/dist/module/hidden-input2.js +2 -2
  275. package/dist/module/iframe-input2.js +4 -4
  276. package/dist/module/internal-button2.js +1 -1
  277. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  278. package/dist/module/justifi-bank-account-form.js +1 -1
  279. package/dist/module/justifi-billing-form-full.js +1 -1
  280. package/dist/module/justifi-button2.js +1 -1
  281. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  282. package/dist/module/justifi-card-form.js +1 -1
  283. package/dist/module/justifi-checkout-summary2.js +1 -1
  284. package/dist/module/justifi-checkouts-list-filters.js +3 -3
  285. package/dist/module/justifi-checkouts-list.js +197 -28
  286. package/dist/module/justifi-dispute-management.js +103 -62
  287. package/dist/module/justifi-gross-payment-chart.js +11074 -24
  288. package/dist/module/justifi-header2.js +1 -1
  289. package/dist/module/justifi-modular-checkout2.js +2 -2
  290. package/dist/module/justifi-order-terminals.js +7 -6
  291. package/dist/module/justifi-payment-details.js +9 -9
  292. package/dist/module/justifi-payment-provisioning.js +53 -59
  293. package/dist/module/justifi-payment-transactions-list.js +2 -2
  294. package/dist/module/justifi-payments-list-filters.js +2 -2
  295. package/dist/module/justifi-payments-list.js +2 -2
  296. package/dist/module/justifi-payout-details.js +4 -4
  297. package/dist/module/justifi-payout-transactions-list.js +2 -2
  298. package/dist/module/justifi-payouts-list-filters.js +3 -3
  299. package/dist/module/justifi-payouts-list.js +2 -2
  300. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  301. package/dist/module/justifi-skeleton.js +1 -1
  302. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  303. package/dist/module/justifi-terminal-orders-list.js +184 -22
  304. package/dist/module/justifi-terminals-list-filters.js +2 -2
  305. package/dist/module/justifi-terminals-list.js +3 -3
  306. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  307. package/dist/module/owner-form-inputs2.js +2 -2
  308. package/dist/module/owner-form2.js +177 -33
  309. package/dist/module/package.js +1 -1
  310. package/dist/module/pagination-menu2.js +1 -1
  311. package/dist/module/parts.js +1 -1
  312. package/dist/module/payment-method-option.js +1 -1
  313. package/dist/module/payment-provisioning-form-steps2.js +52 -58
  314. package/dist/module/product-or-service.d.ts +11 -0
  315. package/dist/module/product-or-service.js +6 -0
  316. package/dist/module/{justifi-product-or-service2.js → product-or-service2.js} +8 -8
  317. package/dist/module/radio-list-item2.js +1 -1
  318. package/dist/module/{owner-form-core.d.ts → refund-policy.d.ts} +4 -4
  319. package/dist/module/refund-policy.js +6 -0
  320. package/dist/module/{justifi-refund-policy2.js → refund-policy2.js} +8 -8
  321. package/dist/module/shipping-details.d.ts +11 -0
  322. package/dist/module/shipping-details.js +6 -0
  323. package/dist/module/{justifi-shipping-details2.js → shipping-details2.js} +8 -8
  324. package/dist/module/spinner.js +1 -1
  325. package/dist/module/table-filters-menu2.js +1 -1
  326. package/dist/module/terminal-quantity-selector2.js +1 -1
  327. package/dist/module/utils2.js +1 -1
  328. package/dist/types/actions/business/get-business.d.ts +2 -1
  329. package/dist/types/api/Terminal.d.ts +1 -1
  330. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +69 -5
  331. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +28 -6
  332. package/dist/types/components/dispute-management/{justifi-dispute-notification.d.ts → dispute-notification.d.ts} +1 -1
  333. package/dist/types/components/dispute-management/dispute-response/{justifi-additional-statement.d.ts → additional-statement.d.ts} +1 -1
  334. package/dist/types/components/dispute-management/dispute-response/{justifi-cancellation-policy.d.ts → cancellation-policy.d.ts} +1 -1
  335. package/dist/types/components/dispute-management/dispute-response/{justifi-customer-details.d.ts → customer-details.d.ts} +1 -1
  336. package/dist/types/components/dispute-management/dispute-response/{dispute-response-core.d.ts → dispute-response.d.ts} +21 -10
  337. package/dist/types/components/dispute-management/dispute-response/{justifi-duplicate-charge.d.ts → duplicate-charge.d.ts} +1 -1
  338. package/dist/types/components/dispute-management/dispute-response/{justifi-electronic-evidence.d.ts → electronic-evidence.d.ts} +1 -1
  339. package/dist/types/components/dispute-management/dispute-response/{justifi-product-or-service.d.ts → product-or-service.d.ts} +1 -1
  340. package/dist/types/components/dispute-management/dispute-response/{justifi-refund-policy.d.ts → refund-policy.d.ts} +1 -1
  341. package/dist/types/components/dispute-management/dispute-response/{justifi-shipping-details.d.ts → shipping-details.d.ts} +1 -1
  342. package/dist/types/components/dispute-management/justifi-dispute-management.d.ts +10 -2
  343. package/dist/types/components/gross-payment-chart/justifi-gross-payment-chart.d.ts +13 -2
  344. package/dist/types/components/terminal-orders-list/justifi-terminal-orders-list.d.ts +21 -3
  345. package/dist/types/components.d.ts +304 -551
  346. package/dist/webcomponents/p-0708cb76.entry.js +1 -0
  347. package/dist/webcomponents/p-07236291.entry.js +1 -0
  348. package/dist/webcomponents/p-12ae030d.entry.js +1 -0
  349. package/dist/webcomponents/p-215c6b6b.entry.js +1 -0
  350. package/dist/webcomponents/{p-256c5509.entry.js → p-22d19755.entry.js} +1 -1
  351. package/dist/webcomponents/{p-2425a375.entry.js → p-2dfdecbb.entry.js} +1 -1
  352. package/dist/webcomponents/p-31452258.entry.js +1 -0
  353. package/dist/webcomponents/p-35dd1fc0.entry.js +1 -0
  354. package/dist/webcomponents/p-383b8317.entry.js +1 -0
  355. package/dist/webcomponents/{p-1e877e0a.entry.js → p-3d6b9434.entry.js} +1 -1
  356. package/dist/webcomponents/p-3f5e9afb.entry.js +1 -0
  357. package/dist/webcomponents/p-45c0fb53.entry.js +1 -0
  358. package/dist/webcomponents/p-46477dfe.entry.js +1 -0
  359. package/dist/webcomponents/{p-581808f0.entry.js → p-49a4123c.entry.js} +1 -1
  360. package/dist/webcomponents/{p-befe01ef.entry.js → p-49c13952.entry.js} +1 -1
  361. package/dist/webcomponents/p-4ccf9cd7.entry.js +1 -0
  362. package/dist/webcomponents/p-4ec433f4.entry.js +1 -0
  363. package/dist/webcomponents/p-58b5e08e.entry.js +1 -0
  364. package/dist/webcomponents/p-5G1OMxZz.js +1 -0
  365. package/dist/webcomponents/{p-8253ef9f.entry.js → p-605bd107.entry.js} +1 -1
  366. package/dist/webcomponents/p-6220a384.entry.js +1 -0
  367. package/dist/webcomponents/p-63b7abf3.entry.js +1 -0
  368. package/dist/webcomponents/p-69fdd137.entry.js +1 -0
  369. package/dist/webcomponents/p-6RTf1SXX.js +1 -0
  370. package/dist/webcomponents/{p-3c046adc.entry.js → p-70dcd833.entry.js} +1 -1
  371. package/dist/webcomponents/p-7119fddd.entry.js +1 -0
  372. package/dist/webcomponents/p-7ebed752.entry.js +1 -0
  373. package/dist/webcomponents/p-8964f4ca.entry.js +1 -0
  374. package/dist/webcomponents/p-89cd31f2.entry.js +1 -0
  375. package/dist/webcomponents/p-8aa53ef2.entry.js +1 -0
  376. package/dist/webcomponents/p-8d173a7c.entry.js +1 -0
  377. package/dist/webcomponents/p-9153c121.entry.js +1 -0
  378. package/dist/webcomponents/p-91aef5bf.entry.js +1 -0
  379. package/dist/webcomponents/p-9b944aa4.entry.js +1 -0
  380. package/dist/webcomponents/p-9d021e10.entry.js +1 -0
  381. package/dist/webcomponents/{p-bc2af6b4.entry.js → p-9fc7714d.entry.js} +1 -1
  382. package/dist/webcomponents/{p-CR_-qIuN.js → p-APOabprT.js} +1 -1
  383. package/dist/webcomponents/p-Aacb4jqT.js +1 -0
  384. package/dist/webcomponents/p-B5gBiARs.js +1 -0
  385. package/dist/webcomponents/{p-bn_huKYG.js → p-BICxxa69.js} +1 -1
  386. package/dist/webcomponents/p-BJu1-9kE.js +1 -0
  387. package/dist/webcomponents/{p-Cej-1bD6.js → p-BXyADlAH.js} +1 -1
  388. package/dist/webcomponents/p-Ba8jdOkX.js +1 -0
  389. package/dist/webcomponents/p-BxKbnILQ.js +1 -0
  390. package/dist/webcomponents/{p-2LVpxCS_.js → p-CHo7TfsM.js} +1 -1
  391. package/dist/webcomponents/p-CHw7tICr.js +1 -0
  392. package/dist/webcomponents/{p-DnrawQn3.js → p-CPKMvyV_.js} +1 -1
  393. package/dist/webcomponents/p-Ce_W43gc.js +1 -0
  394. package/dist/webcomponents/{p-B5vVjDc_.js → p-Cm9f5fyh.js} +1 -1
  395. package/dist/webcomponents/p-CqiVXthx.js +1 -0
  396. package/dist/webcomponents/{p-x9fFFf7F.js → p-Cu7hgXL1.js} +1 -1
  397. package/dist/webcomponents/p-Cz_7BuGW.js +1 -0
  398. package/dist/webcomponents/p-D-zwk1J3.js +1 -0
  399. package/dist/webcomponents/{p-D1D2eC05.js → p-D1_eip6x.js} +1 -1
  400. package/dist/webcomponents/p-DSclFZ32.js +1 -0
  401. package/dist/webcomponents/p-DYHjzFnJ.js +1 -0
  402. package/dist/webcomponents/p-Dk26hk5T.js +1 -0
  403. package/dist/webcomponents/{p-CKiAlBsU.js → p-DwoT0UoX.js} +1 -1
  404. package/dist/webcomponents/{p-_-2E_vYf.js → p-DyucNSA4.js} +1 -1
  405. package/dist/webcomponents/p-KXLYEe1D.js +1 -0
  406. package/dist/webcomponents/p-NZS8uCtH.js +1 -0
  407. package/dist/webcomponents/p-OGt0dCJl.js +1 -0
  408. package/dist/webcomponents/p-a1dcdc8b.entry.js +20 -0
  409. package/dist/webcomponents/{p-10be75b8.entry.js → p-a80f69a9.entry.js} +1 -1
  410. package/dist/webcomponents/{p-9581d6a1.entry.js → p-a9695714.entry.js} +1 -1
  411. package/dist/webcomponents/{p-7f814609.entry.js → p-ae91fc9b.entry.js} +1 -1
  412. package/dist/webcomponents/p-av6jyzyC.js +1 -0
  413. package/dist/webcomponents/p-b0b6083f.entry.js +1 -0
  414. package/dist/webcomponents/p-b272a29d.entry.js +1 -0
  415. package/dist/webcomponents/p-b341efd6.entry.js +1 -0
  416. package/dist/webcomponents/{p-e6e56dbb.entry.js → p-b62ff001.entry.js} +1 -1
  417. package/dist/webcomponents/p-c1539656.entry.js +1 -0
  418. package/dist/webcomponents/p-c8f3656f.entry.js +1 -0
  419. package/dist/webcomponents/p-c9fe4f33.entry.js +1 -0
  420. package/dist/webcomponents/{p-09d2efad.entry.js → p-ca87c609.entry.js} +1 -1
  421. package/dist/webcomponents/p-cde76bf8.entry.js +1 -0
  422. package/dist/webcomponents/p-d24240a5.entry.js +1 -0
  423. package/dist/webcomponents/p-d79c5ee4.entry.js +1 -0
  424. package/dist/webcomponents/p-daaa2a99.entry.js +1 -0
  425. package/dist/webcomponents/{p-9db1444f.entry.js → p-db09f306.entry.js} +1 -1
  426. package/dist/webcomponents/{p-354fb3c4.entry.js → p-e020f003.entry.js} +1 -1
  427. package/dist/webcomponents/p-e4cb7c21.entry.js +1 -0
  428. package/dist/webcomponents/p-e5c2215a.entry.js +1 -0
  429. package/dist/webcomponents/p-ea0d7a98.entry.js +1 -0
  430. package/dist/webcomponents/p-ef85717f.entry.js +1 -0
  431. package/dist/webcomponents/p-f1b9cbf0.entry.js +1 -0
  432. package/dist/webcomponents/p-f30069ea.entry.js +1 -0
  433. package/dist/webcomponents/p-f3ff7e00.entry.js +1 -0
  434. package/dist/webcomponents/p-f9aafb21.entry.js +1 -0
  435. package/dist/webcomponents/p-fE5A37L5.js +1 -0
  436. package/dist/webcomponents/p-jIDKmNHy.js +1 -0
  437. package/dist/webcomponents/{p-BJ7GFTiW.js → p-mF5zKtkx.js} +1 -1
  438. package/dist/webcomponents/p-nb_LhbJq.js +1 -0
  439. package/dist/webcomponents/p-oTtn8xDw.js +1 -0
  440. package/dist/webcomponents/p-uZ5KAseb.js +1 -0
  441. package/dist/webcomponents/webcomponents.esm.js +1 -1
  442. package/package.json +1 -1
  443. package/dist/cjs/Dispute-CruQTF6_.js +0 -59
  444. package/dist/cjs/business-additional-questions-schema-CI80eZLJ.js +0 -73
  445. package/dist/cjs/checkouts-list-core.cjs.entry.js +0 -146
  446. package/dist/cjs/checkouts-table-CCxrsy0x.js +0 -55
  447. package/dist/cjs/dispute.service-BbtwY673.js +0 -32
  448. package/dist/cjs/form-control-number_3.cjs.entry.js +0 -249
  449. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +0 -11075
  450. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +0 -61
  451. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +0 -108
  452. package/dist/cjs/terminal-orders-table-Cz6qvzVE.js +0 -83
  453. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +0 -523
  454. package/dist/collection/components/checkouts-list/checkouts-list-core.js +0 -262
  455. package/dist/collection/components/dispute-management/dispute-management-core.js +0 -169
  456. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +0 -190
  457. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +0 -139
  458. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +0 -199
  459. package/dist/esm/Dispute-BH0Xfn-F.js +0 -57
  460. package/dist/esm/business-additional-questions-schema-DKudYaoE.js +0 -69
  461. package/dist/esm/business-identity-schema-CFhSc0cA.js +0 -99
  462. package/dist/esm/checkouts-list-core.entry.js +0 -144
  463. package/dist/esm/checkouts-table-C8sPHeTm.js +0 -51
  464. package/dist/esm/dispute.service-vlYGy0nR.js +0 -30
  465. package/dist/esm/form-control-number_3.entry.js +0 -245
  466. package/dist/esm/gross-payment-chart-core.entry.js +0 -11073
  467. package/dist/esm/justifi-dispute-management-core.entry.js +0 -59
  468. package/dist/esm/terminal-orders-list-core.entry.js +0 -106
  469. package/dist/esm/terminal-orders-table-C7KOcRpq.js +0 -79
  470. package/dist/module/checkouts-list-core.js +0 -6
  471. package/dist/module/checkouts-list-core2.js +0 -227
  472. package/dist/module/dispute-management-core.js +0 -193
  473. package/dist/module/dispute-response-actions.js +0 -119
  474. package/dist/module/gross-payment-chart-core.d.ts +0 -11
  475. package/dist/module/gross-payment-chart-core.js +0 -6
  476. package/dist/module/gross-payment-chart-core2.js +0 -11096
  477. package/dist/module/justifi-additional-statement.d.ts +0 -11
  478. package/dist/module/justifi-additional-statement.js +0 -6
  479. package/dist/module/justifi-cancellation-policy.d.ts +0 -11
  480. package/dist/module/justifi-cancellation-policy.js +0 -6
  481. package/dist/module/justifi-customer-details.d.ts +0 -11
  482. package/dist/module/justifi-customer-details.js +0 -6
  483. package/dist/module/justifi-dispute-management-core.d.ts +0 -11
  484. package/dist/module/justifi-dispute-management-core.js +0 -6
  485. package/dist/module/justifi-dispute-notification.d.ts +0 -11
  486. package/dist/module/justifi-dispute-notification.js +0 -6
  487. package/dist/module/justifi-dispute-notification2.js +0 -85
  488. package/dist/module/justifi-dispute-response-core.d.ts +0 -11
  489. package/dist/module/justifi-dispute-response-core.js +0 -6
  490. package/dist/module/justifi-dispute-response.d.ts +0 -11
  491. package/dist/module/justifi-dispute-response.js +0 -6
  492. package/dist/module/justifi-dispute-response2.js +0 -198
  493. package/dist/module/justifi-duplicate-charge.d.ts +0 -11
  494. package/dist/module/justifi-duplicate-charge.js +0 -6
  495. package/dist/module/justifi-electronic-evidence.d.ts +0 -11
  496. package/dist/module/justifi-electronic-evidence.js +0 -6
  497. package/dist/module/justifi-product-or-service.d.ts +0 -11
  498. package/dist/module/justifi-product-or-service.js +0 -6
  499. package/dist/module/justifi-refund-policy.js +0 -6
  500. package/dist/module/justifi-shipping-details.d.ts +0 -11
  501. package/dist/module/justifi-shipping-details.js +0 -6
  502. package/dist/module/owner-form-core.js +0 -6
  503. package/dist/module/owner-form-core2.js +0 -262
  504. package/dist/module/terminal-orders-list-core.d.ts +0 -11
  505. package/dist/module/terminal-orders-list-core.js +0 -6
  506. package/dist/module/terminal-orders-list-core2.js +0 -209
  507. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -88
  508. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +0 -34
  509. package/dist/types/components/dispute-management/dispute-management-core.d.ts +0 -18
  510. package/dist/types/components/dispute-management/dispute-response/justifi-dispute-response.d.ts +0 -35
  511. package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +0 -21
  512. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +0 -28
  513. package/dist/webcomponents/p--e0ff06z.js +0 -1
  514. package/dist/webcomponents/p-032b4553.entry.js +0 -1
  515. package/dist/webcomponents/p-042daaf8.entry.js +0 -1
  516. package/dist/webcomponents/p-0638f0bd.entry.js +0 -1
  517. package/dist/webcomponents/p-06ecd4cb.entry.js +0 -1
  518. package/dist/webcomponents/p-0b3f4f22.entry.js +0 -1
  519. package/dist/webcomponents/p-164f95ec.entry.js +0 -1
  520. package/dist/webcomponents/p-174eb877.entry.js +0 -1
  521. package/dist/webcomponents/p-1e0be7b0.entry.js +0 -1
  522. package/dist/webcomponents/p-24935254.entry.js +0 -1
  523. package/dist/webcomponents/p-39cc6928.entry.js +0 -1
  524. package/dist/webcomponents/p-4226eb4a.entry.js +0 -1
  525. package/dist/webcomponents/p-474ee3f8.entry.js +0 -1
  526. package/dist/webcomponents/p-485b77ba.entry.js +0 -1
  527. package/dist/webcomponents/p-52908814.entry.js +0 -1
  528. package/dist/webcomponents/p-587886f1.entry.js +0 -1
  529. package/dist/webcomponents/p-5ef355ce.entry.js +0 -1
  530. package/dist/webcomponents/p-6917aa3c.entry.js +0 -1
  531. package/dist/webcomponents/p-6d81822f.entry.js +0 -1
  532. package/dist/webcomponents/p-6ecb3ef9.entry.js +0 -1
  533. package/dist/webcomponents/p-79713014.entry.js +0 -1
  534. package/dist/webcomponents/p-798f4708.entry.js +0 -1
  535. package/dist/webcomponents/p-7f0f72c6.entry.js +0 -1
  536. package/dist/webcomponents/p-80652cf8.entry.js +0 -1
  537. package/dist/webcomponents/p-82fe02e4.entry.js +0 -1
  538. package/dist/webcomponents/p-83147f23.entry.js +0 -1
  539. package/dist/webcomponents/p-870fac9e.entry.js +0 -1
  540. package/dist/webcomponents/p-8c2427ed.entry.js +0 -1
  541. package/dist/webcomponents/p-92de00d7.entry.js +0 -1
  542. package/dist/webcomponents/p-956eca2e.entry.js +0 -1
  543. package/dist/webcomponents/p-9f74d7ea.entry.js +0 -1
  544. package/dist/webcomponents/p-B--N37zY.js +0 -1
  545. package/dist/webcomponents/p-BCgsLInF.js +0 -1
  546. package/dist/webcomponents/p-BH0Xfn-F.js +0 -1
  547. package/dist/webcomponents/p-Bg2SZArf.js +0 -1
  548. package/dist/webcomponents/p-BnaR7f2G.js +0 -1
  549. package/dist/webcomponents/p-BovgIz83.js +0 -1
  550. package/dist/webcomponents/p-BsQy297i.js +0 -1
  551. package/dist/webcomponents/p-CDf5H0TB.js +0 -1
  552. package/dist/webcomponents/p-CUI41_5y.js +0 -1
  553. package/dist/webcomponents/p-CX36GHQP.js +0 -1
  554. package/dist/webcomponents/p-Cf6HoQKl.js +0 -1
  555. package/dist/webcomponents/p-CsdYMTrc.js +0 -1
  556. package/dist/webcomponents/p-D4OlsyTo.js +0 -1
  557. package/dist/webcomponents/p-D8EGHc_m.js +0 -1
  558. package/dist/webcomponents/p-DPmnGTmg.js +0 -1
  559. package/dist/webcomponents/p-DWevPe7C.js +0 -1
  560. package/dist/webcomponents/p-Dbg501Lu.js +0 -1
  561. package/dist/webcomponents/p-DcBvJu0k.js +0 -1
  562. package/dist/webcomponents/p-DkdzUTnl.js +0 -1
  563. package/dist/webcomponents/p-GJyHX3us.js +0 -1
  564. package/dist/webcomponents/p-HT_4DkD0.js +0 -1
  565. package/dist/webcomponents/p-MDZuGvsl.js +0 -1
  566. package/dist/webcomponents/p-XrKLre8M.js +0 -1
  567. package/dist/webcomponents/p-a80d958d.entry.js +0 -1
  568. package/dist/webcomponents/p-b06910b0.entry.js +0 -1
  569. package/dist/webcomponents/p-b2447726.entry.js +0 -1
  570. package/dist/webcomponents/p-b483e71b.entry.js +0 -1
  571. package/dist/webcomponents/p-bfe2583d.entry.js +0 -1
  572. package/dist/webcomponents/p-c73631f0.entry.js +0 -1
  573. package/dist/webcomponents/p-c8f7ebf6.entry.js +0 -1
  574. package/dist/webcomponents/p-d7633e10.entry.js +0 -1
  575. package/dist/webcomponents/p-d878df6c.entry.js +0 -1
  576. package/dist/webcomponents/p-da882bd1.entry.js +0 -1
  577. package/dist/webcomponents/p-dd1cfb9e.entry.js +0 -1
  578. package/dist/webcomponents/p-ddf699e6.entry.js +0 -20
  579. package/dist/webcomponents/p-de836ec9.entry.js +0 -1
  580. package/dist/webcomponents/p-ea30cf08.entry.js +0 -1
  581. package/dist/webcomponents/p-edf5a854.entry.js +0 -1
  582. package/dist/webcomponents/p-f24563ab.entry.js +0 -1
  583. package/dist/webcomponents/p-f4aeda71.entry.js +0 -1
  584. package/dist/webcomponents/p-faa090a5.entry.js +0 -1
  585. package/dist/webcomponents/p-fc7ba195.entry.js +0 -1
  586. package/dist/webcomponents/p-hhdRync5.js +0 -1
  587. package/dist/webcomponents/p-niGr4RT2.js +0 -1
  588. package/dist/webcomponents/p-pL4dNfsl.js +0 -1
  589. package/dist/webcomponents/p-qcQTYcr3.js +0 -1
  590. package/dist/webcomponents/p-uCg79W3M.js +0 -1
@@ -4,7 +4,7 @@ import CancellationPolicySchema from "./schemas/cancellation-policy-schema";
4
4
  import { DisputeResponseFormStep } from "./dispute-response-form-types";
5
5
  import { heading5 } from "../../../styles/parts";
6
6
  import fileInputHandler from "./file-input-handler";
7
- export class JustifiCancellationPolicy {
7
+ export class CancellationPolicy {
8
8
  constructor() {
9
9
  this.documentErrors = {};
10
10
  this.errors = {};
@@ -28,9 +28,9 @@ export class JustifiCancellationPolicy {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c;
31
- return (h("div", { key: '06da02c750e3281c8e9a92c4d1957d1ceb9097ae' }, h("div", { key: '8ec6ebf90b3beb3d3a24c6fee0427f2ba949aba7', class: "row gy-3" }, h("div", { key: '3a465a5a53f8795fdc20845bef945a8aa4cf8b3d', class: "col-12" }, h("h2", { key: '6193c10bed3c100ef63b302db15473965669c0ec', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '0d68bbb77217df1e9ed067593a76eddfc76f20ff', class: "col-12" }, h("form-control-textarea", { key: 'd5a3157c26687247d23d558c25f0687e339191bc', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: '6fbc16ced9bbb9188f683f5493902d8982d61e5a', class: "col-12" }, h("form-control-textarea", { key: 'fa009aa03035ccc1c42a70337f1502276e0d9499', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '3267fe5bd07181b17fe1875dac501f7ca827900d', class: "col-12" }, h("form-control-file-v2", { key: '6fd33a1194be752f078c1aab7924bf1502177fb2', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
31
+ return (h("div", { key: 'debb9fe05382d0806038547b61fe3201845db2a1' }, h("div", { key: '030d5be9a41dff1954049c6ac33a79024741c43c', class: "row gy-3" }, h("div", { key: 'd5da527af347d6c29c30f5ed5b5295b9ef693e7f', class: "col-12" }, h("h2", { key: '3f8d2da0485bd28220ae9f66db87fab49e86a734', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: 'd7fa3aacd80ad375ba58d1c86d8cf9d00c4cce6e', class: "col-12" }, h("form-control-textarea", { key: 'ca14e78ef0dcbad3b2a76cb230c2eb4a7c56f877', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: 'e8f10ab0e5e3e9c7a0f90aa13e8680607bb64a3e', class: "col-12" }, h("form-control-textarea", { key: '5ca2d11d67301b512756cbc4355939b9433be033', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '36b8ef8f62721f220a05b1571bb347641b433b56', class: "col-12" }, h("form-control-file-v2", { key: 'c04f383cf55abd36b753718c2170d64f97935e7f', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
32
32
  }
33
- static get is() { return "justifi-cancellation-policy"; }
33
+ static get is() { return "cancellation-policy"; }
34
34
  static get properties() {
35
35
  return {
36
36
  "disputeResponse": {
@@ -4,7 +4,7 @@ import CustomerDetailsSchema from "./schemas/customer-details-schema";
4
4
  import { DisputeResponseFormStep } from "./dispute-response-form-types";
5
5
  import { heading5 } from "../../../styles/parts";
6
6
  import fileInputHandler from "./file-input-handler";
7
- export class JustifiCustomerDetails {
7
+ export class CustomerDetails {
8
8
  constructor() {
9
9
  this.documentErrors = {};
10
10
  this.errors = {};
@@ -28,9 +28,9 @@ export class JustifiCustomerDetails {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c, _d, _e;
31
- return (h("div", { key: '99a3ca32c4f0867f1c9ce8be6e24de3206111b2b' }, h("div", { key: 'd7e62b1331acdcdff20c6a8141d2447d070d338d', class: "row gy-3" }, h("div", { key: '7c6d1924454163791d3e220d000a4d37588d4eb8', class: "col-12" }, h("h2", { key: '25cd3fac6addfe1d66052de8d5fbae6204168409', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: 'f6335d63a564fbfa597129e55939e8958dbc156e', class: "col-12" }, h("form-control-text", { key: 'af06a0b36a775d3f8fcf88e9294be3241f0c45b7', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: '7e0f3c1c8a354ece07ccbadd32f1d21f184a6eed', class: "col-12" }, h("form-control-text", { key: '34e43daff0a9335fd55ddd1511b39738f20947bc', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: 'c88f74e81d377f328e82020134d679fc402b884c', class: "col-12" }, h("form-control-textarea", { key: '785d88c1a038a7a6f3417d13620b7f8104e23c5f', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '7d3d38d2a781eebac7bb77a9bacb816547060a7d', class: "col-12" }, h("form-control-file-v2", { key: '3fc2ada66ba9be0a9a5d65f380237ac044134e27', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: '30c6c70d765fd4b1f7e37ee2f37b01e9b3ec2b4f', class: "col-12" }, h("form-control-file-v2", { key: 'a84cd87563ad2fa2c7dcf832d3b1219bfded150c', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
31
+ return (h("div", { key: '91e26b2e75fdd29814c58122e5aeae0d4d696032' }, h("div", { key: '029a3828b8682fdd10af400dccceff109f866509', class: "row gy-3" }, h("div", { key: '71fa3ded5566c5c18c682b8cfdfdcc5ebba2db44', class: "col-12" }, h("h2", { key: '95eb1ed9da9cd955fa9c4c7a83368ac3c3378d5b', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '9450f8bd033efc7d48d62ce343b8b43833887f63', class: "col-12" }, h("form-control-text", { key: '5690f7d9a46e2d58bdc24af0aab3798664f21745', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: 'a12aa4cb464e5df7f045302b08801adca70005f6', class: "col-12" }, h("form-control-text", { key: '39cdb0b558b87a7eae0528ea40b9ca4175b4cf7c', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '13604ae63374c6fa1805d8c4be0ba55fc166a924', class: "col-12" }, h("form-control-textarea", { key: '60a110f277175418c2ec0938600ad4b04f885ee3', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: 'abaa8888fff9952b3433c49e82a7150d6cd971dd', class: "col-12" }, h("form-control-file-v2", { key: 'e2e79edd8eaafd93cfdb91fd6a3b77645c1d28f2', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: '04bfc4bf3e735cccf70fb83d2e0882662b389727', class: "col-12" }, h("form-control-file-v2", { key: '476d3df1f072afdf95a6ad83e8b94b5946d66186', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
32
32
  }
33
- static get is() { return "justifi-customer-details"; }
33
+ static get is() { return "customer-details"; }
34
34
  static get properties() {
35
35
  return {
36
36
  "disputeResponse": {
@@ -1,23 +1,30 @@
1
1
  import { h } from "@stencil/core";
2
+ import { checkPkgVersion } from "../../../utils/check-pkg-version";
3
+ import { makeCreateDisputeEvidence, makeUpdateDisputeResponse, makeSubmitDisputeResponse, } from "./dispute-response-actions";
4
+ import JustifiAnalytics from "../../../api/Analytics";
5
+ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../api/ComponentError";
6
+ import { DisputeService } from "../../../api/services/dispute.service";
2
7
  import { DisputeManagementClickActions } from "../event-types";
3
8
  import { heading4 } from "../../../styles/parts";
4
9
  import { Button } from "../../../ui-components/button";
5
- export class JustifiDisputeResponseCore {
10
+ export class DisputeResponse {
6
11
  constructor() {
12
+ this.errorMessage = null;
7
13
  this.disputeResponse = {};
14
+ this.apiOrigin = PROXY_API_ORIGIN;
8
15
  this.isLoading = false;
9
16
  this.documentList = [];
10
17
  this.documentErrors = {};
11
18
  this.currentStep = 0;
12
19
  this.componentStepMapping = [
13
- () => h("justifi-product-or-service", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
14
- () => h("justifi-customer-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
15
- () => h("justifi-cancellation-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
16
- () => h("justifi-refund-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
17
- () => h("justifi-duplicate-charge", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
18
- () => h("justifi-electronic-evidence", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
19
- () => h("justifi-shipping-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
20
- () => h("justifi-additional-statement", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
20
+ () => (h("product-or-service", { ref: (el) => (this.currentStepComponentRef = el), disputeResponse: this.disputeResponse, documentErrors: this.documentErrors })),
21
+ () => (h("customer-details", { ref: (el) => (this.currentStepComponentRef = el), disputeResponse: this.disputeResponse, documentErrors: this.documentErrors })),
22
+ () => (h("cancellation-policy", { ref: (el) => (this.currentStepComponentRef = el), disputeResponse: this.disputeResponse, documentErrors: this.documentErrors })),
23
+ () => (h("refund-policy", { ref: (el) => (this.currentStepComponentRef = el), disputeResponse: this.disputeResponse, documentErrors: this.documentErrors })),
24
+ () => (h("duplicate-charge", { ref: (el) => (this.currentStepComponentRef = el), disputeResponse: this.disputeResponse, documentErrors: this.documentErrors })),
25
+ () => (h("electronic-evidence", { ref: (el) => (this.currentStepComponentRef = el), disputeResponse: this.disputeResponse, documentErrors: this.documentErrors })),
26
+ () => (h("shipping-details", { ref: (el) => (this.currentStepComponentRef = el), disputeResponse: this.disputeResponse, documentErrors: this.documentErrors })),
27
+ () => (h("additional-statement", { ref: (el) => (this.currentStepComponentRef = el), disputeResponse: this.disputeResponse, documentErrors: this.documentErrors })),
21
28
  ];
22
29
  this.saveData = async (formData, formStep) => {
23
30
  const hasFormData = Object.keys(formData).length;
@@ -115,15 +122,12 @@ export class JustifiDisputeResponseCore {
115
122
  }
116
123
  await this.initializeFileUploads();
117
124
  }
118
- // this needs to happen last because it fires the 'submit-event' and 'complete-form-step-event' event
119
125
  await this.saveData(formData, formStep);
120
126
  this.isLoading = false;
121
127
  };
122
128
  this.onCancel = () => {
123
129
  this.clickEvent.emit({ name: DisputeManagementClickActions.cancelDispute });
124
130
  };
125
- // after each of these steps where validateAndSubmit is called, reload the dispute
126
- // and set isLoading, and pass defaults into each step
127
131
  this.onBack = async () => {
128
132
  await this.currentStepComponentRef.validateAndSubmit(async (formData, documentList, formStep) => {
129
133
  this.clickEvent.emit({ name: DisputeManagementClickActions.previousStep });
@@ -146,6 +150,45 @@ export class JustifiDisputeResponseCore {
146
150
  });
147
151
  };
148
152
  }
153
+ componentWillLoad() {
154
+ checkPkgVersion();
155
+ this.analytics = new JustifiAnalytics(this);
156
+ this.initializeDisputeServiceMethods();
157
+ }
158
+ disconnectedCallback() {
159
+ var _a;
160
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
161
+ }
162
+ propChanged() {
163
+ this.initializeDisputeServiceMethods();
164
+ }
165
+ initializeDisputeServiceMethods() {
166
+ if (this.disputeId && this.authToken) {
167
+ this.updateDisputeResponse = makeUpdateDisputeResponse({
168
+ disputeId: this.disputeId,
169
+ authToken: this.authToken,
170
+ service: new DisputeService(),
171
+ });
172
+ this.createDisputeEvidence = makeCreateDisputeEvidence({
173
+ disputeId: this.disputeId,
174
+ authToken: this.authToken,
175
+ service: new DisputeService(),
176
+ });
177
+ this.submitDisputeResponse = makeSubmitDisputeResponse({
178
+ disputeId: this.disputeId,
179
+ authToken: this.authToken,
180
+ service: new DisputeService(),
181
+ });
182
+ }
183
+ else {
184
+ this.errorMessage = 'Account ID and Auth Token are required';
185
+ this.errorEvent.emit({
186
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
187
+ message: this.errorMessage,
188
+ severity: ComponentErrorSeverity.ERROR,
189
+ });
190
+ }
191
+ }
149
192
  get currentStepComponent() {
150
193
  return this.componentStepMapping[this.currentStep]();
151
194
  }
@@ -156,90 +199,60 @@ export class JustifiDisputeResponseCore {
156
199
  return this.currentStep === 0;
157
200
  }
158
201
  render() {
159
- return (h("div", { key: 'c08c10977c1623e1bc7a86b81fe1dd865a2e51ed', class: "row gy-3" }, h("div", { key: '227c651ce1a06865edb4eb2c5339b3123b6a4db5', class: "col-12" }, h("h1", { key: '7c880d92b985d125d286c8443fcb4005a937c070', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '96413bfd5d67f298811f7ec5f63789be2b6b3dd6', class: "col-12" }, this.currentStepComponent), h("div", { key: '7beb58f7a362798a498c72d5bd7ae274dd84e596', class: "col-12" }, h("div", { key: '78a4a3671c0b50199b2ca5ed09f9d42b0cc0624f', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next"))))));
202
+ return (h("div", { key: '50f6bf79c7590ef3591e2163dbcd89241ca17b62', class: "dispute-response-root" }, h("div", { key: '5345d5a3c5e7ff2d4c56f438fe623578e3d2029e', class: "row gy-3" }, h("div", { key: '8925276a290105b2fde5cd6bfdf0390c3a0c95f9', class: "col-12" }, h("h1", { key: 'b8eb14deedc748b3612f11fad9d94fa38020a7f8', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '50afe487bdb21d3ea2dc149c662a284f5ebb4d9b', class: "col-12" }, this.currentStepComponent), h("div", { key: 'cde242630fdc12e82ee5a77a199c4f6a7858371e', class: "col-12" }, h("div", { key: 'ce548b753ec56df34e23eb33649a27449d49b712', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next")))))));
160
203
  }
161
- static get is() { return "justifi-dispute-response-core"; }
204
+ static get is() { return "dispute-response"; }
162
205
  static get properties() {
163
206
  return {
164
- "updateDisputeResponse": {
165
- "type": "unknown",
207
+ "authToken": {
208
+ "type": "string",
166
209
  "mutable": false,
167
210
  "complexType": {
168
- "original": "(args: {\n payload: any,\n onSuccess: (disputeResponse: any) => void,\n onError: (disputeResponse: any) => void\n }) => Promise<IApiResponse<IDispute>>",
169
- "resolved": "(args: { payload: any; onSuccess: (disputeResponse: any) => void; onError: (disputeResponse: any) => void; }) => Promise<IApiResponse<IDispute>>",
170
- "references": {
171
- "Promise": {
172
- "location": "global",
173
- "id": "global::Promise"
174
- },
175
- "IApiResponse": {
176
- "location": "import",
177
- "path": "../../../api",
178
- "id": "src/api/index.ts::IApiResponse"
179
- },
180
- "IDispute": {
181
- "location": "import",
182
- "path": "../../../api/Dispute",
183
- "id": "src/api/Dispute.ts::IDispute"
184
- }
185
- }
211
+ "original": "string",
212
+ "resolved": "string",
213
+ "references": {}
186
214
  },
187
- "required": false,
215
+ "required": true,
188
216
  "optional": false,
189
217
  "docs": {
190
218
  "tags": [],
191
219
  "text": ""
192
220
  },
193
221
  "getter": false,
194
- "setter": false
222
+ "setter": false,
223
+ "reflect": false,
224
+ "attribute": "auth-token"
195
225
  },
196
- "submitDisputeResponse": {
197
- "type": "unknown",
226
+ "disputeId": {
227
+ "type": "string",
198
228
  "mutable": false,
199
229
  "complexType": {
200
- "original": "(args: {\n payload: any,\n onSuccess: (disputeResponse: any) => void,\n onError: (disputeResponse: any) => void\n }) => Promise<IApiResponse<IDispute>>",
201
- "resolved": "(args: { payload: any; onSuccess: (disputeResponse: any) => void; onError: (disputeResponse: any) => void; }) => Promise<IApiResponse<IDispute>>",
202
- "references": {
203
- "Promise": {
204
- "location": "global",
205
- "id": "global::Promise"
206
- },
207
- "IApiResponse": {
208
- "location": "import",
209
- "path": "../../../api",
210
- "id": "src/api/index.ts::IApiResponse"
211
- },
212
- "IDispute": {
213
- "location": "import",
214
- "path": "../../../api/Dispute",
215
- "id": "src/api/Dispute.ts::IDispute"
216
- }
217
- }
230
+ "original": "string",
231
+ "resolved": "string",
232
+ "references": {}
218
233
  },
219
- "required": false,
234
+ "required": true,
220
235
  "optional": false,
221
236
  "docs": {
222
237
  "tags": [],
223
238
  "text": ""
224
239
  },
225
240
  "getter": false,
226
- "setter": false
241
+ "setter": false,
242
+ "reflect": false,
243
+ "attribute": "dispute-id"
227
244
  },
228
- "createDisputeEvidence": {
229
- "type": "unknown",
245
+ "disputeResponse": {
246
+ "type": "any",
230
247
  "mutable": false,
231
248
  "complexType": {
232
- "original": "(args: {\n payload: any,\n onSuccess: (disputeResponse: any) => void,\n onError: (disputeResponse: any) => void\n }) => Promise<IApiResponse<any>>",
233
- "resolved": "(args: { payload: any; onSuccess: (disputeResponse: any) => void; onError: (disputeResponse: any) => void; }) => Promise<IApiResponse<any>>",
249
+ "original": "ApiDisputeResponse | any",
250
+ "resolved": "any",
234
251
  "references": {
235
- "Promise": {
236
- "location": "global",
237
- "id": "global::Promise"
238
- },
239
- "IApiResponse": {
252
+ "ApiDisputeResponse": {
240
253
  "location": "import",
241
254
  "path": "../../../api",
242
- "id": "src/api/index.ts::IApiResponse"
255
+ "id": "src/api/index.ts::DisputeResponse"
243
256
  }
244
257
  }
245
258
  },
@@ -250,18 +263,21 @@ export class JustifiDisputeResponseCore {
250
263
  "text": ""
251
264
  },
252
265
  "getter": false,
253
- "setter": false
266
+ "setter": false,
267
+ "reflect": false,
268
+ "attribute": "dispute-response",
269
+ "defaultValue": "{}"
254
270
  },
255
- "disputeResponse": {
256
- "type": "any",
271
+ "apiOrigin": {
272
+ "type": "string",
257
273
  "mutable": false,
258
274
  "complexType": {
259
- "original": "any",
260
- "resolved": "any",
275
+ "original": "string",
276
+ "resolved": "string",
261
277
  "references": {}
262
278
  },
263
279
  "required": false,
264
- "optional": false,
280
+ "optional": true,
265
281
  "docs": {
266
282
  "tags": [],
267
283
  "text": ""
@@ -269,13 +285,17 @@ export class JustifiDisputeResponseCore {
269
285
  "getter": false,
270
286
  "setter": false,
271
287
  "reflect": false,
272
- "attribute": "dispute-response",
273
- "defaultValue": "{}"
288
+ "attribute": "api-origin",
289
+ "defaultValue": "PROXY_API_ORIGIN"
274
290
  }
275
291
  };
276
292
  }
277
293
  static get states() {
278
294
  return {
295
+ "updateDisputeResponse": {},
296
+ "submitDisputeResponse": {},
297
+ "createDisputeEvidence": {},
298
+ "errorMessage": {},
279
299
  "isLoading": {},
280
300
  "documentList": {},
281
301
  "documentErrors": {},
@@ -370,5 +390,13 @@ export class JustifiDisputeResponseCore {
370
390
  }
371
391
  }];
372
392
  }
393
+ static get watchers() {
394
+ return [{
395
+ "propName": "disputeId",
396
+ "methodName": "propChanged"
397
+ }, {
398
+ "propName": "authToken",
399
+ "methodName": "propChanged"
400
+ }];
401
+ }
373
402
  }
374
- ;
@@ -4,7 +4,7 @@ import DuplicateChargeSchema from "./schemas/duplicate-charge-schema";
4
4
  import { DisputeResponseFormStep } from "./dispute-response-form-types";
5
5
  import { heading5 } from "../../../styles/parts";
6
6
  import fileInputHandler from "./file-input-handler";
7
- export class JustifiDuplicateCharge {
7
+ export class DuplicateCharge {
8
8
  constructor() {
9
9
  this.documentErrors = {};
10
10
  this.errors = {};
@@ -28,9 +28,9 @@ export class JustifiDuplicateCharge {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c;
31
- return (h("div", { key: '98ca80e403dd32506af99145e08204be5eec4b31' }, h("div", { key: 'a8eeafb1ba7af0cb64b739a6c433c9a8ff9d5d92', class: "row gy-3" }, h("div", { key: 'be0573c9b62984e6b2bcf01242e75cca0ae8cc8c', class: "col-12" }, h("h2", { key: '6c40320a1da739177366d671ff2cff3688ab157e', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '4778b442ff686afeebcf9d19d6d91847ae3e7e5d', class: "col-12" }, h("form-control-text", { key: '7413dbaba70c32f8982b9719a2b27398aaa6f33a', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: '53da7a4a0143e14ec5a334b3181d5e3d0588a634', class: "col-12" }, h("form-control-textarea", { key: 'c26aaeea93f882d9baa35cf9d5ba5e26b86a83dc', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: '9e0f630e9211f701d7949c2d96e69dd62d221bd2', class: "col-12" }, h("form-control-file-v2", { key: '1f6495ddc4c034337b860208721a703416ae5c0d', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
31
+ return (h("div", { key: '4bd4aad3fbdaac994ee97aa1421a6f380657cfee' }, h("div", { key: '53548ff2b4bb09c2b1d078b2657127802422558a', class: "row gy-3" }, h("div", { key: '25658729932e2eb1d0706bd83106a92976e09b91', class: "col-12" }, h("h2", { key: '885bf37ba0a013397d4fef68683b24e9e8e1bed6', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '2f38e6451c2d982900729639994977b8ef8f8c04', class: "col-12" }, h("form-control-text", { key: '8cf20ffcd748bee860c1c8a52326a265bbe32696', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: 'e61d85188051830d2e674cfc39dab73ada597c66', class: "col-12" }, h("form-control-textarea", { key: '762f300d71a99a31030ed052299129ae8457ad4c', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: 'c5a1d7368132ba063d080ec7d071bd9131381ad2', class: "col-12" }, h("form-control-file-v2", { key: '3bd9928e8a212e1665d446cb31ae9e02d6645437', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
32
32
  }
33
- static get is() { return "justifi-duplicate-charge"; }
33
+ static get is() { return "duplicate-charge"; }
34
34
  static get properties() {
35
35
  return {
36
36
  "disputeResponse": {
@@ -4,7 +4,7 @@ import ElectronicEvidenceSchema from "./schemas/electronic-evidence-schema";
4
4
  import { DisputeResponseFormStep } from "./dispute-response-form-types";
5
5
  import { heading5 } from "../../../styles/parts";
6
6
  import fileInputHandler from "./file-input-handler";
7
- export class JustifiElectronicEvidence {
7
+ export class ElectronicEvidence {
8
8
  constructor() {
9
9
  this.documentErrors = {};
10
10
  this.errors = {};
@@ -28,9 +28,9 @@ export class JustifiElectronicEvidence {
28
28
  }
29
29
  render() {
30
30
  var _a, _b;
31
- return (h("div", { key: 'cfa8c6c92bb2790dbaea1939e6acc7539fd848d7' }, h("div", { key: '63d38a0c614f932ef018791fb1388b3dc49c7e5c', class: "row gy-3" }, h("div", { key: '6140c07a8c354d9339509a00141fbc7a1de146f4', class: "col-12" }, h("h2", { key: '40c755fe0938930e0283c391df12c417850eecb4', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'e5145c83af0623fe602ea51a171d97e2e4064e19', class: "col-12" }, h("form-control-text", { key: 'c1886a0f25a6955526dd07ae9a5e00a29172a716', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: 'fd6fa580702047999cfd94fddccd3e9185d61201', class: "col-12" }, h("form-control-file-v2", { key: '816fb2eb5d3ca714e7b4e35398cfce41a5a02ae1', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
31
+ return (h("div", { key: '00fa5deacbf19befd07d7d8764db8e3474377d5a' }, h("div", { key: 'be3d0b6775e78352bdaf4d0e739da61444fae572', class: "row gy-3" }, h("div", { key: 'e55a58628d1baad34be38d5d21598c6a372dd3c3', class: "col-12" }, h("h2", { key: '463ec945a9cc0e46350b13c774b634ef25bde2e9', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: '5576a4d1b32a0c2d2d4341bf591721aed6fcf6a4', class: "col-12" }, h("form-control-text", { key: '9f64b68724ba8b2bdf435b02077fd362f8fe1ab1', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: 'e5b2635ede15e41e9e686ab338448d3c2fdf8166', class: "col-12" }, h("form-control-file-v2", { key: '5137a992c79a1ccfcb8f3a114d1a12823b597dd2', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
32
32
  }
33
- static get is() { return "justifi-electronic-evidence"; }
33
+ static get is() { return "electronic-evidence"; }
34
34
  static get properties() {
35
35
  return {
36
36
  "disputeResponse": {
@@ -4,7 +4,7 @@ import ProductOrServiceSchema from "./schemas/product-or-service-schema";
4
4
  import { DisputeResponseFormStep } from "./dispute-response-form-types";
5
5
  import { heading5 } from "../../../styles/parts";
6
6
  import fileInputHandler from "./file-input-handler";
7
- export class JustifiProductOrService {
7
+ export class ProductOrService {
8
8
  constructor() {
9
9
  this.documentErrors = {};
10
10
  this.errors = {};
@@ -28,9 +28,9 @@ export class JustifiProductOrService {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c;
31
- return (h("div", { key: 'e43f3118bb3b607e3af86cbdf8cba319bd0c7f26' }, h("div", { key: 'ab2452d038e39e3b2781d72b0b43c42899734fce', class: "row gy-3" }, h("div", { key: '04a31b25a688803623882e91e6d27ebdcab3fc99', class: "col-12" }, h("h2", { key: 'c32d209d8c441287353316222a2ad11d66ad3022', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '936a6427c3531df4dcc096ff50bc31a0b85a4bcb', class: "col-12" }, h("form-control-text", { key: 'e7c77f6b3f35ff66935e2c48c4a6c7b203cdc3ea', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '51e374b7cf4053261f0bc44a19ee13c39e4b8a88', class: "col-12" }, h("form-control-date", { key: '0b11a59dbd74b0e6fe568a948c643722542647ab', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: 'e18ae7ebca9050fc87aed1d51d664c278b16c341', class: "col-12" }, h("form-control-file-v2", { key: 'dd7567eb79c3d273bfa3b4464dd39b9508d8a018', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
31
+ return (h("div", { key: 'd0b168de486d51cd6141f2d80441b7e5f4fac5cc' }, h("div", { key: 'bea13ed13614f43b801be60c46673fb98ff09cc8', class: "row gy-3" }, h("div", { key: '1163ad6cff89e6fb29b16622e1aed6e55a5ee435', class: "col-12" }, h("h2", { key: '6f4fc9439e0a95d6e5992d7655f1c6e8f1b2b7bd', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '3111413dc874eaa80e21ec6838d8c0896f38ce2e', class: "col-12" }, h("form-control-text", { key: '3a18e08d653c67912f904337e37d786588e50217', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: 'ea2202cf65741022ff7363cc325948944a18afb2', class: "col-12" }, h("form-control-date", { key: 'c8ceda1e61e9dbf7496173ec30e0c8f6d1b48f91', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: 'fb3e555b7781977e80541d1b2d6e7bd10b4ec087', class: "col-12" }, h("form-control-file-v2", { key: '2b459a198427db073a6d5e2a1ed5141cc6fc2d20', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
32
32
  }
33
- static get is() { return "justifi-product-or-service"; }
33
+ static get is() { return "product-or-service"; }
34
34
  static get properties() {
35
35
  return {
36
36
  "disputeResponse": {
@@ -4,7 +4,7 @@ import RefundPolicySchema from "./schemas/refund-policy-schema";
4
4
  import { DisputeResponseFormStep } from "./dispute-response-form-types";
5
5
  import { heading5 } from "../../../styles/parts";
6
6
  import fileInputHandler from "./file-input-handler";
7
- export class JustifiRefundPolicy {
7
+ export class RefundPolicy {
8
8
  constructor() {
9
9
  this.documentErrors = {};
10
10
  this.errors = {};
@@ -28,9 +28,9 @@ export class JustifiRefundPolicy {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c, _d;
31
- return (h("div", { key: 'c5a20cda29feb1dd2bc608a34f1d479e75218606' }, h("div", { key: '137aeb0f70a8ae6daba6f44d0128098c1580d91a', class: "row gy-3" }, h("div", { key: '9a5839b430e5dc73b6543f17fc53c927859a36c9', class: "col-12" }, h("h2", { key: 'bdd71c1c572428ba0d274e7319786a5236de193b', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: '191121597d2277907a526d1c3ea1662e40c5ffc0', class: "col-12" }, h("form-control-textarea", { key: '131ecd8df82112e62825c821e3408f721b65486d', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: 'ea28978ddac1ca271b4d2685559c30564756e24c', class: "col-12" }, h("form-control-textarea", { key: 'dbf87760ec66daffe670e13014d69bb899fb4e6f', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: 'f04e0f3e88971625b296c9a13d2e4c66ca0ee431', class: "col-12" }, h("form-control-file-v2", { key: 'fa4b249335a73a479c8e6abbc4c44e2fe3ab11e6', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: 'e06df78e4ee3b06278850d53d0484fd750ee48ed', class: "col-12" }, h("form-control-file-v2", { key: '82980ca492c41b2e705ad1e686af84122a94b7a2', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
31
+ return (h("div", { key: 'f04cacfa7617a6430a0e4d264248dfa1606ef988' }, h("div", { key: 'aa3b2d3fcd2263e6d5033b68b9524250bb51d7fa', class: "row gy-3" }, h("div", { key: 'e2154a203be02f1f6ed60666799db30f6b2e10fe', class: "col-12" }, h("h2", { key: '2856f16f60d6310c7dd64c86de1ebf7e01fac1fc', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: '94187589fdeb685fcc99e5ea2c6868ceedfd5ed2', class: "col-12" }, h("form-control-textarea", { key: 'fbaa1a08ab910c4ac31a53bd1385a05abcff0bb5', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: '45e893fa517222ac88333b306ae28fc1eb09daa0', class: "col-12" }, h("form-control-textarea", { key: '646a2b77b2e896523a5e3ec3da07e020c5a72c32', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: '3f4369cb2f2aac9ede8f386b338c9637ab4f5b8f', class: "col-12" }, h("form-control-file-v2", { key: '867c6f97af1710b6119984bd1f87f3a5eb358dc6', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: '066f2d66a0dd5be5c47d44620c295b952a4755cd', class: "col-12" }, h("form-control-file-v2", { key: '2036cbddd0ebf663401154120b5c1627fdc93df3', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
32
32
  }
33
- static get is() { return "justifi-refund-policy"; }
33
+ static get is() { return "refund-policy"; }
34
34
  static get properties() {
35
35
  return {
36
36
  "disputeResponse": {
@@ -4,7 +4,7 @@ import ShippingDetailsSchema from "./schemas/shipping-details-schema";
4
4
  import { DisputeResponseFormStep } from "./dispute-response-form-types";
5
5
  import { heading5 } from "../../../styles/parts";
6
6
  import fileInputHandler from "./file-input-handler";
7
- export class JustifiShippingDetails {
7
+ export class ShippingDetails {
8
8
  constructor() {
9
9
  this.documentErrors = {};
10
10
  this.errors = {};
@@ -29,9 +29,9 @@ export class JustifiShippingDetails {
29
29
  }
30
30
  render() {
31
31
  var _a, _b, _c, _d, _e;
32
- return (h("div", { key: '5095dc339b43e49c59b6efcfacacbb680408edf5' }, h("div", { key: '1fbe12df13f6013c2223b60b94ac0a5fa4596dc0', class: "row gy-3" }, h("div", { key: 'd31cb56b51c77a39125f3531e9513ebc51155277', class: "col-12" }, h("h2", { key: '317c209a7e3168e85b4e0c672a6c8cb8f5e2177c', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '27f75f17046c752629058d496cb7820b23dcbc2c', class: "col-12" }, h("form-control-text", { key: '3640223bb57f4d6eea09df3d3a0c66b7f5cce998', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: 'e31d26c7622a07833814aba997c25fa114dfd276', class: "col-12" }, h("form-control-text", { key: 'e6cc2d569c05e28452428577c9991d3f45ab97c8', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '6ebb9e323186e4db61e42c68757f218b6d412253', class: "col-12" }, h("form-control-date", { key: 'aee185a1e9a7bdf3a9ff79d4cef4937dae6b9eaf', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: 'afee1bf9054a4d43b1c708a254459134453e014c', class: "col-12" }, h("form-control-textarea", { key: 'b238c60b5fc8805d5969ceb271ecbb0b5f77f7b4', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '631889f4538c546dc386009b229acd9fb7a98a6c', class: "col-12" }, h("form-control-file-v2", { key: 'd960f9f6494ffd3f5bc4b62fa66f3466974f07c5', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
32
+ return (h("div", { key: '3b414c89e4d310b598685ef4e0595361edbe4783' }, h("div", { key: '8f630c3bff6432da2184524865d8f322c53c3685', class: "row gy-3" }, h("div", { key: '116988f4f62d30c4b5312604b3cc3d1df831a5bd', class: "col-12" }, h("h2", { key: 'f79794380f6b9ff7e964bea19a1898f9f190f0ff', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'b7448564e27dd9237f61df0e7c690c5705f97941', class: "col-12" }, h("form-control-text", { key: 'd03af28966dec1ba0ba16f8adf34ee4aae7a077e', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '5632f97cacae9d17864e14a41789ead3b39f2ca0', class: "col-12" }, h("form-control-text", { key: '9f6ff174dfcedb7a7f74a9e75a46164fcebe6095', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: 'e7fb2b0187e8e4ea8fb30fd316291465b41f4a9d', class: "col-12" }, h("form-control-date", { key: '06f39b93c95cbe6b4897585dd9ab06ad636dd933', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '1d0a48b701a12129ebfa39b7482145b32006d854', class: "col-12" }, h("form-control-textarea", { key: 'f98b3cc3ef9423c31e3dc195a4b9896fbc3da1c9', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '82379a765e791a5b373a3c01b8fec6fe05ffa2d5', class: "col-12" }, h("form-control-file-v2", { key: 'cff1198af3f29e837b48b46eed5f385da9994a66', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
33
33
  }
34
- static get is() { return "justifi-shipping-details"; }
34
+ static get is() { return "shipping-details"; }
35
35
  static get properties() {
36
36
  return {
37
37
  "disputeResponse": {
@@ -4,48 +4,98 @@ import JustifiAnalytics from "../../api/Analytics";
4
4
  import { checkPkgVersion } from "../../utils/check-pkg-version";
5
5
  import { makeGetDispute } from "../../actions/dispute/dispute-actions";
6
6
  import { DisputeService } from "../../api/services/dispute.service";
7
+ import { DisputeManagementClickActions } from "./event-types";
8
+ import { Dispute, DisputeStatus } from "../../api/Dispute";
9
+ import { StyledHost } from "../../ui-components";
7
10
  export class JustifiDisputeManagement {
8
11
  constructor() {
9
- this.errorMessage = null;
10
- this.handleErrorEvent = event => {
11
- this.errorMessage = event.detail.message;
12
- this.errorEvent.emit(event.detail);
13
- };
12
+ this.isLoading = true;
13
+ this.showDisputeResponseForm = false;
14
+ this.fetchDisputePending = false;
15
+ }
16
+ scheduleFetchDispute() {
17
+ if (!this.getDispute || this.fetchDisputePending) {
18
+ return;
19
+ }
20
+ this.fetchDisputePending = true;
21
+ queueMicrotask(() => {
22
+ this.fetchDisputePending = false;
23
+ if (this.getDispute) {
24
+ this.fetchData();
25
+ }
26
+ });
27
+ }
28
+ disputeResponseHandler(event) {
29
+ if (event.detail.name === DisputeManagementClickActions.respondToDispute) {
30
+ this.showDisputeResponseForm = true;
31
+ }
32
+ if (event.detail.name === DisputeManagementClickActions.cancelDispute) {
33
+ this.showDisputeResponseForm = false;
34
+ }
35
+ }
36
+ disputeSubmittedHandler() {
37
+ this.fetchData();
14
38
  }
15
39
  componentWillLoad() {
16
40
  checkPkgVersion();
17
41
  this.analytics = new JustifiAnalytics(this);
18
42
  this.initializeGetDispute();
19
43
  }
44
+ componentDidLoad() {
45
+ this.scheduleFetchDispute();
46
+ }
20
47
  disconnectedCallback() {
21
48
  var _a;
22
49
  (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
23
50
  }
24
- ;
25
51
  propChanged() {
26
52
  this.initializeGetDispute();
53
+ this.scheduleFetchDispute();
27
54
  }
28
55
  initializeGetDispute() {
29
56
  if (this.disputeId && this.authToken) {
30
57
  this.getDispute = makeGetDispute({
31
58
  id: this.disputeId,
32
59
  authToken: this.authToken,
33
- service: new DisputeService()
60
+ service: new DisputeService(),
34
61
  });
35
62
  }
36
63
  else {
37
- this.errorMessage = 'Dispute ID and Auth Token are required';
38
64
  this.errorEvent.emit({
39
- message: this.errorMessage,
65
+ message: 'Dispute ID and Auth Token are required',
40
66
  errorCode: ComponentErrorCodes.MISSING_PROPS,
41
67
  severity: ComponentErrorSeverity.ERROR,
42
68
  });
43
69
  }
44
70
  }
71
+ fetchData() {
72
+ if (!this.getDispute) {
73
+ return;
74
+ }
75
+ this.isLoading = true;
76
+ this.getDispute({
77
+ onSuccess: ({ dispute }) => {
78
+ this.dispute = new Dispute(dispute);
79
+ this.isLoading = false;
80
+ if (this.dispute.status !== DisputeStatus.needsResponse) {
81
+ this.showDisputeResponseForm = false;
82
+ }
83
+ },
84
+ onError: ({ error, code, severity }) => {
85
+ this.errorEvent.emit({
86
+ errorCode: code,
87
+ message: error,
88
+ severity,
89
+ });
90
+ this.isLoading = false;
91
+ },
92
+ });
93
+ }
45
94
  render() {
46
- return (h("justifi-dispute-management-core", { key: '934ece663ee7323be1157e67c566424081245b0c', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
95
+ return (h(StyledHost, { key: 'a9185f55e6f2704ec8ba85c5061e8c46338481e3' }, h("div", { key: 'e4851b3fa85ec428929b7868c0748b56c0172c8b' }, this.showDisputeResponseForm ? (h("dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading })))));
47
96
  }
48
97
  static get is() { return "justifi-dispute-management"; }
98
+ static get encapsulation() { return "shadow"; }
49
99
  static get properties() {
50
100
  return {
51
101
  "disputeId": {
@@ -91,7 +141,9 @@ export class JustifiDisputeManagement {
91
141
  static get states() {
92
142
  return {
93
143
  "getDispute": {},
94
- "errorMessage": {}
144
+ "dispute": {},
145
+ "isLoading": {},
146
+ "showDisputeResponseForm": {}
95
147
  };
96
148
  }
97
149
  static get events() {
@@ -127,4 +179,19 @@ export class JustifiDisputeManagement {
127
179
  "methodName": "propChanged"
128
180
  }];
129
181
  }
182
+ static get listeners() {
183
+ return [{
184
+ "name": "click-event",
185
+ "method": "disputeResponseHandler",
186
+ "target": undefined,
187
+ "capture": false,
188
+ "passive": false
189
+ }, {
190
+ "name": "submit-event",
191
+ "method": "disputeSubmittedHandler",
192
+ "target": undefined,
193
+ "capture": false,
194
+ "passive": false
195
+ }];
196
+ }
130
197
  }