@justifi/webcomponents 6.1.0-rc.3 → 6.1.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/LICENSE +21 -0
- package/dist/cjs/{Api-DqzbA2qk.js → Api-CjtvTD2_.js} +2 -2
- package/dist/cjs/{Business-DWHy_-z9.js → Business-DCRzZf0w.js} +9 -299
- package/dist/cjs/{Refund-BPSBtjQC.js → Refund-BnhHNKLz.js} +4 -3
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -13
- package/dist/cjs/{badge-BJVdpSU-.js → badge-CE3ss_OU.js} +2 -2
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +112 -0
- package/dist/cjs/bank-account-form.cjs.entry.js +8 -8
- package/dist/cjs/{business-additional-questions-schema-CetDMUp7.js → business-additional-questions-schema-b8P-0T0O.js} +4 -26
- package/dist/cjs/business-details-core.cjs.entry.js +5 -5
- package/dist/cjs/{business-form-options-e9UFw4P-.js → business-form-options-CMII7nIK.js} +1 -1
- package/dist/cjs/business-identity-schema-aFUle0C9.js +51 -0
- package/dist/cjs/{business.service-Bv9o99Ll.js → business.service-Cj_NUZsr.js} +3 -3
- package/dist/cjs/{button-_YJuE8cy.js → button-gPNZ9XRn.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +8 -8
- package/dist/cjs/{check-pkg-version-CadxBsjl.js → check-pkg-version-C7b-OLb5.js} +4 -4
- package/dist/cjs/{checkout.service-dLB93w3Z.js → checkout.service-Bc8L9ixO.js} +3 -3
- package/dist/cjs/{checkout.store-DC4yVxDj.js → checkout.store-Bswr7kNY.js} +5 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +15 -13
- package/dist/cjs/{terminal-orders-list-params-state-ARjo40Y9.js → checkouts-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{checkouts-table-C102WCfy.js → checkouts-table-C5AHeIr0.js} +4 -4
- package/dist/cjs/{config-state-BeZM7X7J.js → config-state-C7babhLh.js} +1 -1
- package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_2.cjs.entry.js} +23 -3
- package/dist/cjs/{dispute.service-BmAAnNky.js → dispute.service-DhO_tuDc.js} +3 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +17 -27
- package/dist/cjs/form-control-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/form-control-date.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-error-text-DJzNQrEz.js → form-control-error-text-BnMWn8U_.js} +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +6 -6
- package/dist/cjs/{form-control-help-text-DII6UDeq.js → form-control-help-text-DEi5vSjN.js} +2 -2
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +7 -7
- package/dist/cjs/form-control-monetary.cjs.entry.js +7 -7
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +107 -0
- package/dist/cjs/form-control-number.cjs.entry.js +6 -6
- package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-select_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +7 -26
- package/dist/cjs/{form-input-masks-BnNFJ3IJ.js → form-input-masks-DgXd0f4V.js} +4 -9
- package/dist/cjs/{get-business-D9ZHyPem.js → get-business-o5jPq_ME.js} +1 -1
- package/dist/cjs/{get-payment-details-BHPHzSkH.js → get-payment-details-BinT-ZEP.js} +3 -3
- package/dist/cjs/{get-subaccounts-Bw76aYu0.js → get-subaccounts-BoTVdl7v.js} +4 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +26 -17
- package/dist/cjs/{header-1-Da7oKhXY.js → header-1-D3r87SC6.js} +2 -2
- package/dist/cjs/{header-3-uBM_CzcP.js → header-3-BFQJJgBb.js} +2 -2
- package/dist/cjs/helpers-B5OCqlIM.js +35 -0
- package/dist/cjs/hidden-input_2.cjs.entry.js +9 -9
- package/dist/cjs/{index-CaAefsWD.js → index-Bhtk1qkX.js} +5 -2
- package/dist/cjs/{index-D-CfIyoF.js → index-CWM5ions.js} +1 -1
- package/dist/cjs/{input-handlers-D6QMwPTB.js → input-handlers-DYl_0IwC.js} +2 -2
- package/dist/cjs/{insurance-state-KJzYGtVr.js → insurance-state-JbqYvJN3.js} +3 -3
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +72 -129
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +26 -25
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
- package/dist/cjs/{justifi-checkout-summary_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +898 -25
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +32 -31
- package/dist/cjs/justifi-business-details.cjs.entry.js +15 -13
- package/dist/cjs/justifi-business-form.cjs.entry.js +23 -27
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +8 -16
- package/dist/cjs/justifi-checkout.cjs.entry.js +16 -14
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +12 -10
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +18 -16
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -11
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -17
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +13 -11
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +18 -16
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +21 -30
- package/dist/cjs/justifi-payment-details.cjs.entry.js +23 -14
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +25 -40
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +13 -11
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +17 -15
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -16
- package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -13
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +17 -15
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -17
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -15
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +16 -14
- package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +13 -11
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +16 -14
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +14 -11
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +18 -16
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-CVxkAS_m.js → package-BHmdO9eK.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +5 -5
- package/dist/cjs/{parts-9jMf1erK.js → parts-Pb06tUMp.js} +2 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +34 -16
- package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
- package/dist/cjs/{payment.service-DODmonNs.js → payment.service-C9thkR4g.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +16 -14
- package/dist/cjs/{payments-list-params-state-ARjo40Y9.js → payments-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{payments-status-5IzqwLep.js → payments-status-CnNXcRLO.js} +21 -3
- package/dist/cjs/{payments-table-BcZ6U6p8.js → payments-table-BGuCOPTJ.js} +4 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +25 -12
- package/dist/cjs/{payout.service-Do8DxBxe.js → payout.service-CGZxpQMq.js} +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +16 -14
- package/dist/cjs/{checkouts-list-params-state-ARjo40Y9.js → payouts-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{payouts-status-D38A6UrI.js → payouts-status-2na6MMgV.js} +2 -2
- package/dist/cjs/{payouts-table-Cn_cCCOY.js → payouts-table-DXekpbYc.js} +4 -4
- package/dist/cjs/{schema-validations-0mjPveQ0.js → schema-validations-Bj7eYNO8.js} +6 -45
- package/dist/cjs/{skeleton-DlPP4i_w.js → skeleton-BvdAh448.js} +2 -2
- package/dist/cjs/{spinner-BNWG01hP.js → spinner-Rt52JMa2.js} +2 -2
- package/dist/cjs/state-options-CIT9xdTz.js +246 -0
- package/dist/cjs/{styled-host-DSpt9LtB.js → styled-host-BSooSIhA.js} +1 -1
- package/dist/cjs/{table-CAWBqvW5.js → table-Ccg4k90C.js} +3 -3
- package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +15 -13
- package/dist/cjs/{payouts-list-params-state-ARjo40Y9.js → terminal-orders-list-params-state-BYpq-c6X.js} +1 -1
- package/dist/cjs/{terminal-orders-table-BUA4LcEc.js → terminal-orders-table-7ew1vCKk.js} +7 -7
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +3 -3
- package/dist/cjs/{terminal.service-bxQnc1JY.js → terminal.service-BkKxH-k4.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +15 -13
- package/dist/cjs/terminals-list-params-state-BYpq-c6X.js +22 -0
- package/dist/cjs/{terminals-table-C2_M7SWl.js → terminals-table-ByYs-pH7.js} +9 -4
- package/dist/cjs/{utils-ChCUZgUy.js → utils-Bab-tddY.js} +4 -0
- package/dist/cjs/{utils-C6mfHWv-.js → utils-CUcA4G_O.js} +5 -5
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/BankAccount.js +0 -4
- package/dist/collection/api/Business.js +1 -16
- package/dist/collection/api/Terminal.js +1 -0
- package/dist/collection/api/services/apple-pay.service.js +3 -0
- package/dist/collection/collection-manifest.json +3 -6
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js +9 -8
- 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 +6 -7
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -36
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -6
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +9 -46
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +10 -32
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +6 -26
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +3 -29
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +6 -48
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +5 -36
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +7 -47
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -43
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +4 -33
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +10 -35
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -26
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +20 -39
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -34
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +19 -41
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +39 -74
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +4 -27
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +4 -7
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +24 -53
- package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -41
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +3 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- 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 +1 -1
- 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/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +10 -8
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +49 -2
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +19 -9
- package/dist/collection/components/payment-details/payment-details.js +28 -1
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payments-list/payments-status.js +19 -1
- package/dist/collection/components/payout-details/payout-details-core.js +57 -4
- package/dist/collection/components/payout-details/payout-details.js +22 -1
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +4 -3
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-status.js +5 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +4 -3
- package/dist/collection/store/checkout.store.js +4 -0
- package/dist/collection/styles/parts.js +1 -1
- package/dist/collection/ui-components/apple-pay-button.js +6 -8
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/details/utils.js +4 -4
- 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 +3 -3
- package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/collection/utils/form-input-masks.js +0 -8
- package/dist/collection/utils/utils.js +4 -0
- package/dist/docs.json +330 -1140
- package/dist/esm/{Api-DLf3ihCB.js → Api-DhiA2e_P.js} +2 -2
- package/dist/esm/{Business-B5rtFhtR.js → Business-BCoP0TAV.js} +3 -290
- package/dist/esm/{Refund-BeI1WGfx.js → Refund-B-iOTRxz.js} +3 -2
- package/dist/esm/additional-questions-details_5.entry.js +14 -13
- package/dist/esm/{badge-CkfrkCoy.js → badge-CtdO-tEY.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +107 -0
- package/dist/esm/bank-account-form.entry.js +8 -8
- package/dist/esm/{business-additional-questions-schema-DSvdNuI1.js → business-additional-questions-schema-9FAJSx_D.js} +5 -26
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business-form-options-D6s5H4RI.js → business-form-options-CgssATyg.js} +2 -2
- package/dist/esm/business-identity-schema-CDJzknbg.js +48 -0
- package/dist/esm/{business.service-BIALik8Z.js → business.service-D55OVyco.js} +3 -3
- package/dist/esm/{button-CuZAKl_x.js → button-DtTaQHMK.js} +2 -2
- package/dist/esm/card-form.entry.js +8 -8
- package/dist/esm/{check-pkg-version-Bk5bgulF.js → check-pkg-version-xM0uWxbL.js} +4 -4
- package/dist/esm/{checkout.service-DZDZBIGQ.js → checkout.service-fwbqSq8g.js} +3 -3
- package/dist/esm/{checkout.store-DwJGKabu.js → checkout.store-4nUf2OuT.js} +5 -1
- package/dist/esm/checkouts-list-core.entry.js +15 -13
- package/dist/esm/{checkouts-list-params-state-BY5996_y.js → checkouts-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{checkouts-table-59DpP7zM.js → checkouts-table-B6gGDtOr.js} +4 -4
- package/dist/esm/{config-state-C83RkI9h.js → config-state-DiHV-4QK.js} +1 -1
- package/dist/esm/{custom-popper.entry.js → custom-popper_2.entry.js} +23 -4
- package/dist/esm/{dispute.service-ByJy64X7.js → dispute.service-Cdq3_yRo.js} +3 -3
- package/dist/esm/form-alert_5.entry.js +16 -26
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-CjrxZorl.js → form-control-error-text-bprS-t9d.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-CMUgRhUf.js → form-control-help-text-Bvnp-IAG.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
- package/dist/esm/form-control-monetary.entry.js +7 -7
- package/dist/esm/form-control-number-masked_2.entry.js +104 -0
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/{form-control-select_3.entry.js → form-control-select_2.entry.js} +8 -26
- package/dist/esm/{form-input-masks-CVaOFfrI.js → form-input-masks-B-iV5cYd.js} +3 -9
- package/dist/esm/{get-business-Xt7B5dSo.js → get-business-Crb6P-iI.js} +1 -1
- package/dist/esm/{get-payment-details-B00HoaFm.js → get-payment-details-sGoWyAat.js} +3 -3
- package/dist/esm/{get-subaccounts-C_yzcZq_.js → get-subaccounts-BsJSlShO.js} +4 -4
- package/dist/esm/gross-payment-chart-core.entry.js +26 -17
- package/dist/esm/{header-1-BukynbFR.js → header-1-C1Hnxki8.js} +2 -2
- package/dist/esm/{header-3-D87MAyMK.js → header-3-Bq8fpjm-.js} +2 -2
- package/dist/esm/helpers-Mu7LQT-w.js +29 -0
- package/dist/esm/hidden-input_2.entry.js +9 -9
- package/dist/esm/{index-NOsb-hYl.js → index-DJ9G-4S-.js} +1 -1
- package/dist/esm/{index-_b8l4IX7.js → index-DOjVAAtq.js} +5 -2
- package/dist/esm/{input-handlers-D3y0TzH9.js → input-handlers-CX6mSvOM.js} +1 -1
- package/dist/esm/{insurance-state-BjY1QRXI.js → insurance-state-CVme82j7.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +73 -130
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +26 -25
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/{justifi-checkout-summary_7.entry.js → justifi-apple-pay_8.entry.js} +898 -26
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +31 -30
- package/dist/esm/justifi-business-details.entry.js +15 -13
- package/dist/esm/justifi-business-form.entry.js +23 -27
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +8 -16
- package/dist/esm/justifi-checkout.entry.js +16 -14
- package/dist/esm/justifi-checkouts-list-filters.entry.js +12 -10
- package/dist/esm/justifi-checkouts-list.entry.js +18 -16
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +13 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +19 -17
- package/dist/esm/justifi-gross-payment-chart.entry.js +13 -11
- package/dist/esm/justifi-order-terminals.entry.js +18 -16
- package/dist/esm/justifi-owner-form_3.entry.js +21 -30
- package/dist/esm/justifi-payment-details.entry.js +23 -14
- package/dist/esm/justifi-payment-provisioning-core.entry.js +25 -40
- package/dist/esm/justifi-payment-provisioning.entry.js +13 -11
- package/dist/esm/justifi-payment-transactions-list.entry.js +17 -15
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +18 -16
- package/dist/esm/justifi-payout-details.entry.js +16 -13
- package/dist/esm/justifi-payout-transactions-list.entry.js +17 -15
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +19 -17
- package/dist/esm/justifi-refund-payment.entry.js +17 -15
- package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -14
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +13 -11
- package/dist/esm/justifi-terminal-orders-list.entry.js +16 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +14 -11
- package/dist/esm/justifi-terminals-list.entry.js +18 -16
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-BRhnhmpB.js → package-DL-q4EcN.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +5 -5
- package/dist/esm/{parts-CA_TyBed.js → parts-xDbRW9xn.js} +2 -1
- package/dist/esm/payment-details-core.entry.js +34 -16
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/{payment.service-B_NytmNz.js → payment.service-BoQ1MW1k.js} +3 -3
- package/dist/esm/payments-list-core.entry.js +16 -14
- package/dist/esm/{payments-list-params-state-BY5996_y.js → payments-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{payments-status-BWv1l1-e.js → payments-status-cvtVmtY5.js} +22 -4
- package/dist/esm/{payments-table-BSk36N1O.js → payments-table-D_BlyU1F.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +25 -12
- package/dist/esm/{payout.service-BJQVlc_Z.js → payout.service-xcBdom3q.js} +3 -3
- package/dist/esm/payouts-list-core.entry.js +16 -14
- package/dist/esm/{payouts-list-params-state-BY5996_y.js → payouts-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{payouts-status-BujJlH_r.js → payouts-status-D-vjrqBb.js} +2 -2
- package/dist/esm/{payouts-table-5N7OylTW.js → payouts-table-Clj8YGLV.js} +4 -4
- package/dist/esm/{schema-validations-BFoU1cR8.js → schema-validations-B9dmY7ME.js} +6 -41
- package/dist/esm/{skeleton-C161KeYG.js → skeleton-B8EUwt4b.js} +2 -2
- package/dist/esm/{spinner-UiInIFXW.js → spinner-CYXkn1fh.js} +2 -2
- package/dist/esm/state-options-BX8GieXu.js +244 -0
- package/dist/esm/{styled-host-hSGxxyFZ.js → styled-host-OalOsPBp.js} +1 -1
- package/dist/esm/{table-9ewYPAZH.js → table-Bj20uWfu.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +15 -13
- package/dist/esm/{terminal-orders-list-params-state-BY5996_y.js → terminal-orders-list-params-state-C_fug9R3.js} +1 -1
- package/dist/esm/{terminal-orders-table-BcziGGSF.js → terminal-orders-table-DzBpIW8i.js} +7 -7
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-B9MOFa2c.js → terminal.service-l6zTIPZ3.js} +3 -3
- package/dist/esm/terminals-list-core.entry.js +15 -13
- package/dist/esm/terminals-list-params-state-C_fug9R3.js +16 -0
- package/dist/esm/{terminals-table-BoFlvdHS.js → terminals-table-BMS5tazC.js} +9 -4
- package/dist/esm/{utils-DeZftIgK.js → utils-BOijEGPV.js} +4 -1
- package/dist/esm/{utils-fntGABrK.js → utils-DRwofES0.js} +5 -5
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/Business.js +3 -290
- package/dist/module/Refund.js +2 -1
- package/dist/module/additional-questions-details2.js +1 -1
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +1 -1
- package/dist/{esm/justifi-apple-pay.entry.js → module/apple-pay.js} +73 -31
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-billing-form-simple.js +2 -2
- package/dist/module/bank-account-document-inputs.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +2 -9
- package/dist/module/bank-account-form.js +3 -3
- package/dist/module/bank-account.js +2 -2
- package/dist/module/billing-form-full.js +2 -2
- package/dist/module/billing-form.js +3 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-address-schema.js +20 -40
- package/dist/module/business-bank-account-form-step-core.js +49 -102
- package/dist/module/business-bank-account-form-step.js +5 -18
- package/dist/module/business-core-info-form-step-core.js +7 -22
- package/dist/module/business-core-info-form-step.js +1 -2
- package/dist/module/business-core-info-schema.js +5 -26
- package/dist/module/business-core-info.js +4 -12
- package/dist/module/business-documents-on-file2.js +1 -1
- package/dist/module/business-identity-schema.js +25 -52
- package/dist/module/business-owners-form-step-core.js +13 -20
- package/dist/module/business-owners-form-step.js +15 -22
- package/dist/module/business-representative-form-inputs.js +17 -34
- package/dist/module/business-representative-form-step-core.js +18 -29
- package/dist/module/business-representative-form-step.js +17 -24
- package/dist/module/business-representative.js +19 -37
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-billing-form-simple.js +2 -2
- package/dist/module/card-form.js +3 -3
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +4 -0
- package/dist/module/checkouts-list-core2.js +2 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +3 -3
- package/dist/module/form-control-date2.js +3 -3
- package/dist/module/form-control-error-text.js +1 -1
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +3 -3
- package/dist/module/form-control-monetary-provisioning2.js +3 -3
- package/dist/module/form-control-monetary2.js +3 -3
- package/dist/module/form-control-number-masked2.js +3 -3
- package/dist/module/form-control-number.js +3 -3
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +3 -3
- package/dist/module/form-control-text2.js +3 -3
- package/dist/module/form-control-textarea2.js +3 -3
- package/dist/module/form-control-tooltip2.js +1 -1
- package/dist/module/form-input-masks.js +3 -9
- package/dist/module/get-business.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +22 -13
- package/dist/module/header-3.js +1 -1
- package/dist/module/helpers.js +29 -0
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/identity-address-form.js +14 -16
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/input-handlers.js +1 -1
- package/dist/module/justifi-apple-pay.js +1 -904
- package/dist/module/justifi-business-form.js +29 -41
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +27 -21
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +5 -5
- package/dist/module/justifi-payment-details.js +8 -1
- package/dist/module/justifi-payment-provisioning.js +49 -67
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +4 -2
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -2
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +5 -4
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/legal-address-form-step-core.js +19 -26
- package/dist/module/legal-address-form-step.js +9 -16
- package/dist/module/legal-address-form.js +15 -18
- package/dist/module/modular-checkout.js +7 -6
- package/dist/module/owner-details2.js +8 -7
- package/dist/module/owner-form-core2.js +16 -24
- package/dist/module/owner-form-inputs2.js +15 -34
- package/dist/module/owner-form.js +13 -20
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -4
- package/dist/module/parts.js +2 -1
- package/dist/module/payment-details-core2.js +22 -9
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-core.js +69 -104
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +54 -75
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payments-status.js +20 -2
- package/dist/module/payout-details-core2.js +18 -4
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/representative-details2.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/schema-validations.js +6 -41
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/state-options.js +244 -0
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +3 -3
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminals-list-core2.js +8 -3
- package/dist/module/tokenize-payment-method.js +1 -1
- package/dist/module/utils.js +4 -4
- package/dist/module/utils2.js +4 -1
- package/dist/types/api/BankAccount.d.ts +0 -6
- package/dist/types/api/Business.d.ts +0 -9
- package/dist/types/api/Checkout.d.ts +2 -0
- package/dist/types/api/ComponentEvents.d.ts +4 -0
- package/dist/types/api/Terminal.d.ts +2 -1
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +0 -3
- package/dist/types/components/business-forms/business-form/business-form.d.ts +0 -2
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -4
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +0 -2
- package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +0 -2
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -2
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +0 -3
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +0 -5
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +0 -3
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +0 -3
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -4
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -2
- package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +2 -54
- package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +16 -14
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +3 -67
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +7 -165
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +2 -122
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -5
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +2 -0
- package/dist/types/components/payment-details/payment-details-core.d.ts +3 -1
- package/dist/types/components/payment-details/payment-details.d.ts +3 -1
- package/dist/types/components/payments-list/payments-status.d.ts +12 -0
- package/dist/types/components/payout-details/payout-details-core.d.ts +5 -1
- package/dist/types/components/payout-details/payout-details.d.ts +1 -0
- package/dist/types/components.d.ts +48 -121
- package/dist/types/stencil-public-runtime.d.ts +20 -10
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +1 -1
- package/dist/types/ui-components/details/utils.d.ts +3 -2
- package/dist/types/utils/form-input-masks.d.ts +0 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/p-0217783c.entry.js +20 -0
- package/dist/webcomponents/p-0256af65.entry.js +1 -0
- package/dist/webcomponents/p-0af5269e.entry.js +1 -0
- package/dist/webcomponents/p-0cac8468.entry.js +1 -0
- package/dist/webcomponents/{p-b59221a9.entry.js → p-0cf71cbd.entry.js} +1 -1
- package/dist/webcomponents/p-0eb69f41.entry.js +1 -0
- package/dist/webcomponents/p-0f47f052.entry.js +1 -0
- package/dist/webcomponents/p-0fgTPVV0.js +1 -0
- package/dist/webcomponents/{p-C77ElQ41.js → p-1ydcg9ti.js} +1 -1
- package/dist/webcomponents/p-28a3bf32.entry.js +1 -0
- package/dist/webcomponents/p-2b568e8e.entry.js +1 -0
- package/dist/webcomponents/p-2d300faa.entry.js +1 -0
- package/dist/webcomponents/{p-6ea75d39.entry.js → p-2f40f708.entry.js} +1 -1
- package/dist/webcomponents/p-30856338.entry.js +1 -0
- package/dist/webcomponents/p-328117e4.entry.js +1 -0
- package/dist/webcomponents/p-32978110.entry.js +1 -0
- package/dist/webcomponents/{p-c7390115.entry.js → p-37a93597.entry.js} +1 -1
- package/dist/webcomponents/p-47997bc2.entry.js +1 -0
- package/dist/webcomponents/p-50701f16.entry.js +1 -0
- package/dist/webcomponents/p-5235230f.entry.js +1 -0
- package/dist/webcomponents/p-526b7442.entry.js +1 -0
- package/dist/webcomponents/p-5aae36f3.entry.js +1 -0
- package/dist/webcomponents/p-5b5d7a8f.entry.js +1 -0
- package/dist/webcomponents/p-5bd3d86e.entry.js +1 -0
- package/dist/webcomponents/p-66db858a.entry.js +1 -0
- package/dist/webcomponents/p-720a2324.entry.js +1 -0
- package/dist/webcomponents/p-78cb62a8.entry.js +1 -0
- package/dist/webcomponents/p-7c8deca8.entry.js +1 -0
- package/dist/webcomponents/p-7dc9ef8a.entry.js +1 -0
- package/dist/webcomponents/p-84551ee4.entry.js +1 -0
- package/dist/webcomponents/p-854b3db0.entry.js +1 -0
- package/dist/webcomponents/p-85a2eac6.entry.js +1 -0
- package/dist/webcomponents/p-8663e8bd.entry.js +1 -0
- package/dist/webcomponents/p-89f6ad8f.entry.js +1 -0
- package/dist/webcomponents/p-8S_ROmnq.js +1 -0
- package/dist/webcomponents/p-8ca21fab.entry.js +1 -0
- package/dist/webcomponents/p-8cebc84b.entry.js +1 -0
- package/dist/webcomponents/p-8f8dfd4b.entry.js +1 -0
- package/dist/webcomponents/p-94237472.entry.js +1 -0
- package/dist/webcomponents/p-9ad7d724.entry.js +1 -0
- package/dist/webcomponents/p-B-iV5cYd.js +1 -0
- package/dist/webcomponents/p-B6IWa9Ph.js +1 -0
- package/dist/webcomponents/{p-BdREtifE.js → p-BBx_EQqR.js} +1 -1
- package/dist/webcomponents/p-BX8GieXu.js +1 -0
- package/dist/webcomponents/{p-xWrhxNNk.js → p-Bgnhf5c9.js} +1 -1
- package/dist/webcomponents/{p-DTwFW2k_.js → p-BhCH9S0e.js} +1 -1
- package/dist/webcomponents/p-BjNuRWXK.js +1 -0
- package/dist/webcomponents/p-BlJnA265.js +1 -0
- package/dist/webcomponents/p-BoQ6_4Ks.js +1 -0
- package/dist/webcomponents/{p-DWGKeoot.js → p-C0wTyoTh.js} +1 -1
- package/dist/webcomponents/p-C2JJBtMc.js +1 -0
- package/dist/webcomponents/{p-g2ubqhtv.js → p-C8k7a6D-.js} +1 -1
- package/dist/webcomponents/{p-BPDMo6us.js → p-C98BC5W5.js} +1 -1
- package/dist/webcomponents/p-C9EQ459H.js +1 -0
- package/dist/webcomponents/p-C9iide2W.js +1 -0
- package/dist/webcomponents/p-CCLgieAN.js +1 -0
- package/dist/webcomponents/p-CCmDcLao.js +1 -0
- package/dist/webcomponents/{p-qUCDGWNE.js → p-CEk3bv0x.js} +1 -1
- package/dist/webcomponents/p-CH8Y3GSr.js +1 -0
- package/dist/webcomponents/{p-D2hzOOMf.js → p-ClvhB3WW.js} +1 -1
- package/dist/webcomponents/{p-JSXyHheQ.js → p-CmBCj61h.js} +1 -1
- package/dist/webcomponents/p-D0Peuz-m.js +1 -0
- package/dist/webcomponents/{p-BaM0JBLn.js → p-D5Jb9OcR.js} +1 -1
- package/dist/webcomponents/p-D6BImiVi.js +1 -0
- package/dist/webcomponents/p-DGsXKF67.js +1 -0
- package/dist/webcomponents/p-DH8F0bsw.js +1 -0
- package/dist/webcomponents/p-DL-q4EcN.js +1 -0
- package/dist/webcomponents/{p-_b8l4IX7.js → p-DOjVAAtq.js} +2 -2
- package/dist/webcomponents/p-DQZ5VHTZ.js +1 -0
- package/dist/webcomponents/p-DWn9BiNn.js +1 -0
- package/dist/webcomponents/{p-hj8k0lRi.js → p-DdMxswn1.js} +1 -1
- package/dist/webcomponents/{p-M5r2kSbf.js → p-DdZLLkQ5.js} +1 -1
- package/dist/webcomponents/p-DfV3dFDB.js +1 -0
- package/dist/webcomponents/p-Dieke6TH.js +1 -0
- package/dist/webcomponents/p-Dt-vy9Le.js +1 -0
- package/dist/webcomponents/p-NAjz1Xfo.js +1 -0
- package/dist/webcomponents/p-NwmOm8Pg.js +1 -0
- package/dist/webcomponents/p-PSJOKMWp.js +1 -0
- package/dist/webcomponents/p-RQzxYnz_.js +1 -0
- package/dist/webcomponents/p-T2yENPvU.js +1 -0
- package/dist/webcomponents/{p-b46fe458.entry.js → p-a4846316.entry.js} +1 -1
- package/dist/webcomponents/p-a5c70eee.entry.js +1 -0
- package/dist/webcomponents/p-a6tcNl_T.js +1 -0
- package/dist/webcomponents/p-aa14cc74.entry.js +1 -0
- package/dist/webcomponents/p-ae7054bf.entry.js +1 -0
- package/dist/webcomponents/p-ae8ae5bb.entry.js +1 -0
- package/dist/webcomponents/{p-fVyCeQNq.js → p-au49QgoI.js} +1 -1
- package/dist/webcomponents/p-b095c781.entry.js +1 -0
- package/dist/webcomponents/p-b36adce3.entry.js +1 -0
- package/dist/webcomponents/{p-b17cb15d.entry.js → p-b608add9.entry.js} +1 -1
- package/dist/webcomponents/p-b612d870.entry.js +1 -0
- package/dist/webcomponents/p-baf0d3e7.entry.js +1 -0
- package/dist/webcomponents/p-bb53e2e9.entry.js +1 -0
- package/dist/webcomponents/p-be05d450.entry.js +1 -0
- package/dist/webcomponents/p-c089fb5f.entry.js +1 -0
- package/dist/webcomponents/p-ce652ff9.entry.js +1 -0
- package/dist/webcomponents/{p-c1f10a84.entry.js → p-cff5dd60.entry.js} +1 -1
- package/dist/webcomponents/p-d0a2035f.entry.js +1 -0
- package/dist/webcomponents/p-d1bceac6.entry.js +1 -0
- package/dist/webcomponents/p-d37d752e.entry.js +1 -0
- package/dist/webcomponents/p-d4476052.entry.js +1 -0
- package/dist/webcomponents/p-d7f91c48.entry.js +1 -0
- package/dist/webcomponents/p-d84f0122.entry.js +1 -0
- package/dist/webcomponents/p-e55a161f.entry.js +1 -0
- package/dist/webcomponents/p-e6be4e19.entry.js +1 -0
- package/dist/webcomponents/p-ec9514f8.entry.js +1 -0
- package/dist/webcomponents/p-f11a74c3.entry.js +1 -0
- package/dist/webcomponents/p-f705fc49.entry.js +1 -0
- package/dist/webcomponents/p-f930acaa.entry.js +1 -0
- package/dist/webcomponents/p-fe8c2243.entry.js +1 -0
- package/dist/webcomponents/p-fedfe376.entry.js +1 -0
- package/dist/webcomponents/p-ffefa09c.entry.js +1 -0
- package/dist/webcomponents/p-h5pyZngT.js +1 -0
- package/dist/webcomponents/p-hbWSMN3O.js +1 -0
- package/dist/webcomponents/p-lKnUT24T.js +1 -0
- package/dist/webcomponents/p-tYuXMkCd.js +1 -0
- package/dist/webcomponents/p-wQgEEOq_.js +1 -0
- package/dist/webcomponents/p-xDbRW9xn.js +1 -0
- package/dist/webcomponents/{p-CPpUGsw5.js → p-yH3TC3ZQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +13 -13
- package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +0 -132
- package/dist/cjs/business-identity-schema-Cd0tvfJr.js +0 -101
- package/dist/cjs/country-config-MCOhn8o3.js +0 -68
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +0 -119
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +0 -876
- package/dist/cjs/terminals-list-params-state-ARjo40Y9.js +0 -22
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +0 -88
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +0 -50
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +0 -101
- package/dist/collection/components/business-forms/payment-provisioning/test/mockBusiness.js +0 -52
- package/dist/collection/components/business-forms/utils/country-config.js +0 -47
- package/dist/collection/utils/country-codes.js +0 -5
- package/dist/collection/utils/province-options.js +0 -20
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +0 -125
- package/dist/esm/business-identity-schema-mN4VhA1v.js +0 -94
- package/dist/esm/country-config-BQ4D46Lb.js +0 -64
- package/dist/esm/form-control-number-masked_3.entry.js +0 -115
- package/dist/esm/terminals-list-params-state-BY5996_y.js +0 -16
- package/dist/module/bank-account-form-inputs-canada.d.ts +0 -11
- package/dist/module/bank-account-form-inputs-canada.js +0 -6
- package/dist/module/bank-account-form-inputs-canada2.js +0 -68
- package/dist/module/bank-account-read-only-value.d.ts +0 -11
- package/dist/module/bank-account-read-only-value.js +0 -6
- package/dist/module/bank-account-read-only-value2.js +0 -33
- package/dist/module/country-config.js +0 -64
- package/dist/module/form-address-fields.js +0 -65
- package/dist/module/justifi-form-address-fields.d.ts +0 -11
- package/dist/module/justifi-form-address-fields.js +0 -6
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +0 -7
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +0 -5
- package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +0 -8
- package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +0 -12
- package/dist/types/utils/country-codes.d.ts +0 -4
- package/dist/types/utils/province-options.d.ts +0 -5
- package/dist/webcomponents/p-0254c06c.entry.js +0 -1
- package/dist/webcomponents/p-047fe97f.entry.js +0 -1
- package/dist/webcomponents/p-04ca6ff0.entry.js +0 -1
- package/dist/webcomponents/p-09d53b03.entry.js +0 -1
- package/dist/webcomponents/p-0c5e2fed.entry.js +0 -1
- package/dist/webcomponents/p-0ea48603.entry.js +0 -1
- package/dist/webcomponents/p-17e9d5c0.entry.js +0 -1
- package/dist/webcomponents/p-1ab4d6aa.entry.js +0 -1
- package/dist/webcomponents/p-1cf42bc9.entry.js +0 -1
- package/dist/webcomponents/p-1e7f4b4f.entry.js +0 -1
- package/dist/webcomponents/p-22defde6.entry.js +0 -20
- package/dist/webcomponents/p-242208d9.entry.js +0 -1
- package/dist/webcomponents/p-31ac0c3d.entry.js +0 -1
- package/dist/webcomponents/p-36e21b78.entry.js +0 -1
- package/dist/webcomponents/p-3a77a97c.entry.js +0 -1
- package/dist/webcomponents/p-40938820.entry.js +0 -1
- package/dist/webcomponents/p-40dc0c3c.entry.js +0 -1
- package/dist/webcomponents/p-42763479.entry.js +0 -1
- package/dist/webcomponents/p-430203b0.entry.js +0 -1
- package/dist/webcomponents/p-46d2d042.entry.js +0 -1
- package/dist/webcomponents/p-485516a1.entry.js +0 -1
- package/dist/webcomponents/p-4fb58ee6.entry.js +0 -1
- package/dist/webcomponents/p-54995a3d.entry.js +0 -1
- package/dist/webcomponents/p-56617fdd.entry.js +0 -1
- package/dist/webcomponents/p-592a45f6.entry.js +0 -1
- package/dist/webcomponents/p-5a044ca5.entry.js +0 -1
- package/dist/webcomponents/p-5ec18584.entry.js +0 -1
- package/dist/webcomponents/p-6122dc79.entry.js +0 -1
- package/dist/webcomponents/p-62858ba5.entry.js +0 -1
- package/dist/webcomponents/p-62b5e6cf.entry.js +0 -1
- package/dist/webcomponents/p-67dab4d9.entry.js +0 -1
- package/dist/webcomponents/p-6b791b1d.entry.js +0 -1
- package/dist/webcomponents/p-6ebf8f11.entry.js +0 -1
- package/dist/webcomponents/p-6fdac295.entry.js +0 -1
- package/dist/webcomponents/p-724cf90f.entry.js +0 -1
- package/dist/webcomponents/p-7ecca5fe.entry.js +0 -1
- package/dist/webcomponents/p-7ecf9bd0.entry.js +0 -1
- package/dist/webcomponents/p-850dd606.entry.js +0 -1
- package/dist/webcomponents/p-85af9d78.entry.js +0 -1
- package/dist/webcomponents/p-931003fc.entry.js +0 -1
- package/dist/webcomponents/p-9367e7e6.entry.js +0 -1
- package/dist/webcomponents/p-9c114674.entry.js +0 -1
- package/dist/webcomponents/p-9c267692.entry.js +0 -1
- package/dist/webcomponents/p-B5rtFhtR.js +0 -1
- package/dist/webcomponents/p-BRhnhmpB.js +0 -1
- package/dist/webcomponents/p-BgFM_jvF.js +0 -1
- package/dist/webcomponents/p-BqbXuOZP.js +0 -1
- package/dist/webcomponents/p-BwpdCtUc.js +0 -1
- package/dist/webcomponents/p-C6g4MbnB.js +0 -1
- package/dist/webcomponents/p-CA_TyBed.js +0 -1
- package/dist/webcomponents/p-CE-MNrID.js +0 -1
- package/dist/webcomponents/p-CMpATPXy.js +0 -1
- package/dist/webcomponents/p-CQUZeo9r.js +0 -1
- package/dist/webcomponents/p-CSeo7WDO.js +0 -1
- package/dist/webcomponents/p-CTJ3moi4.js +0 -1
- package/dist/webcomponents/p-CVaOFfrI.js +0 -1
- package/dist/webcomponents/p-CYNcSTQA.js +0 -1
- package/dist/webcomponents/p-CevVA9qy.js +0 -1
- package/dist/webcomponents/p-CkiX8OGy.js +0 -1
- package/dist/webcomponents/p-CtWnJFtW.js +0 -1
- package/dist/webcomponents/p-CycBoHSW.js +0 -1
- package/dist/webcomponents/p-D-RVXHwG.js +0 -1
- package/dist/webcomponents/p-D1Na2I0C.js +0 -1
- package/dist/webcomponents/p-D5lmImiz.js +0 -1
- package/dist/webcomponents/p-DMf85Fkr.js +0 -1
- package/dist/webcomponents/p-DNPS-Ypi.js +0 -1
- package/dist/webcomponents/p-DQ5V5-Jy.js +0 -1
- package/dist/webcomponents/p-DapORSs4.js +0 -1
- package/dist/webcomponents/p-DcPNd9_D.js +0 -1
- package/dist/webcomponents/p-DfKxeSrC.js +0 -1
- package/dist/webcomponents/p-Dkujm7_O.js +0 -1
- package/dist/webcomponents/p-Dv1Fyrn3.js +0 -1
- package/dist/webcomponents/p-DxVCqvBt.js +0 -1
- package/dist/webcomponents/p-DzWLLt4t.js +0 -1
- package/dist/webcomponents/p-LO0pl3n2.js +0 -1
- package/dist/webcomponents/p-PdQT2QcR.js +0 -1
- package/dist/webcomponents/p-a2817869.entry.js +0 -1
- package/dist/webcomponents/p-a291a90c.entry.js +0 -1
- package/dist/webcomponents/p-b0bc03e6.entry.js +0 -1
- package/dist/webcomponents/p-c2cb70c8.entry.js +0 -1
- package/dist/webcomponents/p-c540fe9d.entry.js +0 -1
- package/dist/webcomponents/p-c6093716.entry.js +0 -1
- package/dist/webcomponents/p-c6e43493.entry.js +0 -1
- package/dist/webcomponents/p-c780cc91.entry.js +0 -1
- package/dist/webcomponents/p-c9598246.entry.js +0 -1
- package/dist/webcomponents/p-c972a599.entry.js +0 -1
- package/dist/webcomponents/p-cc1d8649.entry.js +0 -1
- package/dist/webcomponents/p-ce4895ca.entry.js +0 -1
- package/dist/webcomponents/p-ce67282b.entry.js +0 -1
- package/dist/webcomponents/p-cef5c6e9.entry.js +0 -1
- package/dist/webcomponents/p-d21fa0c9.entry.js +0 -1
- package/dist/webcomponents/p-d236f152.entry.js +0 -1
- package/dist/webcomponents/p-d6ac11fc.entry.js +0 -1
- package/dist/webcomponents/p-e55ce6ad.entry.js +0 -1
- package/dist/webcomponents/p-f02bd076.entry.js +0 -1
- package/dist/webcomponents/p-lPeK9y_X.js +0 -1
- package/dist/webcomponents/p-sCHf--Vc.js +0 -1
|
@@ -1,88 +1,53 @@
|
|
|
1
|
-
import { object, mixed
|
|
2
|
-
import { CountryCode } from "../../../utils/country-codes";
|
|
1
|
+
import { object, mixed } from "yup";
|
|
3
2
|
import { EntityDocumentType } from "../../../api/Document";
|
|
4
|
-
import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation
|
|
5
|
-
import { numbersOnlyRegex } from "./schema-helpers";
|
|
3
|
+
import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation } from "./schema-validations";
|
|
6
4
|
const checkExistingDocs = (documents, documentType) => {
|
|
7
5
|
return documents.some((doc) => doc.document_type === documentType);
|
|
8
6
|
};
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
account_type: accountTypeValidation.nullable(),
|
|
16
|
-
account_number: accountNumberValidation.nullable(),
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
7
|
+
const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
|
|
8
|
+
export const businessBankAccountSchema = (documents, allowOptionalFields) => {
|
|
9
|
+
const existingVoidedCheck = checkExistingDocs(documents, EntityDocumentType.voidedCheck);
|
|
10
|
+
const existingBankStatement = checkExistingDocs(documents, EntityDocumentType.bankStatement);
|
|
11
|
+
const existingDocument = existingVoidedCheck || existingBankStatement;
|
|
12
|
+
const schema = object().shape({
|
|
20
13
|
bank_name: bankNameValidation.required('Enter bank name'),
|
|
21
14
|
nickname: nicknameValidation.required('Enter nickname'),
|
|
22
15
|
account_owner_name: identityNameValidation.required('Enter account owner name'),
|
|
23
16
|
account_type: accountTypeValidation.required('Select account type'),
|
|
24
17
|
account_number: accountNumberValidation.required('Enter account number'),
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
const buildDocumentRules = (documents, allowOptionalFields) => {
|
|
28
|
-
if (allowOptionalFields) {
|
|
29
|
-
return {
|
|
30
|
-
voided_check: mixed().nullable(),
|
|
31
|
-
bank_statement: mixed().nullable(),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
const existingVoidedCheck = checkExistingDocs(documents, EntityDocumentType.voidedCheck);
|
|
35
|
-
const existingBankStatement = checkExistingDocs(documents, EntityDocumentType.bankStatement);
|
|
36
|
-
const existingDocument = existingVoidedCheck || existingBankStatement;
|
|
37
|
-
const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
|
|
38
|
-
return {
|
|
18
|
+
routing_number: routingNumberValidation.required('Enter routing number'),
|
|
39
19
|
voided_check: mixed().when('bank_statement', {
|
|
40
|
-
is: (val) =>
|
|
41
|
-
|
|
42
|
-
|
|
20
|
+
is: (val) => {
|
|
21
|
+
return !val && !existingDocument;
|
|
22
|
+
},
|
|
23
|
+
then: (schema) => {
|
|
24
|
+
return schema.required(documentErrorText);
|
|
25
|
+
},
|
|
26
|
+
otherwise: (schema) => {
|
|
27
|
+
return schema.notRequired();
|
|
28
|
+
}
|
|
43
29
|
}),
|
|
44
30
|
bank_statement: mixed().when('voided_check', {
|
|
45
|
-
is: (val) =>
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
is: (val) => {
|
|
32
|
+
return !val && !existingDocument;
|
|
33
|
+
},
|
|
34
|
+
then: (schema) => {
|
|
35
|
+
return schema.required(documentErrorText);
|
|
36
|
+
},
|
|
37
|
+
otherwise: (schema) => {
|
|
38
|
+
return schema.notRequired();
|
|
39
|
+
}
|
|
48
40
|
}),
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const transitNumberValidation = string()
|
|
62
|
-
.length(5, 'Transit number must be 5 digits')
|
|
63
|
-
.matches(numbersOnlyRegex, 'Enter valid transit number');
|
|
64
|
-
if (allowOptionalFields) {
|
|
65
|
-
return {
|
|
66
|
-
institution_number: institutionNumberValidation.nullable(),
|
|
67
|
-
transit_number: transitNumberValidation.nullable(),
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
institution_number: institutionNumberValidation.required('Enter institution number'),
|
|
72
|
-
transit_number: transitNumberValidation.required('Enter transit number'),
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export const businessBankAccountSchemaUSA = (documents, allowOptionalFields) => {
|
|
76
|
-
const shape = Object.assign(Object.assign(Object.assign({}, buildCommonFieldRules(allowOptionalFields)), buildUSARules(allowOptionalFields)), buildDocumentRules(documents, allowOptionalFields));
|
|
77
|
-
return object().shape(shape, [['voided_check', 'bank_statement']]);
|
|
78
|
-
};
|
|
79
|
-
export const businessBankAccountSchemaCAN = (documents, allowOptionalFields) => {
|
|
80
|
-
const shape = Object.assign(Object.assign(Object.assign({}, buildCommonFieldRules(allowOptionalFields)), buildCANRules(allowOptionalFields)), buildDocumentRules(documents, allowOptionalFields));
|
|
81
|
-
return object().shape(shape, [['voided_check', 'bank_statement']]);
|
|
82
|
-
};
|
|
83
|
-
// For backward compatibility, default to USA
|
|
84
|
-
export const businessBankAccountSchema = (documents, allowOptionalFields) => businessBankAccountSchemaUSA(documents, allowOptionalFields);
|
|
85
|
-
export const bankAccountSchemaByCountry = {
|
|
86
|
-
[CountryCode.USA]: (allowOptionalFields, documents = []) => businessBankAccountSchemaUSA(documents, allowOptionalFields),
|
|
87
|
-
[CountryCode.CAN]: (allowOptionalFields, documents = []) => businessBankAccountSchemaCAN(documents, allowOptionalFields),
|
|
41
|
+
}, [['voided_check', 'bank_statement']]);
|
|
42
|
+
const easySchema = object({
|
|
43
|
+
bank_name: bankNameValidation.nullable(),
|
|
44
|
+
nickname: nicknameValidation.nullable(),
|
|
45
|
+
account_owner_name: identityNameValidation.nullable(),
|
|
46
|
+
account_type: accountTypeValidation.nullable(),
|
|
47
|
+
account_number: accountNumberValidation.nullable(),
|
|
48
|
+
routing_number: routingNumberValidation.nullable(),
|
|
49
|
+
voided_check: mixed().nullable(),
|
|
50
|
+
bank_statement: mixed().nullable(),
|
|
51
|
+
});
|
|
52
|
+
return allowOptionalFields ? easySchema : schema;
|
|
88
53
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { object
|
|
2
|
-
import { doingBusinessAsValidation, emailValidation, industryValidation, businessNameValidation, phoneValidation, taxIdValidation, websiteUrlValidation, dateOfIncorporationValidation, businessClassificationValidation
|
|
3
|
-
|
|
4
|
-
import { countryLabels } from "../utils/country-config";
|
|
5
|
-
// Base schema (no country-specific rules for classification/tax id)
|
|
6
|
-
export const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
1
|
+
import { object } from "yup";
|
|
2
|
+
import { doingBusinessAsValidation, emailValidation, industryValidation, businessNameValidation, phoneValidation, taxIdValidation, websiteUrlValidation, dateOfIncorporationValidation, businessClassificationValidation } from "./schema-validations";
|
|
3
|
+
export const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
7
4
|
const schema = object({
|
|
8
5
|
legal_name: businessNameValidation.required('Enter legal name'),
|
|
9
6
|
website_url: websiteUrlValidation.required('Enter business website url'),
|
|
@@ -12,6 +9,7 @@ export const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
12
9
|
doing_business_as: doingBusinessAsValidation.nullable(),
|
|
13
10
|
classification: businessClassificationValidation.required('Select business classification'),
|
|
14
11
|
industry: industryValidation.required('Enter a business industry'),
|
|
12
|
+
tax_id: taxIdValidation.required('Enter valid tax ID (SSN or EIN) without dashes'),
|
|
15
13
|
date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
|
|
16
14
|
});
|
|
17
15
|
const easySchema = object({
|
|
@@ -27,24 +25,3 @@ export const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
27
25
|
});
|
|
28
26
|
return allowOptionalFields ? easySchema : schema;
|
|
29
27
|
};
|
|
30
|
-
// Country-specific schema convenience wrappers
|
|
31
|
-
export const businessCoreInfoSchemaUSA = (allowOptionalFields) => baseBusinessCoreInfoSchema(allowOptionalFields).concat(object({
|
|
32
|
-
classification: string().required('Select business classification'),
|
|
33
|
-
tax_id: makeTaxIdValidation(CountryCode.USA)
|
|
34
|
-
.when('tax_id_last4', {
|
|
35
|
-
is: (val) => !val,
|
|
36
|
-
then: (schema) => schema.required(`Enter valid ${countryLabels.USA.taxIdLabel} without dashes`),
|
|
37
|
-
otherwise: (schema) => schema.nullable(),
|
|
38
|
-
}),
|
|
39
|
-
}));
|
|
40
|
-
export const businessCoreInfoSchemaCAN = (allowOptionalFields) => baseBusinessCoreInfoSchema(allowOptionalFields).concat(object({
|
|
41
|
-
classification: string().required('Select business classification'),
|
|
42
|
-
tax_id: makeTaxIdValidation(CountryCode.CAN)
|
|
43
|
-
.when('tax_id_last4', {
|
|
44
|
-
is: (val) => !val,
|
|
45
|
-
then: (schema) => schema.required(`Enter valid ${countryLabels.CAN.taxIdLabel} without dashes`),
|
|
46
|
-
otherwise: (schema) => schema.nullable(),
|
|
47
|
-
}),
|
|
48
|
-
}));
|
|
49
|
-
// For backward compatibility, default to USA
|
|
50
|
-
export const businessCoreInfoSchema = (allowOptionalFields) => businessCoreInfoSchemaUSA(allowOptionalFields);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { object } from "yup";
|
|
2
|
-
import {
|
|
2
|
+
import { businessCoreInfoSchema } from "./business-core-info-schema";
|
|
3
3
|
import { additionalQuestionsSchema } from "./business-additional-questions-schema";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
export const
|
|
7
|
-
export const businessFormSchemaCAN = object(Object.assign(Object.assign({}, businessCoreInfoSchemaCAN().fields), { legal_address: addressSchemaCAN(), additional_questions: additionalQuestionsSchema(), representative: identitySchemaCAN('representative') }));
|
|
8
|
-
// For backward compatibility, default to USA
|
|
9
|
-
export const businessFormSchema = businessFormSchemaUSA;
|
|
4
|
+
import { identitySchema } from "./business-identity-schema";
|
|
5
|
+
import { addressSchema } from "./business-address-schema";
|
|
6
|
+
export const businessFormSchema = object(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|
|
@@ -1,55 +1,26 @@
|
|
|
1
1
|
import { object, string } from "yup";
|
|
2
|
-
import {
|
|
3
|
-
import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
27
|
-
// Internal CAN schemas
|
|
28
|
-
const schemaCAN = (role) => object({
|
|
29
|
-
name: identityNameValidation.required(`Enter ${role} name`),
|
|
30
|
-
title: identityTitleValidation.nullable(),
|
|
31
|
-
email: emailValidation.nullable(),
|
|
32
|
-
phone: phoneValidation.nullable(),
|
|
33
|
-
dob_full: dobValidation(role).nullable(),
|
|
34
|
-
identification_number: makeIdentityNumberValidation(CountryCode.CAN).nullable(),
|
|
35
|
-
address: addressSchemaCAN(true),
|
|
36
|
-
});
|
|
37
|
-
const strictSchemaCAN = (role) => object({
|
|
38
|
-
name: identityNameValidation.required(`Enter ${role} name`),
|
|
39
|
-
title: identityTitleValidation.required(`Enter ${role} title`),
|
|
40
|
-
email: emailValidation.required(`Enter ${role} email`),
|
|
41
|
-
phone: phoneValidation.required('Enter phone number'),
|
|
42
|
-
dob_full: dobValidation(role).required('Enter date of birth'),
|
|
43
|
-
identification_number: makeIdentityNumberValidation(CountryCode.CAN)
|
|
44
|
-
.required('Enter identification number'),
|
|
45
|
-
address: addressSchemaCAN(false),
|
|
46
|
-
});
|
|
47
|
-
export const identitySchemaUSA = (role, allowOptionalFields) => allowOptionalFields ? schemaUSA(role) : strictSchemaUSA(role);
|
|
48
|
-
export const identitySchemaCAN = (role, allowOptionalFields) => allowOptionalFields ? schemaCAN(role) : strictSchemaCAN(role);
|
|
49
|
-
// For backward compatibility, default to USA
|
|
50
|
-
export const identitySchema = (role, allowOptionalFields) => identitySchemaUSA(role, allowOptionalFields);
|
|
51
|
-
// Country-keyed mapping
|
|
52
|
-
export const identitySchemaByCountry = {
|
|
53
|
-
[CountryCode.USA]: identitySchemaUSA,
|
|
54
|
-
[CountryCode.CAN]: identitySchemaCAN,
|
|
2
|
+
import { addressSchema } from "./business-address-schema";
|
|
3
|
+
import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation } from "./schema-validations";
|
|
4
|
+
export const identitySchema = (role, allowOptionalFields) => {
|
|
5
|
+
const schema = object({
|
|
6
|
+
name: identityNameValidation.required(`Enter ${role} name`),
|
|
7
|
+
title: identityTitleValidation.required(`Enter ${role} title`),
|
|
8
|
+
email: emailValidation.required(`Enter ${role} email`),
|
|
9
|
+
phone: phoneValidation.required('Enter phone number'),
|
|
10
|
+
dob_full: dobValidation(role).required('Enter date of birth'),
|
|
11
|
+
ssn_last4: string().nullable(),
|
|
12
|
+
identification_number: ssnValidation,
|
|
13
|
+
address: addressSchema(allowOptionalFields),
|
|
14
|
+
});
|
|
15
|
+
const easySchema = object({
|
|
16
|
+
name: identityNameValidation.required(`Enter ${role} name`),
|
|
17
|
+
title: identityTitleValidation.nullable(),
|
|
18
|
+
email: emailValidation.nullable(),
|
|
19
|
+
phone: phoneValidation.nullable(),
|
|
20
|
+
dob_full: dobValidation(role).nullable(),
|
|
21
|
+
ssn_last4: string().nullable(),
|
|
22
|
+
identification_number: ssnValidation.nullable(),
|
|
23
|
+
address: addressSchema(allowOptionalFields),
|
|
24
|
+
});
|
|
25
|
+
return allowOptionalFields ? easySchema : schema;
|
|
55
26
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { string } from "yup";
|
|
2
2
|
import StateOptions from "../../../utils/state-options";
|
|
3
|
-
import {
|
|
4
|
-
import { countryValidation } from "../utils/country-config";
|
|
5
|
-
import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, } from "../utils/business-form-options";
|
|
3
|
+
import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions, } from "../utils/business-form-options";
|
|
6
4
|
import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber, } from "./schema-helpers";
|
|
7
5
|
// Common Validations
|
|
8
6
|
export const emailValidation = string()
|
|
@@ -23,7 +21,9 @@ export const doingBusinessAsValidation = string()
|
|
|
23
21
|
export const websiteUrlValidation = string()
|
|
24
22
|
.matches(urlRegex, 'Enter valid website url')
|
|
25
23
|
.transform(transformEmptyString);
|
|
26
|
-
export const businessClassificationValidation = string()
|
|
24
|
+
export const businessClassificationValidation = string()
|
|
25
|
+
.oneOf(businessClassificationOptions.map((option) => option.value), 'Select business classification')
|
|
26
|
+
.transform(transformEmptyString);
|
|
27
27
|
export const industryValidation = string()
|
|
28
28
|
.min(2, 'Industry must be at least 2 characters')
|
|
29
29
|
.max(50, 'Industry must be less than 50 characters')
|
|
@@ -37,43 +37,6 @@ export const taxIdValidation = string()
|
|
|
37
37
|
return value !== '123456789';
|
|
38
38
|
})
|
|
39
39
|
.transform(transformEmptyString);
|
|
40
|
-
// Country-aware helpers (backward compatible)
|
|
41
|
-
export const makePostalValidation = (country) => string()
|
|
42
|
-
.matches(countryValidation[country].postalRegex, 'Enter valid postal code')
|
|
43
|
-
.transform(transformEmptyString);
|
|
44
|
-
export const makeIdentityNumberValidation = (country) => {
|
|
45
|
-
if (country === CountryCode.CAN) {
|
|
46
|
-
return string()
|
|
47
|
-
.matches(numbersOnlyRegex, 'Enter valid SIN')
|
|
48
|
-
.length(countryValidation[country].identityDigits, 'Enter valid SIN')
|
|
49
|
-
.test('not-repeat', 'Enter valid SIN', (value) => {
|
|
50
|
-
return !/^(\d)\1+$/.test(value);
|
|
51
|
-
})
|
|
52
|
-
.test('not-seq', 'Enter valid SIN', (value) => {
|
|
53
|
-
return value !== '123456789';
|
|
54
|
-
})
|
|
55
|
-
.transform(transformEmptyString);
|
|
56
|
-
}
|
|
57
|
-
// USA default (SSN)
|
|
58
|
-
return ssnValidation;
|
|
59
|
-
};
|
|
60
|
-
export const makeTaxIdValidation = (country) => {
|
|
61
|
-
if (country === CountryCode.CAN) {
|
|
62
|
-
return string()
|
|
63
|
-
.matches(numbersOnlyRegex, 'Enter valid Business Number (BN)')
|
|
64
|
-
.length(countryValidation[country].taxIdDigits, 'Enter valid Business Number (BN)')
|
|
65
|
-
.test('not-repeat', 'Enter valid Business Number (BN)', (value) => {
|
|
66
|
-
return !/^(\d)\1+$/.test(value);
|
|
67
|
-
})
|
|
68
|
-
.test('not-seq', 'Enter valid Business Number (BN)', (value) => {
|
|
69
|
-
return value !== '123456789';
|
|
70
|
-
})
|
|
71
|
-
.transform(transformEmptyString);
|
|
72
|
-
}
|
|
73
|
-
// USA default
|
|
74
|
-
return taxIdValidation;
|
|
75
|
-
};
|
|
76
|
-
export const makeBusinessClassificationValidation = (_country) => string().transform(transformEmptyString);
|
|
77
40
|
export const dateOfIncorporationValidation = string()
|
|
78
41
|
.test('not-future', 'Date of incorporation cannot be in the future', (value) => {
|
|
79
42
|
const inputDate = new Date(value);
|
|
@@ -33,10 +33,10 @@ export class BankAccountForm {
|
|
|
33
33
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'f570c76e32ab7b017f220b8bcc0cecfafeffe47a' }, h(BankAccountFormSkeleton, { key: '390e43942d12ca974aa2d591e4df537c0300f235', isReady: this.isReady }), h("div", { key: '97a667e02df2bdc7b804708c122627e315d96c73', class: "container-fluid p-0", style: {
|
|
37
37
|
opacity: this.isReady ? '1' : '0',
|
|
38
38
|
height: this.isReady ? 'auto' : '0',
|
|
39
|
-
} }, h("div", { key: '
|
|
39
|
+
} }, h("div", { key: '7b4230ade22fa763a07259d0041a07d6a551e2a7', class: "row mb-3" }, h("iframe-input", { key: '2c1ee3b97a75aae1985fd04d59268c35e61b06e8', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '4aec3fd9f5e9d2ac57d12ecfda773ca75570ae54', class: "row" }, h("iframe-input", { key: 'd2c538e1772bafdcf4bb63bd58951ba8bc617be5', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "bank-account-form"; }
|
|
42
42
|
static get states() {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { PAYMENT_METHODS } from "../../..";
|
|
2
3
|
export class BillingForm {
|
|
3
4
|
get showSimpleCardBillingForm() {
|
|
4
|
-
return this.paymentMethodType ===
|
|
5
|
+
return this.paymentMethodType === PAYMENT_METHODS.NEW_CARD && this.hideCardBillingForm;
|
|
5
6
|
}
|
|
6
7
|
get showSimpleBankAccountBillingForm() {
|
|
7
|
-
return this.paymentMethodType ===
|
|
8
|
+
return this.paymentMethodType === PAYMENT_METHODS.NEW_BANK_ACCOUNT && this.hideBankAccountBillingForm;
|
|
8
9
|
}
|
|
9
10
|
async getValues() {
|
|
10
11
|
var _a;
|
|
@@ -37,10 +37,10 @@ export class CardForm {
|
|
|
37
37
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '038d2c8e2f9fcd1015d7177c79afa8c4e5810486' }, h(CardFormSkeleton, { key: 'b231bb34f43670bb1d92597d2ab37a5ef2c742e1', isReady: this.isReady }), h("div", { key: 'ede0af7f1964c2241982bfed4ca71f229d9096a1', class: "container-fluid p-0", style: {
|
|
41
41
|
opacity: this.isReady ? '1' : '0',
|
|
42
42
|
height: this.isReady ? 'auto' : '0',
|
|
43
|
-
} }, h("div", { key: '
|
|
43
|
+
} }, h("div", { key: '7c895da0378cc512b152a6629160009b12fa47aa', class: "mb-3" }, h("iframe-input", { key: '7717e0cf984a83402c61bceece2077cda780510f', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: 'b28428997690059244e4da2cd5080af2fb44ca00', class: "d-flex align-items-start" }, h("div", { key: 'e2f11a9293e00ab5b950de51a41b3af266b8084a', class: "flex-fill me-3" }, h("iframe-input", { key: '16d798effe3e29a06d5714b742749a1ce9b40760', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: 'e75c69175bd23bc96192d17a4561a0118f640ebe', class: "flex-fill me-3" }, h("iframe-input", { key: '04d1c4fb7693e42a18984d9c102a5d799e7c1c3f', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: 'a2130dcbe8e72f156bc0434d47a26a8e287b1fce', class: "flex-fill" }, h("iframe-input", { key: '4709dcb93de9543be9a5143df0bdeaf66935bde3', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "card-form"; }
|
|
46
46
|
static get states() {
|
|
@@ -75,9 +75,9 @@ export class Checkout {
|
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
77
|
var _a, _b;
|
|
78
|
-
return (h(StyledHost, { key: '
|
|
78
|
+
return (h(StyledHost, { key: '0d0a0eb14ce4f41683a13da63045c0f9cdadaf9c' }, h("justifi-modular-checkout", { key: 'c1bdc5df815a0644ed9c2c1f993fbce3317c89ed', ref: (el) => {
|
|
79
79
|
this.modularCheckoutRef = el;
|
|
80
|
-
}, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: '
|
|
80
|
+
}, authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: 'c2b1585130865059c416950d203e4bc6de14d7bb', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '1f7e5140220fa4e47167ad94fc73ec6f097b8c38', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: 'a9c940a936f3db6425ac8402910163696f57d70a', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: 'fd46c93c9f17cac96a40b24e2abfdd9d63e5dd3a' }, h("justifi-checkout-summary", { key: '4cbdfebd16b6ce411fd2ff8e9b82c141898d9aae' }))), h("div", { key: '43d2188813a694719154b80a7e7a8fcf7a09a672', class: "col-12 mt-4" }, h("slot", { key: '29b07bb448b85bb15a38b961afb2c5bb22d4be73', name: "insurance" })), h("div", { key: '46b213c8ebdb4b0d5e64a8fcd84a1d5fe95c7315', class: "col-12 mt-4" }, h("justifi-header", { key: 'e88f4f3092521158a2f16f4158ec681af39c739f', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '1b610381d0e4e14811be8d3f6edd979936e6f07f', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: '0da7399801ecdebd77f516fc60d68c7c84b8be0c', class: "d-flex flex-column" }, h("section", { key: 'd2cebab6a6a34cffca18e4720b18e177d4c5930c' }, h("div", { key: 'be648fcfc8ab083d81054ec291a524f501764eaa' }, h("justifi-saved-payment-methods", { key: 'b54b3e367e91d6bfb3a46cab928aeb85d059696f' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '96f6ab9bda4f61c053d09c67fbc007ff8ecbaa46', class: "mb-3" }, h("justifi-apple-pay", { key: '91699bd30da48629cda982ab933f4c381259a13a' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: 'ec38314be2801ada679b55df9e490bf89aa3fce7', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && !this.disableBnpl && (h("justifi-radio-list-item", { key: '582830c28451e28433d7de007db2541d333ad5f0', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: '7b065ec87f539d97c2977905c8afc759fd1f4a4e', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: '5370b456cbf1ce93a241f3dfff980cefe668652a', class: "mt-4" }, h("justifi-button", { key: '7bbb85faf30a34650fa252d7d1d80d332a803bcd', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "justifi-checkout"; }
|
|
83
83
|
static get properties() {
|
|
@@ -12,7 +12,7 @@ export class SaveNewPaymentMethod {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(StyledHost, { key: '
|
|
15
|
+
return (h(StyledHost, { key: '04ed1491d4f5ca3e03a8a1f7a46dff5a0eb888de' }, h("form-control-checkbox", { key: '7901643960e9d5d26c5916fb6e06601a6b59906a', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "justifi-save-new-payment-method"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class SavedPaymentMethod {
|
|
|
18
18
|
;
|
|
19
19
|
render() {
|
|
20
20
|
var _a, _b, _c;
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'ec168d224a6f9d403b7737b601bcfaef47b6135b', class: "payment-method" }, h("div", { key: '46a38c788468221f12495d84b213103bc0780726', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '4d2c981f7504277024eef63cd75c9fb7d435400b', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "justifi-saved-payment-method"; }
|
|
24
24
|
static get properties() {
|
|
@@ -118,7 +118,7 @@ export class CheckoutsListCore {
|
|
|
118
118
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (h(TableWrapper, { key: '
|
|
121
|
+
return (h(TableWrapper, { key: 'a39afbb74067a8ce3b4958f8509c6432d2e9acd4' }, h(TableComponent, { key: '912298a9c2b9f701b939bc224ff73d74c5451d55' }, h(TableHead, { key: 'dc14d0c44f7521360ccd76129c472825ded515cb' }, h(TableHeadRow, { key: '2dd9d8f52b56ce9e2fc1d4b50fa37143ee33e6cf' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '41f0ccf7b211593bb5a4396a5c6f5b1d6c5c7bc3' }, h(TableLoadingState, { key: 'e80fb55f7e4ae660a97c37fe710a17190164d132', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'cd1f4f3204d6ee3baa4d826b0081196716e4b5dd', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'cb54166a78e4ee8ea25f1905893763cdd8d3dd92', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'bf8bfd7790f5bfbcb43d1d656fcdcc5a5776df98' }, h(TableFootRow, { key: 'fb86e28f22e368cc78d55e165ced57b2a2076dca' }, h(TableFootCell, { key: 'c5e1254f49c06c4129565422cb68ab956f420f74', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '14ec42d778e22b4c8796a1895e3f7f90732da45b', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "checkouts-list-core"; }
|
|
124
124
|
static get properties() {
|
|
@@ -38,7 +38,7 @@ export class CheckoutsListFilters {
|
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
40
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
41
|
-
return (h(StyledHost, { key: '
|
|
41
|
+
return (h(StyledHost, { key: '39b7e8cae3782643fc447fb66211f165021e39f8' }, h("table-filters-menu", { key: 'ec4668c59ba4d056b472e5d30f4e526fdb065935', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'b422804789a74a8063f77f307b8d477bd1ac98c0', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'd0125c273dd3bf11c3e50a4a470ddf9839d5efd2', class: "p-2" }, h("form-control-select", { key: '8d28305771dd12aa90784c3ce7a96de521b19a36', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '5980940381f9651936002a7cf563a373ab6db20a', class: "p-2" }, h("form-control-select", { key: 'f08541d0afbc4f808c5245e167190f2073cec49c', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode || '', disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "justifi-checkouts-list-filters"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -61,7 +61,7 @@ export class CheckoutsList {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(StyledHost, { key: '
|
|
64
|
+
return (h(StyledHost, { key: '1521139ac1c2f30516e70e5426a92b2bf615ae9a' }, h("checkouts-list-core", { key: '4c9166e7a2c6adc57f96aee67ba580e5b3e80620', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "justifi-checkouts-list"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,7 +46,7 @@ export class DisputeManagementCore {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '7e16a29a9b82c993c35c075c857838b1ba9469ea' }, this.showDisputeResponseForm ? (h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "justifi-dispute-management-core"; }
|
|
52
52
|
static get properties() {
|
|
@@ -43,7 +43,7 @@ export class DisputeManagement {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h("justifi-dispute-management-core", { key: '
|
|
46
|
+
return (h("justifi-dispute-management-core", { key: 'f1bd67d5ad60de2ad584c8440cc71c3ad6453429', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "justifi-dispute-management"; }
|
|
49
49
|
static get properties() {
|
|
@@ -30,7 +30,7 @@ export class DisputeNotification {
|
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
32
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
33
|
-
return (h(StyledHost, { key: '
|
|
33
|
+
return (h(StyledHost, { key: 'ab36fe0292ebcc4d2f062898065c135b869be67a' }, this.isLoading && (h("div", { key: '8cff4628d911c7119b0f8d1612e99caad526746c', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'ee3bce3019778f5e481ae26ada89e70090671b37', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '242cbb756770f1545d09f5e79c539683158acaa6', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '409e7d228cb414ed458959107ba5ba2fe38eed72', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: '8ba65861b311e2020f52ee38f0303b19c4b8b386', part: text }, h("h1", { key: '9f62e7a3144e50a0980d5e3ea2a1e078ec8e9d0b', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '533af5d2cc8cba530812d247f60ad7a92e4a36a3' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: 'cf842a85853e34e3b1a38674d36bd0a4705ff5e0', class: "h5" }, "Dispute details"), h("div", { key: 'cd3bcc4861a2ba4a576638d9a0e86927ff4d7123', class: "d-table gap-2" }, h("div", { key: '1bd4ce368992bf9d6855a301e0b249c68a98471c', class: "d-table-row gap-2" }, h("span", { key: '18845a901fcd0bff4480b780bbcf35fc171f4b0b', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '75533ed5fd445f69a4967a6625cab5badc5766a3', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_b = this.dispute) === null || _b === void 0 ? void 0 : _b.amount))), h("div", { key: '5c0974a223983b19150230544d4c3b4154747de2', class: "d-table-row gap-2" }, h("span", { key: '7d09c4fdbc0b5f38f15d78b3c325e256d29136dc', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '2379e217700a07a388650f7ca82ca5a420175dd9', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_c = this.dispute) === null || _c === void 0 ? void 0 : _c.reason)), h("div", { key: 'c4b5ad2e540d0ab61ff29b2913344ed055a56618', class: "d-table-row gap-2" }, h("span", { key: '2f32326e0067d8d8ac734ba9f16b6aee0e774cc2', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: '823b0d79ad2c77ef68c27300a5b8f539bfa66b30', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_d = this.dispute) === null || _d === void 0 ? void 0 : _d.due_date))), h("div", { key: '8a0cca3f006564da1feee39e06b3e322cd2773fc', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '07d7ba81e9353183148c9892ea8016537095b078', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '05d437f6711fae2398f865fdaeb6908327f8b68b', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: '4ca58f734515deb7c713c13a2f69f0f42d52f706' }, h("h1", { key: '65f92415880cc2fb39b7b2753df960ec10437455', class: "h4" }, "This payment is disputed and under review"), h("p", { key: '8129f146f956db43378b672f68a9edeec9374401' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_f = this.dispute) === null || _f === void 0 ? void 0 : _f.won) && (h("div", { key: '85acb2724f46424856bf4fc885bd1553539ce2be' }, h("h1", { key: '7ce9b3ed57a5c3cd904d1c706044091fbda3dc03', class: "h4" }, "This payment was disputed"), h("p", { key: '6a92fd3be617562d1ba10192ec508354a9450150' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.lost) && (h("div", { key: '8e45676c7909732bee12f707297987b927b9526c' }, h("h1", { key: 'f64abd54f60a63e0ff6888beecc74050e2f860db', class: "h4" }, "This payment was disputed"), h("p", { key: 'bd2e689d5de42468b67259573b8289835c4acc5e' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "justifi-dispute-notification"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/dispute-management/dispute-response/additional-statement.js
CHANGED
|
@@ -29,7 +29,7 @@ export class AdditionalStatement {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
var _a, _b;
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '1923f4fe65f07834785b052ff36d2c9b11a38232' }, h("div", { key: 'd3cd444874826ca88bca6dc4a3c411ad40cc4e59', class: "row gy-3" }, h("div", { key: '55359a7d9b54f71ceb1e78a802348f03c6274716', class: "col-12" }, h("h2", { key: '08dab7b1178136a2c82a6d6eb92e6e1c8ce8a50c', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '1bd6f80bfccf53663f3edd983e90dc48d5063254', class: "col-12" }, h("form-control-textarea", { key: 'ecc2f5c94e92b46688f37e10b10b9dc81f08d0f7', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: 'dacce3a39a44e7b9a819feb4b9dc66f3d761ec95', class: "col-12" }, h("form-control-file-v2", { key: 'd54e7538b572e84b81ea3fb4601fa92083599225', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "justifi-additional-statement"; }
|
|
35
35
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js
CHANGED
|
@@ -28,7 +28,7 @@ export class CancellationPolicy {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'f3be140160f96c20a65cfe0eb0f32b0a36d6328d' }, h("div", { key: '72c6936c3b99f55493c0019a0ade1ab85dc6245e', class: "row gy-3" }, h("div", { key: 'dc369f250820762b0d2f70b776b12b4736dacf7d', class: "col-12" }, h("h2", { key: '1b657416345e0ffb7e1181e40f913919e50a514b', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: 'af2320dcc457a9b58bf50398dadedfedb8b65e04', class: "col-12" }, h("form-control-textarea", { key: '6366a3fb241515461a17102450db84e56c6d23ad', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: '0129cd6a72201be98e4654e232314262c81a0a3b', class: "col-12" }, h("form-control-textarea", { key: 'f2b4d61af6aaa2e13f19e412b8bfdf369ff33876', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '18c38013f5ffaa3145d6e11b6cee27a77fb922aa', class: "col-12" }, h("form-control-file-v2", { key: 'b8412565744676cb05a8d59df609da8a1b183f77', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-cancellation-policy"; }
|
|
34
34
|
static get properties() {
|
|
@@ -28,7 +28,7 @@ export class CustomerDetails {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c, _d, _e;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '0712f857726a187d96acf7661994f262322660e8' }, h("div", { key: 'd162d3d251a64fb260f052daa18ad5aaefc947ef', class: "row gy-3" }, h("div", { key: 'b1e10245c1a1a55e67274144927398ca6d628794', class: "col-12" }, h("h2", { key: '3166f6d2419436011ac8adaf7188c10630ab237e', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '11ada832a6170259f355d1133a5c78bacdd4a5be', class: "col-12" }, h("form-control-text", { key: '0a69c2607434e17ae92a7c542e7245a59d95b638', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: '8d2a4b3fa5a84088b5178d1c1a06df51c5b219cf', class: "col-12" }, h("form-control-text", { key: '74f2eec855986ac45e4687487fc7e4b261626d10', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '5a8a8b151e1d695d5b6944b4fe98d61b1c5d36d2', class: "col-12" }, h("form-control-textarea", { key: 'ef6bf00d9e8c7f58f2d54ef314f3ab0eec3080f8', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: 'b1fcb7ba8bfd16258e1e0f15356735332803243c', class: "col-12" }, h("form-control-file-v2", { key: 'eea96693591cf044a825db953f50ac42e1e7165c', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: 'd7ec90bb479ad9dc06a7811065b532f10af0d838', class: "col-12" }, h("form-control-file-v2", { key: 'bf4a80a05d7dd6e58086b0fe5acc6f65cd697a38', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-customer-details"; }
|
|
34
34
|
static get properties() {
|