@justifi/webcomponents 5.3.2 → 5.3.3
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/{check-pkg-version-fe4c6467.js → Analytics-f448aa27.js} +8 -23
- package/dist/cjs/{Api-089e7501.js → Api-f5280a80.js} +0 -13
- package/dist/cjs/{Business-cfd6a2dd.js → Business-d88b77fd.js} +6 -2
- package/dist/cjs/{Checkout-0f1c8abe.js → Checkout-1c07dc32.js} +14 -7
- package/dist/cjs/{SubAccount-509ebf93.js → SubAccount-b4811a8e.js} +6 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-ccfe03bf.js → badge-86a6a7f8.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +9 -9
- package/dist/cjs/bank-account-form_9.cjs.entry.js +78 -5
- package/dist/cjs/billing-form_3.cjs.entry.js +11 -11
- package/dist/cjs/{business-additional-questions-schema-2cc0c6f7.js → business-additional-questions-schema-5c100f58.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business-form-options-4bcb8943.js → business-form-options-62e9c8ab.js} +1 -1
- package/dist/cjs/{business-identity-schema-7d462eb3.js → business-identity-schema-3b4d16f1.js} +1 -1
- package/dist/cjs/{business.service-33d7c7f2.js → business.service-6b05ee96.js} +8 -8
- package/dist/cjs/{button-8b634147.js → button-5f6c437f.js} +1 -1
- package/dist/cjs/check-pkg-version-d75dc147.js +24 -0
- package/dist/cjs/{checkout.service-d9047ddb.js → checkout.service-aa037531.js} +6 -6
- package/dist/cjs/checkouts-list-core.cjs.entry.js +16 -15
- package/dist/cjs/checkouts-list-params-state-644d3639.js +22 -0
- package/dist/cjs/{checkouts-table-efa1cbab.js → checkouts-table-cf3e245e.js} +2 -2
- package/dist/cjs/custom-popper_4.cjs.entry.js +8 -8
- package/dist/cjs/{dispute.service-739631c7.js → dispute.service-27dcd7f4.js} +7 -7
- package/dist/cjs/event-types-b6d34593.js +8 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- 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-46a7f2dd.js → form-control-error-text-9905e3b8.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-help-text-98c882e3.js → form-control-help-text-8d031bfb.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/get-business-0bd063d2.js +34 -0
- package/dist/cjs/{get-payout-csv-bdaff21b.js → get-payout-csv-7646128d.js} +6 -15
- package/dist/cjs/{get-subaccounts-2db9fc01.js → get-subaccounts-cc933b3e.js} +4 -7
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-4c21f7ca.js → header-1-b202dbbb.js} +1 -1
- package/dist/cjs/{header-3-130206cc.js → header-3-5f78acd1.js} +1 -1
- package/dist/cjs/{insurance-state-21fde44f.js → insurance-state-ba0c39a9.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +10 -10
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -9
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-details.cjs.entry.js +13 -38
- package/dist/cjs/justifi-business-form.cjs.entry.js +17 -16
- 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 +11 -10
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +32 -9
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -9
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -14
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -7
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +102 -0
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +20 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -14
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -9
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +41 -0
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +27 -6
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -20
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +11 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-8b04bef0.js → package-a24ad889.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-b2ff8b68.js → parts-c2655003.js} +32 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-87924c1a.js → payment.service-65fbac72.js} +5 -8
- package/dist/cjs/payments-list-core.cjs.entry.js +17 -16
- package/dist/cjs/{payments-status-ec12ee6a.js → payments-status-92abe577.js} +1 -1
- package/dist/cjs/{payments-table-f3aa174d.js → payments-table-c58e3ca8.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +22 -17
- package/dist/cjs/payouts-list-params-state-033b76d6.js +22 -0
- package/dist/cjs/{payouts-status-9f2e9a3a.js → payouts-status-703d62af.js} +1 -1
- package/dist/cjs/{payouts-table-4efa53fa.js → payouts-table-70fc1498.js} +3 -3
- package/dist/cjs/{schema-validations-f948158d.js → schema-validations-47a256f4.js} +1 -1
- package/dist/cjs/{skeleton-0353466d.js → skeleton-84102a44.js} +1 -1
- package/dist/cjs/{spinner-4fc60a51.js → spinner-70f38e5e.js} +1 -1
- package/dist/cjs/{event-types-34b103b4.js → table-fc82fa81.js} +2 -9
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +80 -0
- package/dist/cjs/terminal-orders-table-61081532.js +18 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +16 -15
- package/dist/cjs/terminals-list-params-state-236f06f6.js +22 -0
- package/dist/cjs/{terminals-table-5e4bce93.js → terminals-table-db58a0c0.js} +3 -3
- package/dist/cjs/{utils-134dda01.js → utils-7c5b2837.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/{api → actions/sub-account}/get-subaccounts.js +2 -3
- package/dist/collection/api/Analytics.js +5 -0
- package/dist/collection/api/Business.js +6 -2
- package/dist/collection/api/Checkout.js +8 -1
- package/dist/collection/api/Payout.js +0 -3
- package/dist/collection/api/Terminal.js +6 -6
- package/dist/collection/api/services/analytics.service.js +1 -2
- package/dist/collection/api/services/business.service.js +7 -8
- package/dist/collection/api/services/checkout.service.js +4 -5
- package/dist/collection/api/services/dispute.service.js +4 -5
- package/dist/collection/api/services/insurance.service.js +2 -3
- package/dist/collection/api/services/payment.service.js +2 -6
- package/dist/collection/api/services/payout.service.js +3 -13
- package/dist/collection/api/services/provision.service.js +1 -2
- package/dist/collection/api/services/reports.service.js +1 -2
- package/dist/collection/api/services/subaccounts.service.js +1 -5
- package/dist/collection/api/services/terminal.service.js +2 -9
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/business-details/business-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form.js +1 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
- package/dist/collection/components/checkout/bank-account-form/bank-account-form-skeleton.js +10 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +24 -1
- package/dist/collection/components/checkout/card-form/card-form-skeleton.js +10 -0
- package/dist/collection/components/checkout/card-form/card-form.js +26 -1
- package/dist/collection/components/checkout/checkout.js +5 -6
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +7 -9
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +75 -9
- package/dist/collection/components/checkouts-list/checkouts-list-params-state.js +11 -5
- package/dist/collection/components/checkouts-list/checkouts-list.js +5 -6
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +4 -5
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +3 -4
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +2 -2
- package/dist/collection/components/order-terminals/order-terminals-loading.js +6 -0
- package/dist/collection/components/order-terminals/order-terminals.js +139 -0
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payment-details/payment-details.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +7 -7
- package/dist/collection/components/payments-list/payments-list-filters.js +3 -3
- package/dist/collection/components/payments-list/payments-list.js +4 -5
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +12 -10
- package/dist/collection/components/payouts-list/payouts-list-filters.js +58 -3
- package/dist/collection/components/payouts-list/payouts-list-params-state.js +11 -5
- package/dist/collection/components/payouts-list/payouts-list.js +5 -6
- package/dist/collection/components/payouts-list/payouts-table.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +2 -3
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +141 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +113 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +11 -0
- package/dist/collection/components/terminals-list/terminals-list-core.js +7 -9
- package/dist/collection/components/terminals-list/terminals-list-filters.js +64 -6
- package/dist/collection/components/terminals-list/terminals-list-params-state.js +11 -5
- package/dist/collection/components/terminals-list/terminals-list.js +5 -6
- package/dist/collection/components/terminals-list/terminals-table.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
- package/dist/collection/styles/parts.js +19 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- 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 +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 +23 -7
- package/dist/docs.json +515 -14
- package/dist/esm/{check-pkg-version-e2273f4f.js → Analytics-c083a998.js} +9 -23
- package/dist/esm/{Api-97801a4b.js → Api-391d00e2.js} +1 -13
- package/dist/esm/{Business-29c69f22.js → Business-0855931c.js} +6 -2
- package/dist/esm/{Checkout-8325c97a.js → Checkout-919eb1ba.js} +9 -2
- package/dist/esm/{ComponentError-3ce7f437.js → ComponentError-c61dce41.js} +1 -1
- package/dist/esm/{SubAccount-a73bf971.js → SubAccount-9aad3891.js} +7 -10
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-938ba4b1.js → badge-2eb79416.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
- package/dist/esm/bank-account-form_9.entry.js +79 -6
- package/dist/esm/billing-form_3.entry.js +12 -12
- package/dist/esm/{business-additional-questions-schema-60e9b76a.js → business-additional-questions-schema-df76728f.js} +1 -1
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-form-options-018f62a5.js → business-form-options-86a13078.js} +1 -1
- package/dist/esm/{business-identity-schema-191d85c2.js → business-identity-schema-0a78fc59.js} +1 -1
- package/dist/esm/{business.service-45c7df3c.js → business.service-98709b1e.js} +8 -8
- package/dist/esm/{button-4b3f3934.js → button-cc455199.js} +1 -1
- package/dist/esm/check-pkg-version-6d475fed.js +22 -0
- package/dist/esm/{checkout.service-36e3355e.js → checkout.service-9330c18a.js} +7 -7
- package/dist/esm/checkouts-list-core.entry.js +16 -15
- package/dist/esm/checkouts-list-params-state-7bdf00bd.js +16 -0
- package/dist/esm/{checkouts-table-1634366d.js → checkouts-table-53981285.js} +2 -2
- package/dist/esm/custom-popper_4.entry.js +8 -8
- package/dist/esm/{dispute.service-9b9b87e5.js → dispute.service-a14ac172.js} +8 -8
- package/dist/esm/event-types-0a83d0b4.js +8 -0
- package/dist/esm/form-alert_5.entry.js +3 -3
- 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-b3d14e92.js → form-control-error-text-74c6b38a.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +4 -4
- package/dist/esm/{form-control-help-text-7b07fc37.js → form-control-help-text-76a4196e.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/get-business-464419f6.js +32 -0
- package/dist/esm/{get-payout-csv-80210301.js → get-payout-csv-87cc2147.js} +8 -17
- package/dist/esm/{get-subaccounts-d3eeb85d.js → get-subaccounts-26454771.js} +6 -9
- package/dist/esm/gross-payment-chart-core.entry.js +4 -4
- package/dist/esm/{header-1-4db0c986.js → header-1-797ca789.js} +1 -1
- package/dist/esm/{header-3-fd150ccf.js → header-3-544afa0b.js} +1 -1
- package/dist/esm/{insurance-state-529e2d0d.js → insurance-state-307335d6.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +11 -11
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-business-details.entry.js +11 -36
- package/dist/esm/justifi-business-form.entry.js +17 -16
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +7 -7
- package/dist/esm/justifi-checkout.entry.js +12 -11
- package/dist/esm/justifi-checkouts-list-filters.entry.js +32 -9
- package/dist/esm/justifi-checkouts-list.entry.js +15 -14
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +11 -10
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -15
- package/dist/esm/justifi-gross-payment-chart.entry.js +9 -8
- package/dist/esm/justifi-order-terminals.entry.js +98 -0
- package/dist/esm/justifi-owner-form_3.entry.js +11 -11
- package/dist/esm/justifi-payment-details.entry.js +11 -10
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +15 -14
- package/dist/esm/justifi-payout-details.entry.js +11 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +20 -3
- package/dist/esm/justifi-payouts-list.entry.js +16 -15
- package/dist/esm/justifi-refund-form.entry.js +6 -6
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -10
- package/dist/esm/justifi-terminal-orders-list.entry.js +37 -0
- package/dist/esm/justifi-terminals-list-filters.entry.js +27 -6
- package/dist/esm/justifi-terminals-list.entry.js +16 -21
- package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-a8e8f775.js → package-13968013.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-ab2bb4b5.js → parts-489f0af6.js} +21 -1
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment-provisioning-actions-726795a0.js → payment-provisioning-actions-beadac34.js} +2 -2
- package/dist/esm/{payment.service-c847c1f6.js → payment.service-35bbab8f.js} +6 -9
- package/dist/esm/payments-list-core.entry.js +17 -16
- package/dist/esm/{payments-status-abf1724b.js → payments-status-35255b2c.js} +1 -1
- package/dist/esm/{payments-table-88fbab49.js → payments-table-6e97396a.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +22 -17
- package/dist/esm/payouts-list-params-state-ebcee300.js +16 -0
- package/dist/esm/{payouts-status-d9987a8a.js → payouts-status-a0cc00c5.js} +1 -1
- package/dist/esm/{payouts-table-055d3633.js → payouts-table-6b8ba8f1.js} +3 -3
- package/dist/esm/{schema-validations-38e8bc7b.js → schema-validations-b1aec6a0.js} +1 -1
- package/dist/esm/{skeleton-ee7c3b32.js → skeleton-74fbfb68.js} +1 -1
- package/dist/esm/{spinner-8ec6669a.js → spinner-6b708842.js} +1 -1
- package/dist/esm/{event-types-fd7a05d9.js → table-e287f1c0.js} +3 -10
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +76 -0
- package/dist/esm/terminal-orders-table-765c44d5.js +14 -0
- package/dist/esm/terminals-list-core.entry.js +16 -15
- package/dist/esm/terminals-list-params-state-e4b2ec23.js +16 -0
- package/dist/esm/{terminals-table-2963e65b.js → terminals-table-c6258344.js} +3 -3
- package/dist/esm/{utils-c2dc83b2.js → utils-6c26bccc.js} +1 -1
- package/dist/esm/{utils-b10dae27.js → utils-fd99b806.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +82 -0
- package/dist/module/{config.js → Api.js} +1 -13
- package/dist/module/Business.js +6 -2
- package/dist/module/Checkout.js +9 -2
- package/dist/module/SubAccount.js +7 -10
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form2.js +37 -2
- package/dist/module/business-terms-conditions-form-step.js +3 -3
- package/dist/module/business.service.js +8 -8
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +43 -2
- package/dist/module/check-pkg-version.js +1 -75
- package/dist/module/checkout.service.js +4 -4
- package/dist/module/checkouts-list-core2.js +9 -9
- package/dist/module/checkouts-list-params-state.js +11 -5
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-actions.js +5 -5
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +4 -4
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/event-types2.js +1 -55
- 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 +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-number.js +2 -2
- 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 +2 -2
- package/dist/module/get-business.js +32 -0
- package/dist/module/get-payout-csv.js +4 -13
- package/dist/module/get-subaccounts.js +2 -5
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +6 -7
- package/dist/module/justifi-business-details.js +4 -31
- package/dist/module/justifi-business-form.js +4 -3
- package/dist/module/justifi-checkout.js +5 -5
- package/dist/module/justifi-checkouts-list-filters.js +34 -10
- package/dist/module/justifi-checkouts-list.js +4 -4
- package/dist/module/justifi-dispute-management.js +4 -4
- package/dist/module/justifi-gross-payment-chart.js +4 -3
- package/dist/module/justifi-order-terminals.d.ts +11 -0
- package/dist/module/justifi-order-terminals.js +119 -0
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-provisioning.js +4 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +4 -4
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list-filters.js +24 -4
- package/dist/module/justifi-payouts-list.js +4 -4
- package/dist/module/justifi-refund-form.js +3 -3
- package/dist/module/justifi-season-interruption-insurance.js +6 -5
- package/dist/module/justifi-terminal-orders-list.d.ts +11 -0
- package/dist/module/justifi-terminal-orders-list.js +73 -0
- package/dist/module/justifi-terminals-list-filters.js +29 -7
- package/dist/module/justifi-terminals-list.js +7 -12
- package/dist/module/justifi-tokenize-payment-method.js +4 -4
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +21 -1
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment.service.js +3 -6
- package/dist/module/payments-list-core2.js +9 -8
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +15 -11
- package/dist/module/payouts-list-params-state.js +11 -5
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +55 -0
- package/dist/module/terminal-orders-list-core.d.ts +11 -0
- package/dist/module/terminal-orders-list-core.js +6 -0
- package/dist/module/terminal-orders-list-core2.js +117 -0
- package/dist/module/terminals-list-core2.js +10 -10
- package/dist/module/terminals-list-params-state.js +11 -5
- package/dist/types/api/Business.d.ts +4 -4
- package/dist/types/api/Checkout.d.ts +6 -1
- package/dist/types/api/Payout.d.ts +0 -1
- package/dist/types/api/Terminal.d.ts +6 -12
- package/dist/types/components/checkout/bank-account-form/bank-account-form-skeleton.d.ts +6 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +2 -0
- package/dist/types/components/checkout/card-form/card-form-skeleton.d.ts +6 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +2 -0
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +5 -2
- package/dist/types/components/checkouts-list/checkouts-list-params-state.d.ts +4 -3
- package/dist/types/components/order-terminals/order-terminals-loading.d.ts +1 -0
- package/dist/types/components/order-terminals/order-terminals.d.ts +16 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -1
- package/dist/types/components/payouts-list/payouts-list-filters.d.ts +3 -0
- package/dist/types/components/payouts-list/payouts-list-params-state.d.ts +4 -3
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +25 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +11 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +9 -0
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +1 -1
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +4 -1
- package/dist/types/components/terminals-list/terminals-list-params-state.d.ts +4 -3
- package/dist/types/components.d.ts +117 -2
- package/dist/types/styles/parts.d.ts +14 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
- package/dist/webcomponents/p-020e7d5d.entry.js +1 -0
- package/dist/webcomponents/{p-0f6ae5ea.entry.js → p-060896c4.entry.js} +1 -1
- package/dist/webcomponents/{p-298e290e.js → p-06f5b709.js} +1 -1
- package/dist/webcomponents/p-092515e0.js +1 -0
- package/dist/webcomponents/{p-94eba309.js → p-09496255.js} +1 -1
- package/dist/webcomponents/p-0b38cfbf.js +1 -0
- package/dist/webcomponents/p-0c768ac5.entry.js +1 -0
- package/dist/webcomponents/p-0e180654.js +1 -0
- package/dist/webcomponents/p-0f0c5556.entry.js +1 -0
- package/dist/webcomponents/{p-f19f9f61.js → p-1278dedf.js} +1 -1
- package/dist/webcomponents/p-15675401.entry.js +1 -0
- package/dist/webcomponents/p-185181a8.js +1 -0
- package/dist/webcomponents/{p-5bf4535a.entry.js → p-19063270.entry.js} +1 -1
- package/dist/webcomponents/p-1906c67d.entry.js +1 -0
- package/dist/webcomponents/p-1a2eea29.entry.js +1 -0
- package/dist/webcomponents/p-1f4e26f3.entry.js +1 -0
- package/dist/webcomponents/p-1f99a902.js +1 -0
- package/dist/webcomponents/{p-bada4783.entry.js → p-235abbd1.entry.js} +1 -1
- package/dist/webcomponents/p-245819b0.entry.js +1 -0
- package/dist/webcomponents/p-26864218.entry.js +1 -0
- package/dist/webcomponents/p-27c72b92.entry.js +1 -0
- package/dist/webcomponents/p-2e0ae487.js +1 -0
- package/dist/webcomponents/p-2f9af679.js +1 -0
- package/dist/webcomponents/{p-21431a04.js → p-300a99ee.js} +1 -1
- package/dist/webcomponents/p-309dc8aa.js +1 -0
- package/dist/webcomponents/p-32ca779f.js +1 -0
- package/dist/webcomponents/p-375b4d2c.entry.js +1 -0
- package/dist/webcomponents/p-37b7b200.entry.js +1 -0
- package/dist/webcomponents/p-389e1eb7.js +1 -0
- package/dist/webcomponents/p-3a7a2a64.entry.js +1 -0
- package/dist/webcomponents/p-3ab7a49e.entry.js +1 -0
- package/dist/webcomponents/{p-938993c7.js → p-3b680e50.js} +1 -1
- package/dist/webcomponents/p-3bb21097.entry.js +1 -0
- package/dist/webcomponents/p-3d486f37.entry.js +1 -0
- package/dist/webcomponents/p-42a48c59.js +1 -0
- package/dist/webcomponents/p-45bf8573.js +1 -0
- package/dist/webcomponents/p-49df4962.entry.js +1 -0
- package/dist/webcomponents/{p-ab1504b6.entry.js → p-4a71c90b.entry.js} +1 -1
- package/dist/webcomponents/{p-b0b40bcd.js → p-4acf8ca2.js} +1 -1
- package/dist/webcomponents/p-4b6256e0.entry.js +1 -0
- package/dist/webcomponents/p-553dba95.entry.js +1 -0
- package/dist/webcomponents/p-595479da.entry.js +1 -0
- package/dist/webcomponents/p-5a96a2a2.entry.js +1 -0
- package/dist/webcomponents/{p-275f2154.js → p-5d1d2fd7.js} +1 -1
- package/dist/webcomponents/p-61b5417f.entry.js +1 -0
- package/dist/webcomponents/p-66ae2a0e.entry.js +1 -0
- package/dist/webcomponents/p-69242bad.entry.js +1 -0
- package/dist/webcomponents/p-73b98298.entry.js +1 -0
- package/dist/webcomponents/p-78a204f9.entry.js +1 -0
- package/dist/webcomponents/p-794cce10.entry.js +1 -0
- package/dist/webcomponents/{p-b2edb944.js → p-7bf21156.js} +1 -1
- package/dist/webcomponents/p-7c541199.entry.js +1 -0
- package/dist/webcomponents/p-7ee5a90e.entry.js +1 -0
- package/dist/webcomponents/p-87a7c3aa.js +1 -0
- package/dist/webcomponents/{p-8115b2f4.js → p-87f8c596.js} +1 -1
- package/dist/webcomponents/{p-5afefc50.entry.js → p-89ecfbf4.entry.js} +2 -2
- package/dist/webcomponents/{p-3e716e03.js → p-8a7266b4.js} +1 -1
- package/dist/webcomponents/{p-8f25f016.js → p-8b16a20f.js} +1 -1
- package/dist/webcomponents/p-8bedece0.entry.js +1 -0
- package/dist/webcomponents/{p-e63fdbca.js → p-906a6027.js} +1 -1
- package/dist/webcomponents/p-939d0a35.entry.js +1 -0
- package/dist/webcomponents/{p-27c8ffa2.js → p-95e55bb1.js} +1 -1
- package/dist/webcomponents/p-95fbb4b0.entry.js +1 -0
- package/dist/webcomponents/p-9a4d0e1d.entry.js +1 -0
- package/dist/webcomponents/{p-14c91ffd.js → p-9dd8685c.js} +1 -1
- package/dist/webcomponents/p-9edd6ad8.js +1 -0
- package/dist/webcomponents/p-a0082e77.entry.js +1 -0
- package/dist/webcomponents/{p-1820fd87.entry.js → p-a31ba276.entry.js} +1 -1
- package/dist/webcomponents/p-a90d8f4f.entry.js +1 -0
- package/dist/webcomponents/p-ab45511e.js +1 -0
- package/dist/webcomponents/p-b1aa7d2b.entry.js +1 -0
- package/dist/webcomponents/p-b2d57b2c.entry.js +1 -0
- package/dist/webcomponents/p-b7084adc.js +1 -0
- package/dist/webcomponents/{p-f2f2e20e.js → p-b84ee6d8.js} +1 -1
- package/dist/webcomponents/p-c4ca0038.js +1 -0
- package/dist/webcomponents/p-c78b5581.js +1 -0
- package/dist/webcomponents/{p-0ea387a2.js → p-c9b78275.js} +1 -1
- package/dist/webcomponents/p-cba89310.entry.js +1 -0
- package/dist/webcomponents/p-cbb6cc19.js +1 -0
- package/dist/webcomponents/p-cbe05f11.js +1 -0
- package/dist/webcomponents/p-cc552f59.entry.js +1 -0
- package/dist/webcomponents/p-d398ce81.js +1 -0
- package/dist/webcomponents/p-d432f0fd.entry.js +1 -0
- package/dist/webcomponents/{p-849c68e5.js → p-d43a38a4.js} +1 -1
- package/dist/webcomponents/p-d5c41ec6.js +1 -0
- package/dist/webcomponents/{p-db37b175.entry.js → p-e007002a.entry.js} +1 -1
- package/dist/webcomponents/p-e15f749c.entry.js +1 -0
- package/dist/webcomponents/{p-1882d7d6.entry.js → p-e3e0d791.entry.js} +1 -1
- package/dist/webcomponents/p-e8cd9691.js +1 -0
- package/dist/webcomponents/{p-5baec916.entry.js → p-e8fc36c1.entry.js} +1 -1
- package/dist/webcomponents/p-e9e80a62.js +1 -0
- package/dist/webcomponents/{p-2710884e.entry.js → p-ea0f2446.entry.js} +1 -1
- package/dist/webcomponents/p-ebbe93ac.entry.js +1 -0
- package/dist/webcomponents/p-ec019b89.js +1 -0
- package/dist/webcomponents/p-edae0bb0.entry.js +1 -0
- package/dist/webcomponents/p-f162c569.entry.js +1 -0
- package/dist/webcomponents/p-f30cb232.js +1 -0
- package/dist/webcomponents/p-f4739d31.js +1 -0
- package/dist/webcomponents/{p-facada09.entry.js → p-f7d9ea0b.entry.js} +1 -1
- package/dist/webcomponents/{p-3e0f3d87.entry.js → p-fea43254.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/checkouts-list-params-state-418c75a3.js +0 -14
- package/dist/cjs/payouts-list-params-state-16348184.js +0 -14
- package/dist/cjs/terminals-list-params-state-95ff6a64.js +0 -14
- package/dist/config.js +0 -11
- package/dist/esm/checkouts-list-params-state-1d968971.js +0 -10
- package/dist/esm/payouts-list-params-state-49618e7a.js +0 -10
- package/dist/esm/terminals-list-params-state-2c48d35f.js +0 -10
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
- package/dist/webcomponents/p-01d4e35a.js +0 -1
- package/dist/webcomponents/p-02d36485.entry.js +0 -1
- package/dist/webcomponents/p-045d4ebf.entry.js +0 -1
- package/dist/webcomponents/p-08d87a52.entry.js +0 -1
- package/dist/webcomponents/p-0e68b7d6.entry.js +0 -1
- package/dist/webcomponents/p-131db5d1.entry.js +0 -1
- package/dist/webcomponents/p-1603fe4d.js +0 -1
- package/dist/webcomponents/p-16ba9bea.js +0 -1
- package/dist/webcomponents/p-18a7a9e6.entry.js +0 -1
- package/dist/webcomponents/p-1e8a1e01.entry.js +0 -1
- package/dist/webcomponents/p-25c9c88c.entry.js +0 -1
- package/dist/webcomponents/p-2916bb62.entry.js +0 -1
- package/dist/webcomponents/p-2f94d478.entry.js +0 -1
- package/dist/webcomponents/p-31e2d12c.entry.js +0 -1
- package/dist/webcomponents/p-35b00a0d.js +0 -1
- package/dist/webcomponents/p-39696abd.entry.js +0 -1
- package/dist/webcomponents/p-40e23b13.js +0 -1
- package/dist/webcomponents/p-40eabfca.entry.js +0 -1
- package/dist/webcomponents/p-44d2c762.entry.js +0 -1
- package/dist/webcomponents/p-4810f227.entry.js +0 -1
- package/dist/webcomponents/p-485814d8.entry.js +0 -1
- package/dist/webcomponents/p-4bad3621.js +0 -1
- package/dist/webcomponents/p-57206dc4.entry.js +0 -1
- package/dist/webcomponents/p-58f5e37b.entry.js +0 -1
- package/dist/webcomponents/p-5b72bab7.js +0 -1
- package/dist/webcomponents/p-62696f63.entry.js +0 -1
- package/dist/webcomponents/p-63a8b08f.entry.js +0 -1
- package/dist/webcomponents/p-63caad6e.entry.js +0 -1
- package/dist/webcomponents/p-66b6c56b.js +0 -1
- package/dist/webcomponents/p-67b75e01.entry.js +0 -1
- package/dist/webcomponents/p-68bf1a1d.entry.js +0 -1
- package/dist/webcomponents/p-6d2c8be2.entry.js +0 -1
- package/dist/webcomponents/p-72992c97.entry.js +0 -1
- package/dist/webcomponents/p-7b04f492.entry.js +0 -1
- package/dist/webcomponents/p-7bcec768.entry.js +0 -1
- package/dist/webcomponents/p-7c31ec70.js +0 -1
- package/dist/webcomponents/p-8da3667c.js +0 -1
- package/dist/webcomponents/p-933537ca.js +0 -1
- package/dist/webcomponents/p-9540d2f2.js +0 -1
- package/dist/webcomponents/p-960a8ec2.js +0 -1
- package/dist/webcomponents/p-98dad117.entry.js +0 -1
- package/dist/webcomponents/p-9ad6e792.entry.js +0 -1
- package/dist/webcomponents/p-9f773228.js +0 -1
- package/dist/webcomponents/p-a2076a0e.js +0 -1
- package/dist/webcomponents/p-a47c14cb.entry.js +0 -1
- package/dist/webcomponents/p-aa02cf71.js +0 -1
- package/dist/webcomponents/p-b01405ab.entry.js +0 -1
- package/dist/webcomponents/p-b15ad5df.js +0 -1
- package/dist/webcomponents/p-b2209632.entry.js +0 -1
- package/dist/webcomponents/p-b6e90400.entry.js +0 -1
- package/dist/webcomponents/p-c75481bf.entry.js +0 -1
- package/dist/webcomponents/p-d0bde1cb.js +0 -1
- package/dist/webcomponents/p-d8c04275.js +0 -1
- package/dist/webcomponents/p-dd867d1f.js +0 -1
- package/dist/webcomponents/p-ddcd2ff7.entry.js +0 -1
- package/dist/webcomponents/p-e22df884.entry.js +0 -1
- package/dist/webcomponents/p-e8c3c23f.js +0 -1
- package/dist/webcomponents/p-e8d0f978.entry.js +0 -1
- package/dist/webcomponents/p-f0c0cbc8.entry.js +0 -1
- package/dist/webcomponents/p-f694e1c8.js +0 -1
- package/dist/webcomponents/p-fa2b405c.entry.js +0 -1
- package/dist/webcomponents/p-fbe16023.entry.js +0 -1
- package/dist/webcomponents/p-fdbcd486.js +0 -1
- package/dist/webcomponents/p-ff955a18.entry.js +0 -1
- /package/dist/collection/{components/business-details → actions/business}/get-business.js +0 -0
- /package/dist/collection/{components → actions}/checkout/checkout-actions.js +0 -0
- /package/dist/collection/{components/checkouts-list → actions/checkout}/get-checkouts.js +0 -0
- /package/dist/collection/{components/dispute-management → actions/dispute}/dispute-actions.js +0 -0
- /package/dist/collection/{components/gross-payment-chart → actions/gross-payment}/get-gross-payment-chart-data.js +0 -0
- /package/dist/collection/{components → actions}/insurance/insurance-actions.js +0 -0
- /package/dist/collection/{components/payment-details → actions/payment}/get-payment-details.js +0 -0
- /package/dist/collection/{components/payments-list → actions/payment}/get-payments.js +0 -0
- /package/dist/collection/{components/payout-details → actions/payout}/get-payout-details.js +0 -0
- /package/dist/collection/{components/payouts-list → actions/payout}/get-payouts.js +0 -0
- /package/dist/collection/{components/terminals-list → actions/terminal}/get-terminal-detail.js +0 -0
- /package/dist/collection/{components/terminals-list → actions/terminal}/get-terminals.js +0 -0
- /package/dist/types/{components/business-details → actions/business}/get-business.d.ts +0 -0
- /package/dist/types/{components → actions}/checkout/checkout-actions.d.ts +0 -0
- /package/dist/types/{components/checkouts-list → actions/checkout}/get-checkouts.d.ts +0 -0
- /package/dist/types/{components/dispute-management → actions/dispute}/dispute-actions.d.ts +0 -0
- /package/dist/types/{components/gross-payment-chart → actions/gross-payment}/get-gross-payment-chart-data.d.ts +0 -0
- /package/dist/types/{components → actions}/insurance/insurance-actions.d.ts +0 -0
- /package/dist/types/{components/payment-details → actions/payment}/get-payment-details.d.ts +0 -0
- /package/dist/types/{components/payments-list → actions/payment}/get-payments.d.ts +0 -0
- /package/dist/types/{components/payout-details → actions/payout}/get-payout-details.d.ts +0 -0
- /package/dist/types/{components/payouts-list → actions/payout}/get-payouts.d.ts +0 -0
- /package/dist/types/{api → actions/sub-account}/get-subaccounts.d.ts +0 -0
- /package/dist/types/{components/terminals-list → actions/terminal}/get-terminal-detail.d.ts +0 -0
- /package/dist/types/{components/terminals-list → actions/terminal}/get-terminals.d.ts +0 -0
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
export class DisputeService {
|
|
4
3
|
async fetchDispute(disputeId, authToken) {
|
|
5
4
|
const endpoint = `disputes/${disputeId}`;
|
|
6
|
-
return Api({ authToken, apiOrigin:
|
|
5
|
+
return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
|
|
7
6
|
}
|
|
8
7
|
async updateDisputeResponse(disputeId, authToken, payload) {
|
|
9
8
|
const endpoint = `disputes/${disputeId}/response`;
|
|
10
|
-
return Api({ authToken, apiOrigin:
|
|
9
|
+
return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).patch(endpoint, payload);
|
|
11
10
|
}
|
|
12
11
|
async submitDisputeResponse(disputeId, authToken, payload) {
|
|
13
12
|
const endpoint = `disputes/${disputeId}/response`;
|
|
14
|
-
return Api({ authToken, apiOrigin:
|
|
13
|
+
return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, payload);
|
|
15
14
|
}
|
|
16
15
|
async createDisputeEvidence(disputeId, authToken, payload) {
|
|
17
16
|
const endpoint = `disputes/${disputeId}/evidence`;
|
|
18
|
-
return Api({ authToken, apiOrigin:
|
|
17
|
+
return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).put(endpoint, payload);
|
|
19
18
|
}
|
|
20
19
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
export class InsuranceService {
|
|
4
3
|
async fetchQuote(authToken, payload) {
|
|
5
4
|
const endpoint = 'insurance/quotes';
|
|
6
|
-
return Api({ authToken, apiOrigin:
|
|
5
|
+
return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, payload);
|
|
7
6
|
}
|
|
8
7
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
9
8
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
10
|
-
return Api({ authToken, apiOrigin:
|
|
9
|
+
return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, payload);
|
|
11
10
|
}
|
|
12
11
|
}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
export class PaymentService {
|
|
4
|
-
async fetchPayments(accountId, authToken, params, apiOrigin) {
|
|
5
|
-
if (!apiOrigin) {
|
|
6
|
-
apiOrigin = config.proxyApiOrigin;
|
|
7
|
-
}
|
|
3
|
+
async fetchPayments(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
|
|
8
4
|
const api = Api({ authToken, apiOrigin: apiOrigin });
|
|
9
5
|
const endpoint = `account/${accountId}/payments`;
|
|
10
6
|
return api.get(endpoint, params);
|
|
11
7
|
}
|
|
12
8
|
async fetchPayment(paymentId, authToken) {
|
|
13
9
|
const endpoint = `payments/${paymentId}`;
|
|
14
|
-
return Api({ authToken, apiOrigin:
|
|
10
|
+
return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
|
|
15
11
|
}
|
|
16
12
|
}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
export class PayoutService {
|
|
4
|
-
async fetchPayouts(accountId, authToken, params, apiOrigin) {
|
|
5
|
-
if (!apiOrigin) {
|
|
6
|
-
apiOrigin = config.proxyApiOrigin;
|
|
7
|
-
}
|
|
3
|
+
async fetchPayouts(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
|
|
8
4
|
const api = Api({ authToken, apiOrigin });
|
|
9
5
|
const endpoint = `account/${accountId}/payouts`;
|
|
10
6
|
return api.get(endpoint, params);
|
|
11
7
|
}
|
|
12
|
-
async fetchPayout(payoutId, authToken, apiOrigin) {
|
|
13
|
-
if (!apiOrigin) {
|
|
14
|
-
apiOrigin = config.proxyApiOrigin;
|
|
15
|
-
}
|
|
8
|
+
async fetchPayout(payoutId, authToken, apiOrigin = PROXY_API_ORIGIN) {
|
|
16
9
|
const api = Api({ authToken, apiOrigin });
|
|
17
10
|
const endpoint = `payouts/${payoutId}`;
|
|
18
11
|
return api.get(endpoint);
|
|
19
12
|
}
|
|
20
|
-
async fetchCSV(payoutId, authToken, apiOrigin) {
|
|
21
|
-
if (!apiOrigin) {
|
|
22
|
-
apiOrigin = config.proxyApiOrigin;
|
|
23
|
-
}
|
|
13
|
+
async fetchCSV(payoutId, authToken, apiOrigin = PROXY_API_ORIGIN) {
|
|
24
14
|
const api = Api({ authToken, apiOrigin });
|
|
25
15
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
26
16
|
return api.get(endpoint);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { config } from "../../../config";
|
|
2
1
|
import Api from "../Api";
|
|
3
2
|
export class ProvisionService {
|
|
4
3
|
async postProvisioning(authToken, businessId, product) {
|
|
@@ -7,6 +6,6 @@ export class ProvisionService {
|
|
|
7
6
|
business_id: businessId,
|
|
8
7
|
product_category: product,
|
|
9
8
|
};
|
|
10
|
-
return Api({ authToken, apiOrigin:
|
|
9
|
+
return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, payload);
|
|
11
10
|
}
|
|
12
11
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { config } from "../../../config";
|
|
2
1
|
import Api from "../Api";
|
|
3
2
|
export class ReportsService {
|
|
4
3
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
5
|
-
const api = Api({ authToken: authToken, apiOrigin:
|
|
4
|
+
const api = Api({ authToken: authToken, apiOrigin: PROXY_API_ORIGIN });
|
|
6
5
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
7
6
|
return api.get(endpoint);
|
|
8
7
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
export class SubAccountService {
|
|
4
|
-
async fetchSubAccounts(accountId, authToken, params, apiOrigin) {
|
|
5
|
-
if (!apiOrigin) {
|
|
6
|
-
apiOrigin = config.proxyApiOrigin;
|
|
7
|
-
}
|
|
3
|
+
async fetchSubAccounts(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
|
|
8
4
|
const headers = { Account: accountId };
|
|
9
5
|
const api = Api({ authToken, apiOrigin: apiOrigin });
|
|
10
6
|
const endpoint = 'sub_accounts';
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
export class TerminalService {
|
|
4
|
-
async fetchTerminals(accountId, authToken, params, apiOrigin) {
|
|
5
|
-
if (!apiOrigin) {
|
|
6
|
-
apiOrigin = config.proxyApiOrigin;
|
|
7
|
-
}
|
|
3
|
+
async fetchTerminals(accountId, authToken, params, apiOrigin = PROXY_API_ORIGIN) {
|
|
8
4
|
const headers = { Account: accountId };
|
|
9
5
|
const api = Api({ authToken, apiOrigin });
|
|
10
6
|
const endpoint = 'terminals';
|
|
11
7
|
return api.get(endpoint, params, null, headers);
|
|
12
8
|
}
|
|
13
|
-
async fetchTerminal(terminalId, authToken, apiOrigin) {
|
|
14
|
-
if (!apiOrigin) {
|
|
15
|
-
apiOrigin = config.proxyApiOrigin;
|
|
16
|
-
}
|
|
9
|
+
async fetchTerminal(terminalId, authToken, apiOrigin = PROXY_API_ORIGIN) {
|
|
17
10
|
const endpoint = `terminals/${terminalId}`;
|
|
18
11
|
return Api({ authToken, apiOrigin: apiOrigin }).get(endpoint);
|
|
19
12
|
}
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"components/gross-payment-chart/gross-payment-chart.js",
|
|
74
74
|
"components/insurance/season-interruption/season-interruption-insurance-core.js",
|
|
75
75
|
"components/insurance/season-interruption/season-interruption-insurance.js",
|
|
76
|
+
"components/order-terminals/order-terminals.js",
|
|
76
77
|
"components/payment-details/payment-details-core.js",
|
|
77
78
|
"components/payment-details/payment-details.js",
|
|
78
79
|
"components/payments-list/payments-list-core.js",
|
|
@@ -85,6 +86,8 @@
|
|
|
85
86
|
"components/payouts-list/payouts-list.js",
|
|
86
87
|
"ui-components/form/form-control-date.js",
|
|
87
88
|
"components/refund-form/refund-form.js",
|
|
89
|
+
"components/terminal-orders-list/terminal-orders-list-core.js",
|
|
90
|
+
"components/terminal-orders-list/terminal-orders-list.js",
|
|
88
91
|
"components/terminals-list/terminals-list-core.js",
|
|
89
92
|
"components/terminals-list/terminals-list-filters.js",
|
|
90
93
|
"components/terminals-list/terminals-list.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { ErrorState } from "../../ui-components/details/utils";
|
|
3
3
|
import { BusinessService } from "../../api/services/business.service";
|
|
4
|
-
import { makeGetBusiness } from "
|
|
4
|
+
import { makeGetBusiness } from "../../actions/business/get-business";
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
7
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
@@ -2,7 +2,6 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { FormController } from "../../../ui-components/form/form";
|
|
3
3
|
import { businessFormSchema } from "../schemas/business-form-schema";
|
|
4
4
|
import { Api } from "../../../api";
|
|
5
|
-
import { config } from "../../../../config";
|
|
6
5
|
import { Business, BusinessFormServerErrors } from "../../../api/Business";
|
|
7
6
|
import JustifiAnalytics from "../../../api/Analytics";
|
|
8
7
|
import { Button, Header1, StyledHost } from "../../../ui-components";
|
|
@@ -67,7 +66,7 @@ export class BusinessForm {
|
|
|
67
66
|
if (!this.businessId)
|
|
68
67
|
console.error(missingBusinessIdMessage);
|
|
69
68
|
this.formController = new FormController(businessFormSchema);
|
|
70
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
69
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
|
|
71
70
|
this.fetchData();
|
|
72
71
|
}
|
|
73
72
|
disconnectedCallback() {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { FormController } from "../../../../ui-components/form/form";
|
|
3
|
-
import { config } from "../../../../../config";
|
|
4
3
|
import { businessTermsConditionsSchema } from "../../schemas/business-terms-conditions-schema";
|
|
5
4
|
import { Api } from "../../../../api";
|
|
6
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
|
|
@@ -74,7 +73,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
74
73
|
};
|
|
75
74
|
}
|
|
76
75
|
async componentWillLoad() {
|
|
77
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
76
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
|
|
78
77
|
this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
79
78
|
if (this.businessId && this.authToken) {
|
|
80
79
|
this.fetchData();
|
|
@@ -115,7 +114,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
115
114
|
return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
|
|
116
115
|
}
|
|
117
116
|
render() {
|
|
118
|
-
return (h("form", { key: '
|
|
117
|
+
return (h("form", { key: '37500e35233a820f521ee503fc638335a2f4866c' }, h("fieldset", { key: 'e2d1005578397a07b9e876c9a5996e515831c61b' }, h("legend", { key: '46918bc1bd20bb56d4e4882ae3ad9b29e3f6e319', part: heading2 }, "Terms and Conditions"), h("hr", { key: '904dc58480d9e879fcb462c861a3e398d4dd88b7' }), h("div", { key: 'aad73d0a9beddf3487a19bf2af65684309b411aa' }, h("p", { key: '10d9f2ff569e4426aaf1563a98838d89636029fd' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: 'dfb6de0078ebbbed103e7b901da879d5ee4195a4' }), h("div", { key: '4899d9b2a0c85e6d26bfd6e3d35ec1dd38f814e2', class: "row-gy-3" }, h("div", { key: '011ea552aa484fc1d6a159fb58a8fe7383887584', class: "col-12" }, h("form-control-checkbox", { key: '461b491715ed88e92795c7383af3e351e4d9d046', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
|
|
119
118
|
}
|
|
120
119
|
static get is() { return "justifi-business-terms-conditions-form-step"; }
|
|
121
120
|
static get properties() {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Skeleton } from "../../../ui-components/skeleton";
|
|
3
|
+
const BankAccountFormSkeleton = (props) => {
|
|
4
|
+
const { isReady } = props;
|
|
5
|
+
if (isReady) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return (h("div", { class: "container-fluid p-0" }, h("div", { class: "row mb-3" }, h("div", { class: "col-12 align-content-end" }, h(Skeleton, { height: "18px", width: "120px" }), h(Skeleton, { height: "36px" }))), h("div", { class: "row" }, h("div", { class: "col-12 align-content-end" }, h(Skeleton, { height: "18px", width: "110px" }), h(Skeleton, { height: "36px" })))));
|
|
9
|
+
};
|
|
10
|
+
export default BankAccountFormSkeleton;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import BankAccountFormSkeleton from "./bank-account-form-skeleton";
|
|
2
3
|
export class BankAccountForm {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.iframeOrigin = undefined;
|
|
6
|
+
this.isReady = false;
|
|
5
7
|
}
|
|
6
8
|
async validate() {
|
|
7
9
|
const accountNumberIsValid = await this.accountNumberIframeElement.validate();
|
|
@@ -11,8 +13,24 @@ export class BankAccountForm {
|
|
|
11
13
|
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
12
14
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
13
15
|
}
|
|
16
|
+
componentDidRender() {
|
|
17
|
+
const elements = [
|
|
18
|
+
this.accountNumberIframeElement,
|
|
19
|
+
this.routingNumberIframeElement,
|
|
20
|
+
];
|
|
21
|
+
Promise.all(elements.map((element) => {
|
|
22
|
+
return new Promise((resolve) => {
|
|
23
|
+
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
24
|
+
});
|
|
25
|
+
})).then(() => {
|
|
26
|
+
this.isReady = true;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
14
29
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '18ace2e10e76c27166f2432a84880be2e14e7d23' }, h(BankAccountFormSkeleton, { key: 'd2d3eb44c8854913866e2f1178418ab5cd43429e', isReady: this.isReady }), h("div", { key: '84987e3e4d8e5ed4f314f7e306f7e8e48f457bcb', class: "container-fluid p-0", style: {
|
|
31
|
+
opacity: this.isReady ? '1' : '0',
|
|
32
|
+
height: this.isReady ? 'auto' : '0',
|
|
33
|
+
} }, h("div", { key: 'b74ce1520cc0dd97d527ba0b8607ad891a645142', class: "row mb-3" }, h("iframe-input", { key: '6966eae250b2d702d0fb887a09fa1b14467fd823', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '02da6bb34dd86fd0e3dddd0d12bdcb7b85bfc70c', class: "row" }, h("iframe-input", { key: '3f8439860fae1d743e10f6b51f9d10cbe451bcae', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
16
34
|
}
|
|
17
35
|
static get is() { return "bank-account-form"; }
|
|
18
36
|
static get properties() {
|
|
@@ -36,6 +54,11 @@ export class BankAccountForm {
|
|
|
36
54
|
}
|
|
37
55
|
};
|
|
38
56
|
}
|
|
57
|
+
static get states() {
|
|
58
|
+
return {
|
|
59
|
+
"isReady": {}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
39
62
|
static get methods() {
|
|
40
63
|
return {
|
|
41
64
|
"validate": {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Skeleton } from "../../../ui-components/skeleton";
|
|
3
|
+
const CardFormSkeleton = (props) => {
|
|
4
|
+
const { isReady } = props;
|
|
5
|
+
if (isReady) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return (h("div", { class: "container-fluid p-0" }, h("div", { class: "mb-3" }, h(Skeleton, { height: "18px", width: "100px" }), h(Skeleton, { height: "36px" })), h("div", { class: "row" }, h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "80px" }), h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "30px" }), h(Skeleton, { height: "36px" })))));
|
|
9
|
+
};
|
|
10
|
+
export default CardFormSkeleton;
|
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import CardFormSkeleton from "./card-form-skeleton";
|
|
2
3
|
export class CardForm {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.iframeOrigin = undefined;
|
|
6
|
+
this.isReady = false;
|
|
7
|
+
}
|
|
8
|
+
componentDidRender() {
|
|
9
|
+
const elements = [
|
|
10
|
+
this.cardNumberIframeElement,
|
|
11
|
+
this.expirationMonthIframeElement,
|
|
12
|
+
this.expirationYearIframeElement,
|
|
13
|
+
this.cvvIframeElement,
|
|
14
|
+
];
|
|
15
|
+
Promise.all(elements.map((element) => {
|
|
16
|
+
return new Promise((resolve) => {
|
|
17
|
+
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
18
|
+
});
|
|
19
|
+
})).then(() => {
|
|
20
|
+
this.isReady = true;
|
|
21
|
+
});
|
|
5
22
|
}
|
|
6
23
|
async validate() {
|
|
7
24
|
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
@@ -14,7 +31,10 @@ export class CardForm {
|
|
|
14
31
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
15
32
|
}
|
|
16
33
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'a97247efa8298a7e4c3498690974e482e36ae966' }, h(CardFormSkeleton, { key: '52f338782020b5926377c9968bb85364ad720c68', isReady: this.isReady }), h("div", { key: '7cb7e827c407a18e09c1e0c925896644032428b8', class: "container-fluid p-0", style: {
|
|
35
|
+
opacity: this.isReady ? '1' : '0',
|
|
36
|
+
height: this.isReady ? 'auto' : '0',
|
|
37
|
+
} }, h("div", { key: '9a49fd64a1464ae0ae032883bd79c8a7e9c5d4b3', class: "mb-3" }, h("iframe-input", { key: '8778a816cbbd96f5b0c7e8f3364a704bd7aab2d8', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '53ab4f9f636acfa72744cd5d364a4ae3a3c732d4', class: "row" }, h("div", { key: '01aec684cab29a4aa24839acfc3ecc9e914c9911', class: "col-4 align-content-end" }, h("iframe-input", { key: '9c87ff44375de2d46028f2532a33856cf608c6a0', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: 'bc9176ebc7561c7cc0b654e837852a18c1b49f60', class: "col-4 align-content-end" }, h("iframe-input", { key: '5f6b133bc5ae94f912648d210a6e58dd4fe1e880', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '404c90decbac6b142b45c21a2997c0771bb59092', class: "col-4 align-content-end" }, h("iframe-input", { key: '1b9e89656a437b080fbf92b4ebd74772ae1f26f4', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
18
38
|
}
|
|
19
39
|
static get is() { return "card-form"; }
|
|
20
40
|
static get properties() {
|
|
@@ -38,6 +58,11 @@ export class CardForm {
|
|
|
38
58
|
}
|
|
39
59
|
};
|
|
40
60
|
}
|
|
61
|
+
static get states() {
|
|
62
|
+
return {
|
|
63
|
+
"isReady": {}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
41
66
|
static get methods() {
|
|
42
67
|
return {
|
|
43
68
|
"validate": {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { makeGetCheckout, makeCheckoutComplete } from "
|
|
2
|
+
import { makeGetCheckout, makeCheckoutComplete } from "../../actions/checkout/checkout-actions";
|
|
3
3
|
import { CheckoutService } from "../../api/services/checkout.service";
|
|
4
4
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
5
5
|
import JustifiAnalytics from "../../api/Analytics";
|
|
6
6
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
7
|
-
import { config } from "../../../config";
|
|
8
7
|
export class Checkout {
|
|
9
8
|
constructor() {
|
|
10
9
|
this.authToken = undefined;
|
|
@@ -14,7 +13,7 @@ export class Checkout {
|
|
|
14
13
|
this.disableBnpl = undefined;
|
|
15
14
|
this.disablePaymentMethodGroup = undefined;
|
|
16
15
|
this.hideCardBillingForm = undefined;
|
|
17
|
-
this.iframeOrigin =
|
|
16
|
+
this.iframeOrigin = IFRAME_ORIGIN;
|
|
18
17
|
this.getCheckout = undefined;
|
|
19
18
|
this.complete = undefined;
|
|
20
19
|
this.errorMessage = '';
|
|
@@ -55,11 +54,11 @@ export class Checkout {
|
|
|
55
54
|
this.checkoutCoreRef.fillBillingForm(fields);
|
|
56
55
|
}
|
|
57
56
|
render() {
|
|
58
|
-
return (h("justifi-checkout-core", { key: '
|
|
57
|
+
return (h("justifi-checkout-core", { key: '52aca1a3ce8016a382f428ef142abc8aee9da41d', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, iframeOrigin: this.iframeOrigin, ref: el => {
|
|
59
58
|
if (el) {
|
|
60
59
|
this.checkoutCoreRef = el;
|
|
61
60
|
}
|
|
62
|
-
} }, h("div", { key: '
|
|
61
|
+
} }, h("div", { key: 'fabb53264f26320fff2aa0a603c664f47ca380d0', slot: "insurance" }, h("slot", { key: 'ce09504ef5a48d6b963f4ba39252d681f23d0168', name: "insurance" }))));
|
|
63
62
|
}
|
|
64
63
|
static get is() { return "justifi-checkout"; }
|
|
65
64
|
static get properties() {
|
|
@@ -199,7 +198,7 @@ export class Checkout {
|
|
|
199
198
|
},
|
|
200
199
|
"attribute": "iframe-origin",
|
|
201
200
|
"reflect": false,
|
|
202
|
-
"defaultValue": "
|
|
201
|
+
"defaultValue": "IFRAME_ORIGIN"
|
|
203
202
|
}
|
|
204
203
|
};
|
|
205
204
|
}
|
|
@@ -3,7 +3,7 @@ import { pagingDefaults } from "../../api";
|
|
|
3
3
|
import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
4
4
|
import { checkoutTableColumns, checkoutTableCells } from "./checkouts-table";
|
|
5
5
|
import { Table } from "../../utils/table";
|
|
6
|
-
import {
|
|
6
|
+
import { getRequestParams, onQueryParamsChange } from "./checkouts-list-params-state";
|
|
7
7
|
import { table, tableCell } from "../../styles/parts";
|
|
8
8
|
import { TableClickActions } from "../../ui-components/table/event-types";
|
|
9
9
|
export class CheckoutsListCore {
|
|
@@ -53,7 +53,7 @@ export class CheckoutsListCore {
|
|
|
53
53
|
fetchData() {
|
|
54
54
|
this.loading = true;
|
|
55
55
|
this.getCheckouts({
|
|
56
|
-
params: this.
|
|
56
|
+
params: this.checkoutParams,
|
|
57
57
|
onSuccess: async ({ checkouts, pagingInfo }) => {
|
|
58
58
|
this.checkouts = checkouts;
|
|
59
59
|
this.paging = pagingInfo;
|
|
@@ -100,9 +100,10 @@ export class CheckoutsListCore {
|
|
|
100
100
|
},
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
get
|
|
104
|
-
const
|
|
105
|
-
|
|
103
|
+
get checkoutParams() {
|
|
104
|
+
const requestParams = getRequestParams();
|
|
105
|
+
const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
|
|
106
|
+
return params;
|
|
106
107
|
}
|
|
107
108
|
get subAccountParams() {
|
|
108
109
|
let accountIdNumbers = this.checkouts.map((checkout) => checkout.account_id);
|
|
@@ -123,7 +124,7 @@ export class CheckoutsListCore {
|
|
|
123
124
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
124
125
|
}
|
|
125
126
|
render() {
|
|
126
|
-
return (h("div", { key: '
|
|
127
|
+
return (h("div", { key: 'ae6d3dfefad89fcd28b2ad883a1d1172fffd2218' }, h("div", { key: '91329a7880cd774c71cf30722b7be49b8a0109e9', class: "table-wrapper" }, h("table", { key: '75f974cc2140089a7a42738ef0cd3bd67729ca8d', class: "table table-hover", part: table }, h("thead", { key: '6aaaee8db285ca1b94cea662f62a51040f2a0f06', class: "table-head sticky-top" }, h("tr", { key: '68215e0698b97a8389083a521bd8a493c410a196', class: "table-light text-nowrap" }, this.checkoutsTable.columnData.map((column) => column))), h("tbody", { key: 'b3aa9bd464fda772fae2e191e1cc4f4612bd514b', class: "table-body" }, h(TableLoadingState, { key: 'a874602fb597ee55def35b80474bd2228b918200', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '8c30048e8766be8ca14fbbd6f990aac019904b26', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'c567bbca2ebbdc42dcfa6c07ae2c61b538643cb7', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'f02cd5b963f2c087b1a8ab60f25f6b1081e735aa', class: "sticky-bottom" }, h("tr", { key: 'a651ab932931db6a4ad42888a9b43e7b89a58495', class: "table-light align-middle" }, h("td", { key: '1fde503bccc4e79454d5786fac8f82bea67618e1', part: tableCell, colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '6237a008bc148f44aa7e159d530470c5114b32e4', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
127
128
|
}
|
|
128
129
|
static get is() { return "checkouts-list-core"; }
|
|
129
130
|
static get properties() {
|
|
@@ -245,9 +246,6 @@ export class CheckoutsListCore {
|
|
|
245
246
|
}
|
|
246
247
|
static get watchers() {
|
|
247
248
|
return [{
|
|
248
|
-
"propName": "queryParams",
|
|
249
|
-
"methodName": "updateOnPropChange"
|
|
250
|
-
}, {
|
|
251
249
|
"propName": "pagingParams",
|
|
252
250
|
"methodName": "updateOnPropChange"
|
|
253
251
|
}, {
|
|
@@ -1,31 +1,97 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ICheckoutPaymentMode, ICheckoutStatus } from "../../api";
|
|
3
|
+
import { filterParams, propsParams, clearParams } from "./checkouts-list-params-state";
|
|
3
4
|
import { StyledHost } from "../../ui-components";
|
|
5
|
+
import { checkoutsListFilterMenu, paymentModeCheckoutsListFilterParam, statusCheckoutsListFilterParam } from "../../styles/parts";
|
|
4
6
|
export class CheckoutsListFilters {
|
|
5
7
|
constructor() {
|
|
6
8
|
this.setParamsOnChange = (name, value) => {
|
|
7
|
-
|
|
9
|
+
filterParams[name] = value;
|
|
8
10
|
};
|
|
11
|
+
this.checkoutStatus = undefined;
|
|
12
|
+
this.paymentMode = undefined;
|
|
13
|
+
}
|
|
14
|
+
componentWillLoad() {
|
|
15
|
+
const propsToSet = {
|
|
16
|
+
status: this.checkoutStatus,
|
|
17
|
+
payment_mode: this.paymentMode,
|
|
18
|
+
};
|
|
19
|
+
Object.entries(propsToSet).forEach(([key, value]) => {
|
|
20
|
+
if (value) {
|
|
21
|
+
propsParams[key] = value;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
9
24
|
}
|
|
10
25
|
get checkoutStatusOptions() {
|
|
11
26
|
return [
|
|
12
27
|
{ label: 'All', value: '' },
|
|
13
|
-
{ label: 'Created', value:
|
|
14
|
-
{ label: 'Completed', value:
|
|
15
|
-
{ label: 'Attempted', value:
|
|
16
|
-
{ label: 'Expired', value:
|
|
28
|
+
{ label: 'Created', value: ICheckoutStatus.created },
|
|
29
|
+
{ label: 'Completed', value: ICheckoutStatus.completed },
|
|
30
|
+
{ label: 'Attempted', value: ICheckoutStatus.attempted },
|
|
31
|
+
{ label: 'Expired', value: ICheckoutStatus.expired },
|
|
17
32
|
];
|
|
18
33
|
}
|
|
19
34
|
get checkoutPaymentModeOptions() {
|
|
20
35
|
return [
|
|
21
36
|
{ label: 'All', value: '' },
|
|
22
|
-
{ label: 'E-commerce', value:
|
|
23
|
-
{ label: 'BNPL', value:
|
|
37
|
+
{ label: 'E-commerce', value: ICheckoutPaymentMode.ecom },
|
|
38
|
+
{ label: 'BNPL', value: ICheckoutPaymentMode.bnpl },
|
|
24
39
|
];
|
|
25
40
|
}
|
|
26
41
|
render() {
|
|
27
|
-
|
|
42
|
+
const filterMenuParams = Object.assign({}, filterParams);
|
|
43
|
+
return (h(StyledHost, { key: 'cd70cc85372ea03d544340c36de1bc559cce757d' }, h("table-filters-menu", { key: '332fbf23bcf5e542aa3439b93bcfe046889b89b0', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'a95f24fa9b92cd35e0dd15a7fc5cafb2cca84c9f', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'd58366e790b1bb2fb3aa8605a806a8197ea4f5c9', class: "p-2" }, h("form-control-select", { key: '1e48969ede334298a5d058f22bf5b1e39c78f535', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '33d8d552c77a6355423e9252779f85b288e123d1', class: "p-2" }, h("form-control-select", { key: 'a1ae23979fb00d92a9a1c7972c375494cabde720', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
|
|
28
44
|
}
|
|
29
45
|
static get is() { return "justifi-checkouts-list-filters"; }
|
|
30
46
|
static get encapsulation() { return "shadow"; }
|
|
47
|
+
static get properties() {
|
|
48
|
+
return {
|
|
49
|
+
"checkoutStatus": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "ICheckoutStatus",
|
|
54
|
+
"resolved": "ICheckoutStatus.attempted | ICheckoutStatus.completed | ICheckoutStatus.created | ICheckoutStatus.expired",
|
|
55
|
+
"references": {
|
|
56
|
+
"ICheckoutStatus": {
|
|
57
|
+
"location": "import",
|
|
58
|
+
"path": "../../api",
|
|
59
|
+
"id": "src/api/index.ts::ICheckoutStatus"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": true,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": ""
|
|
68
|
+
},
|
|
69
|
+
"attribute": "checkout-status",
|
|
70
|
+
"reflect": false
|
|
71
|
+
},
|
|
72
|
+
"paymentMode": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "ICheckoutPaymentMode",
|
|
77
|
+
"resolved": "ICheckoutPaymentMode.bank_account | ICheckoutPaymentMode.bnpl | ICheckoutPaymentMode.card | ICheckoutPaymentMode.card_present | ICheckoutPaymentMode.ecom | ICheckoutPaymentMode.unknown",
|
|
78
|
+
"references": {
|
|
79
|
+
"ICheckoutPaymentMode": {
|
|
80
|
+
"location": "import",
|
|
81
|
+
"path": "../../api",
|
|
82
|
+
"id": "src/api/index.ts::ICheckoutPaymentMode"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": true,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": ""
|
|
91
|
+
},
|
|
92
|
+
"attribute": "payment-mode",
|
|
93
|
+
"reflect": false
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
31
97
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { createStore } from "@stencil/store";
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
2
|
+
const filterParamsInitialState = {};
|
|
3
|
+
const propsParamsInitialState = {};
|
|
4
|
+
const filterParamsStore = createStore(() => filterParamsInitialState);
|
|
5
|
+
const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
|
|
6
|
+
const propsParamsStore = createStore(() => propsParamsInitialState);
|
|
7
|
+
const { state: propsParams } = propsParamsStore;
|
|
8
|
+
const getRequestParams = () => {
|
|
9
|
+
return Object.assign(Object.assign({}, filterParams), propsParams);
|
|
10
|
+
};
|
|
5
11
|
const clearParams = () => {
|
|
6
|
-
|
|
12
|
+
filterParamsStore.reset();
|
|
7
13
|
};
|
|
8
|
-
export {
|
|
14
|
+
export { filterParams, propsParams, onQueryParamsChange, clearParams, getRequestParams };
|