@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,11 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { updateAddressFormValues, updateDateOfBirthFormValues, updateFormValues } from "../../utils/input-handlers";
|
|
3
|
-
import { PHONE_MASKS,
|
|
4
|
-
import { heading2
|
|
5
|
-
import { countryLabels } from "../../utils/country-config";
|
|
3
|
+
import { PHONE_MASKS, SSN_MASK } from "../../../../utils/form-input-masks";
|
|
4
|
+
import { heading2 } from "../../../../styles/parts";
|
|
6
5
|
export class RepresentativeFormInputs {
|
|
7
6
|
constructor() {
|
|
8
|
-
this.isEditingIdentification = false;
|
|
9
7
|
this.inputHandler = (name, value) => {
|
|
10
8
|
updateFormValues(this.formController, { [name]: value });
|
|
11
9
|
};
|
|
@@ -14,15 +12,8 @@ export class RepresentativeFormInputs {
|
|
|
14
12
|
};
|
|
15
13
|
}
|
|
16
14
|
render() {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
18
|
-
return (h("form", { key: '
|
|
19
|
-
this.isEditingIdentification = true;
|
|
20
|
-
// Clear last4 and current value to force validation
|
|
21
|
-
updateFormValues(this.formController, {
|
|
22
|
-
ssn_last4: null,
|
|
23
|
-
identification_number: ''
|
|
24
|
-
});
|
|
25
|
-
} }, "Change"))))), h("div", { key: 'ad29d30e0748004e9c0d429804210f269581ff12', class: "col-12" }, h("justifi-identity-address-form", { key: 'aaad43f4c150cf08cbdd321a887eaadc51436c88', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
16
|
+
return (h("form", { key: 'e4b7a532e18a921a5a28aab31f679fbbad164198' }, h("fieldset", { key: 'd7056e5ee25625adb563e2687f581157653c8a9d' }, h("div", { key: '456aab0ef1399a7c1d272059c881c6c6f3d0e87c', class: "d-flex align-items-center gap-2" }, h("legend", { key: '430b3731bbd97ff1589bd81bd6fdaa4082161180', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '47676ededb80e0f766cb786265d8fb307c60d125', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '514197b5bd4868ec29e75dc74367deb187b32063', class: "mt-2" }), h("div", { key: 'f2986d55d0bfbf0e6059f0b2a766d2dc603acdc5', class: "row gy-3" }, h("div", { key: 'e4a3749c5e972f505527b8fc172f9a4214806345', class: "col-12 col-md-8" }, h("form-control-text", { key: 'd54c8d17f0360277fe04dd91a528e303182495c7', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '4fa0b1a192fb39a982c957d202ea2ac1e40dedd8', class: "col-12 col-md-4" }, h("form-control-text", { key: '8c3bca4234ea0e7ae3c79d810ffb469637898eb6', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '7e14a61364883172f2938bd8b1e53883ddd369fe', class: "col-12 col-md-6" }, h("form-control-text", { key: '8d9c81d374998dbaea5322906fddb5eeadea1546', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'c3f369b226a08497926b26d0732b7dc9d6413559', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '734625aeac8384f2b8676c4d350368675cff3a6f', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '23d509b724f2617eb0a4f85c74238b09a052a6cb', class: "col-12 col-md-4" }, h("form-control-date", { key: '0f838cc474beab9822a84856733a86ecf43f0ec3', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'f6d08c53dad2e9a550adf893ac59166015ffb6e4', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'dd610955fb7c62fd0aab9af925af34cdc47ab3e9', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: 'd4e2a212a87ca9be4be8e21f3e47008b2201871c', class: "col-12" }, h("justifi-identity-address-form", { key: 'bb2d0d01e07be4d37acfd448796c8a33460111ed', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
26
17
|
}
|
|
27
18
|
static get is() { return "justifi-business-representative-form-inputs"; }
|
|
28
19
|
static get properties() {
|
|
@@ -87,38 +78,8 @@ export class RepresentativeFormInputs {
|
|
|
87
78
|
},
|
|
88
79
|
"getter": false,
|
|
89
80
|
"setter": false
|
|
90
|
-
},
|
|
91
|
-
"country": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"mutable": false,
|
|
94
|
-
"complexType": {
|
|
95
|
-
"original": "CountryCode",
|
|
96
|
-
"resolved": "CountryCode.CAN | CountryCode.USA",
|
|
97
|
-
"references": {
|
|
98
|
-
"CountryCode": {
|
|
99
|
-
"location": "import",
|
|
100
|
-
"path": "../../../../utils/country-codes",
|
|
101
|
-
"id": "src/utils/country-codes.ts::CountryCode"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"required": false,
|
|
106
|
-
"optional": false,
|
|
107
|
-
"docs": {
|
|
108
|
-
"tags": [],
|
|
109
|
-
"text": ""
|
|
110
|
-
},
|
|
111
|
-
"getter": false,
|
|
112
|
-
"setter": false,
|
|
113
|
-
"reflect": false,
|
|
114
|
-
"attribute": "country"
|
|
115
81
|
}
|
|
116
82
|
};
|
|
117
83
|
}
|
|
118
|
-
static get states() {
|
|
119
|
-
return {
|
|
120
|
-
"isEditingIdentification": {}
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
84
|
}
|
|
124
85
|
;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Representative } from "../../../../api/Identity";
|
|
3
3
|
import { FormController } from "../../../../ui-components/form/form";
|
|
4
|
-
import {
|
|
4
|
+
import { identitySchema } from "../../schemas/business-identity-schema";
|
|
5
5
|
import { PaymentProvisioningLoading } from "../payment-provisioning-loading";
|
|
6
6
|
import { BusinessFormStep } from "../../utils";
|
|
7
7
|
export class BusinessRepresentativeFormStepCore {
|
|
@@ -10,14 +10,11 @@ export class BusinessRepresentativeFormStepCore {
|
|
|
10
10
|
this.representative = {};
|
|
11
11
|
this.isLoading = false;
|
|
12
12
|
this.getData = () => {
|
|
13
|
-
if (!this.getBusiness)
|
|
14
|
-
return;
|
|
15
13
|
this.formLoading.emit(true);
|
|
16
14
|
this.isLoading = true;
|
|
17
15
|
this.getBusiness({
|
|
18
16
|
onSuccess: (response) => {
|
|
19
17
|
this.representative = new Representative(response.data.representative || {});
|
|
20
|
-
this.representative.address.country = this.country;
|
|
21
18
|
this.formController.setInitialValues(Object.assign({}, this.representative));
|
|
22
19
|
},
|
|
23
20
|
onError: ({ error, code, severity }) => {
|
|
@@ -65,9 +62,8 @@ export class BusinessRepresentativeFormStepCore {
|
|
|
65
62
|
return { representative: formValues };
|
|
66
63
|
}
|
|
67
64
|
componentWillLoad() {
|
|
68
|
-
|
|
69
|
-
this.formController = new FormController(
|
|
70
|
-
this.getData();
|
|
65
|
+
this.getBusiness && this.getData();
|
|
66
|
+
this.formController = new FormController(identitySchema('representative', this.allowOptionalFields));
|
|
71
67
|
}
|
|
72
68
|
componentDidLoad() {
|
|
73
69
|
this.formController.errors.subscribe(errors => {
|
|
@@ -78,7 +74,7 @@ export class BusinessRepresentativeFormStepCore {
|
|
|
78
74
|
if (this.isLoading) {
|
|
79
75
|
return (h(PaymentProvisioningLoading, null));
|
|
80
76
|
}
|
|
81
|
-
return (h("justifi-business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController
|
|
77
|
+
return (h("justifi-business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
|
|
82
78
|
}
|
|
83
79
|
static get is() { return "justifi-business-representative-form-step-core"; }
|
|
84
80
|
static get properties() {
|
|
@@ -145,31 +141,6 @@ export class BusinessRepresentativeFormStepCore {
|
|
|
145
141
|
"setter": false,
|
|
146
142
|
"reflect": false,
|
|
147
143
|
"attribute": "allow-optional-fields"
|
|
148
|
-
},
|
|
149
|
-
"country": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"mutable": false,
|
|
152
|
-
"complexType": {
|
|
153
|
-
"original": "CountryCode",
|
|
154
|
-
"resolved": "CountryCode.CAN | CountryCode.USA",
|
|
155
|
-
"references": {
|
|
156
|
-
"CountryCode": {
|
|
157
|
-
"location": "import",
|
|
158
|
-
"path": "../../../../utils/country-codes",
|
|
159
|
-
"id": "src/utils/country-codes.ts::CountryCode"
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"required": false,
|
|
164
|
-
"optional": false,
|
|
165
|
-
"docs": {
|
|
166
|
-
"tags": [],
|
|
167
|
-
"text": ""
|
|
168
|
-
},
|
|
169
|
-
"getter": false,
|
|
170
|
-
"setter": false,
|
|
171
|
-
"reflect": false,
|
|
172
|
-
"attribute": "country"
|
|
173
144
|
}
|
|
174
145
|
};
|
|
175
146
|
}
|
|
@@ -34,7 +34,7 @@ export class BusinessRepresentativeFormStep {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("justifi-business-representative-form-step-core", { key: '
|
|
37
|
+
return (h("justifi-business-representative-form-step-core", { key: '582c77f4b763573a1d29726285a9b871afe96d89', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "justifi-business-representative-form-step"; }
|
|
40
40
|
static get properties() {
|
|
@@ -95,31 +95,6 @@ export class BusinessRepresentativeFormStep {
|
|
|
95
95
|
"setter": false,
|
|
96
96
|
"reflect": false,
|
|
97
97
|
"attribute": "allow-optional-fields"
|
|
98
|
-
},
|
|
99
|
-
"country": {
|
|
100
|
-
"type": "string",
|
|
101
|
-
"mutable": false,
|
|
102
|
-
"complexType": {
|
|
103
|
-
"original": "CountryCode",
|
|
104
|
-
"resolved": "CountryCode.CAN | CountryCode.USA",
|
|
105
|
-
"references": {
|
|
106
|
-
"CountryCode": {
|
|
107
|
-
"location": "import",
|
|
108
|
-
"path": "../../../../utils/country-codes",
|
|
109
|
-
"id": "src/utils/country-codes.ts::CountryCode"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"required": false,
|
|
114
|
-
"optional": true,
|
|
115
|
-
"docs": {
|
|
116
|
-
"tags": [],
|
|
117
|
-
"text": ""
|
|
118
|
-
},
|
|
119
|
-
"getter": false,
|
|
120
|
-
"setter": false,
|
|
121
|
-
"reflect": false,
|
|
122
|
-
"attribute": "country"
|
|
123
98
|
}
|
|
124
99
|
};
|
|
125
100
|
}
|
|
@@ -56,10 +56,10 @@ export class MonetaryInputProvisioning {
|
|
|
56
56
|
return part;
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '59e5e4d46e7d4ece898464d846505756611f6635' }, h("div", { key: 'e82201d6777584666ec5ca04ad9e02b83fa956c0', class: "form-group d-flex flex-column" }, h("label", { key: '9bbb22bb201d3db07670e4f26521593ff229f583', part: label, class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '61909b4796f78e22d9e6508d9257cdf16220e675', class: "input-group" }, h("span", { key: '152a4f1a6323e55bf6f48aa25353939569acc419', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: 'cc8055c02a4ccb4f63553f45b5ded4ee3d8cf972', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
60
60
|
this.isFocused = false;
|
|
61
61
|
this.formControlBlur.emit();
|
|
62
|
-
}, onInput: this.handleFormControlInput, part: this.inputPart, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '
|
|
62
|
+
}, onInput: this.handleFormControlInput, part: this.inputPart, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '776dfb4a9d74342ba139dda6706af8e60b4700fc', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '74e503b7e525aeeb994b1ae94941f07365d2460e', errorText: this.errorText, name: this.name }))));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "form-control-monetary-provisioning"; }
|
|
65
65
|
static get properties() {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { addressSchema } from "../../schemas/business-address-schema";
|
|
3
3
|
import { FormController } from "../../../../ui-components/form/form";
|
|
4
4
|
import { Address } from "../../../../api/Business";
|
|
5
|
+
import StateOptions from "../../../../utils/state-options";
|
|
6
|
+
import { numberOnlyHandler } from "../../../../ui-components/form/utils";
|
|
5
7
|
import { heading2 } from "../../../../styles/parts";
|
|
6
8
|
import { PaymentProvisioningLoading } from "../payment-provisioning-loading";
|
|
7
9
|
import { BusinessFormStep } from "../../utils";
|
|
@@ -11,15 +13,11 @@ export class LegalAddressFormStepCore {
|
|
|
11
13
|
this.legal_address = {};
|
|
12
14
|
this.isLoading = false;
|
|
13
15
|
this.getData = () => {
|
|
14
|
-
if (!this.getBusiness)
|
|
15
|
-
return;
|
|
16
16
|
this.formLoading.emit(true);
|
|
17
17
|
this.isLoading = true;
|
|
18
18
|
this.getBusiness({
|
|
19
19
|
onSuccess: (response) => {
|
|
20
|
-
|
|
21
|
-
const address = new Address(business.legal_address || {});
|
|
22
|
-
this.legal_address = Object.assign(Object.assign({}, address), { country: this.country });
|
|
20
|
+
this.legal_address = new Address(response.data.legal_address || {});
|
|
23
21
|
this.formController.setInitialValues(Object.assign({}, this.legal_address));
|
|
24
22
|
},
|
|
25
23
|
onError: ({ error, code, severity }) => {
|
|
@@ -71,9 +69,8 @@ export class LegalAddressFormStepCore {
|
|
|
71
69
|
return { legal_address: formValues };
|
|
72
70
|
}
|
|
73
71
|
componentWillLoad() {
|
|
74
|
-
|
|
75
|
-
this.formController = new FormController(
|
|
76
|
-
this.getData();
|
|
72
|
+
this.getBusiness && this.getData();
|
|
73
|
+
this.formController = new FormController(addressSchema(this.allowOptionalFields));
|
|
77
74
|
}
|
|
78
75
|
componentDidLoad() {
|
|
79
76
|
this.formController.errors.subscribe(errors => {
|
|
@@ -81,11 +78,14 @@ export class LegalAddressFormStepCore {
|
|
|
81
78
|
});
|
|
82
79
|
}
|
|
83
80
|
render() {
|
|
81
|
+
var _a, _b, _c, _d, _e, _f;
|
|
84
82
|
const legalAddressDefaultValue = this.formController.getInitialValues();
|
|
85
83
|
if (this.isLoading) {
|
|
86
84
|
return h(PaymentProvisioningLoading, null);
|
|
87
85
|
}
|
|
88
|
-
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("
|
|
86
|
+
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { class: "col-12" }, h("form-control-text", { name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { class: "col-12" }, h("form-control-text", { name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { class: "col-12" }, h("form-control-select", { name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { class: "col-12" }, h("form-control-text", { name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: "country", label: "Country", options: [{ label: "United States", value: "USA" }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
|
|
87
|
+
// just for now so we skip handling country specificities
|
|
88
|
+
disabled: true }))))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "justifi-legal-address-form-step-core"; }
|
|
91
91
|
static get properties() {
|
|
@@ -152,31 +152,6 @@ export class LegalAddressFormStepCore {
|
|
|
152
152
|
"setter": false,
|
|
153
153
|
"reflect": false,
|
|
154
154
|
"attribute": "allow-optional-fields"
|
|
155
|
-
},
|
|
156
|
-
"country": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"mutable": false,
|
|
159
|
-
"complexType": {
|
|
160
|
-
"original": "CountryCode",
|
|
161
|
-
"resolved": "CountryCode.CAN | CountryCode.USA",
|
|
162
|
-
"references": {
|
|
163
|
-
"CountryCode": {
|
|
164
|
-
"location": "import",
|
|
165
|
-
"path": "../../../../utils/country-codes",
|
|
166
|
-
"id": "src/utils/country-codes.ts::CountryCode"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"required": false,
|
|
171
|
-
"optional": false,
|
|
172
|
-
"docs": {
|
|
173
|
-
"tags": [],
|
|
174
|
-
"text": ""
|
|
175
|
-
},
|
|
176
|
-
"getter": false,
|
|
177
|
-
"setter": false,
|
|
178
|
-
"reflect": false,
|
|
179
|
-
"attribute": "country"
|
|
180
155
|
}
|
|
181
156
|
};
|
|
182
157
|
}
|
|
@@ -34,7 +34,7 @@ export class LegalAddressFormStep {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("justifi-legal-address-form-step-core", { key: '
|
|
37
|
+
return (h("justifi-legal-address-form-step-core", { key: 'bd286476461181f2e8a435a97bf148d55876b49c', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "justifi-legal-address-form-step"; }
|
|
40
40
|
static get properties() {
|
|
@@ -95,31 +95,6 @@ export class LegalAddressFormStep {
|
|
|
95
95
|
"setter": false,
|
|
96
96
|
"reflect": false,
|
|
97
97
|
"attribute": "allow-optional-fields"
|
|
98
|
-
},
|
|
99
|
-
"country": {
|
|
100
|
-
"type": "string",
|
|
101
|
-
"mutable": false,
|
|
102
|
-
"complexType": {
|
|
103
|
-
"original": "CountryCode",
|
|
104
|
-
"resolved": "CountryCode.CAN | CountryCode.USA",
|
|
105
|
-
"references": {
|
|
106
|
-
"CountryCode": {
|
|
107
|
-
"location": "import",
|
|
108
|
-
"path": "../../../../utils/country-codes",
|
|
109
|
-
"id": "src/utils/country-codes.ts::CountryCode"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"required": false,
|
|
114
|
-
"optional": true,
|
|
115
|
-
"docs": {
|
|
116
|
-
"tags": [],
|
|
117
|
-
"text": ""
|
|
118
|
-
},
|
|
119
|
-
"getter": false,
|
|
120
|
-
"setter": false,
|
|
121
|
-
"reflect": false,
|
|
122
|
-
"attribute": "country"
|
|
123
98
|
}
|
|
124
99
|
};
|
|
125
100
|
}
|
package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js
CHANGED
|
@@ -4,40 +4,31 @@ import { checkProvisioningStatus } from "../utils/helpers";
|
|
|
4
4
|
import { Header1, StyledHost } from "../../../ui-components";
|
|
5
5
|
import { text } from "../../../styles/parts";
|
|
6
6
|
import { BusinessFormClickActions } from "../utils/event-types";
|
|
7
|
-
import { CountryCode } from "../../../utils/country-codes";
|
|
8
|
-
import { Business } from "../../../api/Business";
|
|
9
7
|
export class PaymentProvisioningCore {
|
|
10
8
|
constructor() {
|
|
11
9
|
this.loading = false;
|
|
12
10
|
this.businessProvisioned = false;
|
|
13
11
|
this.currentStep = 0;
|
|
14
|
-
this.country = CountryCode.USA;
|
|
15
12
|
this.allowOptionalFields = false;
|
|
16
13
|
this.setBusinessProvisioned = () => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.businessProvisioned = checkProvisioningStatus(business);
|
|
22
|
-
this.country = business.country_of_establishment;
|
|
23
|
-
if (this.businessProvisioned) {
|
|
24
|
-
this.errorEvent.emit({
|
|
25
|
-
message: 'A request to provision payments for this business has already been submitted.',
|
|
26
|
-
errorCode: ComponentErrorCodes.PROVISIONING_REQUESTED,
|
|
27
|
-
severity: ComponentErrorSeverity.INFO,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
resolve();
|
|
31
|
-
},
|
|
32
|
-
onError: ({ error, code, severity }) => {
|
|
14
|
+
this.getBusiness({
|
|
15
|
+
onSuccess: (response) => {
|
|
16
|
+
this.businessProvisioned = checkProvisioningStatus(response.data);
|
|
17
|
+
if (this.businessProvisioned) {
|
|
33
18
|
this.errorEvent.emit({
|
|
34
|
-
message:
|
|
35
|
-
errorCode:
|
|
36
|
-
severity:
|
|
19
|
+
message: 'A request to provision payments for this business has already been submitted.',
|
|
20
|
+
errorCode: ComponentErrorCodes.PROVISIONING_REQUESTED,
|
|
21
|
+
severity: ComponentErrorSeverity.INFO,
|
|
37
22
|
});
|
|
38
|
-
resolve();
|
|
39
23
|
}
|
|
40
|
-
}
|
|
24
|
+
},
|
|
25
|
+
onError: ({ error, code, severity }) => {
|
|
26
|
+
this.errorEvent.emit({
|
|
27
|
+
message: error,
|
|
28
|
+
errorCode: code,
|
|
29
|
+
severity: severity
|
|
30
|
+
});
|
|
31
|
+
}
|
|
41
32
|
});
|
|
42
33
|
};
|
|
43
34
|
this.postProvisioningData = () => {
|
|
@@ -76,18 +67,9 @@ export class PaymentProvisioningCore {
|
|
|
76
67
|
handleFormCompleted() {
|
|
77
68
|
this.postProvisioningData();
|
|
78
69
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
this.refs = [
|
|
83
|
-
this.coreInfoRef,
|
|
84
|
-
this.legalAddressRef,
|
|
85
|
-
this.additionalQuestionsRef,
|
|
86
|
-
this.representativeRef,
|
|
87
|
-
this.ownersRef,
|
|
88
|
-
this.bankAccountRef,
|
|
89
|
-
this.termsRef,
|
|
90
|
-
];
|
|
70
|
+
componentWillLoad() {
|
|
71
|
+
this.getBusiness && this.setBusinessProvisioned();
|
|
72
|
+
this.refs = [this.coreInfoRef, this.legalAddressRef, this.additionalQuestionsRef, this.representativeRef, this.ownersRef, this.bankAccountRef, this.termsRef];
|
|
91
73
|
}
|
|
92
74
|
get businessEndpoint() {
|
|
93
75
|
return `entities/business/${this.businessId}`;
|
|
@@ -105,7 +87,7 @@ export class PaymentProvisioningCore {
|
|
|
105
87
|
this.loading = event.detail;
|
|
106
88
|
}
|
|
107
89
|
render() {
|
|
108
|
-
return (h(StyledHost, { key: '
|
|
90
|
+
return (h(StyledHost, { key: '621b616a3b9d5be0fcc1180dcdb0db6a89ec5aa2' }, h("div", { key: 'b51c6814bb81a6cdc6cd0c5ede4d485582f154ee', class: 'row gap-3' }, h(Header1, { key: '7c03561b4c2b0cfc237d6b933aeffe532f35b626', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: 'b616b52cc9a0057f27ddbae1356710cee05c60fa', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '2447bad174b5d32d253e821e76ebb32fb9ec50e3', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: 'd746b5275ae0866a8619f67fe00217916153ea0a', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'add808398005b6076d91788cc220ab6620f3ddfc', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
109
91
|
}
|
|
110
92
|
static get is() { return "justifi-payment-provisioning-core"; }
|
|
111
93
|
static get properties() {
|
|
@@ -238,8 +220,7 @@ export class PaymentProvisioningCore {
|
|
|
238
220
|
"loading": {},
|
|
239
221
|
"businessProvisioned": {},
|
|
240
222
|
"currentStep": {},
|
|
241
|
-
"errorMessage": {}
|
|
242
|
-
"country": {}
|
|
223
|
+
"errorMessage": {}
|
|
243
224
|
};
|
|
244
225
|
}
|
|
245
226
|
static get events() {
|
|
@@ -12,7 +12,7 @@ export class PaymentProvisioningFormButtons {
|
|
|
12
12
|
return this.currentStep === this.totalSteps;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h("div", { key: '
|
|
15
|
+
return (h("div", { key: '5869ed8c350e3a1ae5fe62dcd04493f432eecff7', class: 'd-flex gap-2' }, h(Button, { key: 'b1e8c2fff97e9a053d715860a43ddd78c99b255a', variant: "secondary", type: "button", onClick: () => this.previousStepButtonOnClick(), disabled: this.formDisabled, hidden: !this.showPreviousStepButton }, "Previous"), h(Button, { key: '8696fe4f0bde5434e51f05f67b39a8e5b2f550bf', variant: "primary", type: "button", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.nextStep), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showNextStepButton }, "Next"), h(Button, { key: 'b1750a849d60244bdb3cf82690c6cbd15b6e1110', variant: "primary", type: "submit", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.submit), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showSubmitButton }, "Submit")));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "justifi-payment-provisioning-form-buttons"; }
|
|
18
18
|
static get properties() {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { CountryCode } from "../../../utils/country-codes";
|
|
3
2
|
export class PaymentProvisioningFormSteps {
|
|
4
3
|
constructor() {
|
|
5
4
|
this.allowOptionalFields = false;
|
|
6
|
-
this.country = CountryCode.USA;
|
|
7
5
|
this.componentStepMapping = {
|
|
8
|
-
0: () => h("justifi-business-core-info-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[0] = el, allowOptionalFields: this.allowOptionalFields
|
|
9
|
-
1: () => h("justifi-legal-address-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[1] = el, allowOptionalFields: this.allowOptionalFields
|
|
6
|
+
0: () => h("justifi-business-core-info-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[0] = el, allowOptionalFields: this.allowOptionalFields }),
|
|
7
|
+
1: () => h("justifi-legal-address-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[1] = el, allowOptionalFields: this.allowOptionalFields }),
|
|
10
8
|
2: () => h("justifi-additional-questions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[2] = el, allowOptionalFields: this.allowOptionalFields }),
|
|
11
|
-
3: () => h("justifi-business-representative-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[3] = el, allowOptionalFields: this.allowOptionalFields
|
|
12
|
-
4: () => h("justifi-business-owners-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[4] = el, allowOptionalFields: this.allowOptionalFields
|
|
13
|
-
5: () => h("justifi-business-bank-account-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[5] = el, allowOptionalFields: this.allowOptionalFields
|
|
9
|
+
3: () => h("justifi-business-representative-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[3] = el, allowOptionalFields: this.allowOptionalFields }),
|
|
10
|
+
4: () => h("justifi-business-owners-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[4] = el, allowOptionalFields: this.allowOptionalFields }),
|
|
11
|
+
5: () => h("justifi-business-bank-account-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[5] = el, allowOptionalFields: this.allowOptionalFields }),
|
|
14
12
|
6: () => h("justifi-business-terms-conditions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[6] = el, onFormLoading: this.handleFormLoading, allowOptionalFields: this.allowOptionalFields }),
|
|
15
13
|
};
|
|
16
14
|
}
|
|
@@ -18,7 +16,7 @@ export class PaymentProvisioningFormSteps {
|
|
|
18
16
|
return this.componentStepMapping[this.currentStep]();
|
|
19
17
|
}
|
|
20
18
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: '9a09e562d0a3548cb40863ba5780c5d1692b6ec3', class: 'col-12 mb-4' }, this.currentStepComponent));
|
|
22
20
|
}
|
|
23
21
|
static get is() { return "justifi-payment-provisioning-form-steps"; }
|
|
24
22
|
static get properties() {
|
|
@@ -117,32 +115,6 @@ export class PaymentProvisioningFormSteps {
|
|
|
117
115
|
"attribute": "allow-optional-fields",
|
|
118
116
|
"defaultValue": "false"
|
|
119
117
|
},
|
|
120
|
-
"country": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"mutable": false,
|
|
123
|
-
"complexType": {
|
|
124
|
-
"original": "CountryCode",
|
|
125
|
-
"resolved": "CountryCode.CAN | CountryCode.USA",
|
|
126
|
-
"references": {
|
|
127
|
-
"CountryCode": {
|
|
128
|
-
"location": "import",
|
|
129
|
-
"path": "../../../utils/country-codes",
|
|
130
|
-
"id": "src/utils/country-codes.ts::CountryCode"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"required": false,
|
|
135
|
-
"optional": true,
|
|
136
|
-
"docs": {
|
|
137
|
-
"tags": [],
|
|
138
|
-
"text": ""
|
|
139
|
-
},
|
|
140
|
-
"getter": false,
|
|
141
|
-
"setter": false,
|
|
142
|
-
"reflect": false,
|
|
143
|
-
"attribute": "country",
|
|
144
|
-
"defaultValue": "CountryCode.USA"
|
|
145
|
-
},
|
|
146
118
|
"handleFormLoading": {
|
|
147
119
|
"type": "unknown",
|
|
148
120
|
"mutable": false,
|
package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js
CHANGED
|
@@ -46,7 +46,7 @@ export class PaymentProvisioning {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h("justifi-payment-provisioning-core", { key: '
|
|
49
|
+
return (h("justifi-payment-provisioning-core", { key: '6d77016584f204fdc4be5fd554b4eb1639e856ab', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "justifi-payment-provisioning"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -108,7 +108,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
108
108
|
return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h("form", { key: '
|
|
111
|
+
return (h("form", { key: '8cea6fff2e5b5cbfa7de6b3adfce238153599d1e' }, h("fieldset", { key: 'ef3c4ce5d0d03f1d048e072c6f7ac3da565ffb18' }, h("legend", { key: 'caa5fee86bd4b5c2a7204a76ae3533146526b9e1', part: heading2 }, "Terms and Conditions"), h("hr", { key: '5a72caeaf2dae8f57c0be09ca21feceb0793daf4' }), h("div", { key: 'e39700b83a10c479cf6d767c1af61ac8b480e4d5' }, h("p", { key: '2b8520977bedf73c295a387095724a561391b005' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '706ec9ecfd4a0909583745f90b36eeb42fa5e690' }), h("div", { key: 'd915e2c49188b829b33b03f07cc8f1ccea99ee1d', class: "row-gy-3" }, h("div", { key: 'cbbc74e6b5e80bf54884a8f41eb94f6d5bcdb6dd', class: "col-12" }, h("form-control-checkbox", { key: 'f63aed196d33f1760dae8c5ac5487c0fbc7d4838', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "justifi-business-terms-conditions-form-step"; }
|
|
114
114
|
static get properties() {
|
|
@@ -1,43 +1,21 @@
|
|
|
1
1
|
import { object, string } from "yup";
|
|
2
|
-
import { cityValidation, lineOneValidation, lineTwoValidation, postalValidation,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
line1: lineOneValidation.nullable(),
|
|
22
|
-
line2: lineTwoValidation.nullable(),
|
|
23
|
-
city: cityValidation.nullable(),
|
|
24
|
-
state: string().nullable(),
|
|
25
|
-
postal_code: string().nullable(),
|
|
26
|
-
});
|
|
27
|
-
const strictSchemaCAN = () => object({
|
|
28
|
-
line1: lineOneValidation.required('Enter street address'),
|
|
29
|
-
line2: lineTwoValidation.nullable(),
|
|
30
|
-
city: cityValidation.required('Enter city'),
|
|
31
|
-
state: string().required('Select province'),
|
|
32
|
-
postal_code: makePostalValidation(CountryCode.CAN).required('Enter postal code'),
|
|
33
|
-
});
|
|
34
|
-
// Public API
|
|
35
|
-
export const addressSchemaUSA = (allowOptionalFields) => allowOptionalFields ? schemaUSA() : strictSchemaUSA();
|
|
36
|
-
export const addressSchemaCAN = (allowOptionalFields) => allowOptionalFields ? schemaCAN() : strictSchemaCAN();
|
|
37
|
-
// For Backward compatibility
|
|
38
|
-
export const addressSchema = (allowOptionalFields) => addressSchemaUSA(allowOptionalFields);
|
|
39
|
-
// Country-keyed mapping
|
|
40
|
-
export const addressSchemaByCountry = {
|
|
41
|
-
[CountryCode.USA]: addressSchemaUSA,
|
|
42
|
-
[CountryCode.CAN]: addressSchemaCAN,
|
|
2
|
+
import { cityValidation, lineOneValidation, lineTwoValidation, postalValidation, stateValidation } from "./schema-validations";
|
|
3
|
+
export const addressSchema = (allowOptionalFields) => {
|
|
4
|
+
const schema = object({
|
|
5
|
+
line1: lineOneValidation.required('Enter street address'),
|
|
6
|
+
line2: lineTwoValidation.nullable(),
|
|
7
|
+
city: cityValidation.required('Enter city'),
|
|
8
|
+
state: stateValidation.required('Select state'),
|
|
9
|
+
postal_code: postalValidation.required('Enter postal code'),
|
|
10
|
+
country: string().required('Select country')
|
|
11
|
+
});
|
|
12
|
+
const easySchema = object({
|
|
13
|
+
line1: lineOneValidation.nullable(),
|
|
14
|
+
line2: lineTwoValidation.nullable(),
|
|
15
|
+
city: cityValidation.nullable(),
|
|
16
|
+
state: stateValidation.nullable(),
|
|
17
|
+
postal_code: postalValidation.nullable(),
|
|
18
|
+
country: string().required('Select country')
|
|
19
|
+
});
|
|
20
|
+
return allowOptionalFields ? easySchema : schema;
|
|
43
21
|
};
|