@justifi/webcomponents 5.3.4 → 5.3.6
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/{Checkout-1c07dc32.js → Checkout-eef27045.js} +11 -6
- package/dist/cjs/{SubAccount-b4811a8e.js → SubAccount-df3d28dc.js} +70 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-86a6a7f8.js → badge-79e56b99.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form_9.cjs.entry.js +4 -4
- package/dist/cjs/billing-form_3.cjs.entry.js +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{button-5f6c437f.js → button-797bb3cc.js} +1 -1
- package/dist/cjs/{Analytics-2fb20059.js → check-pkg-version-1f8b660c.js} +21 -1
- package/dist/cjs/{checkout.service-b23994d2.js → checkout.service-c01e2cd7.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{checkouts-table-cf3e245e.js → checkouts-table-61543249.js} +2 -2
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -141
- package/dist/cjs/{dispute.service-c192dd33.js → dispute.service-399de502.js} +2 -2
- package/dist/cjs/{table-fc82fa81.js → event-types-666f1f22.js} +9 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-9905e3b8.js → form-control-error-text-b782cdd0.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -4
- package/dist/cjs/{form-control-help-text-8d031bfb.js → form-control-help-text-ca3c8155.js} +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
- package/dist/cjs/{get-payout-csv-13d68dab.js → get-payout-csv-11a983a0.js} +2 -2
- package/dist/cjs/{get-subaccounts-b2e6ab82.js → get-subaccounts-224f9497.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-b202dbbb.js → header-1-ff669f3f.js} +1 -1
- package/dist/cjs/{header-3-5f78acd1.js → header-3-f6642390.js} +1 -1
- package/dist/cjs/{insurance-state-ba0c39a9.js → insurance-state-66c9bea7.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +71 -108
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +7 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +31 -25
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -6
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +187 -41
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -6
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +79 -13
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -26
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +9 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-e8aa0c51.js → package-d34fcfa5.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-c2655003.js → parts-1fb925c2.js} +3 -5
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-f53022c3.js → payment.service-f369b33c.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +10 -11
- package/dist/cjs/{payments-status-92abe577.js → payments-status-ffdc54ff.js} +1 -1
- package/dist/cjs/{payments-table-c58e3ca8.js → payments-table-98b4e5e3.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +10 -11
- package/dist/cjs/{payouts-status-703d62af.js → payouts-status-64fd0c68.js} +1 -1
- package/dist/cjs/{payouts-table-70fc1498.js → payouts-table-ecfb826b.js} +2 -2
- package/dist/cjs/{skeleton-84102a44.js → skeleton-2ae76f16.js} +1 -1
- package/dist/cjs/{spinner-70f38e5e.js → spinner-15764f3c.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +31 -11
- package/dist/cjs/terminal-orders-table-f1bed365.js +56 -0
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +36 -0
- package/dist/cjs/terminal.service-4fd34835.js +35 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{terminals-table-db58a0c0.js → terminals-table-30298ce4.js} +6 -4
- package/dist/cjs/{utils-7c5b2837.js → utils-3e3b8061.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/terminal/get-terminal-models.js +30 -0
- package/dist/collection/actions/terminal/get-terminal-orders.js +34 -0
- package/dist/collection/actions/terminal/order-terminals.js +29 -0
- package/dist/collection/api/Checkout.js +5 -0
- package/dist/collection/api/Terminal.js +1 -0
- package/dist/collection/api/TerminalModel.js +15 -0
- package/dist/collection/api/TerminalOrder.js +51 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/terminal.service.js +11 -0
- package/dist/collection/api/services/terminal_orders.service.js +9 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -8
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +27 -15
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +22 -14
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/file-input-handler.js +11 -0
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +26 -12
- package/dist/collection/components/order-terminals/order-terminals-loading.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +159 -35
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector-loading.js +5 -0
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +153 -0
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-order-status.js +23 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +53 -7
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +52 -11
- package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +17 -5
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-table.js +4 -2
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +3 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.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 +2 -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-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/docs.json +530 -50
- package/dist/esm/{Checkout-919eb1ba.js → Checkout-2bc873fb.js} +6 -1
- package/dist/esm/{SubAccount-9aad3891.js → SubAccount-dbd4e50c.js} +69 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-2eb79416.js → badge-6f5acf30.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
- package/dist/esm/bank-account-form_9.entry.js +4 -4
- package/dist/esm/billing-form_3.entry.js +6 -6
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{button-cc455199.js → button-79dcea75.js} +1 -1
- package/dist/esm/{Analytics-759c7da5.js → check-pkg-version-8e7e585e.js} +21 -2
- package/dist/esm/{checkout.service-bb45d248.js → checkout.service-382a16ec.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +7 -8
- package/dist/esm/{checkouts-table-53981285.js → checkouts-table-8a53cef9.js} +2 -2
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -140
- package/dist/esm/{dispute.service-9008b3b7.js → dispute.service-97887804.js} +2 -2
- package/dist/esm/{table-e287f1c0.js → event-types-82515a49.js} +10 -3
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-74c6b38a.js → form-control-error-text-466c252b.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -4
- package/dist/esm/{form-control-help-text-76a4196e.js → form-control-help-text-242916e3.js} +1 -1
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +139 -0
- package/dist/esm/{get-payout-csv-8450b60d.js → get-payout-csv-6826271a.js} +2 -2
- package/dist/esm/{get-subaccounts-3af0844a.js → get-subaccounts-f21220dc.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-797ca789.js → header-1-b43590e5.js} +1 -1
- package/dist/esm/{header-3-544afa0b.js → header-3-b90e161e.js} +1 -1
- package/dist/esm/{insurance-state-307335d6.js → insurance-state-9e4a3359.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +5 -5
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +4 -4
- package/dist/esm/justifi-additional-statement_8.entry.js +71 -108
- package/dist/esm/justifi-business-details.entry.js +4 -5
- package/dist/esm/justifi-business-form.entry.js +8 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +6 -7
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +9 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +5 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +30 -24
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -5
- package/dist/esm/justifi-order-terminals.entry.js +187 -41
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +7 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +10 -11
- package/dist/esm/justifi-payout-details.entry.js +7 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +11 -12
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +80 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminals-list.entry.js +11 -24
- package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-49477570.js → package-46c7f3a6.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-489f0af6.js → parts-2c5c609b.js} +3 -4
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment.service-a8ee345c.js → payment.service-a8aa5be7.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +9 -10
- package/dist/esm/{payments-status-35255b2c.js → payments-status-6e203ce4.js} +1 -1
- package/dist/esm/{payments-table-6e97396a.js → payments-table-4c6093e1.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +9 -10
- package/dist/esm/{payouts-status-a0cc00c5.js → payouts-status-66e830f1.js} +1 -1
- package/dist/esm/{payouts-table-6b8ba8f1.js → payouts-table-46fbedb6.js} +2 -2
- package/dist/esm/{skeleton-74fbfb68.js → skeleton-122648e6.js} +1 -1
- package/dist/esm/{spinner-6b708842.js → spinner-14cd9ac7.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +30 -10
- package/dist/esm/terminal-orders-table-83b905fd.js +52 -0
- package/dist/esm/terminal-quantity-selector.entry.js +32 -0
- package/dist/esm/terminal.service-20445fc1.js +33 -0
- package/dist/esm/terminals-list-core.entry.js +8 -9
- package/dist/esm/{terminals-table-c6258344.js → terminals-table-dbbf9a99.js} +6 -4
- package/dist/esm/{utils-6c26bccc.js → utils-4cb0d852.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +6 -1
- package/dist/module/SubAccount.js +69 -1
- package/dist/module/additional-statement.js +9 -14
- package/dist/module/cancellation-policy.js +9 -14
- package/dist/module/check-pkg-version.js +80 -1
- package/dist/module/checkouts-list-core2.js +1 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +9 -14
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +22 -14
- package/dist/module/dispute-response.js +1 -2
- package/dist/module/duplicate-charge.js +9 -14
- package/dist/module/electronic-evidence.js +9 -14
- package/dist/module/event-types2.js +55 -1
- package/dist/module/{dispute-response-form-types.js → file-input-handler.js} +23 -13
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +2 -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-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-business-details.js +1 -2
- package/dist/module/justifi-business-form.js +1 -2
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-checkouts-list.js +1 -2
- package/dist/module/justifi-dispute-management.js +1 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-order-terminals.js +211 -41
- package/dist/module/justifi-payment-details.js +1 -2
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -3
- package/dist/module/justifi-payout-details.js +1 -2
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -3
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -2
- package/dist/module/justifi-terminal-orders-list.js +75 -12
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +4 -18
- package/dist/module/justifi-tokenize-payment-method.js +3 -4
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +3 -4
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-provisioning-core.js +2 -2
- package/dist/module/payments-list-core2.js +2 -3
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +2 -3
- package/dist/module/product-or-service.js +17 -16
- package/dist/module/refund-policy.js +9 -14
- package/dist/module/shipping-details.js +9 -12
- package/dist/module/terminal-orders-list-core2.js +67 -10
- package/dist/module/terminal-quantity-selector.d.ts +11 -0
- package/dist/module/terminal-quantity-selector.js +6 -0
- package/dist/module/terminal-quantity-selector2.js +66 -0
- package/dist/module/terminal.service.js +33 -0
- package/dist/module/terminals-list-core2.js +6 -5
- package/dist/types/actions/terminal/get-terminal-models.d.ts +8 -0
- package/dist/types/actions/terminal/get-terminal-orders.d.ts +11 -0
- package/dist/types/actions/terminal/order-terminals.d.ts +8 -0
- package/dist/types/api/Checkout.d.ts +4 -0
- package/dist/types/api/Terminal.d.ts +2 -0
- package/dist/types/api/TerminalModel.d.ts +31 -0
- package/dist/types/api/TerminalOrder.d.ts +53 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/terminal.service.d.ts +4 -0
- package/dist/types/api/services/terminal_orders.service.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -1
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +3 -3
- package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +5 -2
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +5 -4
- package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/file-input-handler.d.ts +2 -0
- package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +5 -2
- package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +4 -1
- package/dist/types/components/order-terminals/order-terminals.d.ts +30 -3
- package/dist/types/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector-loading.d.ts +1 -0
- package/dist/types/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.d.ts +17 -0
- package/dist/types/components/terminal-orders-list/terminal-order-status.d.ts +2 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +7 -5
- package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +8 -2
- package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +16 -5
- package/dist/types/components/terminals-list/terminals-table.d.ts +3 -1
- package/dist/types/components.d.ts +87 -8
- package/dist/types/global.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +2 -0
- package/dist/webcomponents/p-0137575f.entry.js +1 -0
- package/dist/webcomponents/{p-f7d9ea0b.entry.js → p-030a8806.entry.js} +1 -1
- package/dist/webcomponents/p-039a09b8.entry.js +1 -0
- package/dist/webcomponents/{p-29688e30.js → p-046ecd01.js} +1 -1
- package/dist/webcomponents/{p-1278dedf.js → p-087758d3.js} +1 -1
- package/dist/webcomponents/{p-060896c4.entry.js → p-0a60d356.entry.js} +1 -1
- package/dist/webcomponents/p-0ba77d53.entry.js +1 -0
- package/dist/webcomponents/p-0c22225c.entry.js +1 -0
- package/dist/webcomponents/{p-5a96a2a2.entry.js → p-0cefd846.entry.js} +1 -1
- package/dist/webcomponents/{p-ae271c06.entry.js → p-10a14943.entry.js} +1 -1
- package/dist/webcomponents/p-10e32428.entry.js +1 -0
- package/dist/webcomponents/p-1705af62.js +1 -0
- package/dist/webcomponents/{p-553dba95.entry.js → p-19b8c3c8.entry.js} +1 -1
- package/dist/webcomponents/p-1a48d917.entry.js +1 -0
- package/dist/webcomponents/{p-300a99ee.js → p-1e300d41.js} +1 -1
- package/dist/webcomponents/p-2027145a.entry.js +1 -0
- package/dist/webcomponents/p-222fa126.entry.js +1 -0
- package/dist/webcomponents/{p-a31ba276.entry.js → p-33a17e80.entry.js} +1 -1
- package/dist/webcomponents/p-34e18d17.entry.js +1 -0
- package/dist/webcomponents/{p-e3e0d791.entry.js → p-36edba41.entry.js} +1 -1
- package/dist/webcomponents/p-3732aa87.js +1 -0
- package/dist/webcomponents/p-382ab4e8.js +1 -0
- package/dist/webcomponents/p-3947a309.entry.js +1 -0
- package/dist/webcomponents/p-3cbdca1b.js +1 -0
- package/dist/webcomponents/{p-939d0a35.entry.js → p-4d5c553d.entry.js} +1 -1
- package/dist/webcomponents/{p-8b16a20f.js → p-547b51e9.js} +1 -1
- package/dist/webcomponents/p-5ee67fad.js +1 -0
- package/dist/webcomponents/p-5efe9572.entry.js +1 -0
- package/dist/webcomponents/p-638b91ff.entry.js +1 -0
- package/dist/webcomponents/{p-e007002a.entry.js → p-685c7028.entry.js} +1 -1
- package/dist/webcomponents/{p-14f40baa.js → p-694078d2.js} +1 -1
- package/dist/webcomponents/p-69ac2640.entry.js +1 -0
- package/dist/webcomponents/p-6a2d6298.entry.js +1 -0
- package/dist/webcomponents/{p-b57cfe54.entry.js → p-6ef3de11.entry.js} +1 -1
- package/dist/webcomponents/p-71897cbc.js +1 -0
- package/dist/webcomponents/{p-4fbdf440.entry.js → p-759f25a1.entry.js} +1 -1
- package/dist/webcomponents/p-7dc9fb75.js +1 -0
- package/dist/webcomponents/p-7e93eac9.entry.js +1 -0
- package/dist/webcomponents/p-7ed52fbc.entry.js +1 -0
- package/dist/webcomponents/{p-8a7266b4.js → p-8066b866.js} +1 -1
- package/dist/webcomponents/p-830f0971.entry.js +1 -0
- package/dist/webcomponents/{p-020e7d5d.entry.js → p-833ef79e.entry.js} +1 -1
- package/dist/webcomponents/p-8971f9da.entry.js +1 -0
- package/dist/webcomponents/p-8c461ebc.entry.js +1 -0
- package/dist/webcomponents/p-8fad4359.entry.js +1 -0
- package/dist/webcomponents/{p-dfebd7a4.js → p-9dc9aaba.js} +1 -1
- package/dist/webcomponents/p-9f1a3199.js +1 -0
- package/dist/webcomponents/{p-19063270.entry.js → p-a07afdcc.entry.js} +1 -1
- package/dist/webcomponents/p-a173ccd5.entry.js +1 -0
- package/dist/webcomponents/p-a3d75257.js +1 -0
- package/dist/webcomponents/p-a957612b.entry.js +1 -0
- package/dist/webcomponents/p-aa21cdb1.entry.js +1 -0
- package/dist/webcomponents/p-aa923138.entry.js +1 -0
- package/dist/webcomponents/p-ad473d5c.entry.js +1 -0
- package/dist/webcomponents/p-b11468b5.entry.js +1 -0
- package/dist/webcomponents/{p-3b680e50.js → p-b5addd78.js} +1 -1
- package/dist/webcomponents/p-b62403c2.entry.js +1 -0
- package/dist/webcomponents/{p-bfe339d5.js → p-b69beb1c.js} +1 -1
- package/dist/webcomponents/{p-78a204f9.entry.js → p-b76f755a.entry.js} +1 -1
- package/dist/webcomponents/p-b8ee505d.entry.js +1 -0
- package/dist/webcomponents/p-b92aac9b.entry.js +1 -0
- package/dist/webcomponents/{p-fea43254.entry.js → p-b92f125b.entry.js} +1 -1
- package/dist/webcomponents/{p-a90d8f4f.entry.js → p-bd2340f7.entry.js} +1 -1
- package/dist/webcomponents/{p-b2d57b2c.entry.js → p-bd2d9d29.entry.js} +1 -1
- package/dist/webcomponents/p-bdf0ab42.js +1 -0
- package/dist/webcomponents/p-c406c0fa.js +1 -0
- package/dist/webcomponents/{p-09496255.js → p-c54f54ed.js} +1 -1
- package/dist/webcomponents/p-c5cc443e.entry.js +1 -0
- package/dist/webcomponents/p-cd68707b.entry.js +1 -0
- package/dist/webcomponents/p-d5a481e4.entry.js +1 -0
- package/dist/webcomponents/{p-389e1eb7.js → p-daf0303f.js} +1 -1
- package/dist/webcomponents/p-e366ef1e.js +1 -0
- package/dist/webcomponents/p-e400e31f.entry.js +1 -0
- package/dist/webcomponents/{p-235abbd1.entry.js → p-e4514af8.entry.js} +1 -1
- package/dist/webcomponents/{p-06f5b709.js → p-e60867c6.js} +1 -1
- package/dist/webcomponents/{p-89ecfbf4.entry.js → p-e754d8e7.entry.js} +1 -1
- package/dist/webcomponents/p-eb05bd1e.entry.js +1 -0
- package/dist/webcomponents/p-ede13cc8.js +1 -0
- package/dist/webcomponents/{p-df2559c7.js → p-ee9d433f.js} +1 -1
- package/dist/webcomponents/{p-ebbe93ac.entry.js → p-f04dbd80.entry.js} +1 -1
- package/dist/webcomponents/p-f2111e68.js +1 -0
- package/dist/webcomponents/p-f3061f2a.entry.js +1 -0
- package/dist/webcomponents/{p-906a6027.js → p-fa987dcf.js} +1 -1
- package/dist/webcomponents/p-fae67ab3.js +1 -0
- package/dist/webcomponents/p-fd4607f9.entry.js +1 -0
- package/dist/webcomponents/p-ffd0c24b.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/check-pkg-version-f5a3d421.js +0 -24
- package/dist/cjs/event-types-b6d34593.js +0 -8
- package/dist/cjs/terminal-orders-table-61081532.js +0 -18
- package/dist/esm/check-pkg-version-1d6e48c8.js +0 -22
- package/dist/esm/event-types-0a83d0b4.js +0 -8
- package/dist/esm/terminal-orders-table-765c44d5.js +0 -14
- package/dist/module/Analytics.js +0 -82
- package/dist/module/table.js +0 -55
- package/dist/webcomponents/p-08a17c5c.entry.js +0 -1
- package/dist/webcomponents/p-0b38cfbf.js +0 -1
- package/dist/webcomponents/p-0f4d851d.entry.js +0 -1
- package/dist/webcomponents/p-1aa22806.js +0 -1
- package/dist/webcomponents/p-1f4e26f3.entry.js +0 -1
- package/dist/webcomponents/p-1f99a902.js +0 -1
- package/dist/webcomponents/p-27c72b92.entry.js +0 -1
- package/dist/webcomponents/p-29fbbc93.js +0 -1
- package/dist/webcomponents/p-2e0ae487.js +0 -1
- package/dist/webcomponents/p-2f9af679.js +0 -1
- package/dist/webcomponents/p-37b7b200.entry.js +0 -1
- package/dist/webcomponents/p-39a63e0c.entry.js +0 -1
- package/dist/webcomponents/p-3ab7a49e.entry.js +0 -1
- package/dist/webcomponents/p-3d486f37.entry.js +0 -1
- package/dist/webcomponents/p-42a48c59.js +0 -1
- package/dist/webcomponents/p-49df4962.entry.js +0 -1
- package/dist/webcomponents/p-4a71c90b.entry.js +0 -1
- package/dist/webcomponents/p-4b6256e0.entry.js +0 -1
- package/dist/webcomponents/p-53b660a3.entry.js +0 -1
- package/dist/webcomponents/p-56697a12.entry.js +0 -1
- package/dist/webcomponents/p-595479da.entry.js +0 -1
- package/dist/webcomponents/p-66ae2a0e.entry.js +0 -1
- package/dist/webcomponents/p-670296bf.entry.js +0 -1
- package/dist/webcomponents/p-75b7dfe7.entry.js +0 -1
- package/dist/webcomponents/p-794cce10.entry.js +0 -1
- package/dist/webcomponents/p-7c541199.entry.js +0 -1
- package/dist/webcomponents/p-7d2538d9.entry.js +0 -1
- package/dist/webcomponents/p-7ee5a90e.entry.js +0 -1
- package/dist/webcomponents/p-8548edd6.entry.js +0 -1
- package/dist/webcomponents/p-9055aa6e.entry.js +0 -1
- package/dist/webcomponents/p-9a4d0e1d.entry.js +0 -1
- package/dist/webcomponents/p-9cbbe9cb.entry.js +0 -1
- package/dist/webcomponents/p-9edd6ad8.js +0 -1
- package/dist/webcomponents/p-a0082e77.entry.js +0 -1
- package/dist/webcomponents/p-a6b66c88.entry.js +0 -1
- package/dist/webcomponents/p-acca56ec.entry.js +0 -1
- package/dist/webcomponents/p-af945fc0.entry.js +0 -1
- package/dist/webcomponents/p-c2196cb8.entry.js +0 -1
- package/dist/webcomponents/p-c4ca0038.js +0 -1
- package/dist/webcomponents/p-cba89310.entry.js +0 -1
- package/dist/webcomponents/p-cbe05f11.js +0 -1
- package/dist/webcomponents/p-d279545a.entry.js +0 -1
- package/dist/webcomponents/p-d398ce81.js +0 -1
- package/dist/webcomponents/p-d432f0fd.entry.js +0 -1
- package/dist/webcomponents/p-d5c41ec6.js +0 -1
- package/dist/webcomponents/p-e8cd9691.js +0 -1
- package/dist/webcomponents/p-e9e80a62.js +0 -1
- package/dist/webcomponents/p-ec019b89.js +0 -1
- package/dist/webcomponents/p-fa843aad.entry.js +0 -1
- package/dist/webcomponents/p-fc3d2a9e.entry.js +0 -1
- package/dist/webcomponents/p-ff1f2d65.js +0 -1
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
3
|
-
import { J as JustifiAnalytics } from './
|
|
4
|
-
import { c as checkPkgVersion } from './check-pkg-version-1d6e48c8.js';
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
|
|
5
4
|
import { a as Dispute } from './Dispute-5fd28ec9.js';
|
|
6
5
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
7
|
-
import { D as DisputeService } from './dispute.service-
|
|
8
|
-
import './package-
|
|
6
|
+
import { D as DisputeService } from './dispute.service-97887804.js';
|
|
7
|
+
import './package-46c7f3a6.js';
|
|
9
8
|
import './Api-391d00e2.js';
|
|
10
|
-
import './Checkout-
|
|
9
|
+
import './Checkout-2bc873fb.js';
|
|
11
10
|
import './utils-c37124fc.js';
|
|
12
11
|
import './Pagination-afc8f96d.js';
|
|
13
12
|
import './Payment-82d2f453.js';
|
|
14
|
-
import './SubAccount-
|
|
13
|
+
import './SubAccount-dbd4e50c.js';
|
|
15
14
|
import './Document-1907c0d4.js';
|
|
16
15
|
|
|
17
16
|
const makeGetDispute = ({ id, authToken, service, apiOrigin }) => async ({ onSuccess, onError }) => {
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { f as formatCurrency } from './utils-c37124fc.js';
|
|
3
|
-
import { t as text,
|
|
4
|
-
import { B as Button } from './button-
|
|
3
|
+
import { t as text, C as heading4 } from './parts-2c5c609b.js';
|
|
4
|
+
import { B as Button } from './button-79dcea75.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
6
|
-
import { S as Skeleton } from './skeleton-
|
|
6
|
+
import { S as Skeleton } from './skeleton-122648e6.js';
|
|
7
7
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
9
|
-
import { D as DisputeService } from './dispute.service-
|
|
9
|
+
import { D as DisputeService } from './dispute.service-97887804.js';
|
|
10
10
|
import { D as DisputeManagementClickActions } from './event-types-07cdb9a0.js';
|
|
11
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
12
|
-
import { J as JustifiAnalytics } from './Analytics-759c7da5.js';
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
|
|
13
12
|
import './Api-391d00e2.js';
|
|
14
|
-
import './Checkout-
|
|
13
|
+
import './Checkout-2bc873fb.js';
|
|
15
14
|
import './Pagination-afc8f96d.js';
|
|
16
15
|
import './Payment-82d2f453.js';
|
|
17
16
|
import './Dispute-5fd28ec9.js';
|
|
18
|
-
import './SubAccount-
|
|
17
|
+
import './SubAccount-dbd4e50c.js';
|
|
19
18
|
import './Document-1907c0d4.js';
|
|
20
|
-
import './package-
|
|
19
|
+
import './package-46c7f3a6.js';
|
|
21
20
|
|
|
22
21
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
23
22
|
var _a;
|
|
@@ -141,7 +140,7 @@ const DisputeNotification = class {
|
|
|
141
140
|
}
|
|
142
141
|
render() {
|
|
143
142
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
144
|
-
return (h(StyledHost, { key: '77119b1227200909f4742e24df0a45e1f631c65c' }, this.isLoading && (h("div", { key: 'f0766ff057fb2f4b75b34c7d4a386bde43e49652', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'd7268194dea5ac2a3b87aea8e17573b4768e308f', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: 'f8863e45a917f56be302ca1b0b3d472119f6465c', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'c7b8c9c89d9488eea3be8ea0b4536f98a8151487', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: '875fe7def317ce1c4547e04e83baf2b232209058', part: text }, h("h1", { key: '09646afc2aac3bf4ef9737bc12442660bbafb2dd', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '14224cffb16726eaa589118be954e0f844ffaee8' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '415028b91872a2391796872fdffdbee837a2a511', class: "h5" }, "Dispute details"), h("div", { key: 'c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e', class: "d-table gap-2" }, h("div", { key: 'd11bd8b3bc680183e8bee40281cc2c294aedbd5a', class: "d-table-row gap-2" }, h("span", { key: 'd77796c0d2764329c3b482ae49ceb8b4cac03d37', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '716d8af2a250c3237af6e23b43bf50e032e9f203', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_b = this.dispute) === null || _b === void 0 ? void 0 : _b.amount))), h("div", { key: 'daba4379197533d2a4b246e81139d81cd15761c6', class: "d-table-row gap-2" }, h("span", { key: 'a039fbf47aff16445e3411c33a7b53716c42866d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '19087aba5c516d0c71e9f84e8b3323a044ae532a', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_c = this.dispute) === null || _c === void 0 ? void 0 : _c.reason)), h("div", { key: '68ef78b15627df3b22bcde4b90f7c216466e7468', class: "d-table-row gap-2" }, h("span", { key: '9463c281d76b5e201a55c2993253fc22d04168dc', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Dispute ID"), h("span", { key: '5cffed27038f5571f37377c5023a88c8b7773a59', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_d = this.dispute) === null || _d === void 0 ? void 0 : _d.id))), h("div", { key: 'e856d924edac10116781425f6d7c4c8c6b26ced2', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '6d5278a91f79c2fe8fbdd9e391b109a6491b13b6', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '242b9076b482aae731ab6bedc1592a1a826e24c5', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: 'f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4' }, h("h1", { key: '06e39be43cfacf667919adbd2f4f8c596702c340', class: "h4" }, "This payment is disputed and under review"), h("p", { key: 'b3bfef2d40e197f8dc9df6f71d9f13017a4b923d' }, "The cardholder is disputing this payment. A counter dispute has been
|
|
143
|
+
return (h(StyledHost, { key: '77119b1227200909f4742e24df0a45e1f631c65c' }, this.isLoading && (h("div", { key: 'f0766ff057fb2f4b75b34c7d4a386bde43e49652', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'd7268194dea5ac2a3b87aea8e17573b4768e308f', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: 'f8863e45a917f56be302ca1b0b3d472119f6465c', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'c7b8c9c89d9488eea3be8ea0b4536f98a8151487', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: '875fe7def317ce1c4547e04e83baf2b232209058', part: text }, h("h1", { key: '09646afc2aac3bf4ef9737bc12442660bbafb2dd', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '14224cffb16726eaa589118be954e0f844ffaee8' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '415028b91872a2391796872fdffdbee837a2a511', class: "h5" }, "Dispute details"), h("div", { key: 'c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e', class: "d-table gap-2" }, h("div", { key: 'd11bd8b3bc680183e8bee40281cc2c294aedbd5a', class: "d-table-row gap-2" }, h("span", { key: 'd77796c0d2764329c3b482ae49ceb8b4cac03d37', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '716d8af2a250c3237af6e23b43bf50e032e9f203', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_b = this.dispute) === null || _b === void 0 ? void 0 : _b.amount))), h("div", { key: 'daba4379197533d2a4b246e81139d81cd15761c6', class: "d-table-row gap-2" }, h("span", { key: 'a039fbf47aff16445e3411c33a7b53716c42866d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '19087aba5c516d0c71e9f84e8b3323a044ae532a', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_c = this.dispute) === null || _c === void 0 ? void 0 : _c.reason)), h("div", { key: '68ef78b15627df3b22bcde4b90f7c216466e7468', class: "d-table-row gap-2" }, h("span", { key: '9463c281d76b5e201a55c2993253fc22d04168dc', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Dispute ID"), h("span", { key: '5cffed27038f5571f37377c5023a88c8b7773a59', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_d = this.dispute) === null || _d === void 0 ? void 0 : _d.id))), h("div", { key: 'e856d924edac10116781425f6d7c4c8c6b26ced2', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '6d5278a91f79c2fe8fbdd9e391b109a6491b13b6', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '242b9076b482aae731ab6bedc1592a1a826e24c5', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: 'f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4' }, h("h1", { key: '06e39be43cfacf667919adbd2f4f8c596702c340', class: "h4" }, "This payment is disputed and under review"), h("p", { key: 'b3bfef2d40e197f8dc9df6f71d9f13017a4b923d' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_f = this.dispute) === null || _f === void 0 ? void 0 : _f.won) && (h("div", { key: '580144b1439d6e017726b9731b7bb15e71900092' }, h("h1", { key: '42d74d215d23409672449af86e25c945aac33ea1', class: "h4" }, "This payment was disputed"), h("p", { key: '4c337e89a32f62c8f03a53eb84737785f4b0bdb4' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.lost) && (h("div", { key: '66c0f7bbada42053683dd25776a7c0abdb708315' }, h("h1", { key: '273f2d82dbe73a15da3186946763579be2801aa4', class: "h4" }, "This payment was disputed"), h("p", { key: '22172d1c6833eb5407c19dd31b85db805d07d177' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
|
|
145
144
|
}
|
|
146
145
|
};
|
|
147
146
|
|
|
@@ -218,14 +217,14 @@ const DisputeResponseCore = class {
|
|
|
218
217
|
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
219
218
|
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
220
219
|
this.componentStepMapping = [
|
|
221
|
-
() => h("justifi-product-or-service", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
222
|
-
() => h("justifi-customer-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
223
|
-
() => h("justifi-cancellation-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
224
|
-
() => h("justifi-refund-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
225
|
-
() => h("justifi-duplicate-charge", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
226
|
-
() => h("justifi-electronic-evidence", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
227
|
-
() => h("justifi-shipping-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
228
|
-
() => h("justifi-additional-statement", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
220
|
+
() => h("justifi-product-or-service", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
221
|
+
() => h("justifi-customer-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
222
|
+
() => h("justifi-cancellation-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
223
|
+
() => h("justifi-refund-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
224
|
+
() => h("justifi-duplicate-charge", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
225
|
+
() => h("justifi-electronic-evidence", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
226
|
+
() => h("justifi-shipping-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
227
|
+
() => h("justifi-additional-statement", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
229
228
|
];
|
|
230
229
|
this.saveData = async (formData, formStep) => {
|
|
231
230
|
const hasFormData = Object.keys(formData).length;
|
|
@@ -287,15 +286,15 @@ const DisputeResponseCore = class {
|
|
|
287
286
|
},
|
|
288
287
|
onSuccess: (response) => {
|
|
289
288
|
document.presignedUrl = response.data.presigned_url;
|
|
290
|
-
this.isLoading = false;
|
|
291
289
|
},
|
|
292
290
|
onError: ({ error, code, severity }) => {
|
|
291
|
+
const errors = { [document.dispute_evidence_type]: error };
|
|
292
|
+
this.documentErrors = Object.assign(Object.assign({}, this.documentErrors), errors);
|
|
293
293
|
this.errorEvent.emit({
|
|
294
294
|
errorCode: code,
|
|
295
295
|
message: error,
|
|
296
296
|
severity,
|
|
297
297
|
});
|
|
298
|
-
this.isLoading = false;
|
|
299
298
|
},
|
|
300
299
|
});
|
|
301
300
|
};
|
|
@@ -310,20 +309,26 @@ const DisputeResponseCore = class {
|
|
|
310
309
|
});
|
|
311
310
|
return response;
|
|
312
311
|
};
|
|
313
|
-
this.onCancel = () => {
|
|
314
|
-
this.clickEvent.emit({ name: DisputeManagementClickActions.cancelDispute });
|
|
315
|
-
};
|
|
316
312
|
this.handleSubmit = async (formData, documentList, formStep) => {
|
|
317
313
|
this.isLoading = true;
|
|
318
314
|
if (documentList.length) {
|
|
315
|
+
this.documentErrors = {};
|
|
319
316
|
this.documentList = documentList;
|
|
320
317
|
await this.initializeMakePresignedURLs();
|
|
318
|
+
const hasPresigningErrors = Object.keys(this.documentErrors).length;
|
|
319
|
+
if (hasPresigningErrors) {
|
|
320
|
+
this.isLoading = false;
|
|
321
|
+
throw new Error('Could not presign all documents');
|
|
322
|
+
}
|
|
321
323
|
await this.initializeFileUploads();
|
|
322
324
|
}
|
|
323
325
|
// this needs to happen last because it fires the 'submit-event' and 'complete-form-step-event' event
|
|
324
326
|
await this.saveData(formData, formStep);
|
|
325
327
|
this.isLoading = false;
|
|
326
328
|
};
|
|
329
|
+
this.onCancel = () => {
|
|
330
|
+
this.clickEvent.emit({ name: DisputeManagementClickActions.cancelDispute });
|
|
331
|
+
};
|
|
327
332
|
// after each of these steps where validateAndSubmit is called, reload the dispute
|
|
328
333
|
// and set isLoading, and pass defaults into each step
|
|
329
334
|
this.onBack = async () => {
|
|
@@ -353,6 +358,7 @@ const DisputeResponseCore = class {
|
|
|
353
358
|
this.disputeResponse = {};
|
|
354
359
|
this.isLoading = false;
|
|
355
360
|
this.documentList = [];
|
|
361
|
+
this.documentErrors = {};
|
|
356
362
|
this.currentStep = 0;
|
|
357
363
|
this.currentStepComponentRef = undefined;
|
|
358
364
|
}
|
|
@@ -366,7 +372,7 @@ const DisputeResponseCore = class {
|
|
|
366
372
|
return this.currentStep === 0;
|
|
367
373
|
}
|
|
368
374
|
render() {
|
|
369
|
-
return (h("div", { key: '
|
|
375
|
+
return (h("div", { key: '452cfcf106f40c27f34df05ae2923c0909de9245', class: "row gy-3" }, h("div", { key: 'd9b608a8d880310b96e98cd4a00cabfcca77dc79', class: "col-12" }, h("h1", { key: '050aef1fa636d09880edc7d738d56eab2cf62e52', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '4e6094f9240d4db3d4bc03c59754ab3d04fed5bc', class: "col-12" }, this.currentStepComponent), h("div", { key: '9c1739bc4ed1a9104fd04531a11e02cbbb4f11cc', class: "col-12" }, h("div", { key: 'd37cda5a7689d8bf9263283eb24e1074ee3d97a0', 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"))))));
|
|
370
376
|
}
|
|
371
377
|
};
|
|
372
378
|
|
|
@@ -2,11 +2,10 @@ import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js'
|
|
|
2
2
|
import { A as Api } from './Api-391d00e2.js';
|
|
3
3
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
4
4
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
5
|
-
import { E as ErrorState } from './utils-
|
|
6
|
-
import { J as JustifiAnalytics } from './
|
|
7
|
-
import
|
|
8
|
-
import './
|
|
9
|
-
import './package-49477570.js';
|
|
5
|
+
import { E as ErrorState } from './utils-4cb0d852.js';
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
|
|
7
|
+
import './parts-2c5c609b.js';
|
|
8
|
+
import './package-46c7f3a6.js';
|
|
10
9
|
|
|
11
10
|
class ReportsService {
|
|
12
11
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent } from './index-29fcfdf5.js';
|
|
2
|
-
import {
|
|
2
|
+
import { B as heading5, C as heading4, g as buttonPrimary, t as text } from './parts-2c5c609b.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
4
|
-
import { E as ErrorState } from './utils-
|
|
5
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
6
|
-
import {
|
|
7
|
-
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError-c61dce41.js';
|
|
4
|
+
import { E as ErrorState } from './utils-4cb0d852.js';
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
|
|
6
|
+
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
8
7
|
import { B as BusinessService } from './business.service-f7c3b9f7.js';
|
|
9
8
|
import { B as Business } from './Business-0855931c.js';
|
|
10
9
|
import { m as makeGetBusiness } from './get-business-464419f6.js';
|
|
11
|
-
import { S as Skeleton } from './skeleton-
|
|
12
|
-
import './
|
|
10
|
+
import { S as Skeleton } from './skeleton-122648e6.js';
|
|
11
|
+
import './Checkout-2bc873fb.js';
|
|
12
|
+
import './Pagination-afc8f96d.js';
|
|
13
|
+
import './Payment-82d2f453.js';
|
|
14
|
+
import { T as TerminalModel, a as TerminalOrder, b as TerminalOrderType } from './SubAccount-dbd4e50c.js';
|
|
15
|
+
import './Document-1907c0d4.js';
|
|
16
|
+
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
17
|
+
import { T as TerminalService } from './terminal.service-20445fc1.js';
|
|
18
|
+
import './package-46c7f3a6.js';
|
|
13
19
|
import './Api-391d00e2.js';
|
|
14
20
|
import './helpers-96ea3464.js';
|
|
15
21
|
import './state-options-a356fb11.js';
|
|
16
|
-
import './utils-
|
|
22
|
+
import './utils-c37124fc.js';
|
|
23
|
+
import './Dispute-5fd28ec9.js';
|
|
17
24
|
|
|
18
25
|
const FormBlock = () => (h("div", { class: "row gap-3" },
|
|
19
26
|
h("div", { class: "col-12" },
|
|
@@ -30,68 +37,207 @@ const OrderTerminalsLoading = () => {
|
|
|
30
37
|
return (h("div", { class: "row gap-5" },
|
|
31
38
|
h("div", { class: "col-12" },
|
|
32
39
|
h(Skeleton, { width: "40%", height: "40px" })),
|
|
33
|
-
h(FormBlock, null),
|
|
34
|
-
h(FormBlock, null),
|
|
35
40
|
h(FormBlock, null)));
|
|
36
41
|
};
|
|
37
42
|
|
|
43
|
+
const TerminalSelectorLoading = () => {
|
|
44
|
+
return (h("div", { class: "terminal-selector-skeleton mt-4 rounded shadow-sm" },
|
|
45
|
+
h("div", { class: "d-flex align-items-center gap-3" },
|
|
46
|
+
h(Skeleton, { width: "125px", height: "125px", styles: { borderRadius: '8px' } }),
|
|
47
|
+
h("div", { class: "flex-grow-1" },
|
|
48
|
+
h("div", { class: "d-flex row flex-row" },
|
|
49
|
+
h("div", { class: "col-6 flex-column" },
|
|
50
|
+
h(Skeleton, null),
|
|
51
|
+
h(Skeleton, { width: "60%" })),
|
|
52
|
+
h("div", { class: "d-flex justify-content-end align-items-center gap-2 col-6" },
|
|
53
|
+
h(Skeleton, { width: "32px", height: "32px", styles: { borderRadius: '50%' } }),
|
|
54
|
+
h(Skeleton, { width: "80px", height: "32px" }),
|
|
55
|
+
h(Skeleton, { width: "32px", height: "32px", styles: { borderRadius: '50%' } }))),
|
|
56
|
+
h("div", { class: "mt-4" },
|
|
57
|
+
h("div", { class: "d-flex flex-column gap-2" },
|
|
58
|
+
h(Skeleton, null),
|
|
59
|
+
h(Skeleton, null)))))));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const makeGetTerminalModels = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
63
|
+
var _a, _b, _c, _d;
|
|
64
|
+
try {
|
|
65
|
+
const response = await service.fetchTerminalModels(id, authToken);
|
|
66
|
+
if (!response.error) {
|
|
67
|
+
const terminals = ((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.terminal_order_models) === null || _b === void 0 ? void 0 : _b.map((dataItem) => new TerminalModel(dataItem))) || [];
|
|
68
|
+
const orderLimit = (_c = response.data) === null || _c === void 0 ? void 0 : _c.order_limit;
|
|
69
|
+
onSuccess({ terminals, orderLimit });
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const responseError = getErrorMessage(response.error);
|
|
73
|
+
const code = getErrorCode((_d = response.error) === null || _d === void 0 ? void 0 : _d.code);
|
|
74
|
+
return onError({
|
|
75
|
+
error: responseError,
|
|
76
|
+
code,
|
|
77
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
83
|
+
return onError({
|
|
84
|
+
error: error.message || error,
|
|
85
|
+
code,
|
|
86
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const makeOrderTerminals = ({ authToken, service }) => async ({ terminalOrder, onSuccess, onError }) => {
|
|
92
|
+
var _a;
|
|
93
|
+
try {
|
|
94
|
+
const response = await service.orderTerminals(authToken, terminalOrder);
|
|
95
|
+
if (!response.error) {
|
|
96
|
+
const { data } = response;
|
|
97
|
+
onSuccess({ data });
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const responseError = getErrorMessage(response.error);
|
|
101
|
+
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
102
|
+
return onError({
|
|
103
|
+
error: responseError,
|
|
104
|
+
code,
|
|
105
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
111
|
+
return onError({
|
|
112
|
+
error: error.message || error,
|
|
113
|
+
code,
|
|
114
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
38
119
|
const OrderTerminals = class {
|
|
39
120
|
constructor(hostRef) {
|
|
40
121
|
registerInstance(this, hostRef);
|
|
41
122
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
123
|
+
this.submitted = createEvent(this, "submit-event", 7);
|
|
42
124
|
this.businessId = undefined;
|
|
43
125
|
this.authToken = undefined;
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
126
|
+
this.accountId = undefined;
|
|
127
|
+
this.shipping = false;
|
|
128
|
+
this.loading = {
|
|
129
|
+
business: true,
|
|
130
|
+
terminals: true,
|
|
131
|
+
};
|
|
132
|
+
this.submitting = false;
|
|
133
|
+
this.error = null;
|
|
46
134
|
this.business = undefined;
|
|
135
|
+
this.terminalModels = undefined;
|
|
136
|
+
this.orderLimit = undefined;
|
|
137
|
+
this.order = undefined;
|
|
138
|
+
this.totalQuantity = 0;
|
|
47
139
|
}
|
|
48
140
|
componentWillLoad() {
|
|
141
|
+
this.order = new TerminalOrder({
|
|
142
|
+
business_id: this.businessId,
|
|
143
|
+
account_id: this.accountId,
|
|
144
|
+
order_type: this.shipping ? TerminalOrderType.boardingShipping : TerminalOrderType.boardingOnly,
|
|
145
|
+
});
|
|
49
146
|
checkPkgVersion();
|
|
50
147
|
this.analytics = new JustifiAnalytics(this);
|
|
51
|
-
this.
|
|
148
|
+
this.loadData();
|
|
52
149
|
}
|
|
53
|
-
|
|
150
|
+
handleError(errorMessage, code, severity) {
|
|
151
|
+
this.error = { message: errorMessage, code, severity };
|
|
152
|
+
this.errorEvent.emit({ errorCode: code, message: errorMessage, severity });
|
|
153
|
+
}
|
|
154
|
+
loadData() {
|
|
54
155
|
if (!this.businessId || !this.authToken) {
|
|
55
|
-
this.
|
|
56
|
-
this.errorEvent.emit({
|
|
57
|
-
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
58
|
-
message: this.errorMessage,
|
|
59
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
60
|
-
});
|
|
156
|
+
this.handleError("Invalid business id or auth token", ComponentErrorCodes.MISSING_PROPS, ComponentErrorSeverity.ERROR);
|
|
61
157
|
return;
|
|
62
158
|
}
|
|
63
|
-
|
|
159
|
+
this.initializeGetBusiness();
|
|
160
|
+
this.initializeGetTerminalModels();
|
|
161
|
+
}
|
|
162
|
+
initializeGetBusiness() {
|
|
163
|
+
makeGetBusiness({
|
|
64
164
|
id: this.businessId,
|
|
65
165
|
authToken: this.authToken,
|
|
66
166
|
service: new BusinessService(),
|
|
67
|
-
})
|
|
68
|
-
getBusiness({
|
|
167
|
+
})({
|
|
69
168
|
onSuccess: ({ business }) => {
|
|
70
169
|
this.business = new Business(business);
|
|
71
|
-
this.
|
|
170
|
+
this.loading.business = false;
|
|
171
|
+
},
|
|
172
|
+
onError: ({ error, code, severity }) => {
|
|
173
|
+
this.handleError(error, code, severity);
|
|
174
|
+
this.loading.business = false;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
initializeGetTerminalModels() {
|
|
179
|
+
makeGetTerminalModels({
|
|
180
|
+
id: this.accountId,
|
|
181
|
+
authToken: this.authToken,
|
|
182
|
+
service: new TerminalService(),
|
|
183
|
+
})({
|
|
184
|
+
onSuccess: ({ terminals, orderLimit }) => {
|
|
185
|
+
this.terminalModels = terminals;
|
|
186
|
+
this.orderLimit = orderLimit;
|
|
187
|
+
this.loading.terminals = false;
|
|
188
|
+
},
|
|
189
|
+
onError: ({ error, code, severity }) => {
|
|
190
|
+
this.handleError(error, code, severity);
|
|
191
|
+
this.loading.terminals = false;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
submitOrder() {
|
|
196
|
+
const orderTerminals = makeOrderTerminals({
|
|
197
|
+
authToken: this.authToken,
|
|
198
|
+
service: new TerminalService(),
|
|
199
|
+
});
|
|
200
|
+
this.submitting = true;
|
|
201
|
+
orderTerminals({
|
|
202
|
+
terminalOrder: this.order.payload,
|
|
203
|
+
onSuccess: ({ data }) => {
|
|
204
|
+
this.submitted.emit(data);
|
|
205
|
+
this.submitting = false;
|
|
72
206
|
},
|
|
73
207
|
onError: ({ error, code, severity }) => {
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
errorCode: code,
|
|
77
|
-
message: error,
|
|
78
|
-
severity,
|
|
79
|
-
});
|
|
80
|
-
this.isLoading = false;
|
|
208
|
+
this.handleError(error, code, severity);
|
|
209
|
+
this.submitting = false;
|
|
81
210
|
}
|
|
82
211
|
});
|
|
83
212
|
}
|
|
213
|
+
onSelectedQuantityChange(event) {
|
|
214
|
+
this.order.updateTerminal(event.detail.modelName, event.detail.quantity);
|
|
215
|
+
this.totalQuantity = this.order.totalQuantity;
|
|
216
|
+
}
|
|
217
|
+
renderLoading() {
|
|
218
|
+
return (h("div", null, this.loading.business && h(OrderTerminalsLoading, null), this.loading.terminals && (h("div", { class: "mt-5" }, h(TerminalSelectorLoading, null), h(TerminalSelectorLoading, null), h(TerminalSelectorLoading, null)))));
|
|
219
|
+
}
|
|
220
|
+
renderError() {
|
|
221
|
+
if (!this.loading.business && this.error) {
|
|
222
|
+
return ErrorState(this.error.message);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
renderBusinessDetails() {
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
227
|
+
if (!this.loading.business && this.business) {
|
|
228
|
+
return (h("div", { class: "gap-5 pt-5 mb-5" }, h("div", { class: "row" }, h("div", { class: "col-12" }, h("h2", { part: heading4 }, this.business.legal_name))), h("div", { class: "row" }, h("h5", { part: heading5 }, "Representative:"), h("div", null, h("div", null, (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 : _b.name), h("div", null, (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 : _d.title), h("div", null, (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 : _f.email), h("div", null, (_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 : _h.phone)))));
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
renderTerminals() {
|
|
232
|
+
if (!this.loading.terminals && this.terminalModels) {
|
|
233
|
+
return (h("div", { class: "d-flex flex-column gap-2 mt-5" }, this.terminalModels.map((terminal) => (h("terminal-quantity-selector", { modelName: terminal.model_name, description: terminal.description, imageUrl: terminal.image_url, helpUrl: terminal.help_url, limit: this.orderLimit - this.order.totalQuantity, onSelectedQuantityChange: this.onSelectedQuantityChange.bind(this) })))));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
renderOrderSection() {
|
|
237
|
+
return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : 'Submit Order'))));
|
|
238
|
+
}
|
|
84
239
|
render() {
|
|
85
|
-
|
|
86
|
-
return (h(StyledHost, { key: 'd5ac7406c2ec045832411cb7a7deecde13243a41' }, this.isLoading && h(OrderTerminalsLoading, { key: 'ec71fe4b766244bbf2c04714bca66b69f367ece5' }), !this.isLoading && this.errorMessage && ErrorState(this.errorMessage), !this.isLoading && !this.errorMessage && this.business && (h("div", { key: '6492a8df913cb3360153715192bd30d656df4968', class: "row gap-5 pt-5", part: text }, h("div", { key: '607b534001238efc4d226cb26d8f1c1288b5ac29', class: "row" }, h("div", { key: '55e7bae0aad2ae9ec9a28961269cd532a2e00922', class: "col-12" }, h("h2", { key: 'c4e01bd6e3a9e46cb15d8b72093dc9de2d463feb', part: heading4 }, "Business Information:"), h("p", { key: 'cd3c01f074c8d55b968e713ec4805a22f1ffc3ba' }, "Business Name: ", this.business.legal_name))), h("div", { key: '20062e4aa0cad46f002821972fec7ec1fc8be01e', class: "row" }, h("div", { key: '433a4a200edd564fa0d206378a706ad84aa2696e', class: "col-6" }, h("h2", { key: 'e4a4fc4c632ccb3b6b187ccb87fb5cce398e43ca', part: heading4 }, "Representative:"), h("ul", { key: '02449f299dddc9fee8544fed405acc436217a60b', class: "list-group", part: listGroup }, h("li", { key: 'a1eff4e8974b8fe57c206fb9c6ce30e89c79d702', class: "list-group-item", part: listGroupItem }, "Name: ", (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 :
|
|
87
|
-
_b.name), h("li", { key: '4e04f41d044b92560f401e6edbb1993b84fca7a6', class: "list-group-item", part: listGroupItem }, "Title: ", (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 :
|
|
88
|
-
_d.title), h("li", { key: 'b354a893098b9f26819ab34966a5e47226fd280b', class: "list-group-item", part: listGroupItem }, "Email: ", (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 :
|
|
89
|
-
_f.email), h("li", { key: 'd1d94089d4f7db78c64143820601b359a77ab09f', class: "list-group-item", part: listGroupItem }, "Phone: ", (_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 :
|
|
90
|
-
_h.phone))), h("div", { key: '91ee402f8f7886c1750b8050433992cfd9964b02', class: "col-6" }, h("h2", { key: '143f76c17de7af724c325439767275efa7c8e903', part: heading4 }, "Shipping Address:"), h("ul", { key: 'dae75ec772c3971a9e690648e4e28b2eec22c638', class: "list-group", part: listGroup }, h("li", { key: '0d83cea35521361eee13912f1cb107bf7496abcc', class: "list-group-item", part: listGroupItem }, "Street: ", (_j = this.business.legal_address) === null || _j === void 0 ? void 0 :
|
|
91
|
-
_j.line1), h("li", { key: 'be4d3d8a0c61645ac4f622235f7ecf2f3ac8e097', class: "list-group-item", part: listGroupItem }, (_k = this.business.legal_address) === null || _k === void 0 ? void 0 : _k.line2), h("li", { key: '2572604b85008e401a835abdbf6c291c3191a9c7', class: "list-group-item", part: listGroupItem }, "Postal Code: ", (_l = this.business.legal_address) === null || _l === void 0 ? void 0 :
|
|
92
|
-
_l.postal_code), h("li", { key: 'e5fd5aa1d9b1bf78c75ca667b058629575be06d3', class: "list-group-item", part: listGroupItem }, "City: ", (_m = this.business.legal_address) === null || _m === void 0 ? void 0 :
|
|
93
|
-
_m.city), h("li", { key: '9acd18a7faed0ab283e110c616d9314410a93cee', class: "list-group-item", part: listGroupItem }, "State: ", (_o = this.business.legal_address) === null || _o === void 0 ? void 0 :
|
|
94
|
-
_o.state))))))));
|
|
240
|
+
return (h(StyledHost, { key: 'b8861877f987b473d37858e3b36a5f3901521dd3' }, h("div", { key: '4fd38462c88f52afbf48898c417a87acdce46e54', part: text }, this.renderLoading(), this.renderError(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
95
241
|
}
|
|
96
242
|
};
|
|
97
243
|
|
|
@@ -4,8 +4,8 @@ import { I as IdentityService } from './business.service-f7c3b9f7.js';
|
|
|
4
4
|
import { F as FormController } from './index.esm-0b6849c2.js';
|
|
5
5
|
import { O as Owner } from './Business-0855931c.js';
|
|
6
6
|
import { i as identitySchema } from './business-identity-schema-0a78fc59.js';
|
|
7
|
-
import { B as Button } from './button-
|
|
8
|
-
import {
|
|
7
|
+
import { B as Button } from './button-79dcea75.js';
|
|
8
|
+
import { W as heading3 } from './parts-2c5c609b.js';
|
|
9
9
|
import { B as BusinessFormClickActions } from './event-types-5c87de02.js';
|
|
10
10
|
import { S as SSN_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js';
|
|
11
11
|
import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-270ac806.js';
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
|
-
import { P as PaymentService } from './payment.service-
|
|
2
|
+
import { P as PaymentService } from './payment.service-a8aa5be7.js';
|
|
3
3
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
4
|
-
import './Checkout-
|
|
4
|
+
import './Checkout-2bc873fb.js';
|
|
5
5
|
import './Pagination-afc8f96d.js';
|
|
6
6
|
import { P as Payment } from './Payment-82d2f453.js';
|
|
7
|
-
import './SubAccount-
|
|
7
|
+
import './SubAccount-dbd4e50c.js';
|
|
8
8
|
import './Document-1907c0d4.js';
|
|
9
9
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
10
|
-
import { E as ErrorState } from './utils-
|
|
11
|
-
import { J as JustifiAnalytics } from './
|
|
12
|
-
import { c as checkPkgVersion } from './check-pkg-version-1d6e48c8.js';
|
|
10
|
+
import { E as ErrorState } from './utils-4cb0d852.js';
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
|
|
13
12
|
import './Api-391d00e2.js';
|
|
14
13
|
import './utils-c37124fc.js';
|
|
15
14
|
import './Dispute-5fd28ec9.js';
|
|
16
|
-
import './parts-
|
|
17
|
-
import './package-
|
|
15
|
+
import './parts-2c5c609b.js';
|
|
16
|
+
import './package-46c7f3a6.js';
|
|
18
17
|
|
|
19
18
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
20
19
|
var _a;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError-c61dce41.js';
|
|
3
3
|
import { a as checkProvisioningStatus } from './helpers-96ea3464.js';
|
|
4
|
-
import { t as text } from './parts-
|
|
4
|
+
import { t as text } from './parts-2c5c609b.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
6
|
-
import { H as Header1 } from './header-1-
|
|
6
|
+
import { H as Header1 } from './header-1-b43590e5.js';
|
|
7
7
|
import { B as BusinessFormClickActions } from './event-types-5c87de02.js';
|
|
8
8
|
import './state-options-a356fb11.js';
|
|
9
9
|
|
|
@@ -82,7 +82,7 @@ const PaymentProvisioningCore = class {
|
|
|
82
82
|
}
|
|
83
83
|
componentWillLoad() {
|
|
84
84
|
this.getBusiness && this.setBusinessProvisioned();
|
|
85
|
-
this.refs = [this.coreInfoRef, this.legalAddressRef, this.additionalQuestionsRef, this.representativeRef, this.ownersRef, this.bankAccountRef, this.
|
|
85
|
+
this.refs = [this.coreInfoRef, this.legalAddressRef, this.additionalQuestionsRef, this.representativeRef, this.ownersRef, this.bankAccountRef, this.termsRef];
|
|
86
86
|
}
|
|
87
87
|
get businessEndpoint() {
|
|
88
88
|
return `entities/business/${this.businessId}`;
|
|
@@ -100,7 +100,7 @@ const PaymentProvisioningCore = class {
|
|
|
100
100
|
this.loading = event.detail;
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
|
-
return (h(StyledHost, { key: '
|
|
103
|
+
return (h(StyledHost, { key: '498b6e0a593808dd761b9cefdb7e94124d445348' }, h("div", { key: 'd746caba6329ac82e75978bd19fbc09c8a43d60f', class: 'row gap-3' }, h(Header1, { key: '439425337ed7767ce4fc8c94e31f6997aa1b62d8', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: 'fd95a40c0a72c94cbb146cbc866d6b057cbfc5c0', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '350fc615685f872cb6ba5537dc2de5d2a205e5cc', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: '3f9a36bc1d58efdfe81b4d7022647b0c1fbc1911', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'e1c061aa840b3b8ac1bad472d763fcd54c902681', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
|
|
3
3
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError-c61dce41.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-beadac34.js';
|
|
5
5
|
import { B as BusinessService } from './business.service-f7c3b9f7.js';
|
|
6
6
|
import { A as Api } from './Api-391d00e2.js';
|
|
7
|
-
import
|
|
8
|
-
import './package-49477570.js';
|
|
7
|
+
import './package-46c7f3a6.js';
|
|
9
8
|
import './utils-fd99b806.js';
|
|
10
9
|
|
|
11
10
|
class ProvisionService {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { l as lodash } from './lodash-faeb5a52.js';
|
|
3
3
|
import { f as filterParams, p as propsParams, c as clearParams } from './payments-list-params-state-d05b24aa.js';
|
|
4
|
-
import {
|
|
4
|
+
import { D as paymentsListFilterMenu, E as paymentIdPaymentsListFilterParam, F as terminalIdPaymentsListFilterParam, G as paymentStatusPaymentsListFilterParam, H as createdAfterPaymentsListFilterParam, I as createdBeforePaymentsListFilterParam } from './parts-2c5c609b.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
6
6
|
import { d as convertToUTC, c as convertToLocal } from './utils-c37124fc.js';
|
|
7
7
|
import './index-a47fdc7f.js';
|
|
@@ -51,8 +51,8 @@ const PaymentsListFilters = class {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
54
|
-
return (h(StyledHost, { key: '
|
|
55
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '
|
|
54
|
+
return (h(StyledHost, { key: 'e86e4d5f0a36516103a04539fd9ba2d1b698a06c' }, h("table-filters-menu", { key: 'bf4986bea9280046e8c5719dfdba6390d0cc7419', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: 'c9e898c5e4944f97ba66a8b72d6f940fce47f3f3', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '02eb01fee1165a1cd7174aa066147812d7a9cb44', class: "p-2" }, h("form-control-text", { key: 'cbeeef72894b2016d101b933412b797827513dd2', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '5daedbb20682ad6b295049a865c3377e2ef79d8a', class: "p-2" }, h("form-control-text", { key: '26cd105c075114cfd062fccde5500f2eeb55888b', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: '92349a4ebb343af3a8d54601fea4c177c2ff14b2', class: "p-2" }, h("form-control-select", { key: '0e5f7cf57a22d3eeb6e4aebdbac2fe1bb13288eb', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: '5d5cc079285045a858bfbcf9646a54b8f4c70b8b', class: "p-2" }, h("form-control-date", { key: 'b8fb06fa8506503bcf89c50523dd8e036852557c', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
55
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '3d6a1de1b08e1a326e107e60c78580848ffdda19', class: "p-2" }, h("form-control-date", { key: '6f7bf72ac396429a3d8318ee17d5459147a4f60e', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
56
56
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
|
|
57
57
|
}
|
|
58
58
|
};
|