@justifi/webcomponents 4.21.0 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-880f5152.js → Analytics-9db96975.js} +2 -2
- package/dist/cjs/{Api-b98b256f.js → Api-f5280a80.js} +6 -4
- package/dist/cjs/Checkout-a528241d.js +85 -0
- package/dist/cjs/SubAccount-cc95a4a0.js +106 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{business-additional-questions-schema-26b0eecb.js → business-additional-questions-schema-19f08938.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-identity-schema-503ecb77.js → business-identity-schema-a8bb2276.js} +2 -2
- package/dist/cjs/{business.service-031c0084.js → business.service-7faffa0b.js} +1 -1
- package/dist/cjs/{check-pkg-version-54f7dfda.js → check-pkg-version-23a1cabd.js} +1 -1
- package/dist/cjs/checkout.service-160f3a9c.js +36 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +181 -0
- package/dist/cjs/checkouts-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/{custom-popper_5.cjs.entry.js → custom-popper_4.cjs.entry.js} +4 -19
- package/dist/cjs/dispute-30c806f6.js +10 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +11 -11
- package/dist/cjs/form-control-date.cjs.entry.js +83 -0
- package/dist/cjs/form-control-error-text.cjs.entry.js +21 -0
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +21 -0
- package/dist/cjs/{form-control-help-text_2.cjs.entry.js → form-control-monetary.cjs.entry.js} +1 -16
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +99 -0
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/form-control-radio.cjs.entry.js +44 -0
- package/dist/cjs/form-control-textarea.cjs.entry.js +49 -0
- package/dist/cjs/{get-payout-csv-a82b2c1c.js → get-payout-csv-12dc9540.js} +3 -2
- package/dist/cjs/get-subaccounts-8f7a930f.js +54 -0
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
- package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +173 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1678 -13
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +11 -10
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -8
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -25
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +119 -0
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +28 -0
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +16 -0
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/{justifi-new-payment-method_4.cjs.entry.js → justifi-new-payment-method_5.cjs.entry.js} +18 -1
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-form.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -8
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -13
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -6
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +137 -0
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +59 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/{esm/payments-list-filters_2.entry.js → cjs/lodash-dbf6a6a4.js} +2 -57
- package/dist/cjs/{package-cb1b1015.js → package-41c8f38c.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
- package/dist/cjs/{payment.service-6f79aad2.js → payment.service-83da752a.js} +3 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +7 -7
- package/dist/cjs/payments-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/payments-status-58e45b2e.js +26 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +4 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +7 -23
- package/dist/cjs/payouts-status-2f7be07d.js +24 -0
- package/dist/cjs/{schema-validations-0a7e46a3.js → schema-validations-184a4356.js} +1 -1
- package/dist/cjs/table-bb114e2f.js +20 -0
- package/dist/cjs/table-filters-menu.cjs.entry.js +35 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +166 -0
- package/dist/cjs/terminals-list-filters.cjs.entry.js +32 -0
- package/dist/cjs/{utils-52fb7fa1.js → utils-3d84442d.js} +0 -44
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +6 -4
- package/dist/collection/api/Checkout.js +77 -1
- package/dist/collection/api/SubAccount.js +33 -0
- package/dist/collection/api/Terminal.js +25 -0
- package/dist/collection/api/get-subaccounts.js +31 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/checkout.service.js +10 -1
- package/dist/collection/api/services/subaccounts.service.js +13 -0
- package/dist/collection/api/services/terminal.service.js +20 -0
- package/dist/collection/collection-manifest.json +37 -15
- package/dist/collection/components/billing-form/billing-form.js +3 -3
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- package/dist/collection/components/business-details/business-details.js +1 -1
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -1
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -4
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/checkout/checkout-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +257 -0
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +84 -0
- package/dist/collection/components/checkouts-list/checkouts-list.js +208 -0
- package/dist/collection/components/checkouts-list/checkouts-status.js +13 -0
- package/dist/collection/components/checkouts-list/checkouts-table.js +20 -0
- package/dist/collection/components/checkouts-list/get-checkouts.js +31 -0
- package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +90 -0
- package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +16 -0
- package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +12 -0
- package/dist/collection/components/dispute-management/dispute-management-core.js +53 -0
- package/dist/collection/components/dispute-management/dispute-management.js +8 -0
- package/dist/collection/components/dispute-management/dispute-notification.js +48 -0
- package/dist/collection/components/dispute-management/dispute.js +8 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +10 -9
- package/dist/collection/components/payment-details/payment-details.js +1 -1
- package/dist/collection/components/payment-form/payment-form.js +3 -3
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +5 -5
- package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
- package/dist/collection/components/payments-list/payments-list.js +3 -5
- package/dist/collection/components/payments-list/payments-status.js +23 -0
- package/dist/collection/components/payout-details/payout-details-core.js +4 -3
- package/dist/collection/components/payout-details/payout-details.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +6 -22
- package/dist/collection/components/payouts-list/payouts-list.js +4 -7
- package/dist/collection/components/payouts-list/payouts-status.js +21 -0
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- package/dist/collection/components/terminals-list/get-terminal-detail.js +29 -0
- package/dist/collection/components/terminals-list/get-terminals.js +31 -0
- package/dist/collection/components/terminals-list/terminals-list-core.js +257 -0
- package/dist/collection/components/terminals-list/terminals-list-filters.js +81 -0
- package/dist/collection/components/terminals-list/terminals-list.js +209 -0
- package/dist/collection/components/terminals-list/terminals-status.js +11 -0
- package/dist/collection/components/terminals-list/terminals-table.js +15 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +9 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +276 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/{components → ui-components}/details/details.js +1 -1
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-checkbox.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-date.js +21 -2
- package/dist/collection/{components → ui-components}/form/form-control-file.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-monetary.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-number-masked.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-number.js +1 -1
- package/dist/collection/ui-components/form/form-control-radio.js +209 -0
- package/dist/collection/{components → ui-components}/form/form-control-select.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-text.js +1 -1
- package/dist/collection/ui-components/form/form-control-textarea.js +229 -0
- package/dist/collection/ui-components/index.js +1 -0
- package/dist/collection/utils/table.js +16 -0
- package/dist/collection/utils/utils.js +0 -42
- package/dist/docs.json +9587 -6724
- package/dist/esm/{Analytics-3dde5a98.js → Analytics-777962a4.js} +2 -2
- package/dist/esm/{Api-c8abc2e0.js → Api-391d00e2.js} +6 -4
- package/dist/esm/Checkout-0b4086f8.js +83 -0
- package/dist/esm/SubAccount-7f7e4c56.js +102 -0
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-a5583cf8.js → business-additional-questions-schema-97f52255.js} +2 -2
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/{business-identity-schema-9e3269fb.js → business-identity-schema-434e16bc.js} +2 -2
- package/dist/esm/{business.service-1f589b6e.js → business.service-97a3da69.js} +1 -1
- package/dist/esm/{check-pkg-version-4d144b72.js → check-pkg-version-bac8fac0.js} +1 -1
- package/dist/esm/checkout.service-ef1549c6.js +34 -0
- package/dist/esm/checkouts-list-core.entry.js +177 -0
- package/dist/esm/checkouts-list-filters.entry.js +31 -0
- package/dist/esm/{custom-popper_5.entry.js → custom-popper_4.entry.js} +5 -19
- package/dist/esm/dispute-4d2e0a04.js +10 -0
- package/dist/esm/form-alert_5.entry.js +3 -3
- package/dist/esm/form-control-checkbox_9.entry.js +11 -11
- package/dist/esm/form-control-date.entry.js +79 -0
- package/dist/esm/form-control-error-text.entry.js +17 -0
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-help-text.entry.js +17 -0
- package/dist/esm/{form-control-help-text_2.entry.js → form-control-monetary.entry.js} +3 -17
- package/dist/esm/form-control-number-masked_2.entry.js +94 -0
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/form-control-radio.entry.js +40 -0
- package/dist/esm/form-control-textarea.entry.js +45 -0
- package/dist/esm/{get-payout-csv-d29146ee.js → get-payout-csv-70974763.js} +3 -2
- package/dist/esm/get-subaccounts-16c8ce40.js +51 -0
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
- package/dist/esm/justifi-additional-statement_11.entry.js +159 -0
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +1679 -14
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +11 -10
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +2 -7
- package/dist/esm/justifi-checkout.entry.js +8 -23
- package/dist/esm/justifi-checkouts-list.entry.js +115 -0
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +24 -0
- package/dist/esm/justifi-dispute-management.entry.js +12 -0
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/{justifi-new-payment-method_4.entry.js → justifi-new-payment-method_5.entry.js} +18 -2
- package/dist/esm/justifi-owner-form_3.entry.js +7 -7
- package/dist/esm/justifi-payment-details.entry.js +8 -7
- package/dist/esm/justifi-payment-form.entry.js +10 -9
- package/dist/esm/justifi-payment-method-selector.entry.js +3 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +10 -11
- package/dist/esm/justifi-payout-details.entry.js +8 -7
- package/dist/esm/justifi-payouts-list.entry.js +11 -13
- package/dist/esm/justifi-refund-form.entry.js +5 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -6
- package/dist/esm/justifi-terminals-list.entry.js +133 -0
- package/dist/esm/justifi-tokenize-payment-method.entry.js +55 -0
- package/dist/esm/loader.js +1 -1
- package/dist/{cjs/payments-list-filters_2.cjs.entry.js → esm/lodash-faeb5a52.js} +1 -63
- package/dist/esm/{package-4ab64620.js → package-5144835c.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +10 -9
- package/dist/esm/{payment.service-f9c3e9d7.js → payment.service-2f67410b.js} +3 -2
- package/dist/esm/payments-list-core.entry.js +6 -6
- package/dist/esm/payments-list-filters.entry.js +31 -0
- package/dist/esm/payments-status-4937a170.js +24 -0
- package/dist/esm/payout-details-core.entry.js +4 -3
- package/dist/esm/payouts-list-core.entry.js +7 -23
- package/dist/esm/payouts-status-cd58e525.js +22 -0
- package/dist/esm/{schema-validations-e725d701.js → schema-validations-c1728516.js} +1 -1
- package/dist/esm/table-75364107.js +18 -0
- package/dist/esm/table-filters-menu.entry.js +31 -0
- package/dist/esm/terminals-list-core.entry.js +162 -0
- package/dist/esm/terminals-list-filters.entry.js +28 -0
- package/dist/esm/{utils-620f2d78.js → utils-3daada24.js} +1 -43
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +6 -4
- package/dist/module/Checkout.js +83 -0
- package/dist/module/SubAccount.js +102 -0
- package/dist/module/additional-statement.js +63 -0
- package/dist/module/billing-form.js +1 -1
- package/dist/module/business-additional-questions-form-step-core.js +1 -1
- package/dist/module/business-bank-account-form-step.js +3 -2
- package/dist/module/business-core-info-form-step-core.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-document-upload-form-step.js +1 -1
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step-core.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -2
- package/dist/module/cancellation-policy.js +63 -0
- package/dist/module/checkout-core.js +2 -7
- package/dist/module/checkout.service.js +34 -0
- package/dist/module/checkouts-list-core.d.ts +11 -0
- package/dist/module/checkouts-list-core.js +6 -0
- package/dist/module/checkouts-list-core2.js +249 -0
- package/dist/module/checkouts-list-filters.d.ts +11 -0
- package/dist/module/checkouts-list-filters.js +6 -0
- package/dist/module/checkouts-list-filters2.js +80 -0
- package/dist/module/counter-dispute.js +189 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +69 -0
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +160 -0
- package/dist/module/dispute-notification.js +36 -0
- package/dist/module/dispute-reason.js +45 -0
- package/dist/module/duplicate-charge.js +69 -0
- package/dist/module/electronic-evidence.js +63 -0
- package/dist/module/exported-parts.js +1 -34
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +5 -3
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +1 -1
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-radio.d.ts +11 -0
- package/dist/module/form-control-radio.js +6 -0
- package/dist/module/form-control-radio2.js +78 -0
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/form-control-textarea.d.ts +11 -0
- package/dist/module/form-control-textarea.js +6 -0
- package/dist/module/form-control-textarea2.js +84 -0
- package/dist/module/get-payout-csv.js +2 -1
- package/dist/module/get-subaccounts.js +51 -0
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/justifi-additional-statement.d.ts +11 -0
- package/dist/module/justifi-additional-statement.js +6 -0
- package/dist/module/justifi-business-form.js +3 -2
- package/dist/module/justifi-cancellation-policy.d.ts +11 -0
- package/dist/module/justifi-cancellation-policy.js +6 -0
- package/dist/module/justifi-checkout.js +1 -22
- package/dist/module/justifi-checkouts-list.d.ts +11 -0
- package/dist/module/justifi-checkouts-list.js +191 -0
- package/dist/module/justifi-counter-dispute.d.ts +11 -0
- package/dist/module/justifi-counter-dispute.js +6 -0
- package/dist/module/justifi-customer-details.d.ts +11 -0
- package/dist/module/justifi-customer-details.js +6 -0
- package/dist/module/justifi-dispute-management-core.d.ts +11 -0
- package/dist/module/justifi-dispute-management-core.js +6 -0
- package/dist/module/justifi-dispute-management.d.ts +11 -0
- package/dist/module/justifi-dispute-management.js +157 -0
- package/dist/module/justifi-dispute-notification.d.ts +11 -0
- package/dist/module/justifi-dispute-notification.js +6 -0
- package/dist/module/justifi-dispute-reason.d.ts +11 -0
- package/dist/module/justifi-dispute-reason.js +6 -0
- package/dist/module/justifi-duplicate-charge.d.ts +11 -0
- package/dist/module/justifi-duplicate-charge.js +6 -0
- package/dist/module/justifi-electronic-evidence.d.ts +11 -0
- package/dist/module/justifi-electronic-evidence.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-form.js +5 -4
- package/dist/module/justifi-payments-list.js +5 -6
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list.js +5 -7
- package/dist/module/justifi-product-or-service.d.ts +11 -0
- package/dist/module/justifi-product-or-service.js +6 -0
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-refund-policy.d.ts +11 -0
- package/dist/module/justifi-refund-policy.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/justifi-shipping-details.d.ts +11 -0
- package/dist/module/justifi-shipping-details.js +6 -0
- package/dist/module/justifi-terminals-list.d.ts +11 -0
- package/dist/module/justifi-terminals-list.js +216 -0
- package/dist/module/justifi-tokenize-payment-method.d.ts +11 -0
- package/dist/module/justifi-tokenize-payment-method.js +153 -0
- package/dist/module/legal-address-form-step-core.js +1 -1
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/lodash.js +17204 -0
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +9 -8
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-selector.js +3 -2
- package/dist/module/payment.service.js +2 -1
- package/dist/module/payments-list-core2.js +7 -6
- package/dist/module/payments-list-filters2.js +2 -17204
- package/dist/module/payments-status.js +24 -0
- package/dist/module/payout-details-core2.js +3 -2
- package/dist/module/payouts-list-core2.js +8 -23
- package/dist/module/payouts-status.js +22 -0
- package/dist/module/product-or-service.js +60 -0
- package/dist/module/refund-policy.js +63 -0
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +3 -3
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/shipping-details.js +79 -0
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table-loading-state.js +34 -0
- package/dist/module/table.js +18 -0
- package/dist/module/terminals-list-core.d.ts +11 -0
- package/dist/module/terminals-list-core.js +6 -0
- package/dist/module/terminals-list-core2.js +240 -0
- package/dist/module/terminals-list-filters.d.ts +11 -0
- package/dist/module/terminals-list-filters.js +6 -0
- package/dist/module/terminals-list-filters2.js +83 -0
- package/dist/module/utils2.js +1 -43
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Checkout.d.ts +74 -2
- package/dist/types/api/SubAccount.d.ts +51 -0
- package/dist/types/api/Terminal.d.ts +48 -0
- package/dist/types/api/get-subaccounts.d.ts +10 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/checkout.service.d.ts +3 -1
- package/dist/types/api/services/subaccounts.service.d.ts +7 -0
- package/dist/types/api/services/terminal.service.d.ts +9 -0
- package/dist/types/components/billing-form/billing-form.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +1 -1
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +35 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +15 -0
- package/dist/types/components/checkouts-list/checkouts-list.d.ts +44 -0
- package/dist/types/components/checkouts-list/checkouts-status.d.ts +1 -0
- package/dist/types/components/checkouts-list/checkouts-table.d.ts +17 -0
- package/dist/types/components/checkouts-list/get-checkouts.d.ts +10 -0
- package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +14 -0
- package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +4 -0
- package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +3 -0
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +7 -0
- package/dist/types/components/dispute-management/dispute-management.d.ts +3 -0
- package/dist/types/components/dispute-management/dispute-notification.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute.d.ts +7 -0
- package/dist/types/components/payments-list/payments-status.d.ts +1 -0
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -2
- package/dist/types/components/payouts-list/payouts-status.d.ts +1 -0
- package/dist/types/components/terminals-list/get-terminal-detail.d.ts +8 -0
- package/dist/types/components/terminals-list/get-terminals.d.ts +10 -0
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +35 -0
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +13 -0
- package/dist/types/components/terminals-list/terminals-list.d.ts +44 -0
- package/dist/types/components/terminals-list/terminals-status.d.ts +1 -0
- package/dist/types/components/terminals-list/terminals-table.d.ts +13 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +22 -0
- package/dist/types/components.d.ts +740 -12
- package/dist/types/{components → ui-components}/form/form-control-date.d.ts +2 -1
- package/dist/types/ui-components/form/form-control-radio.d.ts +19 -0
- package/dist/types/ui-components/form/form-control-textarea.d.ts +20 -0
- package/dist/types/ui-components/index.d.ts +1 -0
- package/dist/types/utils/table.d.ts +13 -0
- package/dist/types/utils/utils.d.ts +0 -2
- package/dist/webcomponents/p-037e3545.entry.js +1 -0
- package/dist/webcomponents/{p-08d88fd2.entry.js → p-04d12939.entry.js} +1 -1
- package/dist/webcomponents/p-0ac35b39.entry.js +1 -0
- package/dist/webcomponents/p-0b686ada.entry.js +1 -0
- package/dist/webcomponents/p-0c79e368.entry.js +1 -0
- package/dist/webcomponents/p-0de9e97b.entry.js +1 -0
- package/dist/webcomponents/{p-7d3be485.js → p-0e180654.js} +1 -1
- package/dist/webcomponents/{p-a3265844.entry.js → p-11ff46df.entry.js} +1 -1
- package/dist/webcomponents/p-16d2932d.js +1 -0
- package/dist/webcomponents/p-206fde40.js +1 -0
- package/dist/webcomponents/p-24392a86.entry.js +1 -0
- package/dist/webcomponents/p-269ba6fe.entry.js +1 -0
- package/dist/webcomponents/{p-1e178dd1.entry.js → p-286a4e72.entry.js} +2 -2
- package/dist/webcomponents/p-2c2b57b3.js +1 -0
- package/dist/webcomponents/{p-61514f78.entry.js → p-2c8c214f.entry.js} +1 -1
- package/dist/webcomponents/p-2de65000.entry.js +1 -0
- package/dist/webcomponents/{p-277aee05.js → p-3d3468a8.js} +1 -1
- package/dist/webcomponents/p-47dbe17d.js +1 -0
- package/dist/webcomponents/p-4b14abbf.entry.js +1 -0
- package/dist/webcomponents/p-4c0c88e4.entry.js +1 -0
- package/dist/webcomponents/p-52ca72cd.entry.js +1 -0
- package/dist/webcomponents/{p-bc9ae56f.js → p-56bda985.js} +1 -1
- package/dist/webcomponents/p-56d84fb3.entry.js +1 -0
- package/dist/webcomponents/p-638c6285.entry.js +1 -0
- package/dist/webcomponents/{p-122c2a11.entry.js → p-69ea7334.entry.js} +1 -1
- package/dist/webcomponents/p-6caf6f09.entry.js +1 -0
- package/dist/webcomponents/{p-da1d174d.entry.js → p-72819173.entry.js} +1 -1
- package/dist/webcomponents/p-8480e3ab.entry.js +1 -0
- package/dist/webcomponents/p-869ae0c7.entry.js +1 -0
- package/dist/webcomponents/p-8ec550d7.entry.js +1 -0
- package/dist/webcomponents/p-8f212554.entry.js +1 -0
- package/dist/webcomponents/p-907ba963.js +1 -0
- package/dist/webcomponents/p-919e6e67.entry.js +1 -0
- package/dist/webcomponents/p-927a147c.entry.js +1 -0
- package/dist/webcomponents/p-935188c8.entry.js +1 -0
- package/dist/webcomponents/p-9bd13e22.js +1 -0
- package/dist/webcomponents/p-9f56ad71.js +1 -0
- package/dist/webcomponents/p-a2be972d.entry.js +1 -0
- package/dist/webcomponents/p-a3143d62.entry.js +1 -0
- package/dist/webcomponents/{p-ca8e126f.js → p-a8f22d4d.js} +1 -1
- package/dist/webcomponents/p-ad443df5.entry.js +1 -0
- package/dist/webcomponents/p-b0686897.entry.js +1 -0
- package/dist/webcomponents/p-b1aacd6b.entry.js +1 -0
- package/dist/webcomponents/p-b4a7307b.entry.js +1 -0
- package/dist/webcomponents/p-bfb990fc.entry.js +1 -0
- package/dist/webcomponents/p-c1bf9285.entry.js +1 -0
- package/dist/webcomponents/{p-6d4b585d.js → p-c1cf7d5b.js} +1 -1
- package/dist/webcomponents/p-c30c8f39.entry.js +1 -0
- package/dist/webcomponents/p-c5c6e61d.js +1 -0
- package/dist/webcomponents/{p-5df26e65.entry.js → p-c63825d8.entry.js} +1 -1
- package/dist/webcomponents/{p-5022f21c.js → p-c65b78cf.js} +1 -1
- package/dist/webcomponents/p-c6be72b0.js +10 -0
- package/dist/webcomponents/p-c717646f.entry.js +1 -0
- package/dist/webcomponents/{p-a1d037cb.entry.js → p-cb79f06c.entry.js} +1 -1
- package/dist/webcomponents/p-ccbff4fa.entry.js +1 -0
- package/dist/webcomponents/p-cd4eaeb7.js +1 -0
- package/dist/webcomponents/p-cd7e866c.entry.js +1 -0
- package/dist/webcomponents/p-d1248039.entry.js +1 -0
- package/dist/webcomponents/{p-8f447993.entry.js → p-d2eb61e6.entry.js} +1 -1
- package/dist/webcomponents/p-d516e700.js +1 -0
- package/dist/webcomponents/p-dae9b10e.entry.js +1 -0
- package/dist/webcomponents/p-e412a713.entry.js +1 -0
- package/dist/webcomponents/p-e69b2ff8.entry.js +1 -0
- package/dist/webcomponents/p-e6be8845.entry.js +1 -0
- package/dist/webcomponents/{p-799ee8c3.js → p-e7d6609d.js} +1 -1
- package/dist/webcomponents/p-e8797be0.entry.js +1 -0
- package/dist/webcomponents/p-eb9ba917.entry.js +1 -0
- package/dist/webcomponents/p-ec7e69eb.entry.js +1 -0
- package/dist/webcomponents/{p-1eb60948.entry.js → p-eeb70281.entry.js} +1 -1
- package/dist/webcomponents/{p-cd74be05.entry.js → p-efb56234.entry.js} +1 -1
- package/dist/webcomponents/p-f4a8215b.entry.js +1 -0
- package/dist/webcomponents/{p-401d6607.js → p-f6f8dabc.js} +1 -1
- package/dist/webcomponents/{p-1d29488a.entry.js → p-f7077f93.entry.js} +1 -1
- package/dist/webcomponents/p-fc4de0d2.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Payout-a2dd7b01.js +0 -45
- package/dist/cjs/form-control-date_3.cjs.entry.js +0 -175
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1688
- package/dist/esm/Payout-dfe15b00.js +0 -43
- package/dist/esm/form-control-date_3.entry.js +0 -169
- package/dist/esm/justifi-payment-method-form.entry.js +0 -1684
- package/dist/module/Payout.js +0 -43
- package/dist/webcomponents/p-0c2d91a2.entry.js +0 -1
- package/dist/webcomponents/p-11f01df5.entry.js +0 -1
- package/dist/webcomponents/p-23f95a19.entry.js +0 -1
- package/dist/webcomponents/p-2874d4b2.entry.js +0 -10
- package/dist/webcomponents/p-43dfda70.entry.js +0 -1
- package/dist/webcomponents/p-55182a59.js +0 -1
- package/dist/webcomponents/p-55fe2cf2.entry.js +0 -1
- package/dist/webcomponents/p-5e5e8a85.js +0 -1
- package/dist/webcomponents/p-605614f2.entry.js +0 -1
- package/dist/webcomponents/p-6962044f.entry.js +0 -1
- package/dist/webcomponents/p-6a9e908b.entry.js +0 -1
- package/dist/webcomponents/p-6ba660f2.entry.js +0 -1
- package/dist/webcomponents/p-6e258b5f.entry.js +0 -1
- package/dist/webcomponents/p-770f60f9.entry.js +0 -1
- package/dist/webcomponents/p-7cb3854c.entry.js +0 -1
- package/dist/webcomponents/p-80730b71.entry.js +0 -1
- package/dist/webcomponents/p-8f04747b.entry.js +0 -1
- package/dist/webcomponents/p-9a37eee5.entry.js +0 -1
- package/dist/webcomponents/p-a680c982.entry.js +0 -1
- package/dist/webcomponents/p-a765230f.entry.js +0 -1
- package/dist/webcomponents/p-b7b18954.entry.js +0 -1
- package/dist/webcomponents/p-c241cc62.entry.js +0 -1
- package/dist/webcomponents/p-d0ffb01c.entry.js +0 -1
- package/dist/webcomponents/p-da316a74.entry.js +0 -1
- package/dist/webcomponents/p-db3d1d7d.entry.js +0 -1
- package/dist/webcomponents/p-dee2a3f8.entry.js +0 -1
- package/dist/webcomponents/p-e3fab0e2.js +0 -1
- package/dist/webcomponents/p-e56ade55.js +0 -1
- package/dist/webcomponents/p-e927fd5c.entry.js +0 -1
- package/dist/webcomponents/p-f3e00572.entry.js +0 -1
- package/dist/webcomponents/p-f71a5975.entry.js +0 -1
- /package/dist/cjs/{exported-parts-b18c68c2.js → exported-parts-a994d693.js} +0 -0
- /package/dist/cjs/{index.esm-52757963.js → index.esm-97cf6825.js} +0 -0
- /package/dist/cjs/{utils-c1d2e426.js → utils-189dc30d.js} +0 -0
- /package/dist/cjs/{utils-ddacfc44.js → utils-bc03ca40.js} +0 -0
- /package/dist/collection/{components → ui-components}/details/utils.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-alert/form-alert.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-tooltip/form-control-tooltip.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form.js +0 -0
- /package/dist/collection/{components → ui-components}/form/utils.js +0 -0
- /package/dist/collection/{components → ui-components}/table/exported-parts.js +0 -0
- /package/dist/esm/{exported-parts-abd4c027.js → exported-parts-70e7a12b.js} +0 -0
- /package/dist/esm/{index.esm-fc4f5c0c.js → index.esm-ed37201b.js} +0 -0
- /package/dist/esm/{utils-3bb6347a.js → utils-20cdf321.js} +0 -0
- /package/dist/esm/{utils-01413a95.js → utils-218275b7.js} +0 -0
- /package/dist/types/{components → ui-components}/details/details.d.ts +0 -0
- /package/dist/types/{components → ui-components}/details/utils.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-checkbox.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-file.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-monetary.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-number-masked.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-number.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-select.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-alert/form-alert.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/utils.d.ts +0 -0
- /package/dist/types/{components → ui-components}/table/exported-parts.d.ts +0 -0
- /package/dist/webcomponents/{p-2eab3c90.js → p-3c654c07.js} +0 -0
- /package/dist/webcomponents/{p-2b6c9c4f.js → p-6cc30da2.js} +0 -0
- /package/dist/webcomponents/{p-dce846bf.js → p-a8b4f429.js} +0 -0
- /package/dist/webcomponents/{p-8df7bde8.js → p-e3c22aa9.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { businessCoreInfoSchema } from "../../schemas/business-core-info-schema";
|
|
3
|
-
import { FormController } from "
|
|
3
|
+
import { FormController } from "../../../../ui-components/form/form";
|
|
4
4
|
import { CoreBusinessInfo } from "../../../../api/Business";
|
|
5
5
|
import { BusinessFormStepV2 } from "../../utils/business-form-types";
|
|
6
6
|
import { businessClassificationOptions } from "../../utils/business-form-options";
|
|
7
7
|
import { PHONE_MASKS } from "../../../../utils/form-input-masks";
|
|
8
|
-
import { numberOnlyHandler } from "
|
|
8
|
+
import { numberOnlyHandler } from "../../../../ui-components/form/utils";
|
|
9
9
|
export class BusinessCoreInfoFormStepCore {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.getData = () => {
|
|
@@ -79,7 +79,7 @@ export class BusinessCoreInfoFormStepCore {
|
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
81
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
82
|
-
return (h("form", { key: '
|
|
82
|
+
return (h("form", { key: 'd3df5d7e22f53b5885545459a48e1931f8a38e31' }, h("fieldset", { key: '5a448358ef2ad53c597347f932ca51a5da2ba4e6' }, h("div", { key: '5ed392c4bb7f63258c60b13d83aa5325fb191e7c', class: "d-flex align-items-center gap-2" }, h("legend", { key: '2dada21c67d05b813529eb45cb105ccec547b620', class: "mb-0" }, "Business Information")), h("hr", { key: '9df6c05b6f34d8fd2154ef25bda1ec2a88f69bc7', class: "mt-2" }), h("div", { key: 'd9e8e3c87a9f3c41c325ed8b3df58443db026644', class: "row gy-3" }, h("div", { key: '7e940fb2b9befb51be4387d47498ecb8e3b1552a', class: "col-12" }, h("form-control-text", { key: '4ea4b4aae5b1e377dc45407e4d0f6f8277f74dc3', name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { key: 'ec86bf16281d8d8c0c954606e4fc7fb1d8b2507e', class: "col-12" }, h("form-control-text", { key: 'bef91169dea8a654faf8df3abed565a64275aa9d', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { key: '5568cecd8e6e3d2ab2a45d4eff583c1dfba2f07a', class: "col-12 col-md-8" }, h("form-control-select", { key: '96b2eea102e0686910af7950742256d6019d8ef9', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '1fad6738d6c89a184b9f2e41eaef095db87471d6', class: "col-12 col-md-4" }, h("form-control-date", { key: 'cd10c2b8091343b0a8d7b08ceddf4343803333f6', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: '3786fa9ce6b85c70873a4ed0014ef7c9b4a786f8', class: "col-12 col-md-6" }, h("form-control-text", { key: 'c5374dedf05acc1c9874061d796ee704160745a0', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { key: '0f30b590c250a6ac1beaaf1cc4a3eefeb394f3b0', class: "col-12 col-md-6" }, h("form-control-text", { key: '983b05cd0bf9aca0572b6f328e26b0c6f04ea9ee', name: "tax_id", label: "Tax ID (EIN or SSN)", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9, helpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns." })), h("div", { key: 'beacf611410f74b8038919887cc20c206bd5edce', class: "col-12" }, h("form-control-text", { key: '14a69d2ecedfcadf613aa42625b12405fba67068', name: "website_url", label: "Business Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler, helpText: "Don't have a live website? You can use your social media business page, app store link, or staging site URL." })), h("div", { key: '17171947a231323d63c42aa2c0a645aba91926d8', class: "col-12 col-md-6" }, h("form-control-text", { key: 'd0e32c0eb8aeb1c661f48f993a0cf44b4f2cf5b3', name: "email", label: "Business Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '1a8ee5ca6825ee3046fd538871c8c01ae561e731', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'b74ff08dc5d97a66ff7d41fcdc8a2964e8739430', name: "phone", label: "Business Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
83
83
|
}
|
|
84
84
|
static get is() { return "justifi-business-core-info-form-step-core"; }
|
|
85
85
|
static get properties() {
|
|
@@ -15,7 +15,7 @@ export class RepresentativeFormInputs {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
18
|
-
return (h("form", { key: '
|
|
18
|
+
return (h("form", { key: 'd48ad76693e38dfd4fdb512afc87e5e50c4d171f' }, h("fieldset", { key: '957e468b2bace9fae8128ffc7de5754a49945454' }, h("div", { key: 'ab3845f6f8f1a508b691d6b1f02980e0d6d38f4c', class: "d-flex align-items-center gap-2" }, h("legend", { key: '79a48cd41f19c4aba31a6f6e36c5b7acaf358447', class: "mb-0" }, "Representative"), h("form-control-tooltip", { key: 'e2961b6a7ce9a360c374404f47876ea39b489297', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '16fc066cc1ddae2e6fe30119bc66a8eda966b66a', class: "mt-2" }), h("div", { key: 'e3d32b1497cb452fca36ee564da7b4f9d7e517a6', class: "row gy-3" }, h("div", { key: '0b8dba03ddfe9cebafdba03315477f522441e62f', class: "col-12 col-md-8" }, h("form-control-text", { key: 'fcee691ae2f2e169841b28cc313b2559f2cedc47', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '388aabab153c5922f4d719d2068c6041fcb1e8bc', class: "col-12 col-md-4" }, h("form-control-text", { key: 'cf3a2911172fa4972b2b108aa375872a189f8b88', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '594446afaf5d1068c3a6ddc38ed0895ee4fff14b', class: "col-12 col-md-6" }, h("form-control-text", { key: '7ede2ffbc93f20e89d32938f8d1305604ffc5970', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '9cb40530bfc63d79d00f91eeaad58f952f0fcda4', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '3967096857620f10b42e8c5f8a4754dcf094973d', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '3b3794126a3790484e23ca8731782cd4d68cf569', class: "col-12 col-md-4" }, h("form-control-date", { key: '2ea38d71ab8e616f404b7624f4e6edd75ccaa294', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: '78b603dd1ae23fd4a9dd59f45273c6e3ff611fdf', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'a41976f1168af416cdecf391271eddc20cc9e7b6', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '198432248d778343020fb0ceb0e8c9a1763130b3', class: "col-12" }, h("justifi-identity-address-form", { key: '402d91a793e197502b536f2fc5e2a9a52a97ef85', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "justifi-business-representative-form-inputs"; }
|
|
21
21
|
static get properties() {
|
|
@@ -63,8 +63,8 @@ export class RepresentativeFormInputs {
|
|
|
63
63
|
"references": {
|
|
64
64
|
"FormController": {
|
|
65
65
|
"location": "import",
|
|
66
|
-
"path": "
|
|
67
|
-
"id": "src/components/form/form.ts::FormController"
|
|
66
|
+
"path": "../../../../ui-components/form/form",
|
|
67
|
+
"id": "src/ui-components/form/form.ts::FormController"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Representative } from "../../../../api/Identity";
|
|
3
|
-
import { FormController } from "
|
|
3
|
+
import { FormController } from "../../../../ui-components/form/form";
|
|
4
4
|
import { BusinessFormStepV2 } from "../../utils/business-form-types";
|
|
5
5
|
import { identitySchema } from "../../schemas/business-identity-schema";
|
|
6
6
|
export class BusinessRepresentativeFormStepCore {
|
|
@@ -70,7 +70,7 @@ export class BusinessRepresentativeFormStepCore {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h("justifi-business-representative-form-inputs", { key: '
|
|
73
|
+
return (h("justifi-business-representative-form-inputs", { key: 'b139e0b7a998011fd6b2a6d21b5a0b33369125fe', representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "justifi-business-representative-form-step-core"; }
|
|
76
76
|
static get properties() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { FormController } from "
|
|
2
|
+
import { FormController } from "../../../../ui-components/form/form";
|
|
3
3
|
import { BusinessFormStep, BusinessFormStepV2 } from "../../utils/business-form-types";
|
|
4
4
|
import { Business } from "../../../../api/Business";
|
|
5
5
|
import Api from "../../../../api/Api";
|
|
@@ -181,7 +181,7 @@ export class BusinessDocumentFormStep {
|
|
|
181
181
|
return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
182
182
|
}
|
|
183
183
|
render() {
|
|
184
|
-
return (h("form", { key: '
|
|
184
|
+
return (h("form", { key: '5e0722b4d5ea462cf5ba6ed2de9d3a73b8bf910a' }, h("fieldset", { key: '09f3589465a6ad53080743018a57b959bef68309' }, h("div", { key: 'b6c1aa4cf4754126b11902a8b35c19e3044ba4ed', class: "d-flex align-items-center gap-2" }, h("legend", { key: '77b5d6847054afbfe6cc7e9e00762c226a582447', class: "mb-0" }, "Document Uploads"), h("form-control-tooltip", { key: '9fb518fbad5039c77436377e26e420dc01a84ca2', helpText: "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category." })), h("hr", { key: 'e95938b42ad6d52d612bb654e39af7ee3442b454', class: "mt-2" }), this.documentsOnFile, h("div", { key: '8ee1cda96d28486faa2371bb1b82c57a57220071', class: "d-flex flex-column" }, this.formInputs))));
|
|
185
185
|
}
|
|
186
186
|
static get is() { return "justifi-business-document-upload-form-step"; }
|
|
187
187
|
static get properties() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { addressSchema } from "../../schemas/business-address-schema";
|
|
3
|
-
import { FormController } from "
|
|
3
|
+
import { FormController } from "../../../../ui-components/form/form";
|
|
4
4
|
import { Address } from "../../../../api/Business";
|
|
5
5
|
import { BusinessFormStepV2 } from "../../utils/business-form-types";
|
|
6
6
|
import StateOptions from "../../../../utils/state-options";
|
|
7
|
-
import { numberOnlyHandler } from "
|
|
7
|
+
import { numberOnlyHandler } from "../../../../ui-components/form/utils";
|
|
8
8
|
export class LegalAddressFormStepCore {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.getData = () => {
|
|
@@ -78,7 +78,7 @@ export class LegalAddressFormStepCore {
|
|
|
78
78
|
render() {
|
|
79
79
|
var _a, _b, _c, _d, _e, _f;
|
|
80
80
|
const legalAddressDefaultValue = this.formController.getInitialValues();
|
|
81
|
-
return (h("form", { key: '
|
|
81
|
+
return (h("form", { key: 'cc749f565087adf5a0806a179ebc4682783763bd' }, h("fieldset", { key: '98fecaf00779da20c4f023dd4081be6f616e59ae' }, h("div", { key: '854d921b4b140738cb2cf2f48b51a207eb58c329', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'ae741c143648c14145eac2066fa40799726682e5', class: "mb-0" }, "Legal Address of your Business"), h("form-control-tooltip", { key: 'd30c4a70183f7afc9a809d399b775c5610ef952c', helpText: "No PO Boxes." })), h("hr", { key: '78f7c51df66d265ff1a9f62b38aedfba014ed7cb', class: "mt-2" }), h("div", { key: 'b32031b925e908dc4a9459f0e082312f72fc64f9', class: "row gy-3" }, h("div", { key: '1564426893f46dc7ace7192ce264a10d879bc5c2', class: "col-12" }, h("form-control-text", { key: '9c70add04a610ce6280f7047ad56d260bb0adcf1', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { key: 'bba886684830ab3dd7f3470e13bcf8ce970f357f', class: "col-12" }, h("form-control-text", { key: '43c507918eb72b586c43b4839c40499196c41625', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { key: 'e9ff6df356c8c4f1ddef5318936d39c4b92a58e9', class: "col-12" }, h("form-control-text", { key: 'ff17e63977ba52fea319f1dfb2936b0836fa1f5f', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { key: 'd0da7fbd59236105cb1f7725eb4fddc0fe0e028b', class: "col-12" }, h("form-control-select", { key: '666abe057f3a06705b42e8bfb3aae4e15b50f8dc', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { key: 'c9c2ea66adc0e15f07a9070ca46f685042b41042', class: "col-12" }, h("form-control-text", { key: '614c03164e755b945610b91f8ec7757980956261', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'cfab73c10bf56bf001a246f0ad8c56fd8c36fbeb', class: "col-12" }, h("form-control-select", { key: 'd42b86c2d2de13504f2934fa63a3e83f998134ac', name: "country", label: "Country", options: [{ label: "United States", value: "USA" }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
|
|
82
82
|
// just for now so we skip handling country specificities
|
|
83
83
|
disabled: true }))))));
|
|
84
84
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { FormController } from "
|
|
2
|
+
import { FormController } from "../../../../ui-components/form/form";
|
|
3
3
|
import { BusinessFormStep, BusinessFormStepV2 } from "../../utils/business-form-types";
|
|
4
4
|
import { config } from "../../../../../config";
|
|
5
5
|
import { businessTermsConditionsSchema } from "../../schemas/business-terms-conditions-schema";
|
|
@@ -108,7 +108,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h("form", { key: '
|
|
111
|
+
return (h("form", { key: 'e675f117eb90a0690e148a1164fffde5d4f01419' }, h("fieldset", { key: 'e1cb1fe38b7365cc282eb91689afb40d6b01136c' }, h("legend", { key: 'e57a4bc006983c3ee3805445d750ea330bedd477' }, "Terms and Conditions"), h("hr", { key: '7b373693bd10d6493816b3dd9ae07d826bd7ff84' }), h("justifi-business-terms-conditions-text", { key: '984b3668240861df4947c60068c1be079a3eb7e1' }), h("br", { key: '15dfba53dd81d39be4ea216bf798f51881abf23d' }), h("div", { key: 'b426c709c11435911efb4289b68fa8f86c2569f2', class: "row-gy-3" }, h("div", { key: '307c51a7f78613807054a5d1480318fdb9316bff', class: "col-12" }, h("form-control-checkbox", { key: '6069cb9929c7ea0f2c1b2cbc99dad61806c80429', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "justifi-business-terms-conditions-form-step"; }
|
|
114
114
|
static get properties() {
|
|
@@ -324,7 +324,7 @@ export class CheckoutCore {
|
|
|
324
324
|
},
|
|
325
325
|
"complexType": {
|
|
326
326
|
"original": "ICheckoutCompleteResponse",
|
|
327
|
-
"resolved": "IApiResponse<{ payment_mode:
|
|
327
|
+
"resolved": "IApiResponse<{ payment_mode: ICheckoutPaymentMode; payment_token: null; payment_status: string; payment_response: null; checkout_id: string; additional_transactions: any[]; checkout: ICheckout; }>",
|
|
328
328
|
"references": {
|
|
329
329
|
"ICheckoutCompleteResponse": {
|
|
330
330
|
"location": "import",
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { pagingDefaults } from "../../api";
|
|
3
|
+
import { onFilterChange } from "../../ui-components/filters/utils";
|
|
4
|
+
import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
5
|
+
import { defaultColumnsKeys, checkoutTableColumns, checkoutTableCells } from "./checkouts-table";
|
|
6
|
+
import { Table } from "../../utils/table";
|
|
7
|
+
export class CheckoutsListCore {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.handleClickPrevious = (beforeCursor) => {
|
|
10
|
+
const newParams = Object.assign({}, this.params);
|
|
11
|
+
delete newParams.after_cursor;
|
|
12
|
+
this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
|
|
13
|
+
};
|
|
14
|
+
this.handleClickNext = (afterCursor) => {
|
|
15
|
+
const newParams = Object.assign({}, this.params);
|
|
16
|
+
delete newParams.before_cursor;
|
|
17
|
+
this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
|
|
18
|
+
};
|
|
19
|
+
this.rowClickHandler = (e) => {
|
|
20
|
+
const clickedCheckoutID = e.target.closest('tr').dataset.rowEntityId;
|
|
21
|
+
if (!clickedCheckoutID)
|
|
22
|
+
return;
|
|
23
|
+
this.rowClicked.emit(this.checkouts.find((checkout) => checkout.id === clickedCheckoutID));
|
|
24
|
+
};
|
|
25
|
+
this.setParamsOnChange = (name, value) => {
|
|
26
|
+
let newParams = { [name]: value };
|
|
27
|
+
this.params = onFilterChange(newParams, this.params);
|
|
28
|
+
};
|
|
29
|
+
this.clearParams = () => {
|
|
30
|
+
this.errorMessage = '';
|
|
31
|
+
this.params = {};
|
|
32
|
+
};
|
|
33
|
+
this.getCheckouts = undefined;
|
|
34
|
+
this.getSubAccounts = undefined;
|
|
35
|
+
this.columns = defaultColumnsKeys;
|
|
36
|
+
this.checkouts = [];
|
|
37
|
+
this.checkoutsTable = new Table([], this.columns, checkoutTableColumns, checkoutTableCells);
|
|
38
|
+
this.subAccounts = [];
|
|
39
|
+
this.loading = true;
|
|
40
|
+
this.errorMessage = undefined;
|
|
41
|
+
this.paging = pagingDefaults;
|
|
42
|
+
this.params = {};
|
|
43
|
+
}
|
|
44
|
+
updateOnPropChange() {
|
|
45
|
+
this.fetchCheckouts();
|
|
46
|
+
}
|
|
47
|
+
componentWillLoad() {
|
|
48
|
+
if (this.getCheckouts && this.getSubAccounts) {
|
|
49
|
+
this.fetchCheckouts();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
fetchCheckouts() {
|
|
53
|
+
this.loading = true;
|
|
54
|
+
this.getCheckouts({
|
|
55
|
+
params: this.params,
|
|
56
|
+
onSuccess: async ({ checkouts, pagingInfo }) => {
|
|
57
|
+
this.checkouts = checkouts;
|
|
58
|
+
this.paging = pagingInfo;
|
|
59
|
+
this.checkoutsTable = new Table(this.checkouts, this.columns, checkoutTableColumns, checkoutTableCells);
|
|
60
|
+
const shouldFetchSubAccounts = this.checkoutsTable.columnKeys.includes('sub_account_name');
|
|
61
|
+
if (shouldFetchSubAccounts) {
|
|
62
|
+
await this.fetchSubAccounts();
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this.loading = false;
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
onError: ({ error, code, severity }) => {
|
|
69
|
+
this.errorMessage = error;
|
|
70
|
+
this.errorEvent.emit({
|
|
71
|
+
errorCode: code,
|
|
72
|
+
message: error,
|
|
73
|
+
severity,
|
|
74
|
+
});
|
|
75
|
+
this.loading = false;
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
async fetchSubAccounts() {
|
|
80
|
+
this.getSubAccounts({
|
|
81
|
+
params: this.subAccountParams,
|
|
82
|
+
onSuccess: ({ subAccounts }) => {
|
|
83
|
+
this.subAccounts = subAccounts;
|
|
84
|
+
this.checkouts = this.checkouts.map((checkout) => {
|
|
85
|
+
var _a;
|
|
86
|
+
checkout.sub_account_name = (_a = this.subAccounts.find((subAccount) => subAccount.id === checkout.account_id)) === null || _a === void 0 ? void 0 : _a.name;
|
|
87
|
+
return checkout;
|
|
88
|
+
});
|
|
89
|
+
this.loading = false;
|
|
90
|
+
},
|
|
91
|
+
onError: ({ error, code, severity }) => {
|
|
92
|
+
this.errorMessage = error;
|
|
93
|
+
this.errorEvent.emit({
|
|
94
|
+
errorCode: code,
|
|
95
|
+
message: error,
|
|
96
|
+
severity,
|
|
97
|
+
});
|
|
98
|
+
this.loading = false;
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
get subAccountParams() {
|
|
103
|
+
let accountIdNumbers = this.checkouts.map((checkout) => checkout.account_id);
|
|
104
|
+
let uniqueAccountIds = [...new Set(accountIdNumbers)];
|
|
105
|
+
let accountIdString = uniqueAccountIds.join(',');
|
|
106
|
+
return { sub_account_id: accountIdString };
|
|
107
|
+
}
|
|
108
|
+
get entityId() {
|
|
109
|
+
return this.checkouts.map((checkout) => checkout.id);
|
|
110
|
+
}
|
|
111
|
+
get showEmptyState() {
|
|
112
|
+
return !this.loading && !this.errorMessage && this.checkoutsTable.rowData.length < 1;
|
|
113
|
+
}
|
|
114
|
+
get showErrorState() {
|
|
115
|
+
return !this.loading && !!this.errorMessage;
|
|
116
|
+
}
|
|
117
|
+
get showRowData() {
|
|
118
|
+
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
119
|
+
}
|
|
120
|
+
render() {
|
|
121
|
+
return (h("div", { key: '2734f704620a60a5bedc46e3e41ab758af3fcb33' }, h("checkouts-list-filters", { key: '88ec654a9e15b976c47baee51ebed8c4bd8f11d7', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '929ce2e4dbee2b6aad94705b90b33527ef88f324', class: "table-wrapper" }, h("table", { key: '734d75f3f6d0189ce21560a89e9bc28628188798', class: "table table-hover" }, h("thead", { key: '6b1bba45aaa29b741cf3422902bf1d63cb89fe9a', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '54f3e19d0d8b1414e9c0df4a6b9cd59516eb0e2e', class: "table-light text-nowrap", part: "table-head-row" }, this.checkoutsTable.columnData.map((column) => column))), h("tbody", { key: '7454d36c6595e8341c0405833a919c56cd09fa3d', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'b6fc81a9293727005f0a13afbf518e57efeb8469', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ce449e05b1c0643f8a2157f44f2f2af16ee08f8c', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '89d0b6d1c4eb966fe0195cfe6e854a7cca10c7ed', 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, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: 'ac6bb6d3cf02abc3f386a7d6bf92927f4a0ad244', class: "sticky-bottom" }, h("tr", { key: '352544ebda3e9a899fcb640b350fd60c55b97d17', class: "table-light align-middle" }, h("td", { key: '2dfc279e5e94bb1c0ea75670eb6584ff39a98f4a', part: "pagination-bar", colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'a8ba0fd21c0dd9be75662b62db78980a74d5fbc6', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
122
|
+
}
|
|
123
|
+
static get is() { return "checkouts-list-core"; }
|
|
124
|
+
static get properties() {
|
|
125
|
+
return {
|
|
126
|
+
"getCheckouts": {
|
|
127
|
+
"type": "unknown",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "Function",
|
|
131
|
+
"resolved": "Function",
|
|
132
|
+
"references": {
|
|
133
|
+
"Function": {
|
|
134
|
+
"location": "global",
|
|
135
|
+
"id": "global::Function"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": false,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": ""
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"getSubAccounts": {
|
|
147
|
+
"type": "unknown",
|
|
148
|
+
"mutable": false,
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "Function",
|
|
151
|
+
"resolved": "Function",
|
|
152
|
+
"references": {
|
|
153
|
+
"Function": {
|
|
154
|
+
"location": "global",
|
|
155
|
+
"id": "global::Function"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"required": false,
|
|
160
|
+
"optional": false,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [],
|
|
163
|
+
"text": ""
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"columns": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "string",
|
|
171
|
+
"resolved": "string",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": ""
|
|
179
|
+
},
|
|
180
|
+
"attribute": "columns",
|
|
181
|
+
"reflect": false,
|
|
182
|
+
"defaultValue": "defaultColumnsKeys"
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
static get states() {
|
|
187
|
+
return {
|
|
188
|
+
"checkouts": {},
|
|
189
|
+
"checkoutsTable": {},
|
|
190
|
+
"subAccounts": {},
|
|
191
|
+
"loading": {},
|
|
192
|
+
"errorMessage": {},
|
|
193
|
+
"paging": {},
|
|
194
|
+
"params": {}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
static get events() {
|
|
198
|
+
return [{
|
|
199
|
+
"method": "rowClicked",
|
|
200
|
+
"name": "checkout-row-clicked",
|
|
201
|
+
"bubbles": true,
|
|
202
|
+
"cancelable": true,
|
|
203
|
+
"composed": true,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": ""
|
|
207
|
+
},
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "Checkout",
|
|
210
|
+
"resolved": "Checkout",
|
|
211
|
+
"references": {
|
|
212
|
+
"Checkout": {
|
|
213
|
+
"location": "import",
|
|
214
|
+
"path": "../../api",
|
|
215
|
+
"id": "src/api/index.ts::Checkout"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
"method": "errorEvent",
|
|
221
|
+
"name": "error-event",
|
|
222
|
+
"bubbles": true,
|
|
223
|
+
"cancelable": true,
|
|
224
|
+
"composed": true,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": ""
|
|
228
|
+
},
|
|
229
|
+
"complexType": {
|
|
230
|
+
"original": "ComponentError",
|
|
231
|
+
"resolved": "ComponentError",
|
|
232
|
+
"references": {
|
|
233
|
+
"ComponentError": {
|
|
234
|
+
"location": "import",
|
|
235
|
+
"path": "../../api/ComponentError",
|
|
236
|
+
"id": "src/api/ComponentError.ts::ComponentError"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}];
|
|
241
|
+
}
|
|
242
|
+
static get watchers() {
|
|
243
|
+
return [{
|
|
244
|
+
"propName": "params",
|
|
245
|
+
"methodName": "updateOnPropChange"
|
|
246
|
+
}, {
|
|
247
|
+
"propName": "getCheckouts",
|
|
248
|
+
"methodName": "updateOnPropChange"
|
|
249
|
+
}, {
|
|
250
|
+
"propName": "getSubAccounts",
|
|
251
|
+
"methodName": "updateOnPropChange"
|
|
252
|
+
}, {
|
|
253
|
+
"propName": "columns",
|
|
254
|
+
"methodName": "updateOnPropChange"
|
|
255
|
+
}];
|
|
256
|
+
}
|
|
257
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class CheckoutsListFilters {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.params = {};
|
|
5
|
+
this.setParamsOnChange = undefined;
|
|
6
|
+
this.clearParams = undefined;
|
|
7
|
+
}
|
|
8
|
+
get checkoutStatusOptions() {
|
|
9
|
+
return [
|
|
10
|
+
{ label: 'All', value: '' },
|
|
11
|
+
{ label: 'Created', value: 'created' },
|
|
12
|
+
{ label: 'Completed', value: 'completed' },
|
|
13
|
+
{ label: 'Attempted', value: 'attempted' },
|
|
14
|
+
{ label: 'Expired', value: 'expired' },
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
get checkoutPaymentModeOptions() {
|
|
18
|
+
return [
|
|
19
|
+
{ label: 'All', value: '' },
|
|
20
|
+
{ label: 'E-commerce', value: 'ecom' },
|
|
21
|
+
{ label: 'BNPL', value: 'bnpl' },
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (h("table-filters-menu", { key: '9bbefced0a75175612e10d18a2399c2fba54a541', params: this.params, clearParams: this.clearParams }, h("div", { key: 'c9788ad56827b8a3d4452da28678d56b0b7db11c', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '4f4eefcdecb67f6fa58f7daa5044bae0e0df5f6c', class: "p-2" }, h("form-control-select", { key: 'cb3d3801b90102e330a96a0454074b5374f15326', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.status || '' })), h("div", { key: 'b43631eb9021c8d496551d359440696686a3a50b', class: "p-2" }, h("form-control-select", { key: '7f2a33df18fb3d48dba2ad726a96d9107cca2bf3', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.payment_mode || '' })))));
|
|
26
|
+
}
|
|
27
|
+
static get is() { return "checkouts-list-filters"; }
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"params": {
|
|
31
|
+
"type": "unknown",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "ICheckoutsParams",
|
|
35
|
+
"resolved": "ICheckoutsParams",
|
|
36
|
+
"references": {
|
|
37
|
+
"ICheckoutsParams": {
|
|
38
|
+
"location": "import",
|
|
39
|
+
"path": "../../api",
|
|
40
|
+
"id": "src/api/index.ts::ICheckoutsParams"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"defaultValue": "{}"
|
|
51
|
+
},
|
|
52
|
+
"setParamsOnChange": {
|
|
53
|
+
"type": "unknown",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "(name: string, value: string) => void",
|
|
57
|
+
"resolved": "(name: string, value: string) => void",
|
|
58
|
+
"references": {}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": ""
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"clearParams": {
|
|
68
|
+
"type": "unknown",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "() => void",
|
|
72
|
+
"resolved": "() => void",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|