@justifi/webcomponents 6.12.3 → 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 (586) hide show
  1. package/dist/cjs/{Analytics-DcqsdFaD.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-DFTQGZz1.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-TFzhaBXn.js → get-business-aR-C83KX.js} +2 -2
  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 +9 -10
  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-bM0MyhTf.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/api/Terminal.js +1 -1
  72. package/dist/collection/collection-manifest.json +10 -16
  73. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
  74. package/dist/collection/components/business-forms/owner-form/owner-form.js +226 -12
  75. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  76. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +166 -16
  77. package/dist/collection/components/dispute-management/{justifi-dispute-notification.js → dispute-notification.js} +5 -6
  78. package/dist/collection/components/dispute-management/dispute-response/{justifi-additional-statement.js → additional-statement.js} +3 -3
  79. package/dist/collection/components/dispute-management/dispute-response/{justifi-cancellation-policy.js → cancellation-policy.js} +3 -3
  80. package/dist/collection/components/dispute-management/dispute-response/{justifi-customer-details.js → customer-details.js} +3 -3
  81. package/dist/collection/components/dispute-management/dispute-response/{dispute-response-core.js → dispute-response.js} +105 -77
  82. package/dist/collection/components/dispute-management/dispute-response/{justifi-duplicate-charge.js → duplicate-charge.js} +3 -3
  83. package/dist/collection/components/dispute-management/dispute-response/{justifi-electronic-evidence.js → electronic-evidence.js} +3 -3
  84. package/dist/collection/components/dispute-management/dispute-response/{justifi-product-or-service.js → product-or-service.js} +3 -3
  85. package/dist/collection/components/dispute-management/dispute-response/{justifi-refund-policy.js → refund-policy.js} +3 -3
  86. package/dist/collection/components/dispute-management/dispute-response/{justifi-shipping-details.js → shipping-details.js} +3 -3
  87. package/dist/collection/components/dispute-management/justifi-dispute-management.js +78 -11
  88. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  89. package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +79 -15
  90. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
  91. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  92. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
  93. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  94. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  95. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  96. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  97. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  98. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  99. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  100. package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
  101. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  102. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  103. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  104. package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
  105. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  106. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  107. package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
  108. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  109. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +134 -10
  110. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  111. package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
  112. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  113. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  114. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  115. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  116. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  117. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  118. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  119. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  120. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  121. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  122. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  123. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  124. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  125. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  126. package/dist/collection/ui-components/internal-button.js +1 -1
  127. package/dist/collection/ui-components/radio-list-item.js +1 -1
  128. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  129. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  130. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  131. package/dist/docs.json +5763 -6945
  132. package/dist/esm/{Analytics-Cyc3ZLPx.js → Analytics-B1bQP71R.js} +2 -3
  133. package/dist/esm/{Plaid-BuKEVgbB.js → Plaid-l6nNIjab.js} +58 -3
  134. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  135. package/dist/esm/additional-questions-form-step_14.entry.js +156 -24
  136. package/dist/esm/additional-questions_5.entry.js +2 -2
  137. package/dist/esm/{justifi-additional-statement_8.entry.js → additional-statement_8.entry.js} +19 -19
  138. package/dist/esm/{badge-B6dp1XGV.js → badge-Dlcl9qdm.js} +1 -1
  139. package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
  140. package/dist/esm/bank-account-form.entry.js +4 -4
  141. package/dist/esm/bank-account-read-only-value.entry.js +1 -1
  142. package/dist/esm/business-identity-schema-D-Nk9aGV.js +163 -0
  143. package/dist/esm/{business.service-BPbZ5fxQ.js → business.service-C31wbMVs.js} +1 -2
  144. package/dist/esm/{button-DRdaAudE.js → button-BvzOzV4l.js} +1 -1
  145. package/dist/esm/card-form.entry.js +4 -4
  146. package/dist/esm/{check-pkg-version-6iGDh82c.js → check-pkg-version-CNwUC4SV.js} +1 -1
  147. package/dist/esm/{checkout.service-CJMfFKyS.js → checkout.service-cVdOGDuI.js} +1 -2
  148. package/dist/esm/{country-config-P042rrI3.js → country-config-B_fuF6JU.js} +1 -1
  149. package/dist/esm/custom-popper_2.entry.js +3 -3
  150. package/dist/esm/{justifi-dispute-notification_3.entry.js → dispute-notification_2.entry.js} +68 -90
  151. package/dist/esm/{event-types-Bg2SZArf.js → event-types-DalU_6SB.js} +29 -1
  152. package/dist/esm/form-address-fields_3.entry.js +5 -5
  153. package/dist/esm/form-control-checkbox.entry.js +3 -3
  154. package/dist/esm/form-control-date.entry.js +4 -4
  155. package/dist/esm/{form-control-error-text-DVedKyhp.js → form-control-error-text-Di9QePY5.js} +1 -1
  156. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  157. package/dist/esm/form-control-file.entry.js +4 -4
  158. package/dist/esm/{form-control-help-text-D-349cNw.js → form-control-help-text-DGMpMuAm.js} +1 -1
  159. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  160. package/dist/esm/form-control-monetary.entry.js +5 -5
  161. package/dist/esm/form-control-number_2.entry.js +86 -0
  162. package/dist/esm/form-control-radio.entry.js +3 -3
  163. package/dist/esm/form-control-select_2.entry.js +6 -6
  164. package/dist/esm/{get-business-DIpEbczl.js → get-business-Gg6qn5on.js} +2 -2
  165. package/dist/esm/{get-payment-details-DjBou5Fu.js → get-payment-details-BiWgSJau.js} +2 -3
  166. package/dist/esm/{get-subaccounts-CgDWE_5o.js → get-subaccounts-CkjZeR9U.js} +2 -3
  167. package/dist/esm/{header-1-Bl7MHW0w.js → header-1-evYxFIGN.js} +1 -1
  168. package/dist/esm/{header-3-C7JJVnMG.js → header-3-BUDap2xY.js} +1 -1
  169. package/dist/esm/hidden-input_2.entry.js +7 -7
  170. package/dist/esm/{index.esm-BHdVU4hV.js → index.esm-CgNcFueq.js} +1 -1
  171. package/dist/esm/{insurance-state-qTdpe84i.js → insurance-state-CLGc1-_4.js} +1 -1
  172. package/dist/esm/internal-button.entry.js +3 -3
  173. package/dist/esm/justifi-apple-pay_11.entry.js +17 -18
  174. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -6
  175. package/dist/esm/justifi-bank-account-form.entry.js +5 -6
  176. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  177. package/dist/esm/justifi-business-details.entry.js +10 -11
  178. package/dist/esm/justifi-business-form.entry.js +15 -17
  179. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  180. package/dist/esm/justifi-card-form.entry.js +5 -6
  181. package/dist/esm/justifi-checkout.entry.js +5 -6
  182. package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
  183. package/dist/esm/justifi-checkouts-list.entry.js +190 -27
  184. package/dist/esm/justifi-details.entry.js +2 -2
  185. package/dist/esm/justifi-dispute-management.entry.js +64 -17
  186. package/dist/esm/justifi-gross-payment-chart.entry.js +11071 -23
  187. package/dist/esm/justifi-order-terminals.entry.js +11 -12
  188. package/dist/esm/justifi-payment-details.entry.js +20 -21
  189. package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
  190. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -11
  191. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  192. package/dist/esm/justifi-payments-list.entry.js +12 -13
  193. package/dist/esm/justifi-payout-details.entry.js +15 -16
  194. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -11
  195. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
  196. package/dist/esm/justifi-payouts-list.entry.js +13 -14
  197. package/dist/esm/justifi-refund-payment.entry.js +11 -12
  198. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  199. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -9
  200. package/dist/esm/justifi-skeleton.entry.js +3 -3
  201. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
  202. package/dist/esm/justifi-terminal-orders-list.entry.js +175 -21
  203. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
  204. package/dist/esm/justifi-terminals-list.entry.js +12 -13
  205. package/dist/esm/loader.js +1 -1
  206. package/dist/esm/{package-beXEDfB9.js → package-OGt0dCJl.js} +1 -1
  207. package/dist/esm/pagination-menu.entry.js +1 -1
  208. package/dist/esm/{parts-DnrawQn3.js → parts-CPKMvyV_.js} +1 -1
  209. package/dist/esm/payment-method-option.entry.js +2 -2
  210. package/dist/esm/{payment-provisioning-actions-Dr0YIShV.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
  211. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -2
  212. package/dist/esm/{payment-provisioning-loading-DI2wDkhm.js → payment-provisioning-loading-Dve2xQA4.js} +1 -1
  213. package/dist/esm/{payment.service-Ckbb7gXA.js → payment.service-5_u-UzTY.js} +1 -2
  214. package/dist/esm/{payments-status-BIDoGw-m.js → payments-status-BlVUt4C1.js} +1 -1
  215. package/dist/esm/{payout.service-BgFKxEoL.js → payout.service-D2zS5y8N.js} +1 -2
  216. package/dist/esm/{payouts-status-1T2NZBoE.js → payouts-status-DCjCGTaa.js} +3 -3
  217. package/dist/esm/{plaid.service-BLguQHs_.js → plaid.service-BiJ65YG8.js} +1 -2
  218. package/dist/esm/radio-list-item.entry.js +2 -2
  219. package/dist/esm/{schema-validations-v6WGlZkq.js → schema-validations-u9_XnlUL.js} +2 -2
  220. package/dist/esm/{skeleton-CXGFVqDf.js → skeleton-BEHo2ypu.js} +1 -1
  221. package/dist/esm/{spinner-kSw6PcwU.js → spinner-DIiQZd6_.js} +1 -1
  222. package/dist/esm/{table-CcyuIutB.js → table-DqGfsdys.js} +3 -3
  223. package/dist/esm/table-filters-menu.entry.js +3 -3
  224. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  225. package/dist/esm/{terminal.service-0oISl5j-.js → terminal.service-CIxDfM7V.js} +1 -2
  226. package/dist/esm/{utils-DcfpJGDZ.js → utils-C1B2hVAB.js} +1 -1
  227. package/dist/esm/{utils-BxYS3WDw.js → utils-CX6puxwf.js} +1 -1
  228. package/dist/esm/webcomponents.js +1 -1
  229. package/dist/module/Plaid.js +2 -2
  230. package/dist/module/{justifi-refund-policy.d.ts → additional-statement.d.ts} +4 -4
  231. package/dist/module/additional-statement.js +6 -0
  232. package/dist/module/{justifi-additional-statement2.js → additional-statement2.js} +8 -8
  233. package/dist/module/badge.js +1 -1
  234. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  235. package/dist/module/billing-form-full2.js +1 -1
  236. package/dist/module/business-bank-account-form-step2.js +1 -1
  237. package/dist/module/business-owners-form-step2.js +20 -26
  238. package/dist/module/button.js +1 -1
  239. package/dist/module/cancellation-policy.d.ts +11 -0
  240. package/dist/module/cancellation-policy.js +6 -0
  241. package/dist/module/{justifi-cancellation-policy2.js → cancellation-policy2.js} +8 -8
  242. package/dist/module/card-billing-form-simple2.js +1 -1
  243. package/dist/module/custom-popper2.js +2 -2
  244. package/dist/module/{checkouts-list-core.d.ts → customer-details.d.ts} +4 -4
  245. package/dist/module/customer-details.js +6 -0
  246. package/dist/module/{justifi-customer-details2.js → customer-details2.js} +8 -8
  247. package/dist/module/dispute-notification.d.ts +11 -0
  248. package/dist/module/dispute-notification.js +6 -0
  249. package/dist/module/dispute-notification2.js +82 -0
  250. package/dist/module/dispute-response.d.ts +11 -0
  251. package/dist/module/dispute-response.js +6 -0
  252. package/dist/module/{dispute-response-core.js → dispute-response2.js} +105 -53
  253. package/dist/module/duplicate-charge.d.ts +11 -0
  254. package/dist/module/duplicate-charge.js +6 -0
  255. package/dist/module/{justifi-duplicate-charge2.js → duplicate-charge2.js} +8 -8
  256. package/dist/module/electronic-evidence.d.ts +11 -0
  257. package/dist/module/electronic-evidence.js +6 -0
  258. package/dist/module/{justifi-electronic-evidence2.js → electronic-evidence2.js} +8 -8
  259. package/dist/module/event-types3.js +119 -1
  260. package/dist/module/form-alert2.js +1 -1
  261. package/dist/module/form-control-date2.js +2 -2
  262. package/dist/module/form-control-file-v22.js +1 -1
  263. package/dist/module/form-control-file2.js +2 -2
  264. package/dist/module/form-control-monetary2.js +2 -2
  265. package/dist/module/form-control-number-masked2.js +2 -2
  266. package/dist/module/form-control-number2.js +3 -3
  267. package/dist/module/form-control-radio2.js +2 -2
  268. package/dist/module/form-control-select2.js +2 -2
  269. package/dist/module/form-control-text2.js +2 -2
  270. package/dist/module/form-control-textarea2.js +3 -3
  271. package/dist/module/get-payment-details.js +1 -1
  272. package/dist/module/hidden-input2.js +2 -2
  273. package/dist/module/iframe-input2.js +4 -4
  274. package/dist/module/internal-button2.js +1 -1
  275. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  276. package/dist/module/justifi-bank-account-form.js +1 -1
  277. package/dist/module/justifi-billing-form-full.js +1 -1
  278. package/dist/module/justifi-button2.js +1 -1
  279. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  280. package/dist/module/justifi-card-form.js +1 -1
  281. package/dist/module/justifi-checkout-summary2.js +1 -1
  282. package/dist/module/justifi-checkouts-list-filters.js +3 -3
  283. package/dist/module/justifi-checkouts-list.js +197 -28
  284. package/dist/module/justifi-dispute-management.js +103 -62
  285. package/dist/module/justifi-gross-payment-chart.js +11074 -24
  286. package/dist/module/justifi-header2.js +1 -1
  287. package/dist/module/justifi-modular-checkout2.js +2 -2
  288. package/dist/module/justifi-order-terminals.js +4 -4
  289. package/dist/module/justifi-payment-details.js +9 -9
  290. package/dist/module/justifi-payment-provisioning.js +53 -59
  291. package/dist/module/justifi-payment-transactions-list.js +2 -2
  292. package/dist/module/justifi-payments-list-filters.js +2 -2
  293. package/dist/module/justifi-payments-list.js +2 -2
  294. package/dist/module/justifi-payout-details.js +4 -4
  295. package/dist/module/justifi-payout-transactions-list.js +2 -2
  296. package/dist/module/justifi-payouts-list-filters.js +3 -3
  297. package/dist/module/justifi-payouts-list.js +2 -2
  298. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  299. package/dist/module/justifi-skeleton.js +1 -1
  300. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  301. package/dist/module/justifi-terminal-orders-list.js +184 -22
  302. package/dist/module/justifi-terminals-list-filters.js +2 -2
  303. package/dist/module/justifi-terminals-list.js +3 -3
  304. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  305. package/dist/module/owner-form-inputs2.js +2 -2
  306. package/dist/module/owner-form2.js +177 -33
  307. package/dist/module/package.js +1 -1
  308. package/dist/module/pagination-menu2.js +1 -1
  309. package/dist/module/parts.js +1 -1
  310. package/dist/module/payment-method-option.js +1 -1
  311. package/dist/module/payment-provisioning-form-steps2.js +52 -58
  312. package/dist/module/product-or-service.d.ts +11 -0
  313. package/dist/module/product-or-service.js +6 -0
  314. package/dist/module/{justifi-product-or-service2.js → product-or-service2.js} +8 -8
  315. package/dist/module/radio-list-item2.js +1 -1
  316. package/dist/module/{owner-form-core.d.ts → refund-policy.d.ts} +4 -4
  317. package/dist/module/refund-policy.js +6 -0
  318. package/dist/module/{justifi-refund-policy2.js → refund-policy2.js} +8 -8
  319. package/dist/module/shipping-details.d.ts +11 -0
  320. package/dist/module/shipping-details.js +6 -0
  321. package/dist/module/{justifi-shipping-details2.js → shipping-details2.js} +8 -8
  322. package/dist/module/spinner.js +1 -1
  323. package/dist/module/table-filters-menu2.js +1 -1
  324. package/dist/module/terminal-quantity-selector2.js +1 -1
  325. package/dist/module/utils2.js +1 -1
  326. package/dist/types/api/Terminal.d.ts +1 -1
  327. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +69 -5
  328. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +28 -6
  329. package/dist/types/components/dispute-management/{justifi-dispute-notification.d.ts → dispute-notification.d.ts} +1 -1
  330. package/dist/types/components/dispute-management/dispute-response/{justifi-additional-statement.d.ts → additional-statement.d.ts} +1 -1
  331. package/dist/types/components/dispute-management/dispute-response/{justifi-cancellation-policy.d.ts → cancellation-policy.d.ts} +1 -1
  332. package/dist/types/components/dispute-management/dispute-response/{justifi-customer-details.d.ts → customer-details.d.ts} +1 -1
  333. package/dist/types/components/dispute-management/dispute-response/{dispute-response-core.d.ts → dispute-response.d.ts} +21 -10
  334. package/dist/types/components/dispute-management/dispute-response/{justifi-duplicate-charge.d.ts → duplicate-charge.d.ts} +1 -1
  335. package/dist/types/components/dispute-management/dispute-response/{justifi-electronic-evidence.d.ts → electronic-evidence.d.ts} +1 -1
  336. package/dist/types/components/dispute-management/dispute-response/{justifi-product-or-service.d.ts → product-or-service.d.ts} +1 -1
  337. package/dist/types/components/dispute-management/dispute-response/{justifi-refund-policy.d.ts → refund-policy.d.ts} +1 -1
  338. package/dist/types/components/dispute-management/dispute-response/{justifi-shipping-details.d.ts → shipping-details.d.ts} +1 -1
  339. package/dist/types/components/dispute-management/justifi-dispute-management.d.ts +10 -2
  340. package/dist/types/components/gross-payment-chart/justifi-gross-payment-chart.d.ts +13 -2
  341. package/dist/types/components/terminal-orders-list/justifi-terminal-orders-list.d.ts +21 -3
  342. package/dist/types/components.d.ts +304 -551
  343. package/dist/webcomponents/p-0708cb76.entry.js +1 -0
  344. package/dist/webcomponents/p-07236291.entry.js +1 -0
  345. package/dist/webcomponents/p-12ae030d.entry.js +1 -0
  346. package/dist/webcomponents/p-215c6b6b.entry.js +1 -0
  347. package/dist/webcomponents/{p-256c5509.entry.js → p-22d19755.entry.js} +1 -1
  348. package/dist/webcomponents/{p-2425a375.entry.js → p-2dfdecbb.entry.js} +1 -1
  349. package/dist/webcomponents/p-31452258.entry.js +1 -0
  350. package/dist/webcomponents/p-35dd1fc0.entry.js +1 -0
  351. package/dist/webcomponents/{p-4d21df48.entry.js → p-383b8317.entry.js} +1 -1
  352. package/dist/webcomponents/{p-1e877e0a.entry.js → p-3d6b9434.entry.js} +1 -1
  353. package/dist/webcomponents/p-3f5e9afb.entry.js +1 -0
  354. package/dist/webcomponents/p-45c0fb53.entry.js +1 -0
  355. package/dist/webcomponents/p-46477dfe.entry.js +1 -0
  356. package/dist/webcomponents/{p-31e74a5a.entry.js → p-49a4123c.entry.js} +1 -1
  357. package/dist/webcomponents/{p-befe01ef.entry.js → p-49c13952.entry.js} +1 -1
  358. package/dist/webcomponents/p-4ccf9cd7.entry.js +1 -0
  359. package/dist/webcomponents/p-4ec433f4.entry.js +1 -0
  360. package/dist/webcomponents/p-58b5e08e.entry.js +1 -0
  361. package/dist/webcomponents/p-5G1OMxZz.js +1 -0
  362. package/dist/webcomponents/{p-8253ef9f.entry.js → p-605bd107.entry.js} +1 -1
  363. package/dist/webcomponents/p-6220a384.entry.js +1 -0
  364. package/dist/webcomponents/p-63b7abf3.entry.js +1 -0
  365. package/dist/webcomponents/p-69fdd137.entry.js +1 -0
  366. package/dist/webcomponents/p-6RTf1SXX.js +1 -0
  367. package/dist/webcomponents/{p-3c046adc.entry.js → p-70dcd833.entry.js} +1 -1
  368. package/dist/webcomponents/p-7119fddd.entry.js +1 -0
  369. package/dist/webcomponents/p-7ebed752.entry.js +1 -0
  370. package/dist/webcomponents/p-8964f4ca.entry.js +1 -0
  371. package/dist/webcomponents/p-89cd31f2.entry.js +1 -0
  372. package/dist/webcomponents/p-8aa53ef2.entry.js +1 -0
  373. package/dist/webcomponents/p-8d173a7c.entry.js +1 -0
  374. package/dist/webcomponents/p-9153c121.entry.js +1 -0
  375. package/dist/webcomponents/p-91aef5bf.entry.js +1 -0
  376. package/dist/webcomponents/p-9b944aa4.entry.js +1 -0
  377. package/dist/webcomponents/p-9d021e10.entry.js +1 -0
  378. package/dist/webcomponents/{p-bc2af6b4.entry.js → p-9fc7714d.entry.js} +1 -1
  379. package/dist/webcomponents/{p-CR_-qIuN.js → p-APOabprT.js} +1 -1
  380. package/dist/webcomponents/p-Aacb4jqT.js +1 -0
  381. package/dist/webcomponents/p-B5gBiARs.js +1 -0
  382. package/dist/webcomponents/{p-bn_huKYG.js → p-BICxxa69.js} +1 -1
  383. package/dist/webcomponents/p-BJu1-9kE.js +1 -0
  384. package/dist/webcomponents/{p-Cej-1bD6.js → p-BXyADlAH.js} +1 -1
  385. package/dist/webcomponents/p-Ba8jdOkX.js +1 -0
  386. package/dist/webcomponents/p-BxKbnILQ.js +1 -0
  387. package/dist/webcomponents/{p-2LVpxCS_.js → p-CHo7TfsM.js} +1 -1
  388. package/dist/webcomponents/p-CHw7tICr.js +1 -0
  389. package/dist/webcomponents/{p-DnrawQn3.js → p-CPKMvyV_.js} +1 -1
  390. package/dist/webcomponents/p-Ce_W43gc.js +1 -0
  391. package/dist/webcomponents/{p-B5vVjDc_.js → p-Cm9f5fyh.js} +1 -1
  392. package/dist/webcomponents/p-CqiVXthx.js +1 -0
  393. package/dist/webcomponents/{p-x9fFFf7F.js → p-Cu7hgXL1.js} +1 -1
  394. package/dist/webcomponents/p-Cz_7BuGW.js +1 -0
  395. package/dist/webcomponents/p-D-zwk1J3.js +1 -0
  396. package/dist/webcomponents/{p-D1D2eC05.js → p-D1_eip6x.js} +1 -1
  397. package/dist/webcomponents/p-DSclFZ32.js +1 -0
  398. package/dist/webcomponents/p-DYHjzFnJ.js +1 -0
  399. package/dist/webcomponents/p-Dk26hk5T.js +1 -0
  400. package/dist/webcomponents/{p-CKiAlBsU.js → p-DwoT0UoX.js} +1 -1
  401. package/dist/webcomponents/{p-_-2E_vYf.js → p-DyucNSA4.js} +1 -1
  402. package/dist/webcomponents/p-KXLYEe1D.js +1 -0
  403. package/dist/webcomponents/p-NZS8uCtH.js +1 -0
  404. package/dist/webcomponents/p-OGt0dCJl.js +1 -0
  405. package/dist/webcomponents/p-a1dcdc8b.entry.js +20 -0
  406. package/dist/webcomponents/{p-10be75b8.entry.js → p-a80f69a9.entry.js} +1 -1
  407. package/dist/webcomponents/{p-9581d6a1.entry.js → p-a9695714.entry.js} +1 -1
  408. package/dist/webcomponents/{p-c9e1df15.entry.js → p-ae91fc9b.entry.js} +1 -1
  409. package/dist/webcomponents/p-av6jyzyC.js +1 -0
  410. package/dist/webcomponents/p-b0b6083f.entry.js +1 -0
  411. package/dist/webcomponents/p-b272a29d.entry.js +1 -0
  412. package/dist/webcomponents/p-b341efd6.entry.js +1 -0
  413. package/dist/webcomponents/{p-e6e56dbb.entry.js → p-b62ff001.entry.js} +1 -1
  414. package/dist/webcomponents/p-c1539656.entry.js +1 -0
  415. package/dist/webcomponents/p-c8f3656f.entry.js +1 -0
  416. package/dist/webcomponents/p-c9fe4f33.entry.js +1 -0
  417. package/dist/webcomponents/{p-09d2efad.entry.js → p-ca87c609.entry.js} +1 -1
  418. package/dist/webcomponents/p-cde76bf8.entry.js +1 -0
  419. package/dist/webcomponents/p-d24240a5.entry.js +1 -0
  420. package/dist/webcomponents/p-d79c5ee4.entry.js +1 -0
  421. package/dist/webcomponents/p-daaa2a99.entry.js +1 -0
  422. package/dist/webcomponents/{p-9db1444f.entry.js → p-db09f306.entry.js} +1 -1
  423. package/dist/webcomponents/{p-354fb3c4.entry.js → p-e020f003.entry.js} +1 -1
  424. package/dist/webcomponents/p-e4cb7c21.entry.js +1 -0
  425. package/dist/webcomponents/p-e5c2215a.entry.js +1 -0
  426. package/dist/webcomponents/p-ea0d7a98.entry.js +1 -0
  427. package/dist/webcomponents/p-ef85717f.entry.js +1 -0
  428. package/dist/webcomponents/p-f1b9cbf0.entry.js +1 -0
  429. package/dist/webcomponents/p-f30069ea.entry.js +1 -0
  430. package/dist/webcomponents/p-f3ff7e00.entry.js +1 -0
  431. package/dist/webcomponents/p-f9aafb21.entry.js +1 -0
  432. package/dist/webcomponents/p-fE5A37L5.js +1 -0
  433. package/dist/webcomponents/p-jIDKmNHy.js +1 -0
  434. package/dist/webcomponents/{p-DgH-jcIo.js → p-mF5zKtkx.js} +1 -1
  435. package/dist/webcomponents/p-nb_LhbJq.js +1 -0
  436. package/dist/webcomponents/p-oTtn8xDw.js +1 -0
  437. package/dist/webcomponents/p-uZ5KAseb.js +1 -0
  438. package/dist/webcomponents/webcomponents.esm.js +1 -1
  439. package/package.json +1 -1
  440. package/dist/cjs/Dispute-CruQTF6_.js +0 -59
  441. package/dist/cjs/business-additional-questions-schema-CI80eZLJ.js +0 -73
  442. package/dist/cjs/checkouts-list-core.cjs.entry.js +0 -146
  443. package/dist/cjs/checkouts-table-CCxrsy0x.js +0 -55
  444. package/dist/cjs/dispute.service-BbtwY673.js +0 -32
  445. package/dist/cjs/form-control-number_3.cjs.entry.js +0 -249
  446. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +0 -11075
  447. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +0 -61
  448. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +0 -108
  449. package/dist/cjs/terminal-orders-table-Cz6qvzVE.js +0 -83
  450. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +0 -523
  451. package/dist/collection/components/checkouts-list/checkouts-list-core.js +0 -262
  452. package/dist/collection/components/dispute-management/dispute-management-core.js +0 -169
  453. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +0 -190
  454. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +0 -139
  455. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +0 -199
  456. package/dist/esm/Dispute-BH0Xfn-F.js +0 -57
  457. package/dist/esm/business-additional-questions-schema-DKudYaoE.js +0 -69
  458. package/dist/esm/business-identity-schema-CFhSc0cA.js +0 -99
  459. package/dist/esm/checkouts-list-core.entry.js +0 -144
  460. package/dist/esm/checkouts-table-C8sPHeTm.js +0 -51
  461. package/dist/esm/dispute.service-vlYGy0nR.js +0 -30
  462. package/dist/esm/form-control-number_3.entry.js +0 -245
  463. package/dist/esm/gross-payment-chart-core.entry.js +0 -11073
  464. package/dist/esm/justifi-dispute-management-core.entry.js +0 -59
  465. package/dist/esm/terminal-orders-list-core.entry.js +0 -106
  466. package/dist/esm/terminal-orders-table-C7KOcRpq.js +0 -79
  467. package/dist/module/checkouts-list-core.js +0 -6
  468. package/dist/module/checkouts-list-core2.js +0 -227
  469. package/dist/module/dispute-management-core.js +0 -193
  470. package/dist/module/dispute-response-actions.js +0 -119
  471. package/dist/module/gross-payment-chart-core.d.ts +0 -11
  472. package/dist/module/gross-payment-chart-core.js +0 -6
  473. package/dist/module/gross-payment-chart-core2.js +0 -11096
  474. package/dist/module/justifi-additional-statement.d.ts +0 -11
  475. package/dist/module/justifi-additional-statement.js +0 -6
  476. package/dist/module/justifi-cancellation-policy.d.ts +0 -11
  477. package/dist/module/justifi-cancellation-policy.js +0 -6
  478. package/dist/module/justifi-customer-details.d.ts +0 -11
  479. package/dist/module/justifi-customer-details.js +0 -6
  480. package/dist/module/justifi-dispute-management-core.d.ts +0 -11
  481. package/dist/module/justifi-dispute-management-core.js +0 -6
  482. package/dist/module/justifi-dispute-notification.d.ts +0 -11
  483. package/dist/module/justifi-dispute-notification.js +0 -6
  484. package/dist/module/justifi-dispute-notification2.js +0 -85
  485. package/dist/module/justifi-dispute-response-core.d.ts +0 -11
  486. package/dist/module/justifi-dispute-response-core.js +0 -6
  487. package/dist/module/justifi-dispute-response.d.ts +0 -11
  488. package/dist/module/justifi-dispute-response.js +0 -6
  489. package/dist/module/justifi-dispute-response2.js +0 -198
  490. package/dist/module/justifi-duplicate-charge.d.ts +0 -11
  491. package/dist/module/justifi-duplicate-charge.js +0 -6
  492. package/dist/module/justifi-electronic-evidence.d.ts +0 -11
  493. package/dist/module/justifi-electronic-evidence.js +0 -6
  494. package/dist/module/justifi-product-or-service.d.ts +0 -11
  495. package/dist/module/justifi-product-or-service.js +0 -6
  496. package/dist/module/justifi-refund-policy.js +0 -6
  497. package/dist/module/justifi-shipping-details.d.ts +0 -11
  498. package/dist/module/justifi-shipping-details.js +0 -6
  499. package/dist/module/owner-form-core.js +0 -6
  500. package/dist/module/owner-form-core2.js +0 -262
  501. package/dist/module/terminal-orders-list-core.d.ts +0 -11
  502. package/dist/module/terminal-orders-list-core.js +0 -6
  503. package/dist/module/terminal-orders-list-core2.js +0 -209
  504. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -88
  505. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +0 -34
  506. package/dist/types/components/dispute-management/dispute-management-core.d.ts +0 -18
  507. package/dist/types/components/dispute-management/dispute-response/justifi-dispute-response.d.ts +0 -35
  508. package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +0 -21
  509. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +0 -28
  510. package/dist/webcomponents/p--e0ff06z.js +0 -1
  511. package/dist/webcomponents/p-032b4553.entry.js +0 -1
  512. package/dist/webcomponents/p-042daaf8.entry.js +0 -1
  513. package/dist/webcomponents/p-0638f0bd.entry.js +0 -1
  514. package/dist/webcomponents/p-0b3f4f22.entry.js +0 -1
  515. package/dist/webcomponents/p-1c4f5f1d.entry.js +0 -1
  516. package/dist/webcomponents/p-1e8135f0.entry.js +0 -1
  517. package/dist/webcomponents/p-24935254.entry.js +0 -1
  518. package/dist/webcomponents/p-2a755daf.entry.js +0 -1
  519. package/dist/webcomponents/p-3488951f.entry.js +0 -1
  520. package/dist/webcomponents/p-437a99dc.entry.js +0 -1
  521. package/dist/webcomponents/p-49c0cd3a.entry.js +0 -1
  522. package/dist/webcomponents/p-50f5e313.entry.js +0 -1
  523. package/dist/webcomponents/p-52908814.entry.js +0 -1
  524. package/dist/webcomponents/p-587886f1.entry.js +0 -1
  525. package/dist/webcomponents/p-5ef355ce.entry.js +0 -1
  526. package/dist/webcomponents/p-5ef854e0.entry.js +0 -1
  527. package/dist/webcomponents/p-67498c25.entry.js +0 -1
  528. package/dist/webcomponents/p-6917aa3c.entry.js +0 -1
  529. package/dist/webcomponents/p-6d81822f.entry.js +0 -1
  530. package/dist/webcomponents/p-6f0c582a.entry.js +0 -1
  531. package/dist/webcomponents/p-80652cf8.entry.js +0 -1
  532. package/dist/webcomponents/p-82fe02e4.entry.js +0 -1
  533. package/dist/webcomponents/p-83147f23.entry.js +0 -1
  534. package/dist/webcomponents/p-8c2427ed.entry.js +0 -1
  535. package/dist/webcomponents/p-92de00d7.entry.js +0 -1
  536. package/dist/webcomponents/p-94306884.entry.js +0 -1
  537. package/dist/webcomponents/p-9937e2e7.entry.js +0 -1
  538. package/dist/webcomponents/p-9dca1331.entry.js +0 -1
  539. package/dist/webcomponents/p-9f74d7ea.entry.js +0 -1
  540. package/dist/webcomponents/p-B--N37zY.js +0 -1
  541. package/dist/webcomponents/p-BH0Xfn-F.js +0 -1
  542. package/dist/webcomponents/p-Bg2SZArf.js +0 -1
  543. package/dist/webcomponents/p-BovgIz83.js +0 -1
  544. package/dist/webcomponents/p-BsQy297i.js +0 -1
  545. package/dist/webcomponents/p-CDf5H0TB.js +0 -1
  546. package/dist/webcomponents/p-CUI41_5y.js +0 -1
  547. package/dist/webcomponents/p-CX36GHQP.js +0 -1
  548. package/dist/webcomponents/p-Cf6HoQKl.js +0 -1
  549. package/dist/webcomponents/p-CsdYMTrc.js +0 -1
  550. package/dist/webcomponents/p-D4OlsyTo.js +0 -1
  551. package/dist/webcomponents/p-D8EGHc_m.js +0 -1
  552. package/dist/webcomponents/p-DPmnGTmg.js +0 -1
  553. package/dist/webcomponents/p-DWevPe7C.js +0 -1
  554. package/dist/webcomponents/p-Dbg501Lu.js +0 -1
  555. package/dist/webcomponents/p-DcBvJu0k.js +0 -1
  556. package/dist/webcomponents/p-DkdzUTnl.js +0 -1
  557. package/dist/webcomponents/p-HT_4DkD0.js +0 -1
  558. package/dist/webcomponents/p-MDZuGvsl.js +0 -1
  559. package/dist/webcomponents/p-XrKLre8M.js +0 -1
  560. package/dist/webcomponents/p-a75d76ff.entry.js +0 -1
  561. package/dist/webcomponents/p-a7778957.entry.js +0 -1
  562. package/dist/webcomponents/p-a9d7cdae.entry.js +0 -1
  563. package/dist/webcomponents/p-b060a9c9.entry.js +0 -1
  564. package/dist/webcomponents/p-b06910b0.entry.js +0 -1
  565. package/dist/webcomponents/p-b483e71b.entry.js +0 -1
  566. package/dist/webcomponents/p-bdf21f71.entry.js +0 -1
  567. package/dist/webcomponents/p-be5d1005.entry.js +0 -1
  568. package/dist/webcomponents/p-beXEDfB9.js +0 -1
  569. package/dist/webcomponents/p-bfe2583d.entry.js +0 -1
  570. package/dist/webcomponents/p-c09fccd3.entry.js +0 -1
  571. package/dist/webcomponents/p-c827cbc9.entry.js +0 -1
  572. package/dist/webcomponents/p-cc5b7c27.entry.js +0 -1
  573. package/dist/webcomponents/p-d878df6c.entry.js +0 -1
  574. package/dist/webcomponents/p-ddf699e6.entry.js +0 -20
  575. package/dist/webcomponents/p-e0b3735f.entry.js +0 -1
  576. package/dist/webcomponents/p-ea30cf08.entry.js +0 -1
  577. package/dist/webcomponents/p-edf5a854.entry.js +0 -1
  578. package/dist/webcomponents/p-ef89824b.entry.js +0 -1
  579. package/dist/webcomponents/p-fc7ba195.entry.js +0 -1
  580. package/dist/webcomponents/p-hhdRync5.js +0 -1
  581. package/dist/webcomponents/p-niGr4RT2.js +0 -1
  582. package/dist/webcomponents/p-pL4dNfsl.js +0 -1
  583. package/dist/webcomponents/p-qcQTYcr3.js +0 -1
  584. package/dist/webcomponents/p-qrNmDp6K.js +0 -1
  585. package/dist/webcomponents/p-uCg79W3M.js +0 -1
  586. package/dist/webcomponents/p-zi3ljCdQ.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: 'f5f98ed91abdb767d3f48efaa9d69a5445d6a5bf' }, h("div", { key: 'b7a2539c1c5971267eb469fb0011508e5c3aa163', class: "row gy-3" }, h("div", { key: '82666927fa4daccb9ea2ad511e445201d216775e', class: "col-12" }, h("h2", { key: '7cf97383cee9cd3c5c95cc20374826b7f0d0ebe3', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '8a4691ee688de45f97dd624310ca5fc39cf20db2', class: "col-12" }, h("form-control-textarea", { key: '27ce967696f3f89c8b91d5892f7dfffefacd8536', 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: '12a25c0dc23b528b412e1b19fd9b7071967fd411', class: "col-12" }, h("form-control-textarea", { key: '81ceef5f5b94ad31eb1cd36991a13e099b13725c', 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: '9afbe3a16b1da50afea763c66e4ee0b5b388b137', class: "col-12" }, h("form-control-file-v2", { key: '9a613e293af4d48354859bfd2329afce152a5f89', 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: '8bc10877cfabb168cd717d463a1ae252809275f5' }, h("div", { key: '12dc083ba94dfbb7b20671c636a0be03f3b67070', class: "row gy-3" }, h("div", { key: '429c91062e19b12711baa35d14b1337f8fbfc9d6', class: "col-12" }, h("h2", { key: '406723145d3bdbaa52b2897a5dc4347be34e7eea', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '40d5e8bd7c2b1fe8786c38fc2b7a3789278f3497', class: "col-12" }, h("form-control-text", { key: 'ade5ccaf5a45ba5f3f81c68196bfc7879da03315', 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: 'baf8a129aa64d4507bce0d1f9ed7077f0911715e', class: "col-12" }, h("form-control-text", { key: '786f84b55ffec13cc937dff50e587e28865c7114', 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: '2805d754316314934648955b34e8c6da5f709192', class: "col-12" }, h("form-control-textarea", { key: '95a7a8a9d1d9ea70478021110808545c0730ffec', 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: '78fa90926cc11695379a95dde849cfb28cf829f5', class: "col-12" }, h("form-control-file-v2", { key: '984ab42f7742afcb0b74ccf65f313ead0542f75d', 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: 'de0bf546a3e767ec1e362446f14edea449643b2b', class: "col-12" }, h("form-control-file-v2", { key: '4124feba010476d48ab052142b7fb962d1550934', 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: '2cc3b2abef27f1ecf146dca2423fe07efd98c816', class: "row gy-3" }, h("div", { key: '4c0303a7ad858568888c1345709858ac922ec176', class: "col-12" }, h("h1", { key: 'e857a204a17cb406790023c68e1f2908e3e194bc', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: 'bff6c1e8d5852569d868829aaf6721e8489ee577', class: "col-12" }, this.currentStepComponent), h("div", { key: '4ea8230871e5f0b90e4fed95821bf1ed6ba6ad83', class: "col-12" }, h("div", { key: 'a489196afb70fc4fc7c14c8ad2d55253b6f71a64', 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: 'a34d10b642c601ff1a2e6109bdad5550afef0dc7' }, h("div", { key: '65dfe9ecb13d4038fbceb5b3f88313e473ad0f2f', class: "row gy-3" }, h("div", { key: '5ec12191f9e56396ff1e67b53dcdfecdca8f21e9', class: "col-12" }, h("h2", { key: 'b5bf89077f1ae3dcbb6c37e28b2728a0c88ed1b4', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '52cdf5962d03f1724dc610a4525a4bf09a68fe4e', class: "col-12" }, h("form-control-text", { key: '785cc51d4491326c3e7555404e47726cb6f6f0ea', 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: 'c3142d3b716cb3a191d930a5961d8361e4ef6204', class: "col-12" }, h("form-control-textarea", { key: 'd6cd675e958cd0685a89812891c599393a309fef', 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: 'e805678d04d01f4763ee663590e89e96be9fcfb4', class: "col-12" }, h("form-control-file-v2", { key: 'c83c4e91ebba42be4a6e640aa73186f6b461c42f', 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: '3b0122e517065a72f2d7b8411d75067db093e284' }, h("div", { key: '3f6b7c42a8e6419a4890ae29c41afd98ecdd8f11', class: "row gy-3" }, h("div", { key: 'f807c043be7f75e7f9befd24cb80fd93f56678d5', class: "col-12" }, h("h2", { key: '3c4315f405ab5cead5eebe48975f26e9d93e0d84', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'd84fa8fcc504137031181fdb1974f50d1bc49ef8', class: "col-12" }, h("form-control-text", { key: 'db3862f6a1ebd5afcf5e1ff2943de3d977e56bbe', 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: '4e882539af79b200962740ae5645df663c82bde9', class: "col-12" }, h("form-control-file-v2", { key: '2be5e0f0d1ad5b47d41fabb1f2fe25397e7cc69f', 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: '4587b32b05500749ada539467d8eb2409d0180bd' }, h("div", { key: 'b6696b8324fff8752b227ae3ba41a13ba1ac9063', class: "row gy-3" }, h("div", { key: '013ea18c3848964f098d18c13caf3dde4670093a', class: "col-12" }, h("h2", { key: '6329d4950881a7856b8b47c9e047c8d25e48aaac', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: 'c30067cffb73b64e57ee0189ef53ef04337a8cf3', class: "col-12" }, h("form-control-text", { key: '23060ee222508fe8ef1e4063bd19a95cb4fab288', 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: '05902305859cbbfa5572fdc2303ef27c4533cbda', class: "col-12" }, h("form-control-date", { key: 'cc4ca8d15ab2d04863323fdb73f4f3cde363b61d', 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: 'a0986336639e8ff22cfa7fd10eb761fa5159e8e7', class: "col-12" }, h("form-control-file-v2", { key: '352467c92329bbf22535a38ee4c2a14d9a9110c6', 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: 'e59738a3425e348d989077da9353aa12293cea2f' }, h("div", { key: '32365305802a0584b959e04268796b21ca73fe21', class: "row gy-3" }, h("div", { key: 'ab46282525e6afb9b4db2f82ea6a716e1bd32649', class: "col-12" }, h("h2", { key: 'b1c9fbfccf63eee921a734e0e82cc868ddfb6652', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: '1287269e5c352018fd289c64e876b985137c36c8', class: "col-12" }, h("form-control-textarea", { key: '217292c1ea3a92c3a1cfb68c6d1cbe5b4c532262', 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: '7b54f191e06110c1c186ae316558d7617bd3fc93', class: "col-12" }, h("form-control-textarea", { key: 'ec77cd98d1c77c88e74655b430f89bb2e79bb125', 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: '68971eb2d792f9f733e68b6e9bcab8965cc51412', class: "col-12" }, h("form-control-file-v2", { key: '991ef9fa96a95a52caf72b723d854f17d2c76a0c', 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: '22528492e08a56f5b72ad11ef754d1a46884093f', class: "col-12" }, h("form-control-file-v2", { key: '4ea877eeef562dd232bdf5d1359d54cc4e030365', 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: '66ab4f496a037d4724fcc127803d2fd4c72ad2a8' }, h("div", { key: 'a650a56e124ecc55aaa383a32e27cad862801d01', class: "row gy-3" }, h("div", { key: 'aedaacba104b8540eedafcbc8f7c776fa99ab387', class: "col-12" }, h("h2", { key: 'b4e2dc10ef6cbdab47143f2cc64a484050bfc416', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '7110551e0ecf98b149f008eb7105235b8d601454', class: "col-12" }, h("form-control-text", { key: '2c17294567ff47b181c8d11cfda7651671adac92', 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: '031476a2435c80b8ae27fb50303f14797d84a801', class: "col-12" }, h("form-control-text", { key: '67441fbba00af48235867763561cf8adf66b9e69', 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: '1fcc1bf129d3ec577f4f36a2801422044ec0a59e', class: "col-12" }, h("form-control-date", { key: 'aa0464427d083dceba8e1604e045c707366d6046', 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: 'f61850943df4c9d6605cde9d86b2e8275ced0af4', class: "col-12" }, h("form-control-textarea", { key: 'a1d4997810348a93f26a9f4932890ffd911ea062', 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: '9dd41ee3436d63e0c89318129e811630e4aad75d', class: "col-12" }, h("form-control-file-v2", { key: 'fe1879caad49f44f1abd312a3925a20e6bdc11bf', 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: 'db9bf0998d45a71d9c2a72f4cedbe4276e67a238', 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
  }