@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.
- package/dist/cjs/{Analytics-C1Wd9OW4.js → Analytics-BERGweGK.js} +2 -3
- package/dist/cjs/{Plaid-BlSGeGpn.js → Plaid-BRSyOOuw.js} +60 -4
- package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +151 -19
- package/dist/cjs/{justifi-additional-statement_8.cjs.entry.js → additional-statement_8.cjs.entry.js} +24 -24
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business-identity-schema-DWWtSiUF.js → business-identity-schema-DI9XFbaD.js} +67 -0
- package/dist/cjs/{business.service-BheJs82v.js → business.service-Z9OACEQL.js} +1 -2
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-DMXmPDqZ.js → check-pkg-version-ByKpJklZ.js} +1 -1
- package/dist/cjs/{checkout.service-DZKdHQQq.js → checkout.service-BZOyqXgW.js} +1 -2
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-dispute-notification_3.cjs.entry.js → dispute-notification_2.cjs.entry.js} +67 -90
- package/dist/cjs/{event-types-BWQT2lwu.js → event-types-AU1B76Vm.js} +30 -0
- package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_2.cjs.entry.js +89 -0
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-CKC1P4Qs.js → get-business-aR-C83KX.js} +6 -3
- package/dist/cjs/{get-payment-details-DL5FmIyF.js → get-payment-details-dwhA02Zl.js} +2 -3
- package/dist/cjs/{get-subaccounts-CVK4O7th.js → get-subaccounts-B1jmSa2d.js} +2 -3
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +12 -13
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +10 -12
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +190 -27
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +65 -18
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11071 -23
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -17
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -6
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +178 -24
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CRaVpb0w.js → package-B6L3zyfG.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-BO7dzIm1.js → payment-provisioning-actions-BiSpysjW.js} +2 -2
- package/dist/cjs/{payment.service-sZKlg2Jq.js → payment.service-ByrgA_QZ.js} +1 -2
- package/dist/cjs/{payout.service-BcQVsMCS.js → payout.service-CnQm_BpU.js} +1 -2
- package/dist/cjs/{payouts-status-CwgOMz-S.js → payouts-status-AuS3Mp0V.js} +2 -2
- package/dist/cjs/{plaid.service-BcgO2VXC.js → plaid.service-Dlb8EUR8.js} +1 -2
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CjMMWSh3.js → terminal.service-BdwHQ3Vv.js} +1 -2
- package/dist/cjs/{utils-DbTucCTO.js → utils-FVGp6se3.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/business/get-business.js +4 -1
- package/dist/collection/api/Terminal.js +1 -1
- package/dist/collection/collection-manifest.json +10 -16
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form.js +226 -12
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +166 -16
- package/dist/collection/components/dispute-management/{justifi-dispute-notification.js → dispute-notification.js} +5 -6
- package/dist/collection/components/dispute-management/dispute-response/{justifi-additional-statement.js → additional-statement.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-cancellation-policy.js → cancellation-policy.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-customer-details.js → customer-details.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{dispute-response-core.js → dispute-response.js} +105 -77
- package/dist/collection/components/dispute-management/dispute-response/{justifi-duplicate-charge.js → duplicate-charge.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-electronic-evidence.js → electronic-evidence.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-product-or-service.js → product-or-service.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-refund-policy.js → refund-policy.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-shipping-details.js → shipping-details.js} +3 -3
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +78 -11
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +79 -15
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/order-terminals/justifi-order-terminals.js +4 -3
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
- package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
- package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +134 -10
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +5763 -6945
- package/dist/esm/{Analytics-qafLCOEU.js → Analytics-B1bQP71R.js} +2 -3
- package/dist/esm/{Plaid-BuKEVgbB.js → Plaid-l6nNIjab.js} +58 -3
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/additional-questions-form-step_14.entry.js +156 -24
- package/dist/esm/additional-questions_5.entry.js +2 -2
- package/dist/esm/{justifi-additional-statement_8.entry.js → additional-statement_8.entry.js} +19 -19
- package/dist/esm/{badge-B6dp1XGV.js → badge-Dlcl9qdm.js} +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
- package/dist/esm/bank-account-form.entry.js +4 -4
- package/dist/esm/bank-account-read-only-value.entry.js +1 -1
- package/dist/esm/business-identity-schema-D-Nk9aGV.js +163 -0
- package/dist/esm/{business.service-BPbZ5fxQ.js → business.service-C31wbMVs.js} +1 -2
- package/dist/esm/{button-DRdaAudE.js → button-BvzOzV4l.js} +1 -1
- package/dist/esm/card-form.entry.js +4 -4
- package/dist/esm/{check-pkg-version-BJtCbzf9.js → check-pkg-version-CNwUC4SV.js} +1 -1
- package/dist/esm/{checkout.service-CJMfFKyS.js → checkout.service-cVdOGDuI.js} +1 -2
- package/dist/esm/{country-config-P042rrI3.js → country-config-B_fuF6JU.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +3 -3
- package/dist/esm/{justifi-dispute-notification_3.entry.js → dispute-notification_2.entry.js} +68 -90
- package/dist/esm/{event-types-Bg2SZArf.js → event-types-DalU_6SB.js} +29 -1
- package/dist/esm/form-address-fields_3.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-DVedKyhp.js → form-control-error-text-Di9QePY5.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/form-control-file.entry.js +4 -4
- package/dist/esm/{form-control-help-text-D-349cNw.js → form-control-help-text-DGMpMuAm.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number_2.entry.js +86 -0
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_2.entry.js +6 -6
- package/dist/esm/{get-business-DpFRs5dE.js → get-business-Gg6qn5on.js} +6 -3
- package/dist/esm/{get-payment-details-DjBou5Fu.js → get-payment-details-BiWgSJau.js} +2 -3
- package/dist/esm/{get-subaccounts-CgDWE_5o.js → get-subaccounts-CkjZeR9U.js} +2 -3
- package/dist/esm/{header-1-Bl7MHW0w.js → header-1-evYxFIGN.js} +1 -1
- package/dist/esm/{header-3-C7JJVnMG.js → header-3-BUDap2xY.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{index.esm-BHdVU4hV.js → index.esm-CgNcFueq.js} +1 -1
- package/dist/esm/{insurance-state-qTdpe84i.js → insurance-state-CLGc1-_4.js} +1 -1
- package/dist/esm/internal-button.entry.js +3 -3
- package/dist/esm/justifi-apple-pay_11.entry.js +17 -18
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -6
- package/dist/esm/justifi-bank-account-form.entry.js +5 -6
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +10 -11
- package/dist/esm/justifi-business-form.entry.js +15 -17
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +5 -6
- package/dist/esm/justifi-checkout.entry.js +5 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
- package/dist/esm/justifi-checkouts-list.entry.js +190 -27
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +64 -17
- package/dist/esm/justifi-gross-payment-chart.entry.js +11071 -23
- package/dist/esm/justifi-order-terminals.entry.js +14 -14
- package/dist/esm/justifi-payment-details.entry.js +20 -21
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
- package/dist/esm/justifi-payment-transactions-list.entry.js +10 -11
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +12 -13
- package/dist/esm/justifi-payout-details.entry.js +15 -16
- package/dist/esm/justifi-payout-transactions-list.entry.js +10 -11
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
- package/dist/esm/justifi-payouts-list.entry.js +13 -14
- package/dist/esm/justifi-refund-payment.entry.js +11 -12
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -9
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
- package/dist/esm/justifi-terminal-orders-list.entry.js +175 -21
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
- package/dist/esm/justifi-terminals-list.entry.js +12 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BCgsLInF.js → package-OGt0dCJl.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-DnrawQn3.js → parts-CPKMvyV_.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment-provisioning-actions-Dr0YIShV.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -2
- package/dist/esm/{payment-provisioning-loading-DI2wDkhm.js → payment-provisioning-loading-Dve2xQA4.js} +1 -1
- package/dist/esm/{payment.service-Ckbb7gXA.js → payment.service-5_u-UzTY.js} +1 -2
- package/dist/esm/{payments-status-BIDoGw-m.js → payments-status-BlVUt4C1.js} +1 -1
- package/dist/esm/{payout.service-BgFKxEoL.js → payout.service-D2zS5y8N.js} +1 -2
- package/dist/esm/{payouts-status-1T2NZBoE.js → payouts-status-DCjCGTaa.js} +3 -3
- package/dist/esm/{plaid.service-BLguQHs_.js → plaid.service-BiJ65YG8.js} +1 -2
- package/dist/esm/radio-list-item.entry.js +2 -2
- package/dist/esm/{schema-validations-v6WGlZkq.js → schema-validations-u9_XnlUL.js} +2 -2
- package/dist/esm/{skeleton-CXGFVqDf.js → skeleton-BEHo2ypu.js} +1 -1
- package/dist/esm/{spinner-kSw6PcwU.js → spinner-DIiQZd6_.js} +1 -1
- package/dist/esm/{table-CcyuIutB.js → table-DqGfsdys.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-0oISl5j-.js → terminal.service-CIxDfM7V.js} +1 -2
- package/dist/esm/{utils-DcfpJGDZ.js → utils-C1B2hVAB.js} +1 -1
- package/dist/esm/{utils-BxYS3WDw.js → utils-CX6puxwf.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Plaid.js +2 -2
- package/dist/module/{justifi-refund-policy.d.ts → additional-statement.d.ts} +4 -4
- package/dist/module/additional-statement.js +6 -0
- package/dist/module/{justifi-additional-statement2.js → additional-statement2.js} +8 -8
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-billing-form-simple2.js +1 -1
- package/dist/module/billing-form-full2.js +1 -1
- package/dist/module/business-bank-account-form-step2.js +1 -1
- package/dist/module/business-owners-form-step2.js +20 -26
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.d.ts +11 -0
- package/dist/module/cancellation-policy.js +6 -0
- package/dist/module/{justifi-cancellation-policy2.js → cancellation-policy2.js} +8 -8
- package/dist/module/card-billing-form-simple2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/{checkouts-list-core.d.ts → customer-details.d.ts} +4 -4
- package/dist/module/customer-details.js +6 -0
- package/dist/module/{justifi-customer-details2.js → customer-details2.js} +8 -8
- package/dist/module/dispute-notification.d.ts +11 -0
- package/dist/module/dispute-notification.js +6 -0
- package/dist/module/dispute-notification2.js +82 -0
- package/dist/module/dispute-response.d.ts +11 -0
- package/dist/module/dispute-response.js +6 -0
- package/dist/module/{dispute-response-core.js → dispute-response2.js} +105 -53
- package/dist/module/duplicate-charge.d.ts +11 -0
- package/dist/module/duplicate-charge.js +6 -0
- package/dist/module/{justifi-duplicate-charge2.js → duplicate-charge2.js} +8 -8
- package/dist/module/electronic-evidence.d.ts +11 -0
- package/dist/module/electronic-evidence.js +6 -0
- package/dist/module/{justifi-electronic-evidence2.js → electronic-evidence2.js} +8 -8
- package/dist/module/event-types3.js +119 -1
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number2.js +3 -3
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +3 -3
- package/dist/module/get-business.js +4 -1
- package/dist/module/get-payment-details.js +1 -1
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkouts-list-filters.js +3 -3
- package/dist/module/justifi-checkouts-list.js +197 -28
- package/dist/module/justifi-dispute-management.js +103 -62
- package/dist/module/justifi-gross-payment-chart.js +11074 -24
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +2 -2
- package/dist/module/justifi-order-terminals.js +7 -6
- package/dist/module/justifi-payment-details.js +9 -9
- package/dist/module/justifi-payment-provisioning.js +53 -59
- package/dist/module/justifi-payment-transactions-list.js +2 -2
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +4 -4
- package/dist/module/justifi-payout-transactions-list.js +2 -2
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
- package/dist/module/justifi-terminal-orders-list.js +184 -22
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/justifi-tokenize-payment-method2.js +1 -1
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form2.js +177 -33
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-form-steps2.js +52 -58
- package/dist/module/product-or-service.d.ts +11 -0
- package/dist/module/product-or-service.js +6 -0
- package/dist/module/{justifi-product-or-service2.js → product-or-service2.js} +8 -8
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/{owner-form-core.d.ts → refund-policy.d.ts} +4 -4
- package/dist/module/refund-policy.js +6 -0
- package/dist/module/{justifi-refund-policy2.js → refund-policy2.js} +8 -8
- package/dist/module/shipping-details.d.ts +11 -0
- package/dist/module/shipping-details.js +6 -0
- package/dist/module/{justifi-shipping-details2.js → shipping-details2.js} +8 -8
- package/dist/module/spinner.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/utils2.js +1 -1
- package/dist/types/actions/business/get-business.d.ts +2 -1
- package/dist/types/api/Terminal.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +69 -5
- package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +28 -6
- package/dist/types/components/dispute-management/{justifi-dispute-notification.d.ts → dispute-notification.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-additional-statement.d.ts → additional-statement.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-cancellation-policy.d.ts → cancellation-policy.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-customer-details.d.ts → customer-details.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{dispute-response-core.d.ts → dispute-response.d.ts} +21 -10
- package/dist/types/components/dispute-management/dispute-response/{justifi-duplicate-charge.d.ts → duplicate-charge.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-electronic-evidence.d.ts → electronic-evidence.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-product-or-service.d.ts → product-or-service.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-refund-policy.d.ts → refund-policy.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-shipping-details.d.ts → shipping-details.d.ts} +1 -1
- package/dist/types/components/dispute-management/justifi-dispute-management.d.ts +10 -2
- package/dist/types/components/gross-payment-chart/justifi-gross-payment-chart.d.ts +13 -2
- package/dist/types/components/terminal-orders-list/justifi-terminal-orders-list.d.ts +21 -3
- package/dist/types/components.d.ts +304 -551
- package/dist/webcomponents/p-0708cb76.entry.js +1 -0
- package/dist/webcomponents/p-07236291.entry.js +1 -0
- package/dist/webcomponents/p-12ae030d.entry.js +1 -0
- package/dist/webcomponents/p-215c6b6b.entry.js +1 -0
- package/dist/webcomponents/{p-256c5509.entry.js → p-22d19755.entry.js} +1 -1
- package/dist/webcomponents/{p-2425a375.entry.js → p-2dfdecbb.entry.js} +1 -1
- package/dist/webcomponents/p-31452258.entry.js +1 -0
- package/dist/webcomponents/p-35dd1fc0.entry.js +1 -0
- package/dist/webcomponents/p-383b8317.entry.js +1 -0
- package/dist/webcomponents/{p-1e877e0a.entry.js → p-3d6b9434.entry.js} +1 -1
- package/dist/webcomponents/p-3f5e9afb.entry.js +1 -0
- package/dist/webcomponents/p-45c0fb53.entry.js +1 -0
- package/dist/webcomponents/p-46477dfe.entry.js +1 -0
- package/dist/webcomponents/{p-581808f0.entry.js → p-49a4123c.entry.js} +1 -1
- package/dist/webcomponents/{p-befe01ef.entry.js → p-49c13952.entry.js} +1 -1
- package/dist/webcomponents/p-4ccf9cd7.entry.js +1 -0
- package/dist/webcomponents/p-4ec433f4.entry.js +1 -0
- package/dist/webcomponents/p-58b5e08e.entry.js +1 -0
- package/dist/webcomponents/p-5G1OMxZz.js +1 -0
- package/dist/webcomponents/{p-8253ef9f.entry.js → p-605bd107.entry.js} +1 -1
- package/dist/webcomponents/p-6220a384.entry.js +1 -0
- package/dist/webcomponents/p-63b7abf3.entry.js +1 -0
- package/dist/webcomponents/p-69fdd137.entry.js +1 -0
- package/dist/webcomponents/p-6RTf1SXX.js +1 -0
- package/dist/webcomponents/{p-3c046adc.entry.js → p-70dcd833.entry.js} +1 -1
- package/dist/webcomponents/p-7119fddd.entry.js +1 -0
- package/dist/webcomponents/p-7ebed752.entry.js +1 -0
- package/dist/webcomponents/p-8964f4ca.entry.js +1 -0
- package/dist/webcomponents/p-89cd31f2.entry.js +1 -0
- package/dist/webcomponents/p-8aa53ef2.entry.js +1 -0
- package/dist/webcomponents/p-8d173a7c.entry.js +1 -0
- package/dist/webcomponents/p-9153c121.entry.js +1 -0
- package/dist/webcomponents/p-91aef5bf.entry.js +1 -0
- package/dist/webcomponents/p-9b944aa4.entry.js +1 -0
- package/dist/webcomponents/p-9d021e10.entry.js +1 -0
- package/dist/webcomponents/{p-bc2af6b4.entry.js → p-9fc7714d.entry.js} +1 -1
- package/dist/webcomponents/{p-CR_-qIuN.js → p-APOabprT.js} +1 -1
- package/dist/webcomponents/p-Aacb4jqT.js +1 -0
- package/dist/webcomponents/p-B5gBiARs.js +1 -0
- package/dist/webcomponents/{p-bn_huKYG.js → p-BICxxa69.js} +1 -1
- package/dist/webcomponents/p-BJu1-9kE.js +1 -0
- package/dist/webcomponents/{p-Cej-1bD6.js → p-BXyADlAH.js} +1 -1
- package/dist/webcomponents/p-Ba8jdOkX.js +1 -0
- package/dist/webcomponents/p-BxKbnILQ.js +1 -0
- package/dist/webcomponents/{p-2LVpxCS_.js → p-CHo7TfsM.js} +1 -1
- package/dist/webcomponents/p-CHw7tICr.js +1 -0
- package/dist/webcomponents/{p-DnrawQn3.js → p-CPKMvyV_.js} +1 -1
- package/dist/webcomponents/p-Ce_W43gc.js +1 -0
- package/dist/webcomponents/{p-B5vVjDc_.js → p-Cm9f5fyh.js} +1 -1
- package/dist/webcomponents/p-CqiVXthx.js +1 -0
- package/dist/webcomponents/{p-x9fFFf7F.js → p-Cu7hgXL1.js} +1 -1
- package/dist/webcomponents/p-Cz_7BuGW.js +1 -0
- package/dist/webcomponents/p-D-zwk1J3.js +1 -0
- package/dist/webcomponents/{p-D1D2eC05.js → p-D1_eip6x.js} +1 -1
- package/dist/webcomponents/p-DSclFZ32.js +1 -0
- package/dist/webcomponents/p-DYHjzFnJ.js +1 -0
- package/dist/webcomponents/p-Dk26hk5T.js +1 -0
- package/dist/webcomponents/{p-CKiAlBsU.js → p-DwoT0UoX.js} +1 -1
- package/dist/webcomponents/{p-_-2E_vYf.js → p-DyucNSA4.js} +1 -1
- package/dist/webcomponents/p-KXLYEe1D.js +1 -0
- package/dist/webcomponents/p-NZS8uCtH.js +1 -0
- package/dist/webcomponents/p-OGt0dCJl.js +1 -0
- package/dist/webcomponents/p-a1dcdc8b.entry.js +20 -0
- package/dist/webcomponents/{p-10be75b8.entry.js → p-a80f69a9.entry.js} +1 -1
- package/dist/webcomponents/{p-9581d6a1.entry.js → p-a9695714.entry.js} +1 -1
- package/dist/webcomponents/{p-7f814609.entry.js → p-ae91fc9b.entry.js} +1 -1
- package/dist/webcomponents/p-av6jyzyC.js +1 -0
- package/dist/webcomponents/p-b0b6083f.entry.js +1 -0
- package/dist/webcomponents/p-b272a29d.entry.js +1 -0
- package/dist/webcomponents/p-b341efd6.entry.js +1 -0
- package/dist/webcomponents/{p-e6e56dbb.entry.js → p-b62ff001.entry.js} +1 -1
- package/dist/webcomponents/p-c1539656.entry.js +1 -0
- package/dist/webcomponents/p-c8f3656f.entry.js +1 -0
- package/dist/webcomponents/p-c9fe4f33.entry.js +1 -0
- package/dist/webcomponents/{p-09d2efad.entry.js → p-ca87c609.entry.js} +1 -1
- package/dist/webcomponents/p-cde76bf8.entry.js +1 -0
- package/dist/webcomponents/p-d24240a5.entry.js +1 -0
- package/dist/webcomponents/p-d79c5ee4.entry.js +1 -0
- package/dist/webcomponents/p-daaa2a99.entry.js +1 -0
- package/dist/webcomponents/{p-9db1444f.entry.js → p-db09f306.entry.js} +1 -1
- package/dist/webcomponents/{p-354fb3c4.entry.js → p-e020f003.entry.js} +1 -1
- package/dist/webcomponents/p-e4cb7c21.entry.js +1 -0
- package/dist/webcomponents/p-e5c2215a.entry.js +1 -0
- package/dist/webcomponents/p-ea0d7a98.entry.js +1 -0
- package/dist/webcomponents/p-ef85717f.entry.js +1 -0
- package/dist/webcomponents/p-f1b9cbf0.entry.js +1 -0
- package/dist/webcomponents/p-f30069ea.entry.js +1 -0
- package/dist/webcomponents/p-f3ff7e00.entry.js +1 -0
- package/dist/webcomponents/p-f9aafb21.entry.js +1 -0
- package/dist/webcomponents/p-fE5A37L5.js +1 -0
- package/dist/webcomponents/p-jIDKmNHy.js +1 -0
- package/dist/webcomponents/{p-BJ7GFTiW.js → p-mF5zKtkx.js} +1 -1
- package/dist/webcomponents/p-nb_LhbJq.js +1 -0
- package/dist/webcomponents/p-oTtn8xDw.js +1 -0
- package/dist/webcomponents/p-uZ5KAseb.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Dispute-CruQTF6_.js +0 -59
- package/dist/cjs/business-additional-questions-schema-CI80eZLJ.js +0 -73
- package/dist/cjs/checkouts-list-core.cjs.entry.js +0 -146
- package/dist/cjs/checkouts-table-CCxrsy0x.js +0 -55
- package/dist/cjs/dispute.service-BbtwY673.js +0 -32
- package/dist/cjs/form-control-number_3.cjs.entry.js +0 -249
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +0 -11075
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +0 -61
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +0 -108
- package/dist/cjs/terminal-orders-table-Cz6qvzVE.js +0 -83
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +0 -523
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +0 -262
- package/dist/collection/components/dispute-management/dispute-management-core.js +0 -169
- package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +0 -190
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +0 -139
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +0 -199
- package/dist/esm/Dispute-BH0Xfn-F.js +0 -57
- package/dist/esm/business-additional-questions-schema-DKudYaoE.js +0 -69
- package/dist/esm/business-identity-schema-CFhSc0cA.js +0 -99
- package/dist/esm/checkouts-list-core.entry.js +0 -144
- package/dist/esm/checkouts-table-C8sPHeTm.js +0 -51
- package/dist/esm/dispute.service-vlYGy0nR.js +0 -30
- package/dist/esm/form-control-number_3.entry.js +0 -245
- package/dist/esm/gross-payment-chart-core.entry.js +0 -11073
- package/dist/esm/justifi-dispute-management-core.entry.js +0 -59
- package/dist/esm/terminal-orders-list-core.entry.js +0 -106
- package/dist/esm/terminal-orders-table-C7KOcRpq.js +0 -79
- package/dist/module/checkouts-list-core.js +0 -6
- package/dist/module/checkouts-list-core2.js +0 -227
- package/dist/module/dispute-management-core.js +0 -193
- package/dist/module/dispute-response-actions.js +0 -119
- package/dist/module/gross-payment-chart-core.d.ts +0 -11
- package/dist/module/gross-payment-chart-core.js +0 -6
- package/dist/module/gross-payment-chart-core2.js +0 -11096
- package/dist/module/justifi-additional-statement.d.ts +0 -11
- package/dist/module/justifi-additional-statement.js +0 -6
- package/dist/module/justifi-cancellation-policy.d.ts +0 -11
- package/dist/module/justifi-cancellation-policy.js +0 -6
- package/dist/module/justifi-customer-details.d.ts +0 -11
- package/dist/module/justifi-customer-details.js +0 -6
- package/dist/module/justifi-dispute-management-core.d.ts +0 -11
- package/dist/module/justifi-dispute-management-core.js +0 -6
- package/dist/module/justifi-dispute-notification.d.ts +0 -11
- package/dist/module/justifi-dispute-notification.js +0 -6
- package/dist/module/justifi-dispute-notification2.js +0 -85
- package/dist/module/justifi-dispute-response-core.d.ts +0 -11
- package/dist/module/justifi-dispute-response-core.js +0 -6
- package/dist/module/justifi-dispute-response.d.ts +0 -11
- package/dist/module/justifi-dispute-response.js +0 -6
- package/dist/module/justifi-dispute-response2.js +0 -198
- package/dist/module/justifi-duplicate-charge.d.ts +0 -11
- package/dist/module/justifi-duplicate-charge.js +0 -6
- package/dist/module/justifi-electronic-evidence.d.ts +0 -11
- package/dist/module/justifi-electronic-evidence.js +0 -6
- package/dist/module/justifi-product-or-service.d.ts +0 -11
- package/dist/module/justifi-product-or-service.js +0 -6
- package/dist/module/justifi-refund-policy.js +0 -6
- package/dist/module/justifi-shipping-details.d.ts +0 -11
- package/dist/module/justifi-shipping-details.js +0 -6
- package/dist/module/owner-form-core.js +0 -6
- package/dist/module/owner-form-core2.js +0 -262
- package/dist/module/terminal-orders-list-core.d.ts +0 -11
- package/dist/module/terminal-orders-list-core.js +0 -6
- package/dist/module/terminal-orders-list-core2.js +0 -209
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -88
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +0 -34
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +0 -18
- package/dist/types/components/dispute-management/dispute-response/justifi-dispute-response.d.ts +0 -35
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +0 -21
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +0 -28
- package/dist/webcomponents/p--e0ff06z.js +0 -1
- package/dist/webcomponents/p-032b4553.entry.js +0 -1
- package/dist/webcomponents/p-042daaf8.entry.js +0 -1
- package/dist/webcomponents/p-0638f0bd.entry.js +0 -1
- package/dist/webcomponents/p-06ecd4cb.entry.js +0 -1
- package/dist/webcomponents/p-0b3f4f22.entry.js +0 -1
- package/dist/webcomponents/p-164f95ec.entry.js +0 -1
- package/dist/webcomponents/p-174eb877.entry.js +0 -1
- package/dist/webcomponents/p-1e0be7b0.entry.js +0 -1
- package/dist/webcomponents/p-24935254.entry.js +0 -1
- package/dist/webcomponents/p-39cc6928.entry.js +0 -1
- package/dist/webcomponents/p-4226eb4a.entry.js +0 -1
- package/dist/webcomponents/p-474ee3f8.entry.js +0 -1
- package/dist/webcomponents/p-485b77ba.entry.js +0 -1
- package/dist/webcomponents/p-52908814.entry.js +0 -1
- package/dist/webcomponents/p-587886f1.entry.js +0 -1
- package/dist/webcomponents/p-5ef355ce.entry.js +0 -1
- package/dist/webcomponents/p-6917aa3c.entry.js +0 -1
- package/dist/webcomponents/p-6d81822f.entry.js +0 -1
- package/dist/webcomponents/p-6ecb3ef9.entry.js +0 -1
- package/dist/webcomponents/p-79713014.entry.js +0 -1
- package/dist/webcomponents/p-798f4708.entry.js +0 -1
- package/dist/webcomponents/p-7f0f72c6.entry.js +0 -1
- package/dist/webcomponents/p-80652cf8.entry.js +0 -1
- package/dist/webcomponents/p-82fe02e4.entry.js +0 -1
- package/dist/webcomponents/p-83147f23.entry.js +0 -1
- package/dist/webcomponents/p-870fac9e.entry.js +0 -1
- package/dist/webcomponents/p-8c2427ed.entry.js +0 -1
- package/dist/webcomponents/p-92de00d7.entry.js +0 -1
- package/dist/webcomponents/p-956eca2e.entry.js +0 -1
- package/dist/webcomponents/p-9f74d7ea.entry.js +0 -1
- package/dist/webcomponents/p-B--N37zY.js +0 -1
- package/dist/webcomponents/p-BCgsLInF.js +0 -1
- package/dist/webcomponents/p-BH0Xfn-F.js +0 -1
- package/dist/webcomponents/p-Bg2SZArf.js +0 -1
- package/dist/webcomponents/p-BnaR7f2G.js +0 -1
- package/dist/webcomponents/p-BovgIz83.js +0 -1
- package/dist/webcomponents/p-BsQy297i.js +0 -1
- package/dist/webcomponents/p-CDf5H0TB.js +0 -1
- package/dist/webcomponents/p-CUI41_5y.js +0 -1
- package/dist/webcomponents/p-CX36GHQP.js +0 -1
- package/dist/webcomponents/p-Cf6HoQKl.js +0 -1
- package/dist/webcomponents/p-CsdYMTrc.js +0 -1
- package/dist/webcomponents/p-D4OlsyTo.js +0 -1
- package/dist/webcomponents/p-D8EGHc_m.js +0 -1
- package/dist/webcomponents/p-DPmnGTmg.js +0 -1
- package/dist/webcomponents/p-DWevPe7C.js +0 -1
- package/dist/webcomponents/p-Dbg501Lu.js +0 -1
- package/dist/webcomponents/p-DcBvJu0k.js +0 -1
- package/dist/webcomponents/p-DkdzUTnl.js +0 -1
- package/dist/webcomponents/p-GJyHX3us.js +0 -1
- package/dist/webcomponents/p-HT_4DkD0.js +0 -1
- package/dist/webcomponents/p-MDZuGvsl.js +0 -1
- package/dist/webcomponents/p-XrKLre8M.js +0 -1
- package/dist/webcomponents/p-a80d958d.entry.js +0 -1
- package/dist/webcomponents/p-b06910b0.entry.js +0 -1
- package/dist/webcomponents/p-b2447726.entry.js +0 -1
- package/dist/webcomponents/p-b483e71b.entry.js +0 -1
- package/dist/webcomponents/p-bfe2583d.entry.js +0 -1
- package/dist/webcomponents/p-c73631f0.entry.js +0 -1
- package/dist/webcomponents/p-c8f7ebf6.entry.js +0 -1
- package/dist/webcomponents/p-d7633e10.entry.js +0 -1
- package/dist/webcomponents/p-d878df6c.entry.js +0 -1
- package/dist/webcomponents/p-da882bd1.entry.js +0 -1
- package/dist/webcomponents/p-dd1cfb9e.entry.js +0 -1
- package/dist/webcomponents/p-ddf699e6.entry.js +0 -20
- package/dist/webcomponents/p-de836ec9.entry.js +0 -1
- package/dist/webcomponents/p-ea30cf08.entry.js +0 -1
- package/dist/webcomponents/p-edf5a854.entry.js +0 -1
- package/dist/webcomponents/p-f24563ab.entry.js +0 -1
- package/dist/webcomponents/p-f4aeda71.entry.js +0 -1
- package/dist/webcomponents/p-faa090a5.entry.js +0 -1
- package/dist/webcomponents/p-fc7ba195.entry.js +0 -1
- package/dist/webcomponents/p-hhdRync5.js +0 -1
- package/dist/webcomponents/p-niGr4RT2.js +0 -1
- package/dist/webcomponents/p-pL4dNfsl.js +0 -1
- package/dist/webcomponents/p-qcQTYcr3.js +0 -1
- 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
|
|
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: '
|
|
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 "
|
|
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
|
|
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: '
|
|
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 "
|
|
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
|
|
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("
|
|
14
|
-
() => h("
|
|
15
|
-
() => h("
|
|
16
|
-
() => h("
|
|
17
|
-
() => h("
|
|
18
|
-
() => h("
|
|
19
|
-
() => h("
|
|
20
|
-
() => h("
|
|
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: '
|
|
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 "
|
|
204
|
+
static get is() { return "dispute-response"; }
|
|
162
205
|
static get properties() {
|
|
163
206
|
return {
|
|
164
|
-
"
|
|
165
|
-
"type": "
|
|
207
|
+
"authToken": {
|
|
208
|
+
"type": "string",
|
|
166
209
|
"mutable": false,
|
|
167
210
|
"complexType": {
|
|
168
|
-
"original": "
|
|
169
|
-
"resolved": "
|
|
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":
|
|
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
|
-
"
|
|
197
|
-
"type": "
|
|
226
|
+
"disputeId": {
|
|
227
|
+
"type": "string",
|
|
198
228
|
"mutable": false,
|
|
199
229
|
"complexType": {
|
|
200
|
-
"original": "
|
|
201
|
-
"resolved": "
|
|
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":
|
|
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
|
-
"
|
|
229
|
-
"type": "
|
|
245
|
+
"disputeResponse": {
|
|
246
|
+
"type": "any",
|
|
230
247
|
"mutable": false,
|
|
231
248
|
"complexType": {
|
|
232
|
-
"original": "
|
|
233
|
-
"resolved": "
|
|
249
|
+
"original": "ApiDisputeResponse | any",
|
|
250
|
+
"resolved": "any",
|
|
234
251
|
"references": {
|
|
235
|
-
"
|
|
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::
|
|
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
|
-
"
|
|
256
|
-
"type": "
|
|
271
|
+
"apiOrigin": {
|
|
272
|
+
"type": "string",
|
|
257
273
|
"mutable": false,
|
|
258
274
|
"complexType": {
|
|
259
|
-
"original": "
|
|
260
|
-
"resolved": "
|
|
275
|
+
"original": "string",
|
|
276
|
+
"resolved": "string",
|
|
261
277
|
"references": {}
|
|
262
278
|
},
|
|
263
279
|
"required": false,
|
|
264
|
-
"optional":
|
|
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": "
|
|
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
|
|
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: '
|
|
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 "
|
|
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
|
|
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: '
|
|
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 "
|
|
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
|
|
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: '
|
|
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 "
|
|
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
|
|
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: '
|
|
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 "
|
|
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
|
|
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: '
|
|
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 "
|
|
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.
|
|
10
|
-
this.
|
|
11
|
-
|
|
12
|
-
|
|
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:
|
|
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("
|
|
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
|
-
"
|
|
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
|
}
|